:root {
    --brand-gold: #D1C281;
    --brand-navy: #1E183B;
    --light-bg: #FAF9F6;
}

body { 
    font-family: 'Futura', 'Futura-Medium', 'Jost', sans-serif; 
    background-color: var(--light-bg);
    color: var(--brand-navy);
    scroll-behavior: smooth;
    margin: 0;
}

/* Typography */
.serif { font-family: 'Futura', serif; }
.heading-luxury {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

/* Navigation Glass */
/* ── FLOATING PILL NAV ───────────────────────────────────────────── */
#main-nav {
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
#main-nav.nav-hidden {
    transform: translateY(-140%);
}
.pill-nav {
    background: rgba(250, 249, 246, 0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(209, 194, 129, 0.22);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(30, 24, 59, 0.09), 0 2px 8px rgba(30, 24, 59, 0.05);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.pill-nav:hover {
    box-shadow: 0 12px 40px rgba(30, 24, 59, 0.13), 0 2px 10px rgba(30, 24, 59, 0.06);
}
.pill-cta {
    background: #1E183B;
    color: #D1C281;
    font-family: 'Jost', sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    white-space: nowrap;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}
.pill-cta:hover {
    background: #D1C281;
    color: #1E183B;
    transform: scale(1.03);
}
.pill-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(209, 194, 129, 0.2);
    border-radius: 1.25rem;
    box-shadow: 0 16px 48px rgba(30, 24, 59, 0.12);
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 200;
}
.pill-services:hover .pill-dropdown,
.pill-services:focus-within .pill-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
/* Legacy nav-glass kept for sub-pages until they're updated */
.nav-glass {
    background: rgba(250, 249, 246, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(209, 194, 129, 0.2);
}

/* =============================================
   ANIMATIONS  (deduplicated — defined once)
   ============================================= */
@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}
.animate-slow-zoom { animation: slowZoom 12s linear infinite alternate; }

@keyframes spin-linear { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}
.animate-spin-slow { animation: spin-linear 20s linear infinite; }

@keyframes liquidFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
#process-svg { animation: liquidFloat 6s ease-in-out infinite; }

/* =============================================
   CURSOR GLOW  (deduplicated — defined once)
   ============================================= */
#cursor-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* =============================================
   MOBILE MENU
   ============================================= */

/* Keep menu in the DOM but slide it off-screen */
#mobile-menu {
    display: flex !important; 
    position: fixed;
    inset: 0;
    z-index: 105;
    background-color: #1E183B;
    transition: transform 0.6s cubic-bezier(0.7, 0, 0.2, 1);
    font-style: normal !important;
}

/* Hidden state — slides up off-screen */
.hidden-menu { 
    transform: translateY(-100%) !important; 
}

/* Visible state */
#mobile-menu:not(.hidden-menu) {
    transform: translateY(0) !important;
}

/* Close button */
#close-menu-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}
#close-menu-btn:active {
    transform: scale(0.9);
}

/* =============================================
   SOCIAL ICONS
   ============================================= */
.social-icon {
    padding: 0.625rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    transition: all 0.5s;
    color: var(--brand-navy);
}
.social-icon:hover {
    transform: translateX(-4px);
    background: var(--brand-navy);
    color: var(--brand-gold);
}

/* =============================================
   PROCESS WHEEL
   ============================================= */
#process-wheel {
    overflow: visible !important;
}

.process-item {
    position: absolute;
    left: 0;
    top: 50%;
    transform-origin: right center;
    transition: opacity 0.7s, color 0.7s, transform 0.7s;
    will-change: transform, opacity;
    white-space: nowrap;
    color: #1E183B;
}

.item-active h3 {
    color: var(--brand-gold) !important;
    transform: scale(1.05);
    transition: all 0.5s ease;
}

.process-sub {
    font-family: 'Jost', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(30, 24, 59, 0.45);
    margin-top: 0.5rem;
    white-space: nowrap;
    transition: color 0.4s ease;
}

.item-active .process-sub {
    color: rgba(209, 194, 129, 0.7);
}

/* SVG side (Left) */
#process-wheel .w-full.md\:w-1\/2:first-child {
    z-index: 5;
    background: transparent;
}

/* Wheel side (Right) */
#process-wheel .w-full.md\:w-1\/2:last-child {
    z-index: 20;
    overflow: visible !important;
}

@media (max-width: 767px) {
    /* Full-width left panel, top-anchored */
    .process-left-panel {
        width: 100% !important;
        padding-top: 5.5rem !important;
        padding-bottom: 3rem !important;
        justify-content: flex-start !important;
        height: 100vh;
        overflow-y: auto;
    }

    /* Tighten spacing on mobile */
    .process-left-panel #day-range  { margin-bottom: 1.5rem; }
    .process-left-panel #process-outcome-wrap { max-width: 90vw; }

    /* Mobile progress dots */
    .mob-dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(30, 24, 59, 0.18);
        display: block;
        transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
        flex-shrink: 0;
    }

    .mob-dot.active {
        background: #D1C281;
        width: 26px;
        border-radius: 4px;
    }
}

/* =============================================
   CALCULATOR
   ============================================= */
.plan-btn {
    font-family: 'Jost', sans-serif;
    letter-spacing: 0.1em;
    font-size: 12px;
}

#quality-slider {
    cursor: pointer;
    height: 2px;
}

#calc-result.active {
    display: flex;
    animation: slideUpFade 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   FOOTER
   ============================================= */
footer a {
    position: relative;
    display: inline-block;
}

footer ul a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--brand-gold);
    transition: width 0.3s ease;
}

footer ul a:hover::after {
    width: 100%;
}

footer input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =============================================
   GLASS OVERLAY  (deduplicated — defined once)
   ============================================= */
.glass-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    transform: translate(-50%, -50%) translateY(20px);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    border-radius: 2rem;
    padding: 2rem 1rem;
    opacity: 0;
    transition: all 0.6s ease;
    text-align: center;
    /* FIX: replaced invalid Tailwind-as-CSS with proper CSS */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover .glass-overlay,
.group:hover .glass-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.glass-overlay .heading-luxury {
    color: var(--brand-navy);
}

.glass-overlay .flex {
    flex-direction: column;
    align-items: center;
}

.glass-overlay a {
    margin-top: 1rem;
    display: inline-block;
}

/* =============================================
   TRUST STATS
   ============================================= */
.stat-circle {
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

#trust-stats .serif {
    font-weight: 500;
}

#trust-stats .group:hover .stat-circle {
    filter: drop-shadow(0 0 8px rgba(209, 194, 129, 0.4));
}

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio-slider-wrapper {
    position: relative;
}

#portfolio-container {
    display: flex;
    align-items: stretch;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    gap: 32px;
}

#portfolio-container::-webkit-scrollbar {
    display: none;
}

.portfolio-card {
    flex: 0 0 calc(33.333% - 22px);
    scroll-snap-align: start;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-card.is-hidden {
    display: none;
}

.filter-btn.active {
    opacity: 1 !important;
    border-bottom: 1px solid #1E183B;
}

/* Nav arrows */
.port-nav-btn {
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1E183B;
    color: #D1C281;
    border: 1px solid #D1C281;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.port-nav-btn:hover {
    background: #D1C281;
    color: #1E183B;
}

.port-nav-next {
    left: auto;
    right: -20px;
}

@media (max-width: 768px) {
    .portfolio-card {
        flex: 0 0 85%;
    }
    .port-nav-btn {
        display: none;
    }
}

/* =============================================
   ABOUT SECTION
   ============================================= */
#about img {
    filter: grayscale(0%) contrast(110%);
    transition: filter 1.5s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

#about .group:hover img {
    filter: grayscale(100%) contrast(100%);
    transform: scale(1.05);
}

#about h2 {
    margin-left: -5%;
}

@media (max-width: 1024px) {
    #about h2 {
        margin-left: 0;
    }
}

/* =============================================
   DOCK / CLIENT LOGOS
   ============================================= */
.dock-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 20px;
    perspective: 1000px;
}

.dock-item {
    width: 80px;
    height: 80px;
    display: flex;
    /* FIX: replaced invalid Tailwind-as-CSS with proper CSS */
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(30, 24, 59, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    border: 1px solid rgba(30, 24, 59, 0.05);
}

.dock-item img {
    width: 60%;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

/* =============================================
   SERVICES PARALLAX
   ============================================= */
#services-parallax-master * {
    font-style: normal !important;
}

/* =============================================
   SERVICES — STICKY SCROLL PARALLAX
   ============================================= */
.svc-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1s ease, transform 1s ease;
    will-change: opacity, transform;
}

.svc-bg.active {
    opacity: 1;
    transform: scale(1.0);
}

.svc-panel {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 10% 0 10%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

@media (min-width: 768px) {
    .svc-panel {
        padding: 0 8% 0 12%;
    }
}

.svc-panel.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.svc-panel.exit-up {
    opacity: 0;
    transform: translateY(-50px);
}

.svc-heading {
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    line-height: 0.92;
    margin-bottom: 2rem;
}

.svc-desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.6);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.svc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    max-width: 380px;
    margin-bottom: 3rem;
}

.svc-tag {
    font-family: 'Jost', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    font-weight: 400;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    border-left: 1px solid #D1C281;
    padding-left: 10px;
    line-height: 1.5;
}

.svc-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.25);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    padding: 0;
    display: block;
}

.svc-dot.active {
    background: #D1C281;
    height: 28px;
}

.btn-service {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border-radius: 50px;
    transition: all 0.5s ease;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

.btn-service:hover {
    background: white;
    color: #1E183B;
}

.btn-cta {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border: 1px solid #D1C281;
    color: #D1C281;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    border-radius: 50px;
    transition: all 0.5s ease;
}

.btn-cta:hover {
    background: #D1C281;
    color: #1E183B;
}

@media (max-width: 768px) {
    .svc-panel {
        padding: 0 6% 0 6%;
        align-items: flex-end;
        padding-bottom: 14vh;
    }
    .svc-features {
        display: none;
    }
}

/* =============================================
   CLIENTELE
   ============================================= */
.client-box {
    aspect-ratio: 2 / 2;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
    border: 1px solid rgba(30, 24, 59, 0.05);
    transition: all 0.4s ease;
}

.client-box img {
    max-width: 80%;
    max-height: 60%;
    object-fit: contain;
}

.client-box:hover {
    border-color: #D1C281;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 24, 59, 0.05);
}

@media (max-width: 768px) {
    .grid-cols-7 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Desktop: 8-column grid */
.client-grid-scroller {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    width: 100%;
}

/* Mobile: 2-row horizontal slider */
@media (max-width: 768px) {
    .client-grid-scroller {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: wrap !important;
        height: 280px;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 20px;
        -webkit-overflow-scrolling: touch;
    }

    .client-grid-scroller::-webkit-scrollbar {
        display: none;
    }

    .client-box {
        height: calc(50% - 6px); 
        flex: 0 0 40% !important;
        width: 40% !important;
        scroll-snap-align: start;
    }
}






.review-grid-scroller {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: #FAF9F6;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(30, 24, 59, 0.05);
    display: flex;
    flex-direction: column;
    transition: all 0.5s ease;
}

.review-card:hover {
    background: #FFFFFF;
    border-color: #D1C281;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 24, 59, 0.05);
}

/* MOBILE SLIDER LOGIC */
@media (max-width: 1024px) {
    .review-grid-scroller {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        gap: 20px;
        padding-bottom: 20px;
        scrollbar-width: none;
    }
    
    .review-grid-scroller::-webkit-scrollbar { display: none; }

    .review-card {
        flex: 0 0 85% !important;
        scroll-snap-align: center;
    }
}


/* Slider Core */
#rev-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#rev-track::-webkit-scrollbar { display: none; }

/* DESKTOP: 2 Cards */
.rev-card-main {
    flex: 0 0 calc(50% - 12px); 
    min-width: calc(50% - 12px);
    background: white;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.04);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* MOBILE: 1 Card Only */
@media (max-width: 768px) {
    .rev-card-main {
        flex: 0 0 100%; 
        min-width: 100%;
        padding: 2.5rem;
    }
    #rev-track {
        gap: 0; /* Ensures single card focus */
    }
}







/* --- FACTORY V2 SECTION --- */
#factory-v2 {
    background-color: #000;
}

.factory-video-asset {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Specific button overrides to prevent global conflicts */
#factory-v2 a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-style: normal !important; /* Enforcing Lisno No-Italic Rule */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #factory-v2 h2 {
        font-size: 3rem;
        line-height: 1.1;
    }
}