/* ===== PUMPKIN MCN - Design Awards Style ===== */
/* Inspired by Awwwards, SOTD, CSS Design Awards */

/* ===== CSS Variables ===== */
:root {
    /* Core Colors - High Contrast */
    --black: #0a0a0a;
    --white: #fafafa;
    --orange: #ff4d00;
    --orange-dark: #cc3d00;
    --gray: #888;
    --gray-dark: #333;
    --gray-light: #e5e5e5;

    /* Typography */
    --font-display: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans Thai', -apple-system, sans-serif;

    /* Fluid Typography Scale */
    --text-xs: clamp(0.75rem, 1vw, 0.875rem);
    --text-sm: clamp(0.875rem, 1.2vw, 1rem);
    --text-base: clamp(1rem, 1.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 2vw, 1.5rem);
    --text-xl: clamp(1.5rem, 3vw, 2rem);
    --text-2xl: clamp(2rem, 4vw, 3rem);
    --text-3xl: clamp(2.5rem, 6vw, 4.5rem);
    --text-4xl: clamp(3.5rem, 10vw, 8rem);
    --text-hero: clamp(4rem, 15vw, 14rem);

    /* Spacing */
    --space-xs: clamp(0.25rem, 0.5vw, 0.5rem);
    --space-sm: clamp(0.5rem, 1vw, 0.75rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 5vw, 4rem);
    --space-2xl: clamp(3rem, 8vw, 6rem);
    --space-3xl: clamp(4rem, 12vw, 10rem);

    /* Layout */
    --container: min(1600px, 92vw);
    --gutter: clamp(1rem, 3vw, 2rem);

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 0.3s;
    --duration-normal: 0.6s;
    --duration-slow: 1s;

    /* Effects */
    --blur-sm: 4px;
    --blur-md: 10px;
    --blur-lg: 20px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ===== Utility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Custom Cursor - DISABLED for performance ===== */
.cursor {
    display: none;
}

/* ===== Page Transition ===== */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--orange);
    z-index: 10001;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: bottom;
}

.page-transition.active {
    animation: pageWipe 1s var(--ease-in-out) forwards;
}

@keyframes pageWipe {
    0% { transform: scaleY(0); transform-origin: bottom; }
    50% { transform: scaleY(1); transform-origin: bottom; }
    50.1% { transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* ===== Loader ===== */
.loader {
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.loader.hidden {
    animation: loaderOut 0.8s var(--ease-out-expo) forwards;
}

@keyframes loaderOut {
    0% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; pointer-events: none; }
}

.loader-logo {
    width: 100px;
    height: 100px;
}

.loader-text {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gray);
    overflow: hidden;
}

.loader-text span {
    display: inline-block;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    mix-blend-mode: difference;
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    position: relative;
    z-index: 1001;
}

.logo-img {
    width: 50px;
    height: 50px;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-logo:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    position: relative;
    padding: var(--space-xs) 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-expo);
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* AI Features Button */
.nav-link-ai {
    background: var(--orange);
    color: var(--white) !important;
    padding: var(--space-xs) var(--space-md);
    border-radius: 100px;
    transition: background 0.3s, transform 0.3s;
}

.nav-link-ai::before {
    display: none;
}

.nav-link-ai:hover {
    background: var(--white);
    color: var(--black) !important;
    transform: scale(1.05);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    position: absolute;
    left: 50%;
    width: 24px;
    height: 2px;
    background: var(--white);
    transform: translateX(-50%);
    transition: all 0.3s var(--ease-out-expo);
}

.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { bottom: 14px; }

.nav-toggle.active span:first-child {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.active span:last-child {
    bottom: 50%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* ===== Hero Section - Award Style ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    padding: var(--space-3xl) 0 var(--space-2xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Grain Texture - DISABLED for performance */
.hero-grain {
    display: none;
}

/* Gradient Orbs - Static (no animation for performance) */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    will-change: auto;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--orange);
    top: -15%;
    right: -10%;
}

.hero-orb-2 {
    width: 350px;
    height: 350px;
    background: var(--orange-dark);
    bottom: -10%;
    left: -5%;
}

.hero-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    width: 100%;
}

/* Hero Title - Massive Typography */
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line span {
    display: inline-block;
    transform: translateY(100%);
    animation: titleReveal 1.2s var(--ease-out-expo) forwards;
}

.hero-title-line:nth-child(2) span {
    animation-delay: 0.1s;
}

@keyframes titleReveal {
    to { transform: translateY(0); }
}

.hero-title-outline {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
    transition: all 0.4s var(--ease-out-expo);
}

.hero-title-outline:hover {
    -webkit-text-stroke: 2px var(--orange);
    color: var(--orange);
}

.hero-title-accent {
    color: var(--orange);
    position: relative;
}

/* Hero Meta */
.hero-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.hero-tagline {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--gray);
    max-width: 400px;
    line-height: 1.4;
}

.hero-tagline strong {
    color: var(--white);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* Button - Award Style */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: var(--space-md) var(--space-lg);
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

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

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out-expo);
}

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

.btn-primary:hover::before {
    transform: translateY(0);
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary svg {
    transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* Hero Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: var(--gutter);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to top, var(--gray), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ===== Award Marquee ===== */
.marquee {
    background: var(--orange);
    padding: var(--space-sm) 0;
    overflow: hidden;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 30s linear infinite;
}

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

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0 var(--space-xl);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
}

.marquee-item svg {
    flex-shrink: 0;
}

.marquee-divider {
    width: 8px;
    height: 8px;
    background: var(--black);
    border-radius: 50%;
}

/* ===== Awards Gallery Section ===== */
.awards-gallery {
    padding: var(--space-2xl) 0 var(--space-3xl);
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.awards-gallery::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.awards-gallery-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
}

.awards-gallery-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.awards-gallery-header .section-label {
    justify-content: center;
}

.awards-gallery-header .section-label::before {
    display: none;
}

.awards-gallery-subtitle {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--gray);
    margin-top: calc(var(--space-sm) * -1);
}

.awards-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.award-card {
    position: relative;
    background: var(--gray-dark);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.award-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(255, 77, 0, 0.2);
}

.award-card-image {
    position: relative;
    overflow: hidden;
}

.award-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.award-card:hover .award-card-image img {
    transform: scale(1.05);
}

.award-card-badge {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: var(--space-xs) var(--space-sm);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
}

.award-card-badge svg {
    color: var(--orange);
}

.award-card-featured {
    background: linear-gradient(145deg, var(--gray-dark) 0%, rgba(255, 77, 0, 0.15) 100%);
    border: 1px solid rgba(255, 77, 0, 0.3);
}

.award-card-featured:hover {
    border-color: var(--orange);
}

@media (max-width: 768px) {
    .awards-gallery-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .awards-gallery-grid {
        max-width: 100%;
    }
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--space-lg);
}

.section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--orange);
}

.section-title {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: var(--space-lg);
}

.section-title-lg {
    font-family: 'IBM Plex Sans Thai', sans-serif !important;
    font-size: var(--text-4xl);
}

/* ===== AI Features Section ===== */
.ai-features {
    padding: var(--space-3xl) 0;
    background: var(--black);
    position: relative;
    overflow: hidden;
}

.ai-features::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 600px;
    height: 600px;
    background: var(--orange);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
}

.ai-features-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
}

.ai-features-content {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.ai-features-content .section-label {
    justify-content: center;
}

.ai-features-content .section-label::before {
    display: none;
}

.ai-features-content .section-title {
    color: var(--white);
}

.ai-features-tagline {
    font-size: var(--text-lg);
    color: var(--gray);
    max-width: 500px;
    margin: var(--space-md) auto 0;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.ai-feature-card {
    background: var(--gray-dark);
    padding: var(--space-lg);
    border-radius: 8px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    border: 1px solid transparent;
}

.ai-feature-card:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-8px);
}

.ai-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-radius: 50%;
    color: var(--orange);
    transition: all 0.4s;
}

.ai-feature-card:hover .ai-feature-icon {
    background: var(--white);
    color: var(--orange);
}

.ai-feature-title {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.ai-feature-desc {
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.5;
    transition: color 0.4s;
}

.ai-feature-card:hover .ai-feature-desc {
    color: rgba(255,255,255,0.9);
}

.ai-features-cta {
    text-align: center;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
}

/* AI Features Dashboard Preview */
.ai-features-preview {
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.ai-features-preview-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(255, 77, 0, 0.2),
                0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-features-preview-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s var(--ease-out-expo);
}

.ai-features-preview-wrapper:hover .ai-features-preview-img {
    transform: scale(1.02);
}

.ai-features-preview-caption {
    font-size: var(--text-sm);
    color: var(--gray);
    margin-top: var(--space-md);
}

@media (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== About Section - Simple ===== */
.about {
    padding: var(--space-2xl) 0;
    background: var(--white);
    color: var(--black);
}

.about-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.about-content {
    max-width: 800px;
}

.about-text {
    font-size: var(--text-lg);
    color: var(--gray-dark);
    line-height: 1.7;
}

.about-text p {
    margin-bottom: var(--space-md);
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: var(--black);
    font-weight: 600;
}

/* ===== Stats Section - Horizontal ===== */
.stats {
    padding: var(--space-2xl) 0;
    background: var(--black);
    border-top: 1px solid var(--gray-dark);
    border-bottom: 1px solid var(--gray-dark);
}

.stats-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-lg);
    border-right: 1px solid var(--gray-dark);
    transition: all 0.4s var(--ease-out-expo);
}

.stat-item:last-child {
    border-right: none;
}

.stat-item:hover {
    background: var(--gray-dark);
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    line-height: 1;
    color: var(--white);
    margin-bottom: var(--space-xs);
}

.stat-suffix {
    color: var(--orange);
}

.stat-label {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ===== Services Section - Bento ===== */
.services {
    padding: var(--space-3xl) 0;
    background: var(--white);
    color: var(--black);
}

.services-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.services-header .section-title {
    margin-bottom: 0;
}

.services-count {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray);
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: var(--space-md);
}

.bento-card {
    background: var(--gray-light);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.bento-card:hover {
    background: var(--black);
    color: var(--white);
}

.bento-card:hover .section-label {
    color: var(--orange);
}

.bento-card:hover .bento-title {
    color: var(--white);
}

.bento-card:hover .bento-list li {
    color: var(--gray);
}

/* Card Sizes */
.bento-lg {
    grid-column: span 6;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-md {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-sm {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 6;
    grid-row: span 1;
}

.bento-tall {
    grid-column: span 3;
    grid-row: span 2;
}

/* Card Content */
.bento-title {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.2;
    color: var(--black);
    margin: var(--space-sm) 0 var(--space-md);
    transition: color 0.4s, transform 0.4s var(--ease-out-expo);
}

.bento-card:hover .bento-title {
    transform: translateX(8px);
}

.bento-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.bento-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--gray-dark);
    transition: color 0.4s;
}

.bento-list svg {
    color: var(--orange);
    flex-shrink: 0;
}

/* Card Image */
.bento-image {
    grid-column: span 6;
    grid-row: span 2;
    padding: 0;
    overflow: hidden;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.bento-image:hover img {
    transform: scale(1.05);
}

.bento-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
    opacity: 0;
    transition: opacity 0.4s;
}

.bento-image:hover .bento-image-overlay {
    opacity: 1;
}

.bento-image-overlay span {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--white);
}

/* Partners */
.bento-partners {
    display: flex;
    flex-direction: column;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
    flex: 1;
    align-content: center;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    background: var(--white);
    border-radius: 4px;
    transition: all 0.3s;
}

.partner-logo img {
    max-width: 70px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.partner-logo:hover img {
    filter: grayscale(0);
    opacity: 1;
}

/* Contact Card */
.bento-contact {
    background: var(--black);
    color: var(--white);
}

.bento-contact .section-label {
    color: var(--orange);
}

.bento-contact .bento-title {
    color: var(--white);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--gray);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--orange);
}

.contact-social {
    display: flex;
    gap: var(--space-sm);
}

.social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-dark);
    border-radius: 50%;
    transition: all 0.3s var(--ease-out-expo);
}

.social-btn:hover {
    background: var(--orange);
    transform: translateY(-4px);
}

/* Brand Card */
.bento-brand {
    background: var(--orange);
    color: var(--white);
}

.bento-brand .section-label {
    color: var(--white);
}

.bento-brand .section-label::before {
    background: var(--white);
}

.bento-brand .bento-title {
    color: var(--white);
}

.bento-brand .bento-list li {
    color: rgba(255,255,255,0.8);
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    margin-top: var(--space-md);
    transition: gap 0.3s;
}

.bento-link:hover {
    gap: var(--space-sm);
}

/* ===== Cases Section ===== */
.cases {
    padding: var(--space-3xl) 0;
    background: var(--black);
}

.cases-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cases-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.cases-header .section-label {
    justify-content: center;
}

.cases-header .section-label::before {
    display: none;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.case-card {
    background: transparent;
    border: 1px solid var(--gray-dark);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 0;
}

.case-card:hover::before {
    transform: translateY(0);
}

.case-card > * {
    position: relative;
    z-index: 1;
}

.case-card:hover {
    border-color: var(--white);
    color: var(--black);
    transform: translateY(-8px);
}

.case-brand {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--gray-dark);
    transition: border-color 0.4s;
}

.case-card:hover .case-brand {
    border-color: var(--gray-light);
}

.case-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
}

.case-value {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--orange);
    margin-bottom: var(--space-xs);
}

.case-label {
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.4s;
}

.case-card:hover .case-label {
    color: var(--gray-dark);
}

/* ===== Contact Section ===== */
.contact-section {
    padding: var(--space-3xl) 0;
    background: var(--black);
}

.contact-section-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.contact-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

.contact-info,
.contact-brands {
    padding: var(--space-xl);
}

.contact-info {
    background: var(--gray-dark);
    border-radius: 8px;
}

.contact-brands {
    background: var(--orange);
    border-radius: 8px;
}

.contact-info .section-label {
    color: var(--orange);
}

.contact-info .section-title {
    color: var(--white);
}

.contact-info .section-title-lg,
.contact-brands .section-title-lg {
    font-size: var(--text-2xl);
}

.contact-brands .section-label {
    color: var(--white);
}

.contact-brands .section-label::before {
    background: var(--white);
}

.contact-brands .section-title {
    color: var(--white);
}

.contact-links-vertical {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.contact-link-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray);
    font-size: var(--text-base);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link-item:hover {
    color: var(--white);
}

.contact-link-item svg {
    flex-shrink: 0;
}

.contact-social-row {
    display: flex;
    gap: var(--space-md);
}

.social-btn-lg {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-btn-lg:hover {
    background: var(--orange);
    transform: translateY(-4px);
}

.brands-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.brands-benefits li {
    font-size: var(--text-lg);
    color: var(--white);
    padding-left: var(--space-md);
    position: relative;
}

.brands-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
}

.contact-brands .btn-primary {
    background: var(--white);
    color: var(--orange);
}

.contact-brands .btn-primary:hover {
    background: var(--black);
    color: var(--white);
}

@media (max-width: 768px) {
    .contact-section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

/* ===== Footer ===== */
.footer {
    padding: var(--space-2xl) 0;
    background: var(--black);
    border-top: 1px solid var(--gray-dark);
}

.footer-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo {
    width: 60px;
    height: 60px;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--gray);
    letter-spacing: 0.1em;
}

.footer-nav {
    display: flex;
    gap: var(--space-xl);
}

.footer-nav a {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    color: var(--gray);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-dark);
}

.footer-copyright {
    font-size: var(--text-xs);
    color: var(--gray);
}

.footer-credit {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    color: var(--gray);
}

.footer-credit a {
    color: var(--orange);
}

/* ===== Animations ===== */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"].animated {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(40px);
}

[data-animate="fade-right"].animated {
    transform: translateX(0);
}

[data-animate="scale"] {
    transform: scale(0.9);
}

[data-animate="scale"].animated {
    transform: scale(1);
}

[data-animate="rotate-in"] {
    transform: rotate(-5deg) translateY(40px);
}

[data-animate="rotate-in"].animated {
    transform: rotate(0) translateY(0);
}

[data-animate="blur-in"] {
    filter: blur(10px);
    transform: translateY(20px);
}

[data-animate="blur-in"].animated {
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out-expo),
                transform 0.6s var(--ease-out-expo);
}

[data-stagger].animated > *:nth-child(1) { transition-delay: 0s; }
[data-stagger].animated > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].animated > *:nth-child(3) { transition-delay: 0.2s; }
[data-stagger].animated > *:nth-child(4) { transition-delay: 0.3s; }
[data-stagger].animated > *:nth-child(5) { transition-delay: 0.4s; }
[data-stagger].animated > *:nth-child(6) { transition-delay: 0.5s; }

[data-stagger].animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1200px) {
    .bento-lg { grid-column: span 6; }
    .bento-md { grid-column: span 6; }
    .bento-sm { grid-column: span 4; }
    .bento-wide { grid-column: span 8; }
    .bento-tall { grid-column: span 4; }
    .bento-image { grid-column: span 6; }
}

@media (max-width: 1024px) {
    .story-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .story-visual {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-item:nth-child(3) {
        border-right: none;
    }

    .stat-item:nth-child(4),
    .stat-item:nth-child(5) {
        border-top: 1px solid var(--gray-dark);
    }

    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .bento-lg,
    .bento-image { grid-column: span 6; }
    .bento-md { grid-column: span 3; }
    .bento-sm { grid-column: span 3; }
    .bento-wide { grid-column: span 6; }
    .bento-tall { grid-column: span 3; }

    .cases-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        inset: 0;
        background: var(--black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out-expo);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: var(--text-2xl);
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .stat-item:nth-child(2),
    .stat-item:nth-child(4) {
        border-right: none;
    }

    .stat-item:nth-child(3),
    .stat-item:nth-child(5) {
        border-top: 1px solid var(--gray-dark);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-lg,
    .bento-md,
    .bento-sm,
    .bento-wide,
    .bento-tall,
    .bento-image {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .services-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .footer-top {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(3rem, 18vw, 6rem);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--gray-dark);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .case-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-animate],
    [data-stagger] > * {
        opacity: 1;
        transform: none;
    }

    .marquee-track {
        animation: none;
    }

    .hero-title-line span {
        transform: none;
        animation: none;
    }

    .story-image-container::before {
        display: none;
    }

    .story-image {
        transform: none;
    }
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

@media (prefers-contrast: high) {
    :root {
        --black: #000000;
        --white: #ffffff;
        --orange: #ff4400;
    }
}

/* Print */
@media print {
    .nav,
    .cursor,
    .loader,
    .hero-scroll,
    .page-transition {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}
