/**
 * Catalyst Bold Theme — "Liquid Confidence"
 * A premium, maximalist dark theme. BOLD. COOL. CURRENT.
 *
 * Fonts: Oswald (display), Source Serif 4 (body), Space Mono (accent)
 * Palette: Near-black canvas, coral/violet/lime accents
 */

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    /* Color Palette */
    --color-black: #0A0A0A;
    --color-dark: #141414;
    --color-surface: #1A1A1A;
    --color-white: #FAFAFA;
    --color-muted: #666666;
    --color-coral: #FF4D00;
    --color-coral-glow: rgba(255, 77, 0, 0.3);
    --color-violet: #8B5CF6;
    --color-violet-glow: rgba(139, 92, 246, 0.3);
    --color-lime: #BEFF00;
    --color-gradient-1: linear-gradient(135deg, #FF4D00, #8B5CF6);

    /* Typography */
    --font-display: 'Oswald', sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'Space Mono', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    --text-7xl: 6rem;
    --text-8xl: 8rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    --space-40: 10rem;

    /* Layout */
    --container: 1400px;
    --radius: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 24px;

    /* Transitions */
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Border */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.15);
}


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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.7;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

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

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-coral);
    border-radius: 4px;
}

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

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--color-coral) var(--color-dark);
}

/* Selection */
::selection {
    background: var(--color-coral);
    color: var(--color-white);
}

::-moz-selection {
    background: var(--color-coral);
    color: var(--color-white);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: 10000;
    padding: var(--space-3) var(--space-6);
    background: var(--color-coral);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top 0.3s var(--ease-smooth);
}

.skip-link:focus {
    top: 0;
}


/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

h1 { font-size: clamp(3rem, 8vw, var(--text-8xl)); }
h2 { font-size: clamp(2.5rem, 6vw, var(--text-7xl)); }
h3 { font-size: clamp(1.75rem, 3.5vw, var(--text-5xl)); }
h4 { font-size: var(--text-4xl); }
h5 { font-size: var(--text-3xl); }
h6 { font-size: var(--text-2xl); }

p {
    color: rgba(255, 255, 255, 0.7);
}

.display-massive {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-white);
    /* leave room for descenders (g, y, p) at the tight line-height */
    padding-bottom: 0.12em;
}

.text-gradient {
    background: var(--color-coral);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--color-white);
}


/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container);
    margin: 0 auto;
    /* Side gutter shared by the front page, portfolio pages, and footer.
       Section/footer backgrounds sit outside .container, so they still bleed full-width. */
    padding: 0 var(--space-8);
}

.section {
    padding: 120px 0;
}

.section-xl {
    padding: 160px 0;
}


/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
    height: 1px;
    border: none;
    background: var(--border-subtle);
    margin: 0;
}

.section-divider--subtle {
    height: 1px;
    border: none;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-subtle) 20%,
        var(--border-subtle) 80%,
        transparent 100%);
    margin: 0;
}


/* ============================================
   HEADER — Fixed, Glassmorphism on Scroll
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
    transition: all 0.5s var(--ease-smooth);
}

.site-header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--color-coral);
}

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

/* WordPress admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.03em;
}

.site-logo-link {
    display: block;
    line-height: 0;
}

.site-logo-img {
    height: 50px;
    width: auto;
    max-width: 250px;
    display: block;
    filter: brightness(0) invert(1);
    transition: opacity 0.4s var(--ease-smooth);
}

.site-logo-img:hover {
    opacity: 0.8;
}

.custom-logo-link {
    display: block;
    line-height: 0;
}

.custom-logo {
    height: 50px;
    width: auto;
    max-width: 250px;
    display: block;
    filter: brightness(0) invert(1);
}

/* Navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

.primary-nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-2);
    align-items: center;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.4s var(--ease-smooth);
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    position: relative;
    letter-spacing: 0.01em;
}

.primary-nav a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

.primary-nav a:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
    border-radius: 100px;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-white);
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    position: absolute;
    transition: all 0.4s var(--ease-smooth);
    border-radius: 2px;
}

.menu-toggle-bar:nth-child(1) {
    top: 14px;
}

.menu-toggle-bar:nth-child(2) {
    top: 21px;
}

.menu-toggle-bar:nth-child(3) {
    top: 28px;
}

/* Animated hamburger to X */
.menu-toggle.active .menu-toggle-bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.menu-toggle.active .menu-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.menu-toggle.active .menu-toggle-bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Fallback for text-based toggle (matches existing header.php) */
.menu-toggle:not(:has(.menu-toggle-bar)) {
    font-size: var(--text-3xl);
    line-height: 1;
}


/* ============================================
   HERO — Full Viewport, Gradient Text
   ============================================ */
.hero {
    /* Flows naturally — fixed header needs top clearance */
    padding: 200px 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    background: var(--color-black);
    color: var(--color-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-16) var(--space-8);
    max-width: 1200px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-8);
}

.hero h1.display-massive {
    /* No outer fadeSlideUp — the per-word animation handles the reveal */
    /* Gradient text applied per-word so inline-block spans render correctly */
}

/* Word reveal animation for split headline — solid text, no gradient/clip
   (background-clip:text at a tight line-height was cropping descenders). */
.hero h1 .word {
    display: inline-block;
    animation: wordReveal 0.6s var(--ease-smooth) both;
    color: var(--color-white);
    padding-bottom: 0.12em;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(30px) rotateX(20deg);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    font-weight: 400;
    color: var(--color-muted);
    margin-bottom: var(--space-12);
    letter-spacing: 0.02em;
    animation: fadeSlideUp 1s 0.5s var(--ease-smooth) both;
}

.hero-cta {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 1s 0.8s var(--ease-smooth) both;
}

/* Hero background layer */
.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 77, 0, 0.06) 0%, transparent 60%),
                radial-gradient(ellipse 60% 50% at 30% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
                var(--color-black);
    opacity: 1;
}

/* Canvas particle animation */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Fade the wave out toward the hero's bottom instead of a hard cutoff. */
    -webkit-mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 68%, transparent 100%);
}

/* Subtle noise overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
}



/* ============================================
   BUTTONS — Bold, Confident
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-10);
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    border-radius: var(--radius-lg);
    transition: all 0.5s var(--ease-smooth);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px var(--color-coral-glow),
                0 4px 12px rgba(255, 77, 0, 0.4);
    background: #ff6a2e;
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.06);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-coral {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn-coral:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px var(--color-coral-glow),
                0 6px 16px rgba(255, 77, 0, 0.5);
    background: #ff6a2e;
}

/* Legacy class from existing markup */
.btn-electric {
    background: var(--color-coral);
    color: var(--color-white);
    border-color: var(--color-coral);
}

.btn-electric:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px var(--color-coral-glow),
                0 6px 16px rgba(255, 77, 0, 0.5);
    background: #ff6a2e;
}

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

.btn-nav {
    background: var(--color-coral) !important;
    color: var(--color-white) !important;
    border-color: var(--color-coral) !important;
    padding: var(--space-2) var(--space-6) !important;
    border-radius: 100px !important;
    font-size: var(--text-sm) !important;
}

.btn-nav:hover {
    background: #ff6a2e !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--color-coral-glow);
}

.btn:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 3px;
}


/* ============================================
   MANIFESTO — Editorial Statement
   ============================================ */
.manifesto {
    padding: var(--space-32) 0;
    position: relative;
}

.manifesto-text {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--color-white);
}


/* ============================================
   LOGO BAR — Dark Surface, Above the Fold
   ============================================ */
.logo-bar {
    background: var(--color-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-10) 0;
    position: relative;
}

.logo-bar-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-coral);
    font-weight: 400;
    margin-bottom: var(--space-8);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.logo-bar-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: var(--space-6);
    align-items: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0;
}

.logo-bar-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0.4;
    transition: all 0.5s var(--ease-smooth);
    padding: var(--space-2);
    filter: brightness(0) invert(1);
}

.logo-bar-item:hover {
    opacity: 1;
    transform: scale(1.08);
}

.client-logo-img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}


/* ============================================
   SECTION TITLES — Left-aligned with accent bar
   ============================================ */
.section-title,
.section-header {
    margin-bottom: var(--space-16);
    position: relative;
}

.section-title h2,
.section-header h2 {
    color: var(--color-white);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
    color: var(--color-muted);
    font-weight: 400;
    line-height: 1.6;
}


/* ============================================
   WHY US — Dark Cards with Gradient Hover
   ============================================ */
.why-us {
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.why-card {
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-2xl);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.why-card:hover {
    border-color: var(--color-coral);
    box-shadow: 0 8px 40px rgba(255, 77, 0, 0.1);
    transform: translateY(-2px);
}

.why-card h3 {
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    margin-bottom: var(--space-4);
    color: var(--color-white);
    transition: color 0.4s var(--ease-smooth);
}

.why-card p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-muted);
    transition: color 0.4s var(--ease-smooth);
}

.why-card:hover p {
    color: rgba(255, 255, 255, 0.6);
}

/* Experience Callout */
.experience-callout {
    margin-top: var(--space-24);
    padding: var(--space-16) var(--space-12);
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-subtle);
    text-align: center;
    position: relative;
}

.experience-callout h3 {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    margin-bottom: var(--space-6);
    color: var(--color-white);
}

.experience-callout p {
    font-size: clamp(var(--text-lg), 1.8vw, var(--text-2xl));
    color: var(--color-muted);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ============================================
   CASE STUDIES — Alternating Layout, Image Hover
   ============================================ */
.case-studies {
    background: var(--color-dark);
    position: relative;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-16);
    margin-top: var(--space-12);
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-surface);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.6s var(--ease-smooth);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.case-study-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(255, 77, 0, 0.05);
    transform: translateY(-4px);
}

/* Alternate layout for even items */
.case-study-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.case-study-card:nth-child(even) .case-study-image {
    order: 2;
}

.case-study-card:nth-child(even) .case-study-content {
    order: 1;
}

.case-study-image {
    position: relative;
    min-height: 400px;
    background: var(--color-dark);
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

.case-study-card:hover .case-study-image img {
    transform: rotate(-1deg) scale(1.02);
}

.case-study-content {
    padding: var(--space-12);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-content h3 {
    font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
    margin-bottom: var(--space-3);
    color: var(--color-white);
}

.case-study-project {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-coral);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-study-content > p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-muted);
    margin-bottom: var(--space-8);
}

.case-study-results {
    display: flex;
    gap: var(--space-8);
    flex-wrap: wrap;
    margin: var(--space-6) 0 0;
    padding: var(--space-6) var(--space-8);
    background: var(--color-black);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-white);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    font-weight: 400;
    line-height: 1.3;
}

/* Gradient placeholder for case studies without images */
.case-study-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    font-family: var(--font-display);
}


/* ============================================
   SERVICES — Ghost Numbers, Gradient Top Border
   ============================================ */
.services {
    background: var(--color-black);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.services .section-title h2 {
    color: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.service-card {
    padding: var(--space-12);
    background: transparent;
    border-top: 3px solid var(--color-coral);
    transition: all 0.5s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: var(--color-surface);
    transform: translateY(-4px);
}

.service-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    font-weight: 400;
    margin-bottom: var(--space-4);
    transition: color 0.4s var(--ease-smooth);
}

.service-card h3 {
    margin-bottom: var(--space-4);
    color: var(--color-white);
    font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--color-muted);
    position: relative;
    z-index: 1;
    transition: color 0.4s var(--ease-smooth);
}

.service-card:hover p {
    color: rgba(255, 255, 255, 0.6);
}


/* ============================================
   CLIENTS — Dark, Larger Logos
   ============================================ */
.clients {
    background: var(--color-dark);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-16);
    margin-top: var(--space-16);
    align-items: center;
}

.client-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.4;
    transition: all 0.5s var(--ease-smooth);
    filter: brightness(0) invert(1);
    padding: var(--space-4);
}

.client-item:hover {
    opacity: 1;
    transform: scale(1.08);
}

.client-item .client-logo-img {
    max-width: 220px;
    max-height: 80px;
}


/* ============================================
   PORTFOLIO — Two-Column Grid, Hover Overlays
   ============================================ */
.portfolio {
    background: var(--color-black);
    position: relative;
    overflow: hidden;
    /* Tighter top: the clients section above already carries 120px bottom padding */
    padding-top: 80px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin-top: var(--space-12);
}

.portfolio-item {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s var(--ease-smooth);
    border: 1px solid var(--border-subtle);
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item:hover {
    transform: scale(1.02) rotate(-0.5deg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 77, 0, 0.06);
    border-color: var(--border-light);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.3) 40%,
        transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-10);
    transition: background 0.6s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top,
        rgba(10, 10, 10, 0.97) 0%,
        rgba(10, 10, 10, 0.6) 50%,
        rgba(255, 77, 0, 0.05) 100%);
}

.portfolio-overlay h3 {
    color: var(--color-white);
    font-size: clamp(var(--text-2xl), 2.5vw, var(--text-3xl));
    margin-bottom: 0;
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-3);
    transition: all 0.5s var(--ease-smooth);
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-base);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(16px);
    transition: max-height 0.6s var(--ease-smooth),
                opacity 0.5s 0.1s var(--ease-smooth),
                transform 0.5s 0.1s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-overlay p {
    max-height: 6em;
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay-content {
    display: flex;
    flex-direction: column;
}

.portfolio-label {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-coral);
    margin-top: var(--space-3);
}

.portfolio-rule {
    width: 100%;
    height: 2px;
    background: var(--color-coral);
    border-radius: 1px;
    margin: var(--space-3) 0;
    box-shadow: 0 0 8px var(--color-coral-glow);
    opacity: 0;
    transition: opacity 0.4s 0.1s var(--ease-smooth);
}

.portfolio-item:hover .portfolio-rule {
    opacity: 1;
}

/* Gradient fallback for portfolio items without images */
.portfolio-gradient {
    position: absolute;
    inset: 0;
}


/* ============================================
   FINAL PITCH — Gradient Mesh, Dramatic
   ============================================ */
.final-pitch {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gradient mesh background */
.final-pitch::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 50%, rgba(255, 77, 0, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 60% at 80% 40%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(255, 77, 0, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.final-pitch h2 {
    color: var(--color-white);
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-8);
}

.final-pitch p {
    position: relative;
    z-index: 1;
    color: var(--color-muted);
    margin-bottom: var(--space-12);
}

.final-pitch .btn {
    position: relative;
    z-index: 1;
}

.final-pitch .btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px var(--color-coral-glow),
                0 8px 24px rgba(255, 77, 0, 0.4);
}


/* ============================================
   AI CHAT — Floating Concierge
   ============================================ */
.chat-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-3);
}

.chat-launcher {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: var(--color-coral);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
}

.chat-launcher:hover {
    transform: scale(1.07);
    box-shadow: 0 14px 36px var(--color-coral-glow), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.chat-launcher svg {
    width: 26px;
    height: 26px;
}

.chat-launcher-icon-close { display: none; }
.chat-float--open .chat-launcher-icon-open { display: none; }
.chat-float--open .chat-launcher-icon-close { display: block; }

.chat-panel {
    width: min(380px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 130px));
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    transform-origin: bottom right;
    animation: chatPanelIn 0.25s var(--ease-smooth);
}

.chat-panel[hidden] {
    display: none;
}

@keyframes chatPanelIn {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    background: var(--color-black);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-panel-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--text-lg);
    color: var(--color-white);
}

.chat-close {
    background: none;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: var(--space-1);
    display: flex;
    transition: color 0.2s ease;
}

.chat-close:hover { color: var(--color-white); }
.chat-close svg { width: 18px; height: 18px; }

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    overflow-y: auto;
    padding: var(--space-4);
    scrollbar-width: thin;
    scrollbar-color: var(--color-muted) transparent;
}

.chat-bubble {
    max-width: 82%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    line-height: 1.55;
    color: var(--color-white);
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.chat-bubble--assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-bottom-left-radius: var(--space-1);
}

.chat-bubble--user {
    align-self: flex-end;
    background: var(--color-coral);
    border-bottom-right-radius: var(--space-1);
}

.chat-bubble--error {
    align-self: flex-start;
    background: rgba(255, 77, 0, 0.12);
    border: 1px solid var(--color-coral);
    color: var(--color-white);
    font-size: var(--text-sm);
}

.chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-self: flex-start;
}

.chat-chip {
    background: transparent;
    border: 1px solid var(--color-coral);
    border-radius: 100px;
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s var(--ease-smooth);
}

.chat-chip:hover {
    background: rgba(255, 77, 0, 0.15);
    transform: translateY(-1px);
}

.chat-typing span {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: var(--color-muted);
    animation: chatTyping 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

.chat-input-row {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border-subtle);
}

.chat-input-row input {
    flex: 1;
    min-width: 0;
    background: var(--color-black);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-white);
    transition: border-color 0.2s ease;
}

.chat-input-row input:focus {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px var(--color-coral-glow);
}

.chat-input-row input::placeholder {
    color: var(--color-muted);
}

.chat-send {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--color-coral);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s var(--ease-smooth), opacity 0.2s ease;
}

.chat-send:hover { transform: scale(1.08); }
.chat-send svg { width: 18px; height: 18px; }

.chat-float--pending .chat-send {
    opacity: 0.5;
    pointer-events: none;
}

.chat-disclaimer {
    margin: 0;
    padding: 0 var(--space-4) var(--space-3);
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-muted);
    letter-spacing: 0.05em;
}

@media (max-width: 640px) {
    .chat-float { right: 12px; bottom: 12px; }
    .chat-launcher { width: 54px; height: 54px; }
    .chat-panel {
        width: calc(100vw - 24px);
        height: min(70vh, calc(100vh - 110px));
    }
    .chat-bubble { max-width: 92%; }
}


/* ============================================
   CONTACT — Dark, Centered, Gradient Underlines
   ============================================ */
.contact {
    background: var(--color-black);
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-subtle);
}

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

.contact > .container > p,
.contact-intro {
    color: var(--color-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(var(--text-lg), 2vw, var(--text-2xl));
    line-height: 1.6;
}

.contact-form-wrapper {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: var(--space-16) auto 0;
    background: var(--color-surface);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-subtle);
}

.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--color-white);
    margin-bottom: var(--space-8);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-top: var(--space-12);
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

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

.contact-item a {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    font-weight: 700;
    color: var(--color-white);
    transition: all 0.5s var(--ease-smooth);
    display: inline-block;
    position: relative;
    letter-spacing: -0.02em;
}

.contact-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--color-coral);
    transition: width 0.5s var(--ease-smooth);
    border-radius: 2px;
}

.contact-item a:hover {
    transform: translateY(-2px);
}

.contact-item a:hover::after {
    width: 100%;
}

/* Gravity Forms wrapper */
.contact .gform-wrapper-container,
.contact .gform_wrapper {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: var(--space-24) auto 0;
    background: var(--color-surface);
    padding: var(--space-12);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-subtle);
}

.contact .gform_wrapper input[type="text"],
.contact .gform_wrapper input[type="email"],
.contact .gform_wrapper textarea {
    background: var(--color-dark);
    border: 1px solid var(--border-light);
    color: var(--color-white);
    border-radius: var(--radius);
    padding: var(--space-4);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: border-color 0.4s var(--ease-smooth);
}

.contact .gform_wrapper input[type="text"]:focus,
.contact .gform_wrapper input[type="email"]:focus,
.contact .gform_wrapper textarea:focus {
    border-color: var(--color-coral);
    outline: none;
    box-shadow: 0 0 0 3px var(--color-coral-glow);
}

.contact .gform_wrapper .gform_button {
    background: var(--color-coral);
    color: var(--color-white);
    font-family: var(--font-display);
    font-weight: 700;
    padding: var(--space-4) var(--space-10);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s var(--ease-smooth);
    font-size: var(--text-lg);
}

.contact .gform_wrapper .gform_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--color-coral-glow);
}


/* ============================================
   FOOTER — Near-Black, Gradient Top Border
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

/* Coral top border, fading at the edges */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--color-coral) 20%,
        var(--color-coral) 80%,
        transparent 100%);
}

.footer-main {
    padding: var(--space-24) 0 var(--space-16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-16);
    align-items: start;
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-white);
    display: inline-block;
    margin-bottom: var(--space-6);
}

.footer-brand .footer-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: var(--text-base);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.4);
    max-width: 320px;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--color-coral);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-6);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    display: inline-block;
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
    position: relative;
}

.footer-links a:hover {
    color: var(--color-white);
    /* transform shifts visually without changing layout width (no wrapping) */
    transform: translateX(var(--space-3));
}

.footer-contact-info p {
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: var(--space-3);
}

.footer-contact-info a {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.4s var(--ease-smooth);
}

.footer-contact-info a:hover {
    color: var(--color-coral);
}

/* Social icons — hidden by default per project spec */
.footer-social {
    display: none;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

/* Uncomment display: flex above and remove display: none to show social icons */
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-lg);
    transition: all 0.4s var(--ease-smooth);
}

.footer-social a:hover {
    border-color: var(--color-coral);
    color: var(--color-coral);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-coral-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-8) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom p {
    margin: 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.02em;
}


/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(60px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px var(--color-coral-glow); }
    50% { box-shadow: 0 0 40px var(--color-coral-glow), 0 0 60px var(--color-violet-glow); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    filter: blur(4px);
    transition: opacity 0.8s var(--ease-smooth),
                transform 0.8s var(--ease-smooth),
                filter 0.8s var(--ease-smooth);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered reveals for grid children */
.scroll-reveal.revealed:nth-child(1) { transition-delay: 0s; }
.scroll-reveal.revealed:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal.revealed:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal.revealed:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal.revealed:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal.revealed:nth-child(6) { transition-delay: 0.5s; }
.scroll-reveal.revealed:nth-child(7) { transition-delay: 0.6s; }
.scroll-reveal.revealed:nth-child(8) { transition-delay: 0.7s; }


/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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


/* ============================================
   RESPONSIVE — 1200px
   ============================================ */
@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
        gap: var(--space-12);
    }

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


/* ============================================
   RESPONSIVE — 1024px (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .section {
        padding: 80px 0;
    }

    .section-xl {
        padding: 100px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-12);
    }

    .why-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .logo-bar-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-10);
    }

    .case-study-content {
        padding: var(--space-8);
    }

    .hero-content {
        padding: var(--space-12) var(--space-6);
    }

    .container {
        padding: 0 var(--space-6);
    }
}


/* ============================================
   RESPONSIVE — 768px (Mobile)
   ============================================ */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }

    .section-xl {
        padding: 80px 0;
    }

    /* Mobile menu toggle */
    .menu-toggle {
        display: flex;
    }

    /* Mobile navigation */
    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border-subtle);
    }

    .primary-nav.active {
        display: block;
    }

    .primary-nav ul {
        flex-direction: column;
        padding: var(--space-6);
        gap: 0;
    }

    .primary-nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
    }

    .primary-nav li:last-child {
        border-bottom: none;
    }

    .primary-nav a {
        display: block;
        padding: var(--space-4) var(--space-4);
        font-size: var(--text-lg);
        border-radius: 0;
        color: var(--color-white);
    }

    .primary-nav a:hover {
        background: rgba(255, 77, 0, 0.08);
    }

    /* Hero adjustments */
    .display-massive {
        font-size: clamp(3.5rem, 12vw, 7rem);
    }

    .hero-content {
        padding: var(--space-8) var(--space-4);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: var(--space-4);
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    /* Grids go single column */
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }

    /* Logo bar */
    .logo-bar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-3);
    }

    .client-logo-img {
        max-height: 35px;
    }

    /* Case studies stack */
    .case-study-card {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .case-study-card:nth-child(even) .case-study-image,
    .case-study-card:nth-child(even) .case-study-content {
        order: unset !important;
    }

    .case-study-image {
        min-height: 260px;
    }

    .case-study-content {
        padding: var(--space-8) var(--space-6);
    }

    .case-study-content h3 {
        font-size: var(--text-3xl);
    }

    /* Section title accent bar */
    .why-us .section-title,
    .case-studies .section-title,
    .services .section-title,
    .portfolio .section-title,
    .clients .section-title,
    .why-us .section-header,
    .case-studies .section-header,
    .services .section-header,
    .portfolio .section-header,
    .clients .section-header {
        padding-left: var(--space-6);
    }

    .why-us .section-title::before,
    .case-studies .section-title::before,
    .services .section-title::before,
    .portfolio .section-title::before,
    .clients .section-title::before,
    .why-us .section-header::before,
    .case-studies .section-header::before,
    .services .section-header::before,
    .portfolio .section-header::before,
    .clients .section-header::before {
        height: 40px;
    }

    /* Buttons */
    .btn {
        font-size: var(--text-base);
        padding: var(--space-4) var(--space-8);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .footer-brand p {
        max-width: 100%;
    }

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

    /* Contact */
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: var(--space-8);
    }

    .contact-item a {
        font-size: var(--text-2xl);
    }

    /* Experience callout */
    .experience-callout {
        padding: var(--space-10) var(--space-8);
    }

    /* Why card padding */
    .why-card {
        padding: var(--space-8);
    }

    .why-card::before {
        top: var(--space-8);
        right: var(--space-8);
    }

    /* Container */
    .container {
        padding: 0 var(--space-4);
    }
}


/* ============================================
   RESPONSIVE — 480px (Small Phones)
   ============================================ */
@media (max-width: 480px) {
    .display-massive {
        font-size: clamp(2.8rem, 14vw, 5rem);
        letter-spacing: -0.05em;
    }

    .hero-tagline {
        font-size: var(--text-base);
    }

    h2 {
        font-size: clamp(2rem, 8vw, var(--text-5xl));
    }

    .section {
        padding: 48px 0;
    }

    .section-xl {
        padding: 64px 0;
    }

    .section-title {
        margin-bottom: var(--space-10);
    }

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

    .clients-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .client-item .client-logo-img {
        max-width: 140px;
        max-height: 50px;
    }

    .case-study-image {
        min-height: 200px;
    }

    .portfolio-item {
        aspect-ratio: 4 / 3;
    }

    .contact-item a {
        font-size: var(--text-xl);
    }

    .footer-heading {
        margin-bottom: var(--space-4);
    }

    .footer-main {
        padding: var(--space-16) 0 var(--space-10);
    }

    .experience-callout {
        padding: var(--space-8) var(--space-6);
    }

    .why-card {
        padding: var(--space-6);
    }

    .why-card::before {
        top: var(--space-6);
        right: var(--space-6);
    }

    .service-card {
        padding: var(--space-8);
    }
}


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

    html {
        scroll-behavior: auto;
    }

    .scroll-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }

    .hero h1.display-massive,
    .hero-tagline,
    .hero-cta,
    .hero h1 .word {
        animation: none;
        opacity: 1;
        transform: none;
        filter: none;
    }

    .portfolio-item:hover,
    .case-study-card:hover,
    .why-card:hover,
    .service-card:hover {
        transform: none;
    }

    .portfolio-item:hover .portfolio-image,
    .case-study-card:hover .case-study-image img {
        transform: none;
    }
}

/* Focus-visible for keyboard nav */
*:focus-visible {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* Remove focus outline for mouse users */
*:focus:not(:focus-visible) {
    outline: none;
}


/* ============================================
   WORDPRESS-SPECIFIC STYLES
   ============================================ */

/* Alignment classes from WordPress editor */
.alignwide {
    max-width: calc(var(--container) + var(--space-16));
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: var(--space-6);
    margin-bottom: var(--space-4);
}

.alignright {
    float: right;
    margin-left: var(--space-6);
    margin-bottom: var(--space-4);
}

/* WordPress captions */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-sm);
    color: var(--color-muted);
    padding-top: var(--space-2);
    font-style: italic;
}

/* WordPress gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin: var(--space-8) 0;
}

.gallery-item {
    margin: 0;
}

.gallery-item img {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
}

/* Page & Post content styles */
.entry-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: var(--space-6);
}

.entry-content a {
    color: var(--color-coral);
    text-decoration: underline;
    text-decoration-color: rgba(255, 77, 0, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s var(--ease-smooth);
}

.entry-content a:hover {
    text-decoration-color: var(--color-coral);
}

.entry-content blockquote {
    border-left: 4px solid var(--color-coral);
    padding: var(--space-6) var(--space-8);
    margin: var(--space-8) 0;
    background: var(--color-surface);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.entry-content ul,
.entry-content ol {
    padding-left: var(--space-8);
    margin-bottom: var(--space-6);
}

.entry-content li {
    margin-bottom: var(--space-2);
    color: rgba(255, 255, 255, 0.75);
}

.entry-content ul li {
    list-style: disc;
}

.entry-content ol li {
    list-style: decimal;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: var(--space-12);
    margin-bottom: var(--space-6);
}

/* Portfolio detail — plain white title (no hero word-reveal gradient) */
.single-portfolio .hero h1,
.single-portfolio .hero h1 .word {
    background: none;
    -webkit-text-fill-color: var(--color-white);
    color: var(--color-white);
}

/* Portfolio detail — client • timeline line under the title */
.portfolio-detail-meta {
    margin-top: var(--space-6);
    font-family: var(--font-mono);
    font-size: var(--text-base);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-coral);
}

.portfolio-detail-meta .meta-divider {
    margin: 0 var(--space-3);
}

/* Portfolio detail — excerpt / summary line under the meta */
.portfolio-excerpt {
    margin-top: var(--space-6);
    font-family: var(--font-body);
    font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
    line-height: 1.6;
    color: var(--color-muted);
}

/* Portfolio detail — services tag row */
.portfolio-services-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
    max-width: var(--container);
    margin: 0 auto var(--space-16);
}

.portfolio-service-tag {
    display: inline-flex;
    align-items: center;
    /* Top-weighted padding compensates for the font's empty descender space
       below all-caps, so the letters look optically centered. */
    padding: 7px 9px 3px;
    line-height: 1;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

/* Portfolio detail — image/video carousel */
.portfolio-carousel {
    position: relative;
    max-width: var(--container);
    margin: 0 auto var(--space-16);
    padding: 0;
}

.portfolio-carousel-viewport {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid var(--border-subtle);
}

.portfolio-carousel-track {
    display: flex;
    transition: transform 0.5s var(--ease-out);
    will-change: transform;
}

.portfolio-carousel-slide {
    flex: 0 0 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: var(--color-surface);
}

.portfolio-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.portfolio-carousel-slide--video { background: var(--color-black); }

.portfolio-carousel-slide--video iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.portfolio-carousel-prev,
.portfolio-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-out);
    line-height: 1;
    padding: 0;
}

.portfolio-carousel-prev { left: calc(var(--space-8) + 8px); }
.portfolio-carousel-next { right: calc(var(--space-8) + 8px); }

.portfolio-carousel-prev:hover,
.portfolio-carousel-next:hover {
    background: var(--color-coral);
    border-color: var(--color-coral);
    transform: translateY(-50%) scale(1.08);
}

.portfolio-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-4);
}

.portfolio-carousel-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-medium);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s var(--ease-out);
}

.portfolio-carousel-dots button.active {
    background: var(--color-coral);
    width: 24px;
    border-radius: 4px;
}

/* single slide — hide controls */
.portfolio-carousel--single .portfolio-carousel-prev,
.portfolio-carousel--single .portfolio-carousel-next,
.portfolio-carousel--single .portfolio-carousel-dots {
    display: none;
}

/* Portfolio detail — highlight stats row */
.portfolio-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8) var(--space-12);
    max-width: var(--container);
    margin: 0 auto var(--space-16);
    padding: var(--space-10) var(--space-12);
    background: var(--color-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

.portfolio-stat {
    text-align: center;
    flex: 1 1 160px;
}

.portfolio-stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-coral);
}

.portfolio-stat-label {
    display: block;
    margin-top: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-muted);
    line-height: 1.4;
}

/* Portfolio detail body — article-scale headings, not homepage-hero scale */
.portfolio-content h2 {
    font-size: clamp(1.6rem, 3vw, var(--text-4xl));
    margin-top: var(--space-16);
    margin-bottom: var(--space-4);
}

.portfolio-content h3 {
    font-size: clamp(1.3rem, 2.2vw, var(--text-2xl));
    margin-top: var(--space-12);
    margin-bottom: var(--space-3);
}

.portfolio-content h4 {
    font-size: var(--text-xl);
    margin-top: var(--space-10);
    margin-bottom: var(--space-3);
}

.entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-8) 0;
}

.entry-content th,
.entry-content td {
    padding: var(--space-4);
    border: 1px solid var(--border-subtle);
    text-align: left;
}

.entry-content th {
    background: var(--color-surface);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-coral);
}

.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-surface);
    padding: 0.15em 0.4em;
    border-radius: var(--radius);
    color: var(--color-lime);
    border: 1px solid var(--border-subtle);
}

.entry-content pre {
    background: var(--color-surface);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: var(--space-8) 0;
    border: 1px solid var(--border-subtle);
}

.entry-content pre code {
    background: none;
    padding: 0;
    border: none;
    font-size: var(--text-sm);
}

/* WP admin bar adjustment for sticky header */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .hero-bg,
    .hero-particles,
    .hero::after,
    .menu-toggle,
    .footer-social,
    .btn {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    h1, h2, h3, h4, h5, h6 {
        color: black;
        -webkit-text-fill-color: black;
    }

    .display-massive {
        -webkit-text-fill-color: black;
        background: none;
        font-size: 3rem;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }

    .section, .section-xl {
        padding: 2rem 0;
    }
}
