/* ═══════════════════════════════════════════════════════════════
   ICG WEBSITE MOCKUP — Inspired Creative Group Inc.
   Design Reference for Wix Implementation
   ═══════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ──────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --color-black:        #000000;
    --color-dark:         #0A0A0A;
    --color-surface:      #111111;
    --color-surface-2:    #1A1A1A;
    --color-border:       #222222;
    --color-border-light: #333333;
    
    --color-red:          #E8000D;
    --color-red-light:    #FF2D2D;
    --color-red-glow:     rgba(232, 0, 13, 0.15);
    --color-red-glow-2:   rgba(232, 0, 13, 0.08);
    
    --color-white:        #FFFFFF;
    --color-gray-100:     #F5F5F5;
    --color-gray-200:     #E0E0E0;
    --color-gray-300:     #CCCCCC;
    --color-gray-400:     #999999;
    --color-gray-500:     #777777;
    --color-gray-600:     #767676;
    
    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', sans-serif;
    
    /* Spacing */
    --space-xs:   0.5rem;
    --space-sm:   1rem;
    --space-md:   1.5rem;
    --space-lg:   2rem;
    --space-xl:   3rem;
    --space-2xl:  4rem;
    --space-3xl:  6rem;
    --space-4xl:  8rem;
    
    /* Layout */
    --max-width:  1200px;
    --nav-height: 72px;
    
    /* Transitions */
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    /* Shadows (DESIGN_TRUTH: colored shadows, not black) */
    --shadow-card:       0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.35);
}


/* ─── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    min-width: 100%;
    width: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-300);
    background-color: var(--color-black);
    overflow-x: hidden;
}

/* Film grain overlay — DESIGN_TRUTH: 2-5% noise = #1 pro-quality technique */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;
    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-repeat: repeat;
    background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
    body::after {
        display: none;
    }
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    box-sizing: border-box;
}

.section {
    padding: var(--space-4xl) 0;
    position: relative;
    overflow-x: clip;
}

.text-accent {
    color: var(--color-red);
}

.hide-mobile {
    display: inline;
}
.hide-desktop {
    display: none;
}


/* ─── SKIP NAVIGATION (Accessibility) ────────────────────────── */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-red);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-nav:focus {
    top: 0;
    outline: 2px solid #fff;
    outline-offset: 2px;
}


/* ─── GLOBAL FOCUS INDICATORS (Accessibility) ────────────────── */
*:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
}

/* Remove the default outline only when :focus-visible is supported */
*:focus:not(:focus-visible) {
    outline: none;
}


/* ─── ANIMATION BASE ─────────────────────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* GSAP-animated elements: hidden via visibility to prevent FOUC.
   GSAP's autoAlpha (in gsap.from) animates visibility+opacity together.
   If GSAP fails to load, the fallback at bottom of gsap-animations.js
   makes them visible. */
.gsap-animate,
.gsap-animate-cta {
    visibility: hidden;
}

/* SplitText mask line reveal: overflow hidden on mask containers */
.split-line-mask {
    overflow: hidden;
}

/* Team member images: overflow hidden for parallax containment */
.team-member-image {
    overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    border-bottom: 1px solid var(--color-border);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-red);
    transition: width 0.3s var(--ease-out);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-white);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link--cta {
    background: var(--color-red);
    color: var(--color-white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    background: var(--color-red-light);
    transform: translateY(-1px);
}

.nav-cta-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.nav-cta-btn::after {
    display: none !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: var(--nav-height) var(--space-lg) var(--space-xl);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(232, 0, 13, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 0, 13, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-red-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: var(--space-xl);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    perspective: 600px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-gray-400);
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border-light);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-600);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-gray-600), transparent);
    animation: scrollLine 2s infinite;
}

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

/* Hero Video */
.hero-video {
    width: 100%;
    max-width: 800px;
    margin: var(--space-lg) auto var(--space-md);
}

.hero-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 0, 13, 0.2);
}

.hero-video-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(232, 0, 13, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    box-shadow: 0 4px 20px rgba(232, 0, 13, 0.4);
    z-index: 2;
}

.hero-video-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(232, 0, 13, 1);
}

.hero-video-play svg {
    margin-left: 3px; /* optical center for play triangle */
}

.hero-video-label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.5);
    padding: 6px 16px;
    border-radius: 100px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--color-red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--color-red-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid var(--color-border-light);
}

.btn-ghost:hover {
    border-color: var(--color-gray-500);
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}


/* ═══════════════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.25rem;
    height: 1px;
    background: var(--color-red);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gray-400);
    max-width: 700px;
    margin: var(--space-md) auto 0;
    line-height: 1.8;
}


/* ═══════════════════════════════════════════════════════════════
   VALUE PROPOSITION
   ═══════════════════════════════════════════════════════════════ */
.value-prop {
    padding: var(--space-3xl) 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.value-prop .value-prop-card {
    background: var(--color-dark);
}

.value-prop-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.value-prop-text {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.9;
    color: var(--color-gray-300);
}

.value-prop-text strong {
    color: var(--color-white);
}


/* ═══════════════════════════════════════════════════════════════
   STAKES (Cost of Inaction)
   ═══════════════════════════════════════════════════════════════ */
.stakes-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.stakes-section .section-subtitle {
    margin-bottom: 0;
}

.stakes-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-xl) var(--space-lg);
    position: relative;
    border-top: 3px solid var(--color-red);
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.stakes-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.stakes-card-icon {
    margin-bottom: var(--space-md);
}

.stakes-card-num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-red);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-sm);
}

.stakes-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.stakes-card p {
    font-size: 0.95rem;
    color: var(--color-gray-400);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   VALUE PROPOSITION (Customer Outcomes)
   ═══════════════════════════════════════════════════════════════ */
.value-prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.value-prop-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    box-shadow: var(--shadow-card);
    transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.value-prop-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.value-prop-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-red), transparent);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-prop-card:hover::before {
    opacity: 1;
}

.value-prop-icon {
    color: var(--color-red);
    margin-bottom: var(--space-md);
}

.value-prop-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    text-wrap: balance;
}

.value-prop-desc {
    font-size: 0.95rem;
    color: var(--color-gray-400);
    line-height: 1.7;
}

.value-prop-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* ═══════════════════════════════════════════════════════════════
   THREE PILLARS (legacy — kept for reference)
   ═══════════════════════════════════════════════════════════════ */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.pillar-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: var(--space-2xl) var(--space-lg);
    position: relative;
    box-shadow: var(--shadow-card);
    transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-red), transparent);
    border-radius: 8px 8px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    color: var(--color-red);
    margin-bottom: var(--space-md);
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-600);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: var(--space-xs);
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.pillar-desc {
    font-size: 0.95rem;
    color: var(--color-gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.pillar-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-red);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.pillar-link:hover {
    color: var(--color-red-light);
}


/* ═══════════════════════════════════════════════════════════════
   CLIENT LOGOS
   ═══════════════════════════════════════════════════════════════ */
.clients {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-sm);
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.4s ease;
    text-align: center;
    min-height: 80px;
}

.client-logo-item img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    /* Make logos white/light on dark background */
    filter: brightness(0) invert(1) opacity(0.5);
    transition: filter 0.4s ease;
}

.client-logo-item:hover {
    border-color: var(--color-border-light);
    background: var(--color-surface-2);
}

.client-logo-item:hover img {
    /* Show original colors on hover */
    filter: brightness(0) invert(1) opacity(1);
}


/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about {
    background: var(--color-dark);
    overflow: hidden;
}

.about-story {
    margin-bottom: var(--space-4xl);
}

.about-story-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-gray-300);
    text-align: left;
}

.about-story-text strong {
    color: var(--color-white);
}

/* Team Members */
.about-team {
    margin-bottom: var(--space-4xl);
}

.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-2xl);
    align-items: start;
    margin-bottom: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid var(--color-border);
}

.team-member:last-child {
    border-bottom: none;
}

.team-member--reverse {
    grid-template-columns: 1fr 280px;
}

.team-member--reverse .team-member-image {
    order: 2;
}

.team-member--reverse .team-member-info {
    order: 1;
}

.team-member-image {
    position: relative;
}

.team-member-image img {
    width: 100%;
    border-radius: 8px;
    filter: grayscale(30%);
    transition: filter 0.4s ease;
}

.team-member:hover .team-member-image img {
    filter: grayscale(0%);
}

.team-member-image::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 8px;
    right: -8px;
    top: 8px;
    border: 1px solid var(--color-red);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.3;
}

.team-member-role {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    display: block;
    margin-bottom: 0.5rem;
}

.team-member-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.team-member-info p {
    margin-bottom: var(--space-sm);
    color: var(--color-gray-400);
    font-size: 0.95rem;
}

.team-member-ai {
    color: var(--color-gray-300) !important;
    padding: var(--space-sm);
    border-left: 2px solid var(--color-red);
    background: var(--color-red-glow-2);
    border-radius: 0 4px 4px 0;
    margin-top: var(--space-sm);
}

/* Bio read-more toggle — collapses on mobile, open on desktop */
.team-member-more {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.team-member-more.is-open {
    max-height: 500px;
    opacity: 1;
    margin-top: var(--space-sm);
}

.team-read-more {
    background: none;
    border: none;
    color: var(--color-red);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    margin-top: var(--space-xs);
    transition: color 0.2s ease;
}

.team-read-more:hover {
    color: var(--color-red-light);
}

.team-read-more[aria-expanded="true"]::after {
    content: ' ↑';
}

.team-read-more[aria-expanded="false"]::after {
    content: ' →';
}

/* Desktop: always show full bio, hide toggle */
@media (min-width: 769px) {
    .team-member-more {
        max-height: none;
        opacity: 1;
        margin-top: var(--space-sm);
    }
    .team-read-more {
        display: none;
    }
}

/* The System */
.system-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-2xl);
    max-width: 800px;
    margin: 0 auto;
}

.system-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    margin: var(--space-sm) 0 var(--space-md);
}

.system-text {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.ratio-bar {
    display: flex;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
    border: 1px solid var(--color-border);
}

.ratio-fill {
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0 var(--space-md);
}

.ratio-human {
    background: var(--color-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-300);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
    padding: 0 var(--space-md);
}

.ratio-caption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-gray-500);
    font-style: italic;
}


/* ═══════════════════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════════════════ */
.services {
    position: relative;
    background: var(--color-surface);
    overflow: hidden;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-block {
    padding: 2rem 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.service-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-red);
}

.service-block--ai {
    border-color: var(--color-border-light);
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-red-glow-2) 100%);
}

.service-block--consulting {
    border-left: 4px solid var(--color-red);
    background: var(--color-surface);
}

.text-accent-link {
    color: var(--color-red);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.text-accent-link:hover {
    opacity: 0.8;
}

/* AI Consulting Bridge (Stakes section) */

/* Consulting Pillar Card (3+1 layout) */
.pillar-card--consulting {
    grid-column: 1 / -1;
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
    column-gap: var(--space-lg);
    align-items: start;
    background: transparent;
    border-style: dashed;
    border-color: var(--color-border-light);
}

.pillar-card--consulting .pillar-icon {
    grid-row: 1 / 3;
    align-self: center;
}

.pillar-card--consulting .pillar-number {
    grid-column: 2;
}

.pillar-card--consulting .pillar-title {
    grid-column: 2;
}

.pillar-card--consulting .pillar-desc {
    grid-column: 1 / -1;
}

.pillar-card--consulting .pillar-link {
    grid-column: 1 / -1;
}

.service-header {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.service-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    letter-spacing: 0.1em;
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
}

.service-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-400);
    max-width: 900px;
    margin-bottom: var(--space-xl);
}

.service-details {
    padding-top: 0.5rem;
}

/* Outcome-focused service lists */
.service-outcomes {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.service-outcomes li {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    padding-left: 1.25rem;
    position: relative;
}
.service-outcomes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 400;
}

/* AI Capabilities */
.ai-capabilities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.ai-cap {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

.ai-cap:hover {
    border-color: var(--color-border-light);
}

.ai-cap-icon {
    margin-bottom: 0.75rem;
    color: var(--color-accent, #ff2d2d);
    transition: color 0.3s ease;
}

.ai-cap:hover .ai-cap-icon {
    color: var(--color-white, #fff);
}

.ai-cap-icon svg {
    width: 40px;
    height: 40px;
}

.ai-cap h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.ai-cap p {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   A.I. INNOVATION
   ═══════════════════════════════════════════════════════════════ */
.ai-innovation {
    background: var(--color-dark);
}

.ai-problem {
    margin-bottom: var(--space-4xl);
}

.ai-problem-card {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-2xl);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    position: relative;
}

.ai-problem-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-red), transparent);
}

.ai-problem-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.ai-problem-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-gray-400);
    margin-bottom: var(--space-sm);
}

.ai-problem-card strong {
    color: var(--color-white);
}

.ai-problem-highlight {
    font-family: var(--font-heading);
    font-size: 1.2rem !important;
    font-weight: 600;
    color: var(--color-red) !important;
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-md) !important;
    margin-bottom: 0 !important;
}

/* What Makes Us Different */
.ai-section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
    text-align: center;
    line-height: 1.2;
}

.ai-difference {
    margin-bottom: var(--space-4xl);
}

.ai-difference-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-400);
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--space-xl);
}

.ai-experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
    max-width: 900px;
    margin: 0 auto;
}

.ai-exp-item {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
}

.ai-exp-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: 0.25rem;
}

.ai-exp-names {
    font-size: 0.9rem;
    color: var(--color-gray-400);
}

/* System Architecture */
.ai-system {
    margin-top: var(--space-4xl);
    margin-bottom: var(--space-4xl);
    overflow: hidden;
}

.ai-system-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-gray-400);
    text-align: center;
    max-width: 750px;
    margin: 0 auto var(--space-xl);
}

.ai-layers {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ai-layer {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    transition: all 0.3s ease;
}

.ai-layer:hover {
    border-color: var(--color-red);
    transform: translateX(4px);
}

.ai-layer-num {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-red);
    min-width: 2rem;
}

.ai-layer-content h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.15rem;
}

.ai-layer-content p {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

/* Bottom Line */
.ai-bottom-line {
    text-align: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border-light);
}

.ai-quote {
    max-width: 700px;
    margin: 0 auto var(--space-md);
}

.ai-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.4;
}

.ai-closing {
    font-size: 1.1rem;
    color: var(--color-gray-400);
    margin-bottom: var(--space-xl);
}


/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO / OUR WORK
   ═══════════════════════════════════════════════════════════════ */
.work {
    background: var(--color-dark);
}


/* ── Filter Pills ──────────────────────────────────────────── */
.work-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-pill {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1.25rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--color-border-light);
    border-radius: 100px;
    background: transparent;
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.filter-pill:hover {
    border-color: var(--color-gray-500);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.05);
}

.filter-pill.active {
    border-color: var(--color-red);
    color: var(--color-white);
    background: var(--color-red);
}

/* ── Showreel ──────────────────────────────────────────────── */
.work-showreel {
    margin-bottom: var(--space-3xl);
    position: relative;
}

.showreel-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-red);
    margin-bottom: var(--space-sm);
    text-align: center;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-black);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Tier Labels ───────────────────────────────────────────── */
.work-tier {
    margin-bottom: var(--space-3xl);
}

.work-tier:last-child {
    margin-bottom: 0;
}

.work-tier-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-600);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

/* ── Work Cards — Shared ───────────────────────────────────── */
.work-card {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    transition: border-color 0.4s ease, transform 0.3s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

a.work-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.work-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.work-card-image {
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

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

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

.work-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.work-card:hover .work-card-overlay {
    opacity: 1;
}

.work-card-overlay-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.work-card-tags {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.work-tag {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    background: rgba(232, 0, 13, 0.2);
    border: 1px solid rgba(232, 0, 13, 0.4);
    border-radius: 3px;
    color: var(--color-red-light);
}

.work-card-info {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.work-card-client {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-red);
    display: block;
    margin-bottom: 0.35rem;
}

.work-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.work-card-desc {
    font-size: 0.88rem;
    color: var(--color-gray-500);
    line-height: 1.65;
}

/* ── Tier 1 — Featured Grid (2-up) ────────────────────────── */
.work-grid-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.work-card--large .work-card-image {
    aspect-ratio: 4 / 3;
}

/* Last card in odd count → full width */
.work-grid-featured .work-card--large:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.work-grid-featured .work-card--large:last-child:nth-child(odd) .work-card-image {
    aspect-ratio: 21 / 9;
}

/* ── Tier 2 — Medium Grid (3-up on desktop, 2-up tablet) ─── */
.work-grid-medium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.work-card--medium .work-card-image {
    aspect-ratio: 4 / 3;
}

/* Last card when count not divisible by 3 */
.work-grid-medium .work-card--medium:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
}

/* ── Tier 3 — Small Grid (4-up) ───────────────────────────── */
.work-grid-small {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-sm);
}

.work-card--small .work-card-image {
    aspect-ratio: 4 / 3;
}

.work-card--small .work-card-overlay {
    opacity: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.work-card--small:hover .work-card-overlay {
    opacity: 1;
}

/* ── Filter animation ──────────────────────────────────────── */
.work-card.filter-hidden {
    display: none;
}

.work-card.filter-visible {
    animation: filterFadeIn 0.4s var(--ease-out) both;
}

@keyframes filterFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════ */
.testimonials {
    background: var(--color-surface);
}

.testimonials-grid {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    visibility: hidden; /* FOUC prevention — GSAP reveals via autoAlpha */
}

.testimonial-card {
    padding: var(--space-xl);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-dark);
    box-shadow: var(--shadow-card);
    transition: border-color 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
}

.testimonial-card.is-active {
    visibility: visible;
}

.testimonial-card:hover {
    border-color: var(--color-border-light);
}

.testimonial-card--featured {
    border-color: rgba(232, 0, 13, 0.3);
}

.testimonial-card--featured:hover {
    border-color: rgba(232, 0, 13, 0.5);
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: var(--color-red);
    line-height: 1;
    margin-bottom: -0.5rem;
    opacity: 0.4;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-gray-300);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.testimonial-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white);
}

.testimonial-company {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    line-height: 1.4;
}

/* Testimonial Carousel Dots */
.testimonial-dots {
    visibility: hidden; /* FOUC prevention — GSAP reveals via autoAlpha */
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: var(--space-lg);
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--color-border-light);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.testimonial-dot:hover {
    border-color: var(--color-gray-400);
}

.testimonial-dot.active {
    background: var(--color-red);
    border-color: var(--color-red);
    transform: scale(1.3);
}

/* Footer location */
.footer-location {
    font-size: 0.75rem;
    color: var(--color-gray-500);
}


/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
    overflow: hidden;
}

.contact-info,
.contact-form-wrap {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.contact-text {
    font-size: 1.05rem;
    color: var(--color-gray-400);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.contact-detail-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-600);
}

.contact-detail a,
.contact-detail span {
    color: var(--color-gray-300);
    font-size: 0.95rem;
}

.contact-detail a:hover {
    color: var(--color-red);
}

/* Form */
.contact-form-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-2xl);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-gray-400);
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    background: var(--color-dark);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-white);
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gray-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-red);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 2px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--color-surface);
    color: var(--color-white);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn {
    margin-top: var(--space-sm);
    font-size: 1rem;
    padding: 1rem;
}

/* Form Validation States */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #44ff44;
}

.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #ff4444;
}

.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #44ff44;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
    background: var(--color-dark);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-logo {
    height: 30px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-400);
    margin-bottom: var(--space-sm);
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.9rem;
    color: var(--color-gray-600);
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.footer-links a + a::before {
    content: '|';
    color: var(--color-gray-600);
    margin: 0 0.5rem;
    pointer-events: none;
}

.footer-links a:hover {
    color: var(--color-white);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--color-gray-600);
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-border-light);
    border-radius: 50%;
    color: var(--color-gray-500);
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    border-color: var(--color-red);
    color: var(--color-white);
    background: var(--color-red);
}

.footer-social-link--dormant {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════════
   LINKEDIN EMBEDS
   ═══════════════════════════════════════════════════════════════ */

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

.linkedin-embed {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-surface);
}

.linkedin-embed iframe {
    width: 100%;
    min-height: 399px;
    display: block;
}


/* ═══════════════════════════════════════════════════════════════
   THE PLAN
   ═══════════════════════════════════════════════════════════════ */
.plan {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.plan .plan-step {
    background: var(--color-dark);
}

.plan-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.plan-step {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.plan-step:hover {
    border-color: var(--color-red);
    transform: translateY(-4px);
}

.plan-step-icon {
    margin-bottom: var(--space-sm);
}

.plan-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.plan-step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
}

.plan-step-desc {
    font-size: 0.95rem;
    color: var(--color-gray-400);
    line-height: 1.7;
}

.plan-cta {
    text-align: center;
}

/* Service Collapse/Expand */
.service-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--color-border-light);
    border-radius: 4px;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-400);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--space-md);
}

.service-toggle:hover {
    border-color: var(--color-red);
    color: var(--color-white);
}

.service-toggle[aria-expanded="true"] {
    border-color: var(--color-red);
    color: var(--color-white);
}

.service-toggle-icon {
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.service-toggle[aria-expanded="true"] .service-toggle-icon {
    transform: rotate(45deg);
}

.service-collapsible {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.service-collapsible.expanded {
    max-height: 5000px; /* Increased from 800px to prevent mobile text cropping */
    opacity: 1;
    margin-top: var(--space-md);
}


/* Section CTAs */
.pillars-cta,
.services-cta,
.testimonials-cta {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Back to Top */
/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--color-red);
    z-index: 10000;
    width: 0%;
    transition: none;
    pointer-events: none;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    color: var(--color-gray-400);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    background: var(--color-red);
    border-color: var(--color-red);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Sticky Contact Pill */
.sticky-contact {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    padding: 0.6rem 1.5rem;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 20px rgba(232, 0, 13, 0.3);
}

.sticky-contact.visible {
    opacity: 1;
    visibility: visible;
}

.sticky-contact:hover {
    background: var(--color-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(232, 0, 13, 0.4);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
    .pillars-grid,
    .stakes-cards,
    .value-prop-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .linkedin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team-member,
    .team-member--reverse {
        grid-template-columns: 220px 1fr;
    }
    
    .team-member--reverse {
        grid-template-columns: 1fr 220px;
    }
    
    .plan-steps {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .ai-capabilities {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        max-width: 100%;
    }
    
    .work-grid-featured {
        grid-template-columns: 1fr;
    }
    
    .work-grid-medium {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid-small {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile */
@media (max-width: 768px) {
    

    

    .pillar-card--consulting {
        grid-template-columns: 1fr;
    }

    .pillar-card--consulting .pillar-icon {
        grid-row: auto;
    }

    .pillar-card--consulting .pillar-number,
    .pillar-card--consulting .pillar-title {
        grid-column: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: var(--color-black);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl) var(--space-lg);
        /* Fix iOS Safari rendering bug with backdrop-filter parent */
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    /* Disable backdrop-filter on nav when menu is open (Safari fix) */
    .nav:has(.nav-links.open) {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: transparent;
    }
    
    .nav-links .nav-link {
        font-size: 1.5rem;
        color: var(--color-gray-300);
        letter-spacing: 0.08em;
        padding: 0.5rem 0;
    }
    
    .nav-links .nav-link:hover,
    .nav-links .nav-link.active {
        color: var(--color-white);
    }

    .nav-links .nav-link--cta,
    .nav-links .nav-cta-btn {
        margin-top: var(--space-md);
        font-size: 1.1rem;
        padding: 0.75rem 2rem;
        border-radius: 6px;
        margin-left: 0;
        text-align: center;
    }

    .nav-toggle {
        display: flex;
        z-index: 10000;
    }
    
    .hide-mobile {
        display: none;
    }
    .hide-desktop {
        display: inline;
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .client-logos {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team-member,
    .team-member--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .team-member--reverse .team-member-image {
        order: 0;
    }
    
    .team-member--reverse .team-member-info {
        order: 0;
    }
    
    .team-member-image {
        max-width: 200px;
    }
    
    .plan-steps {
        grid-template-columns: 1fr;
    }
    
    .service-header {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .ratio-bar {
        height: auto;
        min-height: 48px;
    }
    
    .ratio-fill,
    .ratio-human {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    .ai-experience-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact .container {
        padding: 0 var(--space-md);
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-grid {
        width: 100%;
        max-width: 100%;
    }

    .contact-info {
        width: 100%;
        min-width: 0;
    }

    .contact-form-wrap {
        padding: var(--space-lg);
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .contact-detail a,
    .contact-detail span {
        word-break: break-word;
        overflow-wrap: break-word;
        font-size: 0.85rem;
    }

    .contact-info .section-title {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .contact-text {
        font-size: 0.95rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .section {
        padding: var(--space-3xl) 0;
    }
    
    .container {
        padding: 0 var(--space-md);
    }
    
    .work-grid-featured {
        grid-template-columns: 1fr;
    }
    
    .work-grid-medium {
        grid-template-columns: 1fr;
    }
    
    .work-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .work-grid-featured .work-card--large:last-child:nth-child(odd) .work-card-image {
        aspect-ratio: 4 / 3;
    }
    
    .linkedin-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PILLAR CARD LINKS
   ═══════════════════════════════════════════════════════════════ */
a.pillar-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════
   LOGO CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.logo-carousel {
    overflow: hidden;
    position: relative;
    padding: var(--space-md) 0;
}

/* Mobile: keep animation, no manual scroll (iOS Safari conflicts with overflow-x + CSS animation) */
/* Mobile-only line breaks */
.mobile-br { display: none; }
@media (max-width: 768px) {
    .mobile-br { display: inline; }
}

@media (max-width: 768px) {
    .logo-carousel {
        overflow: hidden;
    }
    
    .logo-carousel-track {
        animation: logoScroll 30s linear infinite;
    }

    .logo-carousel .client-logo-item {
        min-width: 140px;
    }
}

/* Reduced motion: make carousel manually scrollable instead of animated */
@media (prefers-reduced-motion: reduce) {
    .logo-carousel {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .logo-carousel-track {
        animation: none !important;
    }
    .logo-carousel::before,
    .logo-carousel::after {
        display: none;
    }
}

.logo-carousel::before,
.logo-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--color-surface), transparent);
}

.logo-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--color-surface), transparent);
}

.logo-carousel-track {
    display: flex;
    gap: var(--space-sm);
    animation: logoScroll 40s linear infinite;
    width: max-content;
}

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

.logo-carousel:focus-within .logo-carousel-track {
    animation-play-state: paused;
}

.logo-carousel .client-logo-item {
    flex: 0 0 auto;
    min-width: 180px;
}

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


/* ═══════════════════════════════════════════════════════════════
   PILLARS INTRO LINE
   ═══════════════════════════════════════════════════════════════ */
.pillars {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-2xl);
}

.pillars-intro {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}


/* ═══════════════════════════════════════════════════════════════
   CLIENT LOGOS WITHIN ABOUT (THE GUIDE)
   ═══════════════════════════════════════════════════════════════ */
.about-clients {
    margin-top: var(--space-3xl);
    padding: var(--space-xl) var(--space-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
}

.about-clients-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-gray-400);
    text-align: center;
    margin-bottom: var(--space-md);
    letter-spacing: 0.02em;
}

.about-clients .logo-carousel::before {
    background: linear-gradient(to right, var(--color-surface), transparent);
}

.about-clients .logo-carousel::after {
    background: linear-gradient(to left, var(--color-surface), transparent);
}


/* ═══════════════════════════════════════════════════════════════
   FEATURED IN BADGES
   ═══════════════════════════════════════════════════════════════ */
.about-featured {
    margin-top: var(--space-2xl);
    text-align: center;
}

.about-featured-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-500);
    margin-bottom: var(--space-md);
}

.featured-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.featured-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md) var(--space-xl);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    background: var(--color-surface);
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.featured-badge:hover {
    border-color: var(--color-border-light);
    cursor: default;
}

.featured-badge--link {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s ease, transform 0.2s ease;
}

.featured-badge--link:hover {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    cursor: pointer;
}

.featured-badge-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.featured-badge-context {
    font-size: 0.8rem;
    color: var(--color-gray-500);
    margin-top: 0.25rem;
}

/* About CTA */
.about-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}


/* ═══════════════════════════════════════════════════════════════
   TESTIMONIAL LINKS
   ═══════════════════════════════════════════════════════════════ */
.testimonial-link {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
    font-style: normal;
}

.testimonial-link:hover {
    color: var(--color-red-light);
}


/* ═══════════════════════════════════════════════════════════════
   LINKEDIN EMBED GRID
   ═══════════════════════════════════════════════════════════════ */
.work-tier-ai {
    margin-top: var(--space-2xl);
}

.work-tier-subtitle {
    font-size: 0.95rem;
    color: var(--color-gray-500);
    margin-bottom: var(--space-lg);
}

/* ═══════════════════════════════════════════════════════════════
   AI LAYER EXPANDABLE TOOLTIPS
   ═══════════════════════════════════════════════════════════════ */
.ai-layer--expandable {
    cursor: pointer;
    flex-direction: column;
    align-items: stretch;
}

/* Button reset for accordion triggers */
.ai-layer-btn {
    all: unset;
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    width: 100%;
    cursor: pointer;
    box-sizing: border-box;
    justify-content: center;
}

.ai-layer-btn:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 3px;
    border-radius: 4px;
}

.ai-layer-toggle {
    font-size: 0.85rem;
    color: var(--color-red);
    margin-left: 0.5rem;
    display: inline-block;
}

.ai-layer-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

.ai-layer--expandable .ai-layer-content {
    text-align: center;
}

.ai-layer--expandable.expanded .ai-layer-content {
    text-align: left;
}

.ai-layer--expandable.expanded .ai-layer-detail {
    padding-top: var(--space-sm);
}

.ai-layer-detail ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ai-layer-detail li {
    font-size: 0.85rem;
    color: var(--color-gray-400);
    line-height: 1.6;
    padding-left: 1rem;
    position: relative;
}

.ai-layer-detail li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--color-red);
    font-weight: 700;
}

.ai-layer-detail li strong {
    color: var(--color-gray-200);
}


/* ═══════════════════════════════════════════════════════════════
   VIDEO EMBED (for project pages)
   ═══════════════════════════════════════════════════════════════ */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    background: var(--color-black);
    margin-bottom: var(--space-lg);
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* Small mobile */
@media (max-width: 480px) {
    .client-logos {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }
    
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .work-grid-small {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-pill {
        font-size: 0.65rem;
        padding: 0.4rem 0.7rem;
        min-height: 36px;
    }
    .work-filters {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }
    
    /* Improved mobile typography */
    .section-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .hero-subtitle {
        line-height: 1.6;
    }
    
    /* Better spacing for mobile */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }

    /* Hero video mobile */
    .hero-video {
        margin: var(--space-md) auto var(--space-sm);
    }
    
    .hero-video-play {
        width: 56px;
        height: 56px;
    }

    .hero-video-play svg {
        width: 20px;
        height: 20px;
    }

    .hero-video-label {
        font-size: 0.65rem;
        padding: 4px 12px;
        bottom: 10px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION (Accessibility)
   Respects user's OS-level motion preferences.
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    /* Kill all transitions and animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    /* Show all animate-in elements immediately */
    .animate-in {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Show all GSAP-animated elements immediately */
    .gsap-animate,
    .gsap-animate-cta {
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Keep logo carousel animating (it's functional UI, not decorative) */

    /* Stop hero parallax effect */
    .hero-content {
        transform: none !important;
    }

    /* Accordion still works, just instant */
    .ai-layer-detail {
        transition: none !important;
    }
}


/* ─── Progressive Disclosure ─────────────────────────────────── */
.work-card--hidden-extra {
    display: none;
}

.work-tier--hidden {
    display: none;
}

.work-show-all {
    text-align: center;
    margin-top: var(--space-xl);
}

/* When revealed */
.work-card--hidden-extra.revealed {
    display: block;
}

.work-tier--hidden.revealed {
    display: block;
}

/* filter-hidden must override revealed */
.work-card--hidden-extra.revealed.filter-hidden {
    display: none;
}

.work-show-all-btn.hidden {
    display: none;
}

/* Hide tier labels and showreel during active filtering */
.work-tier.filtering .work-tier-label {
    display: none;
}

.work-tier-ai.filtering-hide {
    display: none !important;
}


/* ─── LinkedIn Static Cards ──────────────────────────────────── */
.linkedin-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.linkedin-card:hover {
    border-color: #0A66C2;
    transform: translateY(-2px);
}

.linkedin-card-badge {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: #0A66C2;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.linkedin-card-content {
    flex: 1;
}

.linkedin-card-type {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.linkedin-card-desc {
    font-size: 0.9rem;
    color: var(--color-gray-500);
    line-height: 1.6;
}


/* ─── Portfolio CTA ──────────────────────────────────────────── */
.work-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ═══════════════════════════════════════════════════════════════ */
/* LEAD GENERATOR (Homepage)                                       */
/* ═══════════════════════════════════════════════════════════════ */
.homepage-lead-gen {
    padding: var(--space-xl) 0;
    background: var(--color-surface);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}

.lead-gen-flow {
    margin-bottom: 3rem;
}

/* 3-column comparison: Before → Skill → After */
.flow-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: start;
}
.flow-col {
    display: flex;
    flex-direction: column;
}
.flow-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 2rem;
}
.flow-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}
.flow-label-accent {
    color: var(--color-red);
}
.flow-arrow-down {
    color: rgba(255,255,255,0.2);
    font-size: 1.5rem;
    font-weight: 300;
}
.flow-card {
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.25rem;
}
.flow-card-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.5rem;
}
.flow-prompt-tag {
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
}
.flow-code {
    display: block;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    word-break: break-word;
    text-align: center;
}
.flow-result {
    padding: 0;
    overflow: hidden;
}
.flow-result-hover {
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.flow-result-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 10;
    position: relative;
}
.flow-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.flow-skill {
    border-left: 3px solid var(--color-red);
}
.flow-skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flow-skill-list li {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    line-height: 1.6;
}
.flow-skill-list li::before {
    content: "+ ";
    color: var(--color-red);
    font-weight: 700;
}
.flow-skill-hover {
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.flow-skill-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    z-index: 10;
    position: relative;
}

/* Lightbox for skill card */
.flow-lightbox-skill {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    cursor: zoom-out;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
    pointer-events: none;
    opacity: 0;
}
.flow-lightbox-skill.active {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    pointer-events: all;
    opacity: 1;
}
.flow-lightbox-skill .lightbox-skill-card {
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 4px solid var(--color-red);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    max-width: 520px;
    width: 90vw;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flow-lightbox-skill.active .lightbox-skill-card {
    transform: scale(1);
}
.flow-lightbox-skill .lightbox-skill-card .flow-card-label {
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.flow-lightbox-skill .lightbox-skill-card .flow-skill-list li {
    font-size: 1.1rem;
    line-height: 2;
}

/* Lightbox for before/after images */
.flow-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    cursor: zoom-out;
    transition: background 0.35s ease, backdrop-filter 0.35s ease;
    pointer-events: none;
    opacity: 0;
}
.flow-lightbox.active {
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    pointer-events: all;
    opacity: 1;
}
.flow-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.flow-lightbox.active img {
    transform: scale(1);
}

/* CTA + Form */
.lead-gen-cta {
    background: var(--color-surface);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
}
.lead-gen-cta-headline {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.lead-gen-cta-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.lead-gen-form-wrap {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
}
.lead-gen-form-row {
    display: flex;
    gap: 0.5rem;
}
.lead-gen-input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.2s;
}
.lead-gen-input:focus {
    border-color: var(--color-red);
}
.lead-gen-input::placeholder {
    color: rgba(255,255,255,0.35);
}
.lead-gen-btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lead-gen-privacy {
    text-align: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    margin-top: 0.5rem;
}
.lead-gen-success {
    text-align: center;
    padding: 1.5rem 0;
}
.lead-gen-success-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}
.success-circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: circle-draw 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.success-check {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: check-draw 0.35s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}
@keyframes circle-draw {
    to { stroke-dashoffset: 0; }
}
@keyframes check-draw {
    to { stroke-dashoffset: 0; }
}
.lead-gen-success-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}
.lead-gen-success-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}
.lead-gen-success-fallback {
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}
.lead-gen-fallback-link {
    color: var(--color-red);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .flow-comparison {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .flow-col-center {
        flex-direction: row;
        padding-top: 0;
        gap: 0.75rem;
    }
    .flow-col-center .flow-card {
        flex: 1;
    }
    .flow-arrow-down {
        transform: rotate(90deg);
    }
    .lead-gen-cta {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }
    .lead-gen-form-row {
        flex-direction: column;
    }
    .lead-gen-btn {
        width: 100%;
    }
}

/* ═══════════════════════════════════════ */
/* VINTAGE SECTION BACKGROUNDS            */
/* ═══════════════════════════════════════ */

.stakes-section,
.value-prop,
.plan {
    position: relative;
    overflow: hidden;
}

/* Section background images — responsive <img> approach */
.section-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* On mobile: contain + gradient mask so image fades before hitting text */
@media (max-width: 768px) {
    .section-bg {
        object-fit: contain;
        object-position: center top;
        height: auto;
        max-height: 45%;
        -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
        mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    }
}

.stakes-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at center, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Content must sit above the background */
.stakes-section > .container,
.value-prop > .container,
.plan > .container,
.ai-system-section > .container,
.services > .container {
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   FAQ (shared styles — used on homepage + partners)
   ═══════════════════════════════════════════════════════════════ */
.partners-faq {
    background: var(--color-surface);
}

.partners-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.partners-faq-item {
    border-bottom: 1px solid var(--color-border);
}

.partners-faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.partners-faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    text-align: left;
    transition: color 0.3s ease;
}

.partners-faq-toggle:hover {
    color: var(--color-red);
}

.partners-faq-toggle:focus-visible {
    outline: 2px solid var(--color-red);
    outline-offset: 4px;
    border-radius: 4px;
}

.partners-faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-red);
    flex-shrink: 0;
    margin-left: var(--space-md);
    transition: transform 0.3s ease;
}

.partners-faq-toggle[aria-expanded="true"] .partners-faq-icon {
    transform: rotate(45deg);
}

.partners-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out);
}

.partners-faq-answer p {
    padding-bottom: var(--space-lg);
    font-size: 0.95rem;
    color: var(--color-gray-300);
    line-height: 1.7;
}

/* Respect reduced motion — remove backgrounds + show all testimonials */
@media (prefers-reduced-motion: reduce) {
    .section-bg {
        display: none;
    }
    .testimonial-card {
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin-bottom: var(--space-lg);
    }
    .testimonial-dots {
        display: none;
    }
}
