/* Base Styles & Reset */
:root {
    --bg-color: #F8F6F0; /* Soft warm cream from reference */
    --text-main: #111111;
    --text-muted: #666666;
    --card-bg-1: #D5CABF;
    --card-bg-2: #E6E1DA;
    --card-bg-3: #4A5D4E; /* Dark muted green for contrast block */
    --btn-bg: #111111;
    --btn-text: #FFFFFF;
    --btn-hover: #333333;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

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

/* Typography Headings */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.01em;
    line-height: 1.1;
    font-weight: 500;
}

h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtext {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn span {
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.btn:hover span {
    transform: translateX(4px);
}

.btn-primary {
    background-color: var(--btn-bg);
    color: var(--btn-text);
}

.btn-nav {
    background-color: transparent;
    color: var(--text-main);
    border: 1.5px solid var(--text-main);
}

.btn-primary:hover {
    background-color: var(--btn-hover);
}

.btn-nav:hover {
    background-color: var(--text-main);
    color: white;
}

.btn:active, a:active {
    transform: scale(0.95);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--btn-text);
}

/* Navigation */
/* Global layout for Fixed Header */
body {
    padding-top: 6.5rem; /* Account for grander fixed navbar */
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 4rem; /* Grand vertical breathing room */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background-color: rgba(248, 246, 240, 0.85);
    border-bottom: 2px solid rgba(0,0,0,0.03); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.03); /* Subtle floating depth */
}

/* Reading Progress Bar */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: var(--scroll-percent, 0%);
    height: 1.5px;
    background: var(--text-main);
    z-index: 101;
    transition: width 0.1s ease-out;
}

.nav-brand {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.nav-left {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 2.5rem;
}

.nav-left, .nav-right {
    font-size: 0.85rem; /* More present, yet sophisticated */
    text-transform: uppercase;
    letter-spacing: 0.1em; /* Grand luxury tracking */
    font-weight: 500;
}

.nav-link {
    opacity: 0.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link-active {
    opacity: 1;
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Spaced architectural indicator */
    left: 20%;
    width: 60%; /* Narrow, centered bar for finesse */
    height: 1.5px;
    background: var(--text-main);
}

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.5rem;
    position: relative;
    left: 0;
    transform: none;
}

.nav-brand img {
    height: 72px; /* Grand minimalist presence */
    width: auto;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Desktop hidden state for mobile components */
.mobile-menu-drawer, .menu-toggle {
    display: none; 
}
.menu-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1001; 
}

.nav-brand:hover img {
    transform: scale(1.05);
}

.nav-left a:hover, .nav-right a:not(.btn):hover {
    opacity: 0.7;
}

/* Typed Text Accent */
.typed-accent {
    color: #B07D4A;
    display: inline-block;
}

.typed-cursor {
    color: #B07D4A !important;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 0 6rem;
    max-width: 100%;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Section Utilities */
.section-white {
    background-color: #FFFFFF;
}

.section-cream {
    background-color: var(--bg-color);
}

.inner-box {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .inner-box {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .inner-box {
        padding: 0 1.5rem;
    }
}

/* Services Section on Home page - white bg like results-section */
.services-hero-header {
    background-color: #FFFFFF;
    max-width: 100%;
    padding: 5rem 0 2rem;
}

.services-bento-section {
    background-color: #FFFFFF;
    max-width: 100%;
    padding: 0 0 8rem;
    margin-bottom: 0 !important;
}

.boxed-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 4rem;
}

@media (max-width: 1024px) {
    .boxed-container {
        padding: 0 2rem;
    }
}

@media (max-width: 480px) {
    .boxed-container {
        padding: 0 1.5rem;
    }
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Mobile fix for Services section spacing */
@media (max-width: 480px) {
    .services-bento-section .boxed-container {
        padding: 0 0.5rem; /* minimal side padding */
    }
    .services-bento-section .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .services-bento-section .bento-large,
    .services-bento-section .bento-small,
    .services-bento-section .bento-vendor-strategy {
        grid-column: span 1 !important;
    }
}

/* Mobile fix for Raw Materials Categories Covered */
@media (max-width: 480px) {
    /* Force single column grid */
    .section-white .bento-grid {
        grid-template-columns: 1fr !important;
    }
    /* Ensure all bento items occupy full width */
    .section-white .bento-item {
        grid-column: span 1 !important;
    }
}

/* Problems Slider Section */
.problems-section {
    padding: 4rem 1rem 6rem;
    overflow: hidden;
}

.problems-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.slider-arrow {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: #FFFFFF;
    border: 1.5px solid rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    z-index: 10;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    color: var(--text-main);
}

.slider-arrow:hover {
    background-color: var(--text-main);
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.problems-container {
    position: relative;
    width: 100%;
    max-width: 1300px;
    height: 480px;
    margin: 0 auto;
    overflow: visible; /* Let them pop out on hover */
    perspective: 1200px;
}

@media (max-width: 768px) {
    .problems-section {
        padding: 3rem 0;
    }
    .problems-slider-wrapper {
        display: block;
        padding: 0;
    }
    .slider-arrow {
        display: flex !important; /* Restore for mobile as small swipe assistance */
        width: 36px;
        height: 36px;
        background-color: rgba(255,255,255,0.8);
        border: 1px solid rgba(0,0,0,0.05);
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }
    .slider-arrow-left { left: 1rem; }
    .slider-arrow-right { right: 1rem; }
    .slider-arrow svg { width: 16px; height: 16px; }
    .problems-container {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        height: auto;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        scroll-snap-type: x mandatory;
        scrollbar-width: none; /* Hide scrollbar */
        perspective: none;
    }
    .problems-container::-webkit-scrollbar {
        display: none;
    }
}

.problem-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 230px;
    height: 360px;
    border-radius: var(--radius-lg);
    background-color: var(--card-bg-2);
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    cursor: none;
}

/* Positional classes using variables to avoid hover conflicts */
.problem-card {
    --tx: 0px;
    --scale: 1;
    --ty: 0px;
    transform: translate(-50%, -50%) translateX(var(--tx)) translateY(var(--ty)) scale(var(--scale));
}

.problem-card.card-pos-0 { --tx: -500px; --scale: 0.85; opacity: 0.9; z-index: 2; }
.problem-card.card-pos-1 { --tx: -250px; --scale: 0.92; opacity: 1; z-index: 3; }
.problem-card.card-pos-2 { --tx: 0px; --scale: 1; opacity: 1; z-index: 5; }
.problem-card.card-pos-3 { --tx: 250px; --scale: 0.92; opacity: 1; z-index: 3; }
.problem-card.card-pos-4 { --tx: 500px; --scale: 0.85; opacity: 0.9; z-index: 2; }

.problem-card.card-hidden-left { --tx: -1000px; --scale: 0.7; opacity: 0; pointer-events: none; }
.problem-card.card-hidden-right { --tx: 1000px; --scale: 0.7; opacity: 0; pointer-events: none; }

.problem-card:hover {
    --ty: -18px;
    --scale: 1.06;
    box-shadow: 0 24px 60px rgba(0,0,0,0.14);
    z-index: 20;
    opacity: 1;
}

@media (max-width: 768px) {
    .problem-card {
        position: relative !important;
        flex-shrink: 0;
        width: 280px !important;
        height: 380px !important;
        transform: none !important;
        top: auto !important;
        left: auto !important;
        scroll-snap-align: center;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .problem-card.card-hidden-left, 
    .problem-card.card-hidden-right {
        position: relative !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.problem-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.problem-card:hover img { opacity: 1; }

.problem-card .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    transition: padding 0.3s ease;
}

.problem-card:hover .overlay { padding-bottom: 1.5rem; }

/* QCS Solution Pillars */
.solution-pillars {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 3rem;
}

.pillar {
    flex: 1;
    text-align: center;
}

.pillar h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* How QCS Works */
.how-it-works {
    padding: 0 2rem 8rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.step-card {
    background-color: #FFFFFF;
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 200px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}

.step-num {
    display: block;
    font-size: 2rem;
    color: var(--card-bg-1);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-card h4 {
    font-size: 1rem;
}

/* Bento Grid */
.ecosystem-bento {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 4rem 8rem;
    background-color: #FFFFFF;
}

.ecosystem-bento h2 {
    padding-top: 4rem;
}



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

.bento-item {
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.5s ease;
}

@media (max-width: 480px) {
    .bento-item {
        padding: 1.5rem;
        min-height: 240px;
    }
    .bento-item h3 {
        font-size: 1.25rem;
    }
}

.bento-large {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0,0,0,0.1);
    z-index: 10;
}


.bento-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.bento-item p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.content {
    position: relative;
    z-index: 2;
}

.bento-img-1 {
    background-color: var(--card-bg-2);
    /* In actual use, background image would go here */
}

.bento-img-2 {
    background-color: var(--card-bg-3);
    color: white;
}

.bento-solid-1 {
    background-color: #Eeeadd; /* Soft beige */
}

.bento-solid-2 {
    background-color: #Dbd5cc; /* Medium taupe */
}

/* Vendor Strategy Custom Bento */
.bento-vendor-strategy {
    grid-column: span 3;
    background-color: #Eeeadd;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 4rem;
}
.bento-vendor-strategy h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}
.bento-vendor-strategy p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 0;
}
.bento-vendor-strategy .content-text {
    flex: 1;
}
.bento-vendor-strategy .content-tags {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.bento-vendor-strategy .tags-wrapper {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 300px;
}
.bento-vendor-strategy .tags-wrapper span {
    padding: 0.4rem 1rem;
    background: var(--text-main);
    color: white;
    border-radius: 20px;
    font-size: 0.95rem;
}

.bento-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 24px 60px rgba(0,0,0,0.1);
    z-index: 10;
}

/* Results */
.results-section {
    padding: 4rem 2rem 8rem;
    background-color: #FFFFFF;
    margin-bottom: 8rem;
}

.metrics-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.metric {
    text-align: center;
}

.stat {
    font-size: 4rem;
    font-weight: 500;
    letter-spacing: -0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

/* Dual Audience */
.dual-audience {
    max-width: 1000px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

.audience-split {
    display: flex;
    gap: 2rem;
}

.audience-card {
    flex: 1;
    background-color: #FFFFFF;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
}

.audience-card h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.benefits {
    list-style: none;
    margin-bottom: 2.5rem;
}

.benefits li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.benefits li::before {
    content: "✓";
    margin-right: 1rem;
    color: var(--text-muted);
}

/* Insights */
.insights {
    max-width: 1200px;
    margin: 0 auto 8rem;
    padding: 0 2rem;
}

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

.insight-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.insight-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0,0,0,0.08); /* Needs a white bg or similar for shadow to show */
    z-index: 10;
}

.insight-card img {
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    margin-bottom: 1.5rem;
}

.insight-card h4 {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Final Statement */
.final-statement {
    text-align: center;
    padding: 8rem 2rem;
    background-color: var(--text-main);
    color: white;
}

.final-statement h2 {
    color: white;
}

.final-statement p {
    color: #999;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Footer */
.footer {
    padding: 4rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-brand {
    text-align: center;
    margin-top: 2rem;
}

.footer-brand img {
    height: 90px;
    margin: 0 auto 1.5rem auto;
}

.footer-brand h2 {
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-large, .bento-small, .bento-vendor-strategy {
        grid-column: span 1 !important;
    }
    .bento-vendor-strategy {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 2.5rem !important;
        gap: 2rem;
    }
    .bento-vendor-strategy .content-tags {
        align-items: flex-start !important;
    }
    .bento-vendor-strategy .tags-wrapper {
        justify-content: flex-start !important;
    }
    .audience-split {
        flex-direction: column;
    }
    .problems-slider-wrapper {
        gap: 0.5rem;
    }
    .slider-arrow {
        width: 40px;
        height: 40px;
    }
    .problems-container {
        height: 420px;
        max-width: calc(100% - 100px);
    }
    .problem-card {
        width: 200px;
        height: 340px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2.5rem, 8vw, 3rem); }
    h2 { font-size: clamp(2rem, 6vw, 2.5rem); }
    
    .navbar {
        padding: 0.75rem 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navbar > .nav-left, .navbar > .nav-right {
        display: none !important; /* Hide desktop-only nav direct children */
    }
    .menu-toggle {
        display: block;
        flex: 0 0 auto;
        order: 2;
    }
    .nav-brand {
        flex: 0 0 auto;
        order: 1;
        position: relative;
        left: 0;
        transform: none;
    }
    .mobile-menu-drawer {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* Modern full-screen feel */
        height: 100vh;
        background-color: rgba(248, 246, 240, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center; /* Center links as requested */
        padding: 2rem;
        z-index: 1001;
        transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -20px 0 60px rgba(0,0,0,0.1);
    }
    body.mobile-active .mobile-menu-drawer {
        right: 0;
    }
    .mobile-nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: 4rem;
        gap: 2rem;
    }
    .mobile-menu-drawer .nav-link {
        font-size: 1.75rem !important; /* Premium Modern Scale */
        font-family: 'Playfair Display', serif;
        opacity: 1 !important;
        text-align: center;
        width: 100%;
        color: var(--text-main);
    }
    .menu-toggle {
        z-index: 1001;
        transition: transform 0.3s ease;
    }
    .navbar.mobile-active .menu-toggle {
        transform: rotate(90deg);
    }
    .navbar.mobile-active .menu-toggle-icon-line-1 { transform: rotate(45deg) translate(5px, 5px); }
    .navbar.mobile-active .menu-toggle-icon-line-2 { opacity: 0; }
    .navbar.mobile-active .menu-toggle-icon-line-3 { transform: rotate(-45deg) translate(7px, -6px); }
    .hero {
        padding: 4rem 1rem 3rem;
    }
    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-ctas {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    .solution-pillars {
        flex-direction: column;
        gap: 2.5rem;
        padding-top: 2rem;
        margin-bottom: 4rem;
    }
    .metrics-grid {
        flex-direction: column;
        gap: 3rem;
    }
    .stat {
        font-size: 3rem;
    }
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .insights {
        margin-bottom: 4rem;
    }
    .step-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }
    .results-section {
        padding: 3rem 1.5rem 4rem;
        margin-bottom: 4rem;
    }
    .footer {
        padding: 3rem 1.5rem 4rem;
    }
    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 0;
    }
    .hero h1 {
        font-size: 2.25rem;
    }
    .section-white, .section-cream {
        padding: 4rem 0 !important;
    }
    section[style*="padding: 8rem 0"] {
        padding: 4rem 0 !important;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.visible {
    opacity: 1;
    transform: none;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loader-logo {
    height: 80px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-main);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: loaderTextReveal 1.2s cubic-bezier(0.2, 0.6, 0.2, 1) forwards 0.4s;
    text-align: center;
}

@keyframes loaderTextReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
        letter-spacing: 0.3em;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 0.15em;
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

/* Custom Cursor */
body, a, button, .btn {
    cursor: none !important; /* Force hide default cursor everywhere */
}

#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.5' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpath d='M6 21 L6 4 L18 4 L18 21' /%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 10000;
    transform-origin: 25% 87.5%;
    transform: translate(-9px, -31px) rotate(-25deg);
    transition: width 0.2s, height 0.2s, transform 0.08s cubic-bezier(0.2, 3, 0.4, 1);
}

#cursor.click-fire {
    transform: translate(-9px, -31px) rotate(0deg) scaleY(0.8);
}

#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s, background-color 0.2s;
}

#cursor.hovered {
    transform: translate(-50%, -50%) scale(0);
}

#cursor-follower.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.05);
    border-color: var(--text-main);
}

/* Custom Stapler Cursor */
#cursor, #cursor-follower {
    display: none; /* remove old defaults */
}

.stapler-cursor {
    position: fixed;
    width: 28px;
    height: 20px;
    pointer-events: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.08s ease-out;
    transform: translate(-50%, -50%);
}

.staple-pin {
    width: 24px;
    height: 10px;
    border: 2.5px solid #111111;
    border-top: none;
    border-radius: 0 0 4px 4px;
    position: relative;
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.staple-pin::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -2.5px;
    width: 24px;
    height: 3px;
    background: #111111;
    border-radius: 2px;
}

.stapler-cursor.active .staple-pin {
    transform: scaleY(0.4) scaleX(1.1);
    background-color: #B07D4A;
}

/* Global cursor removal for interactivity */
body, a, button, .problem-card, .slider-arrow {
    cursor: none !important;
}

@media (max-width: 768px) {
    .philosophy-layout {
        gap: 3rem !important;
    }
    .philosophy-content {
        text-align: center;
    }
    .philosophy-content h2 {
        text-align: center !important;
    }
}

@media (max-width: 1024px) {
    .stapler-cursor { display: none; }
    body, a, button { cursor: auto !important; }
}
