/* ═══════════════════════════════════════════════════════════
   Workerz.org — Premium Design System
   Style: Minimal tech agency. DM Serif Display + Inter.
   Palette: Warm #F8F7F5 · Ink #0D0D0D · Blue #0052D9
   ═══════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    /* Colors */
    --c-bg: #F8F7F5;
    --c-surface: #FFFFFF;
    --c-ink: #0D0D0D;
    --c-ink-mid: #3A3A3A;
    --c-ink-muted: #787878;
    --c-ink-subtle: #B4B4B4;
    --c-rule: #E5E4E1;
    --c-rule-light: #F0EFEC;
    --c-bg-ink: #0D0D0D;
    --c-bg-offwhite: #F2F1EE;

    --c-accent: #0052D9;
    --c-accent-hover: #003DB5;
    --c-accent-tint: #EBF0FF;
    --c-success: #22c55e;

    /* Typography */
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-stencil: 'Bebas Neue', 'Anton', 'Impact', sans-serif;

    /* Type Scale */
    --t-xs: 0.6875rem;
    /* 11px */
    --t-sm: 0.8125rem;
    /* 13px */
    --t-base: 1rem;
    /* 16px */
    --t-lg: 1.0625rem;
    /* 17px */
    --t-xl: 1.25rem;
    /* 20px */
    --t-2xl: 1.5rem;
    /* 24px */
    --t-3xl: 2rem;
    /* 32px */
    --t-4xl: clamp(2rem, 4vw, 2.75rem);
    --t-5xl: clamp(2.5rem, 5vw, 3.75rem);
    --t-hero: clamp(3rem, 7vw, 5.5rem);

    /* Spacing (8px base) */
    --sp-1: 0.5rem;
    /* 8px  */
    --sp-2: 1rem;
    /* 16px */
    --sp-3: 1.5rem;
    /* 24px */
    --sp-4: 2rem;
    /* 32px */
    --sp-5: 2.5rem;
    /* 40px */
    --sp-6: 3rem;
    /* 48px */
    --sp-8: 4rem;
    /* 64px */
    --sp-10: 5rem;
    /* 80px */
    --sp-12: 6rem;
    /* 96px */
    --sp-16: 8rem;
    /* 128px */

    /* Radii */
    --r-sm: 4px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quad: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --dur-fast: 180ms;
    --dur-base: 280ms;
    --dur-slow: 480ms;

    /* Layout */
    --nav-h: 64px;
    --col-max: 1440px;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    /* Native app feel */
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--t-base);
    font-weight: 400;
    line-height: 1.65;
    color: var(--c-ink);
    background: var(--c-bg);

    /* Strict Mobile Viewport Enforcement */
    overflow-x: hidden;
    width: 100vw;
    /* Prevent iOS elastic bounce on body for true app feel */
    overscroll-behavior-y: none;
}

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

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

ul,
ol {
    list-style: none;
}

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

input,
textarea,
select {
    font: inherit;
    font-size: 16px;
    /* Critical: Prevents iOS auto-zoom on focus */
    padding: 12px 14px;
    /* Increases tap target to ~44px+ */
}

:focus-visible {
    outline: 2px solid var(--c-accent);
    outline-offset: 3px;
    border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ─── LAYOUT ─── */
.container {
    width: 96%;
    max-width: var(--col-max);
    margin: 0 auto;
}

.section {
    padding: var(--sp-12) 0;
}

.section--narrow {
    padding: var(--sp-12) 0 var(--sp-8);
}

.bg-ink {
    background: var(--c-bg-ink);
}

.bg-offwhite {
    background: var(--c-bg-offwhite);
}

/* ─── TYPOGRAPHY UTILITIES ─── */
.label-row {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--c-ink-muted);
    margin-bottom: var(--sp-3);
}

.label-row--light {
    color: rgba(255, 255, 255, 0.4);
}

.label-num {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.625rem;
    flex-shrink: 0;
}

.label-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-success);
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.section-heading {
    font-family: var(--font-serif);
    font-size: var(--t-4xl);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    margin-bottom: var(--sp-3);
}

.section-heading--light {
    color: #fff;
}

.section-lead {
    font-size: var(--t-lg);
    color: var(--c-ink-muted);
    line-height: 1.7;
    max-width: 48ch;
    margin-bottom: var(--sp-8);
}

.section-lead--light {
    color: rgba(255, 255, 255, 0.5);
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    background: var(--c-ink);
    color: #fff;
    font-size: var(--t-sm);
    font-weight: 600;
    line-height: 1;
    padding: 13px 22px;
    border-radius: var(--r-sm);
    transition: background var(--dur-fast) var(--ease-out-quad),
        transform var(--dur-fast) var(--ease-out-quad),
        box-shadow var(--dur-fast) var(--ease-out-quad);
    will-change: transform;
}

.btn-primary:hover {
    background: var(--c-ink-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn--lg {
    padding: 15px 30px;
    font-size: var(--t-base);
}

.btn--full {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--c-ink-mid);
    transition: color var(--dur-fast), gap var(--dur-base) var(--ease-spring);
}

.link-arrow:hover {
    color: var(--c-ink);
    gap: 10px;
}

/* ─── STENCIL LOGO ─── */
.site-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    margin-right: auto;
}

.sl-word {
    font-family: var(--font-stencil);
    font-size: 2.6rem;
    letter-spacing: 0.06em;
    color: var(--c-ink);
    display: inline-flex;
    align-items: center;
    position: relative;
    /* Stencil horizontal cut lines through the letters */
}

.sl-word::before,
.sl-word::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    background: var(--c-bg);
    pointer-events: none;
    z-index: 2;
}

.sl-word::before {
    top: 36%;
    height: 2.5px;
}

.sl-word::after {
    top: 64%;
    height: 2px;
}

.sl-tld {
    font-family: var(--font-stencil);
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: var(--c-ink-muted);
    display: inline-flex;
    align-items: center;
    line-height: 1;
    align-self: flex-end;
    padding-bottom: 0.1em;
}

.sl--sm {
    font-size: 0.9em;
}

/* Per-letter animation */
.sl {
    display: inline-block;
    animation: sl-reveal 0.85s var(--ease-out-expo) both;
    animation-delay: calc(var(--i) * 0.11s);
}

@keyframes sl-reveal {
    0% {
        opacity: 0;
        transform: translateY(45%) scaleY(0.3);
        filter: blur(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        filter: blur(0);
    }
}

/* Footer variant (dark bg) */
.site-logo--footer .sl-word {
    color: rgba(255, 255, 255, 0.9);
}

.site-logo--footer .sl-word::before,
.site-logo--footer .sl-word::after {
    background: #080808;
    /* match footer bg */
}

.site-logo--footer .sl-tld {
    color: rgba(255, 255, 255, 0.35);
}

/* Footer has no animation (static) */
.site-logo--footer .sl-word>span {
    animation: none;
    opacity: 1;
    transform: none;
}

.site-logo--footer .sl-tld>span {
    animation: none;
    opacity: 1;
    transform: none;
}

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

/* ─── NAVBAR ─── */
.navbar {
    position: fixed;
    top: max(var(--sp-4), env(safe-area-inset-top, 16px));
    /* Detach from top */
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    /* Let clicks pass through the invisible row */
    display: flex;
    justify-content: center;
    padding: 0 var(--sp-4);
    transition: transform var(--dur-slow) var(--ease-spring);
}

.navbar__container {
    width: 100%;
    max-width: var(--col-max);
    height: 64px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 32px;
    /* Pill shape */
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    box-shadow: 0 4px 24px -6px rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    /* Re-enable clicks for the actual nav element */
    display: flex;
    align-items: center;
    padding: 0 8px 0 24px;
    transition: border-color var(--dur-base), box-shadow var(--dur-base);
}

.navbar.nav-scrolled .navbar__container {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.1);
}

.navbar__inner {
    width: 100%;
    display: flex;
    align-items: center;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-right: auto;
}

.logo-mark {
    flex-shrink: 0;
}

.logo-wordmark {
    font-size: var(--t-lg);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--c-ink);
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-right: var(--sp-3);
}

.nav-link {
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--c-ink-muted);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    transition: color var(--dur-fast), background var(--dur-fast);
}

.nav-link:hover {
    color: var(--c-ink);
    background: var(--c-rule-light);
}

.navbar__cta {
    font-size: var(--t-sm);
    padding: 10px 18px;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: var(--sp-2);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--c-ink);
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-out-expo),
        opacity var(--dur-fast);
}

.nav-toggle.open span:first-child {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-rule);
    padding: var(--sp-3);
    gap: 2px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out-expo),
        transform var(--dur-base) var(--ease-out-expo);
    z-index: 999;
}

.mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.mn-link {
    font-size: var(--t-base);
    font-weight: 500;
    color: var(--c-ink-mid);
    padding: 12px var(--sp-2);
    border-radius: var(--r-sm);
    transition: background var(--dur-fast);
}

.mn-link:hover {
    background: var(--c-bg);
}

.mn-cta {
    margin-top: var(--sp-2);
    background: var(--c-ink);
    color: #fff;
    text-align: center;
    border-radius: var(--r-sm);
    font-weight: 600;
}

.mn-cta:hover {
    background: var(--c-ink-mid);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + var(--sp-10));
    padding-bottom: var(--sp-10);
    overflow: hidden;
    /* Barely-perceptible background tint */
    background: linear-gradient(160deg, #F9F8F6 0%, #F6F5F9 100%);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0052D9 0%, #7C3AED 50%, #00C2FF 100%);
    z-index: 9999;
}

/* Atmospheric color orbs */
.hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero__orb--1 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(100, 110, 150, 0.06) 0%, transparent 65%);
    filter: blur(60px);
    animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero__orb--2 {
    width: 550px;
    height: 550px;
    bottom: -180px;
    left: -100px;
    background: radial-gradient(circle, rgba(110, 100, 140, 0.05) 0%, transparent 65%);
    filter: blur(70px);
    animation: orb-drift 15s ease-in-out infinite alternate-reverse;
}

.hero__orb--3 {
    width: 400px;
    height: 400px;
    top: 25%;
    left: 38%;
    background: radial-gradient(circle, rgba(90, 100, 130, 0.04) 0%, transparent 65%);
    filter: blur(80px);
    animation: orb-drift 10s ease-in-out infinite alternate;
    animation-delay: -4s;
}

@keyframes orb-drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(30px, 20px) scale(1.08);
    }
}

/* CSS Dot Grid — pure CSS, no images */
.hero__bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0, 52, 120, 0.15) 0.8px, transparent 0.8px);
    background-size: 36px 36px;
    opacity: 0.45;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);

    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero__bg-grid {
        /* Expand the mask on mobile so it doesn't cut off awkwardly */
        mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, black 10%, transparent 80%);
        -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 50%, black 10%, transparent 80%);
    }
}

.hero__inner {
    width: 96%;
    max-width: var(--col-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--sp-10);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--c-ink-muted);
    margin-bottom: var(--sp-4);
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: var(--t-hero);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--c-ink);
    margin-bottom: var(--sp-4);
}

.hero__headline em {
    font-style: italic;
    color: var(--c-accent);
}

/* Staggered Text Reveal Animation */
.str-wrap {
    display: inline-block;
    overflow: hidden;
    /* Hides the text before it slides up */
    vertical-align: top;
    line-height: 1.05;
}

.str {
    display: inline-block;
    transform: translateY(110%);
    /* Start completely below the wrapper */
    opacity: 0;
    /* We inject an "is-loaded" class via JS to trigger the actual animation, ensuring perfect timing */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i) * 0.15s);
    /* Dynamic staggered delay based on inline --i variable */
}

/* Base trigger class injected via JS once DOM is fully ready */
.hero.is-loaded .str {
    transform: translateY(0);
    opacity: 1;
}

/* Delayed fade-up for general hero elements like subtext and buttons */
.stagger-item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.is-loaded .stagger-item {
    opacity: 1;
    transform: translateY(0);
}

/* Hero label badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 82, 217, 0.08);
    border: 1px solid rgba(0, 82, 217, 0.15);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--c-accent);
    letter-spacing: 0.02em;
}

.hero-badge-sep {
    color: var(--c-ink-subtle);
    font-size: var(--t-sm);
}

/* Editorial products line */
.hero__products {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: var(--sp-4);
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-rule-light);
}

.hp-label {
    font-size: var(--t-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--c-ink-subtle);
    margin-right: 4px;
}

.hp-name {
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--c-ink-mid);
}

.hp-sep {
    color: var(--c-ink-subtle);
    font-size: var(--t-sm);
    user-select: none;
}

/* Floating feature pills around the hero visual */
/* Vertical Seamless Marquee for Hero Pills */
/* Right-Side Curving Seamless Orbital Marquee */
.hero__pills-wrapper {
    position: absolute;
    top: -10%;
    bottom: -10%;
    right: -10%;
    /* Shift to right side */
    width: 250px;
    /* Give it space to orbit horizontally */
    z-index: 4;
    overflow: visible;
    /* We need space for the curve */
    pointer-events: none;
    /* Smoothly fade in and out at top/bottom extremes */
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.hero__pills-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.fpill-orbiter {
    position: absolute;
    top: 50%;
    /* We start center and let translateY take over to center the loop */
    right: 0;
    /* Global vertical scroll: Moves from bottom to top across the container height */
    animation: orbitY 25s linear infinite;
    animation-delay: var(--d);
}

.fpill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--c-ink-mid);
    white-space: nowrap;
    width: fit-content;
    /* Internal horizontal sway: creates the "C" curve */
    animation: orbitX 25s ease-in-out infinite;
    animation-delay: var(--d);
}

@keyframes orbitY {
    0% {
        transform: translateY(60vh);
        /* Start below view */
    }

    100% {
        transform: translateY(-60vh);
        /* End above view */
    }
}

@keyframes orbitX {
    0% {
        transform: translateX(50px);
        /* Start further right */
    }

    50% {
        transform: translateX(-80px);
        /* Curvy bow into the left/center of the image wrapper */
    }

    100% {
        transform: translateX(50px);
        /* Return further right */
    }
}

/* Ensure hero content layers above orbs */
.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__sub {
    font-size: var(--t-lg);
    color: var(--c-ink-muted);
    line-height: 1.7;
    max-width: 42ch;
    margin-bottom: var(--sp-5);
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-wrap: wrap;
}

/* Hero Visual */
.hero__visual {
    position: relative;
}

.hero__img-frame {
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 32px 80px rgba(0, 0, 0, 0.12);
    position: relative;
    /* Set the initial perspective tilt */
    transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
}

/* The continuous levitation animation */
.hero-visual-float {
    animation: hero-levitate 8s ease-in-out infinite;
}

@keyframes hero-levitate {

    0%,
    100% {
        transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(0px);
    }

    50% {
        transform: perspective(1200px) rotateY(-4deg) rotateX(1deg) translateY(-16px);
    }
}

.hero__img-frame:hover {
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.hero__img-frame img {
    width: 100%;
    max-height: 80vh;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.hero__img-badge {
    position: absolute;
    bottom: var(--sp-3);
    left: var(--sp-3);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--c-rule);
    border-radius: 100px;
    padding: 7px 14px;
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--c-ink);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--c-success);
    flex-shrink: 0;
    animation: blink 2s ease-in-out infinite;
}

/* ─── MARQUEE ─── */
.marquee-strip {
    overflow: hidden;
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
    background: var(--c-bg);
    padding: 13px 0;
    white-space: nowrap;
    user-select: none;
}

.marquee-track {
    display: inline-flex;
    gap: var(--sp-4);
    animation: marquee 30s linear infinite;
}

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

.marquee-track span {
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--c-ink-muted);
    letter-spacing: 0.01em;
}

.marquee-track .mx {
    color: var(--c-rule);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ─── SECTION: SERVICES ─── */
.section-split {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--sp-10);
    align-items: start;
}

.section-split__left {
    position: sticky;
    top: calc(var(--nav-h) + var(--sp-4));
}

/* Service List */
.service-list {
    border-top: 1px solid var(--c-rule);
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-4);
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--c-rule);
    cursor: pointer;
    transition: background var(--dur-fast);
}

.si-num {
    font-family: var(--font-serif);
    font-size: var(--t-sm);
    color: var(--c-ink-subtle);
    min-width: 28px;
    padding-top: 3px;
    flex-shrink: 0;
    transition: color var(--dur-fast);
}

.si-body {
    flex: 1;
}

.si-title {
    font-size: var(--t-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    margin-bottom: 6px;
    transition: color var(--dur-fast);
}

.si-desc {
    font-size: var(--t-sm);
    color: var(--c-ink-muted);
    line-height: 1.65;
    margin-bottom: var(--sp-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--dur-slow) var(--ease-out-expo),
        opacity var(--dur-base) var(--ease-out-quad),
        margin-bottom var(--dur-base);
}

.si-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--dur-slow) var(--ease-out-expo),
        opacity var(--dur-base) var(--ease-out-quad);
}

.si-tags span {
    font-size: var(--t-xs);
    font-weight: 600;
    color: var(--c-accent);
    background: var(--c-accent-tint);
    padding: 3px 10px;
    border-radius: 100px;
}

.si-arrow {
    color: var(--c-ink-subtle);
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform var(--dur-base) var(--ease-spring), color var(--dur-fast);
}

/* Service item hover / active states */
.service-item:hover .si-num,
.service-item.si-active .si-num {
    color: var(--c-accent);
}

.service-item:hover .si-title,
.service-item.si-active .si-title {
    color: var(--c-accent);
}

.service-item.si-active .si-desc,
.service-item:hover .si-desc {
    max-height: 120px;
    opacity: 1;
    margin-bottom: var(--sp-2);
}

.service-item.si-active .si-tags,
.service-item:hover .si-tags {
    max-height: 60px;
    opacity: 1;
}

.service-item:hover .si-arrow {
    transform: translateX(4px) rotate(-45deg);
    color: var(--c-accent);
}

/* ─── SECTION: PORTFOLIO / WORK ─── */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--sp-6);
    flex-wrap: wrap;
    gap: var(--sp-4);
}

.work-filters {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.filter-btn {
    font-size: var(--t-sm);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    padding: 7px 14px;
    border-radius: 4px;
    transition: color var(--dur-fast), background var(--dur-fast);
}

.filter-btn:hover {
    color: rgba(255, 255, 255, 0.75);
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 320px;
    gap: var(--sp-4);
    margin-top: var(--sp-2);
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 280px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 300px;
    }
}

.bento-card {
    position: relative;
    border-radius: 20px;
    /* This handles the glow tracking later */
    backface-visibility: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
}

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

@media (max-width: 600px) {
    .bento-wide {
        grid-column: span 1;
    }
}

.bento-card[data-hidden="true"] {
    display: none;
}

.bento-inner {
    position: absolute;
    inset: 1px;
    /* 1px inset exposes the parent's border glow */
    background: #111111;
    border-radius: 19px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateZ(0);
    /* Force hardware accel */
}

.bento-link-wrapper {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.bento-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity var(--dur-slow) var(--ease-out-expo),
        transform var(--dur-slow) var(--ease-out-expo);
    filter: saturate(0.8) contrast(1.1);
}

.bento-align-top {
    object-position: top;
}

.bento-scale-up {
    transform: scale(1.1);
}

/* Base Hover State for BG Images */
.bento-card:hover .bento-bg {
    opacity: 0.9;
    transform: scale(1.04);
}

.bento-card:hover .bento-scale-up {
    transform: scale(1.14);
}

/* Inner Content & Glassmorphism */
.bento-content {
    position: relative;
    z-index: 2;
    padding: var(--sp-6);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    /* Push content down slightly on rest state */
    transform: translateY(24px);
    transition: transform var(--dur-slow) var(--ease-out-expo);
}

.bento-card:hover .bento-content {
    transform: translateY(0);
}

.bento-tags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.bento-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.bento-tag--chrome {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.bento-store-badge {
    position: absolute;
    top: var(--sp-4);
    right: var(--sp-4);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    z-index: 3;
}

.bento-store-badge svg {
    color: #22c55e;
}

.bento-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bento-title {
    font-size: var(--t-2xl);
    font-weight: 500;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0;
}

.bento-desc {
    font-size: var(--t-sm);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 0;
    /* Hide desc normally */
    opacity: 0;
    max-height: 0;
    transform: translateY(10px);
    transition: opacity var(--dur-slow) ease, max-height var(--dur-slow) ease, transform var(--dur-slow) var(--ease-out-expo);
}

.bento-card:hover .bento-desc {
    opacity: 1;
    max-height: 80px;
    transform: translateY(0);
}

/* CSS service visuals for non-image cards */
.wc-img--service {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-visual {
    position: relative;
    width: 80%;
    height: 80%;
}

.sv-node {
    position: absolute;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-sm);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--t-xs);
    font-weight: 600;
    padding: 6px 12px;
    white-space: nowrap;
}

.sv-node--main {
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--c-accent);
    border-color: transparent;
    color: #fff;
    font-size: var(--t-sm);
}

.sv-node--sm {
    position: absolute;
    font-size: 0.625rem;
}

.service-visual::before,
.service-visual::after {
    content: '';
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.service-visual::before {
    inset: 10%;
}

.service-visual::after {
    inset: 25%;
}

/* Web mockup visual */
.service-visual--web {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: var(--sp-3);
    width: 72%;
    height: auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
}

.web-bar {
    height: 28px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--r-sm);
}

.web-block {
    border-radius: 6px;
}

.web-block--hero {
    height: 80px;
    background: rgba(0, 82, 217, 0.2);
}

.web-cols {
    display: flex;
    gap: 8px;
}

.web-block--col {
    flex: 1;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

/* ─── WEBAPP SHOWCASE (Airtable-matching) ─── */

/* Outer section: plain page bg, provides vertical padding */
.wa-outer {
    background: var(--c-bg);
    padding-top: var(--sp-10);
    padding-bottom: var(--sp-10);
}

/* Inner rounded dark-orange container — matches Airtable's card container */
.wa-container {
    background: #912E1F;
    border-radius: 32px;
    overflow: hidden;
    padding: var(--sp-8) var(--sp-10) 0;
}

/* Top row: heading left, button right */
.wa-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-6);
    margin-bottom: var(--sp-6);
}

.wa-top-left {
    max-width: 520px;
}

.wa-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: var(--sp-3);
}

.wa-body {
    font-size: var(--t-base);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    max-width: 44ch;
}

.wa-top-right {
    flex-shrink: 0;
    padding-top: 4px;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #912E1F;
    font-size: var(--t-sm);
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background var(--dur-fast), transform var(--dur-fast);
    white-space: nowrap;
}

.wa-btn:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
}

/* Cards area */
.wa-cards-wrap {
    position: relative;
    height: 420px;
    overflow: hidden;
}

.wa-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Cards: 55% width, centered — portrait images display correctly at this ratio */
/* Cards: properly sized to match portrait images */
.wa-card {
    position: absolute;
    /* Vertically center the cards in the wrapper */
    top: 50%;
    transform: translate(-50%, -50%);
    left: 50%;
    /* Width determines size. 50% of container is good for showing 4 overlapping */
    width: 50%;
    /* Match the original image proportion (1200x1656) so 'cover' fits exactly */
    aspect-ratio: 1200 / 1656;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    /* Start: all stacked at exact center */
    box-shadow:
        0 -4px 20px rgba(0, 0, 0, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.3);
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.wa-card:nth-child(1) {
    z-index: 1;
    transition-delay: 0s;
}

.wa-card:nth-child(2) {
    z-index: 2;
    transition-delay: 0.07s;
}

.wa-card:nth-child(3) {
    z-index: 3;
    transition-delay: 0.14s;
}

.wa-card:nth-child(4) {
    z-index: 4;
    transition-delay: 0.21s;
}

/* Fan out horizontally and slightly modify scale for depth */
.wa-cards.wa-active .wa-card:nth-child(1) {
    /* far left */
    transform: translate(-90%, -46%) scale(0.85);
    z-index: 1;
}

.wa-cards.wa-active .wa-card:nth-child(2) {
    /* mid left */
    transform: translate(-45%, -48%) scale(0.95);
    z-index: 2;
}

.wa-cards.wa-active .wa-card:nth-child(3) {
    /* mid right */
    transform: translate(5%, -48%) scale(0.95);
    z-index: 3;
}

.wa-cards.wa-active .wa-card:nth-child(4) {
    /* far right */
    transform: translate(50%, -46%) scale(0.85);
    z-index: 4;
}

.wa-card img {
    /* Image fully covers the portrait-shaped card */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .wa-card {
        transition: none;
    }
}

/* Responsive Horizontal Fan for Mobile */
@media (max-width: 900px) {
    .wa-cards {
        width: 100%;
        margin: 0 auto;
    }

    .wa-card {
        width: 160px;
        /* Smaller width for horizontal mobile spread */
    }

    .wa-cards.wa-active .wa-card:nth-child(1) {
        transform: translate(-100%, -46%) scale(0.85);
    }

    .wa-cards.wa-active .wa-card:nth-child(2) {
        transform: translate(-50%, -48%) scale(0.95);
    }

    .wa-cards.wa-active .wa-card:nth-child(3) {
        transform: translate(0%, -48%) scale(0.95);
    }

    .wa-cards.wa-active .wa-card:nth-child(4) {
        transform: translate(50%, -46%) scale(0.85);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .wa-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: var(--sp-8);
    }

    .wa-container {
        padding: var(--sp-6) var(--sp-4) 0;
        border-radius: 20px;
    }

    .wa-top {
        flex-direction: column;
        gap: var(--sp-4);
    }

    .wa-cards-wrap {
        height: 240px;
        /* Give vertical stack more breathing room */
    }
}

/* ─── MEGAFORM SHOWCASE (Airtable-style TextMediaCard) ─── */
.tm-section {
    background: var(--c-bg);
    overflow: hidden;
}

.tm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-16);
    align-items: center;
}

/* Mobile responsive single-column layout for showcase text/media */
@media (max-width: 900px) {
    .tm-grid {
        display: flex;
        flex-direction: column-reverse;
        gap: var(--sp-12);
    }
}

.tm-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-6);
}

.tm-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8f9fa;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* Mock API Dashboard Background */
/* ─── NEW: 3D Scene Wrapper & Background Orbs ─── */
.dashboard-3d-scene {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1200px;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    z-index: -1;
    animation: orb-float 12s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 82, 204, 0.4);
    top: -50px;
    left: -100px;
}

.bg-orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(54, 179, 126, 0.3);
    bottom: -100px;
    right: -50px;
    animation-delay: -6s;
}

@keyframes orb-float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.2);
    }
}

.mock-dashboard {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    /* 3D Origin State */
    transform: rotateX(15deg) rotateY(-10deg) translateZ(-100px) translateY(50px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.dashboard-3d-scene.is-active .mock-dashboard {
    transform: rotateX(0) rotateY(0) translateZ(0) translateY(0);
    opacity: 1;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile: Flatten the 3D space to maximize screen usage */
@media (max-width: 750px) {
    .dashboard-3d-scene {
        perspective: none;
        max-width: 100%;
        overflow-x: hidden;
    }

    .mock-dashboard {
        transform: translateY(40px);
    }

    .dashboard-3d-scene.is-active .mock-dashboard {
        transform: translateY(0);
    }
}

.dash-header {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 16px;
    border-bottom: 1px solid #eaeaea;
    gap: 20px;
}

.dash-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #111;
}

.dash-logo svg {
    color: #0052cc;
}

.dash-tabs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.dash-tabs span.active {
    color: #0052cc;
    font-weight: 600;
    box-shadow: 0 2px 0 #0052cc;
}

.dash-toolbar {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 10px;
    background: #fff;
    border-bottom: 1px solid #eaeaea;
}

/* Mobile responsive dashboard header & toolbar */
@media (max-width: 750px) {
    .dash-header {
        padding: 8px 10px;
        gap: 12px;
    }

    .dash-logo {
        font-size: 13px;
        gap: 6px;
    }

    .dash-tabs {
        gap: 10px;
        font-size: 12px;
    }

    .dash-toolbar {
        padding: 8px 10px;
        gap: 6px;
    }
}

.dash-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
    background: #f4f5f7;
    border: 1px solid #dfe1e6;
    border-radius: 4px;
    cursor: default;
}

.dash-btn.primary {
    background: #0052cc;
    color: #fff;
    border-color: #0052cc;
}

.dash-btn.danger {
    background: #de350b;
    color: #fff;
    border-color: #de350b;
}

.dash-search {
    margin-left: auto;
    font-size: 12px;
    color: #a5adba;
    padding: 6px 12px;
    border: 1px solid #dfe1e6;
    border-radius: 4px;
    width: 100%;
    max-width: 150px;
}

.dash-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #333;
    overflow-y: hidden;
    position: relative;
}

.dt-row {
    display: grid;
    grid-template-columns: 2fr 1fr 3fr 1fr 1.5fr;
    padding: 10px 16px;
    border-bottom: 1px solid #f4f5f7;
    align-items: center;
    gap: 10px;
}

/* Mobile responsive dashboard rows */
@media (max-width: 750px) {
    .dt-row {
        /* Drop Method, Payout, and shrink Endpoint */
        grid-template-columns: 2fr 3fr 1.5fr;
        padding: 12px 10px;
        gap: 6px;
        font-size: 11px;
    }

    .dt-row>*:nth-child(2),
    /* Method */
    .dt-row>*:nth-child(4)

    /* Payout */
        {
        display: none;
    }
}

.dt-row.dt-header {
    font-weight: 600;
    color: #6b778c;
    background: #fafbfc;
    font-size: 11px;
}

.dt-row:not(.dt-header) {
    background: #fff;
    /* Staggered Row Reveal State */
    transform: translateX(30px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-3d-scene.is-active .dt-row:not(.dt-header) {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger row delays */
.dashboard-3d-scene.is-active .dt-row:nth-child(2) {
    transition-delay: 0.1s;
}

.dashboard-3d-scene.is-active .dt-row:nth-child(3) {
    transition-delay: 0.2s;
}

.dashboard-3d-scene.is-active .dt-row:nth-child(4) {
    transition-delay: 0.3s;
}

.dashboard-3d-scene.is-active .dt-row:nth-child(5) {
    transition-delay: 0.4s;
}

.dashboard-3d-scene.is-active .dt-row:nth-child(6) {
    transition-delay: 0.5s;
}

.dt-row.active-row {
    background: #ebecf0;
}

.dt-row.updated-row {
    background: #e3fcef;
    animation: flash-row 1.5s ease;
}

@keyframes flash-row {
    0% {
        background: #36b37e;
    }

    10% {
        background: #36b37e;
    }

    100% {
        background: #e3fcef;
    }
}

.method-post {
    color: #0052cc;
    font-weight: 600;
}

.method-get {
    color: #00875a;
    font-weight: 600;
}

.endpoint {
    color: #5e6c84;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-active {
    color: #00875a;
    font-weight: 500;
}

.status-paused {
    color: #bf2600;
    font-weight: 500;
}


/* Mock Modal Foreground - Deep Z Space Entrance */
.mock-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Start far behind the dashboard */
    transform: translate(-50%, -50%) translateZ(-300px) scale(0.6) rotateX(-20deg);
    width: 480px;
    max-width: 90%;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 0 1000px rgba(9, 30, 66, 0.54), 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Intense Spring bounce */
    z-index: 100;
}

@media (max-width: 750px) {
    .mock-modal {
        width: 340px;
        max-width: 95%;
    }

    .mock-modal .form-row-2 {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mock-modal .modal-header {
        font-size: 14px;
        padding: 12px 16px;
    }

    .mock-modal .modal-tabs {
        font-size: 11px;
        padding: 0 10px;
        gap: 12px;
    }

    .mock-modal .modal-body {
        padding: 14px 16px;
    }
}

.mock-modal.is-open {
    /* Pop to front */
    transform: translate(-50%, -50%) translateZ(50px) scale(1) rotateX(0);
    opacity: 1;
    visibility: visible;
}

/* Add a class for the explosive zip out */
.mock-modal.is-zipping {
    transition: all 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19);
    /* Ease in cubic (fast acceleration) */
    transform: translate(-50%, 0%) translateZ(-100px) scale(0.1) rotateX(20deg);
    opacity: 0;
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #ebecf0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: #172b4d;
    background: #fafbfc;
}

.modal-close {
    color: #6b778c;
    font-size: 14px;
}

.modal-tabs {
    padding: 0 24px;
    display: flex;
    gap: 24px;
    border-bottom: 1px solid #ebecf0;
    font-size: 13px;
    color: #5e6c84;
    background: #fff;
}

.modal-tabs span {
    padding: 12px 0;
    cursor: default;
}

.modal-tabs span.active {
    color: #0052cc;
    font-weight: 500;
    box-shadow: 0 -2px 0 #0052cc inset;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 750px) {
    .mock-modal {
        width: 95%;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.mt-3 {
    margin-top: 16px;
}

.mt-4 {
    margin-top: 24px;
}

.mock-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-field label {
    font-size: 12px;
    font-weight: 600;
    color: #6b778c;
}

.mock-input,
.mock-select {
    height: 36px;
    border: 2px solid #dfe1e6;
    border-radius: 4px;
    background: #fafbfc;
    padding: 0 12px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #172b4d;
    transition: border-color 0.2s, background 0.2s;
    white-space: pre;
    overflow: hidden;
}

.mock-input.read-only {
    background: #ebecf0;
    color: #5e6c84;
}

.mock-input.code-font {
    font-family: monospace;
    font-size: 12px;
}

.mock-input.focus {
    border-color: #4c9aff;
    background: #fff;
}

/* Scanning Laser Effect on active input */
.mock-input.focus::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(76, 154, 255, 0.4), transparent);
    animation: scan-laser 1.2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes scan-laser {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* Make inputs position relative so the pseudo-element laser is clipped correctly */
.mock-input {
    position: relative;
    overflow: hidden;
}

.state-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    font-size: 12px;
    color: #172b4d;
}

.state-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    white-space: nowrap;
}

/* Checkbox animation hack */
.state-grid input[type="checkbox"] {
    accent-color: #0052cc;
    pointer-events: none;
}

/* Cursor blinking */
.mock-cursor {
    display: inline-block;
    width: 2px;
    height: 16px;
    background: #0052cc;
    vertical-align: middle;
    margin-left: 1px;
    animation: blink 1s step-end infinite;
    opacity: 0;
}

.mock-input.focus .mock-cursor {
    opacity: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #ebecf0;
    display: flex;
    justify-content: flex-end;
    background: #fff;
}

.mock-btn {
    height: 32px;
    padding: 0 16px;
    background: #0052cc;
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
}

.mock-btn.clicking {
    background: #0747a6;
    transform: scale(0.98);
}

.mock-btn.loading {
    color: transparent;
    position: relative;
    pointer-events: none;
}

.mock-btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.mock-btn.saved-glow {
    background: #00875a;
    box-shadow: 0 0 0 4px rgba(0, 135, 90, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 900px) {
    .tm-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── SECTION: STATS STRIP ─── */
.stats-strip {
    background-color: var(--c-bg-alt);
    /* slightly inset background */
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
    padding: var(--sp-8) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    text-align: center;
}

@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-8);
    }
}

@media (max-width: 500px) {
    .stats-grid {
        /* Optional: Change to 1fr for 1 column, but 2fr works well for short stats */
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-6) var(--sp-2);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
}

.stat-icon {
    color: var(--c-accent);
    margin-bottom: var(--sp-2);
}

.stat-icon svg {
    width: 32px;
    height: 32px;
    opacity: 0.8;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 500;
    color: var(--c-text);
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    color: var(--c-text-mut);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* ─── SECTION: PROCESS ─── */

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--c-rule);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-top: var(--sp-6);
}

@media (max-width: 900px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-steps {
        grid-template-columns: 1fr;
    }
}

.process-step {
    background: var(--c-surface);
    padding: var(--sp-5) var(--sp-4);
    transition: background var(--dur-base);
}

.process-step:hover {
    background: var(--c-bg);
}

.ps-num {
    font-family: var(--font-serif);
    font-size: var(--t-3xl);
    line-height: 1;
    color: var(--c-rule);
    display: block;
    margin-bottom: var(--sp-4);
    transition: color var(--dur-base);
}

.process-step:hover .ps-num {
    color: var(--c-accent);
}

.ps-body h3 {
    font-size: var(--t-xl);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    margin-bottom: 8px;
}

.ps-body p {
    font-size: var(--t-sm);
    color: var(--c-ink-muted);
    line-height: 1.65;
}

/* ─── STATS STRIP ─── */
.stats-strip {
    background: var(--c-surface);
    border-top: 1px solid var(--c-rule);
    border-bottom: 1px solid var(--c-rule);
    padding: var(--sp-8) 0;
}

.stats-strip__inner {
    width: 90%;
    max-width: var(--col-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--c-rule);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-md);
    overflow: hidden;
}

.stat-item {
    background: var(--c-surface);
    padding: var(--sp-5) var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    color: var(--c-ink);
    line-height: 1;
}

.stat-sym {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--c-accent);
    align-self: flex-end;
    line-height: 1.3;
}

.stat-label {
    font-size: var(--t-sm);
    color: var(--c-ink-muted);
    margin-top: 6px;
}

/* ─── ABOUT ─── */
.about-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--sp-10);
    align-items: start;
}

.about-right p {
    font-size: var(--t-lg);
    color: var(--c-ink-mid);
    line-height: 1.8;
    margin-bottom: var(--sp-3);
}

.about-right p:last-child {
    margin-bottom: 0;
    color: var(--c-ink-muted);
    font-size: var(--t-base);
}

/* ─── TESTIMONIALS ─── */
.testi-container {
    padding-left: var(--sp-4);
}

@media (min-width: 900px) {
    .testi-container {
        padding-left: max(5vw, calc((100vw - var(--col-max)) / 2));
    }
}

.testi-carousel {
    margin-top: var(--sp-6);
    width: 100%;
    overflow-x: auto;
    /* Hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    padding-bottom: var(--sp-6);
    /* Snapping */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 max(5vw, calc((100vw - var(--col-max)) / 2));
}

.testi-carousel::-webkit-scrollbar {
    display: none;
}

.testi-carousel:active {
    cursor: grabbing;
}

.testi-track {
    display: flex;
    gap: var(--sp-4);
    padding-right: var(--sp-10);
    /* Room at the end */
    width: max-content;
}

.testi-card {
    background: var(--c-surface);
    border: 1px solid var(--c-rule);
    border-radius: var(--r-xl);
    padding: var(--sp-6) var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    user-select: none;
    /* Prevent text selection while dragging */
}

@media (max-width: 500px) {
    .testi-card {
        width: 85vw;
    }
}

.testi-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    border-color: #cac9c6;
    transform: translateY(-4px);
}

.testi-card p {
    font-size: var(--t-md);
    color: var(--c-ink-mid);
    line-height: 1.6;
    flex: 1;
}

.testi-card::before {
    content: '\201C';
    font-family: var(--font-serif);
    font-size: 3.5rem;
    color: var(--c-rule);
    line-height: 0.5;
    display: block;
    margin-bottom: var(--sp-2);
}

.testi-card footer {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--c-rule-light);
}

.testi-card footer strong {
    display: block;
    font-size: var(--t-base);
    font-weight: 600;
    color: var(--c-ink);
    margin-bottom: 2px;
}

.testi-card footer span {
    font-size: var(--t-sm);
    color: var(--c-ink-subtle);
}

/* ─── CONTACT / FORM ─── */
.section-contact {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--sp-10);
    align-items: center;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-left {
    padding-right: var(--sp-8);
}

.contact-details {
    margin-top: var(--sp-8);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.contact-link {
    display: inline-block;
    font-size: var(--t-xl);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--dur-base), transform var(--dur-base);
}

.contact-link:hover {
    color: #fff;
    transform: translateX(4px);
}

.contact-meta {
    font-size: var(--t-sm);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    margin-top: var(--sp-2);
}

/* Glass Pane Form Container */
.contact-pane {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: var(--sp-8);
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    isolation: isolate;
    /* Create new stacking context */
    overflow: hidden;
}

@media (max-width: 600px) {
    .contact-pane {
        padding: var(--sp-6) var(--sp-5);
    }
}

/* Dynamic Glow Tracker */
.glow-tracker {
    position: absolute;
    top: var(--gt, 0px);
    left: var(--gl, 0px);
    width: var(--gw, 0px);
    height: var(--gh, 0px);
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    opacity: var(--go, 0);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    /* Behind inputs */
    transform: translate(-50%, -50%);
    /* Make the glow much larger than the input itself */
    padding: 100px;
    box-sizing: content-box;
    border-radius: 50%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    position: relative;
    z-index: 10;
}

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

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--sp-5);
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-group label {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--dur-base);
}

/* Focus state for label handled by JS `.is-focused` class on group */
.form-group.is-focused label {
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--r-md);
    color: #fff;
    font-size: var(--t-base);
    padding: 14px 16px;
    transition: border-color var(--dur-base), background var(--dur-base), box-shadow var(--dur-base);
    width: 100%;
    /* Keep inputs above the glow tracker */
    position: relative;
    z-index: 2;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group select {
    appearance: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    /* Custom arrow */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='rgba(255,255,255,0.9)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-group select option {
    background: #111;
    color: #fff;
}

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

/* Dynamic Submit Button */
.submit-btn-dynamic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: var(--c-ink);
    margin-top: var(--sp-2);
    position: relative;
    overflow: hidden;
    height: 56px;
}

.submit-btn-dynamic:hover {
    background: #f0f0f0;
}

.btn-arrow {
    transition: transform var(--dur-base);
}

.submit-btn-dynamic:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--c-ink);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--dur-base);
}

.submit-btn-dynamic.is-loading .btn-text,
.submit-btn-dynamic.is-loading .btn-arrow {
    opacity: 0;
    transform: translateY(-10px);
}

.submit-btn-dynamic.is-loading .btn-loader {
    opacity: 1;
    transform: scale(1);
    animation: spin 0.8s linear infinite;
}

.form-error-text {
    color: #ef4444;
    font-size: var(--t-sm);
    text-align: center;
    min-height: 20px;
    opacity: 0;
    transition: opacity var(--dur-base);
}

.form-error-text.is-visible {
    opacity: 1;
}

/* Form Success Overlay */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    text-align: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 24px;
}

.form-success-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e;
}

.success-icon svg {
    width: 32px;
    height: 32px;
}

/* Success Checkmark Draw Animation */
.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.form-success-overlay.is-visible .check-path {
    animation: draw-check 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards 0.3s;
}

@keyframes draw-check {
    to {
        stroke-dashoffset: 0;
    }
}

.form-success-overlay h3 {
    font-size: var(--t-2xl);
    font-weight: 600;
    color: #fff;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.form-success-overlay p {
    font-size: var(--t-base);
    color: rgba(255, 255, 255, 0.6);
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.form-success-overlay.is-visible h3,
.form-success-overlay.is-visible p {
    transform: translateY(0);
    opacity: 1;
}

/* ─── MEGA FOOTER ─── */
.site-footer {
    background: #080808;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-top {
    padding: var(--sp-10) 0 var(--sp-8);
}

.ft-inner {
    width: 90%;
    max-width: var(--col-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
}

@media (max-width: 900px) {
    .ft-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-6);
    }

    .ft-brand {
        grid-column: 1 / -1;
    }
}

.ft-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-logo--footer {
    margin-bottom: var(--sp-4);
}

.ft-brand>p {
    font-size: var(--t-sm);
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.7;
    max-width: 32ch;
    margin-bottom: var(--sp-4);
}

.ft-email {
    font-size: var(--t-md);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--dur-fast);
}

.ft-email:hover {
    color: #fff;
}

.ft-col h5 {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: var(--sp-4);
}

.ft-col a {
    display: block;
    font-size: var(--t-sm);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    transition: color var(--dur-fast), transform var(--dur-fast);
}

.ft-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Mega Logo Typographic Lockup */
.mega-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: hidden;
    padding: var(--sp-6) 0 0 0;
    /* Blend it slightly into the background */
    opacity: 0.9;
}

.mega-logo-text {
    font-family: var(--font-sans);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.75;
    /* Tight line height to pull it up from the bottom */
    font-size: 16vw;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;

    /* Seamless waving light animation */
    background: linear-gradient(to right,
            #141414 0%,
            #141414 40%,
            #ffffff 50%,
            #141414 60%,
            #141414 100%);
    background-size: 200% auto;
    color: #141414;
    /* Fallback */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: megaLogoShine 6s linear infinite;
}

@keyframes megaLogoShine {
    to {
        background-position: -200% center;
    }
}

@media (max-width: 768px) {
    .mega-logo-text {
        font-size: 20vw;
    }
}

.footer-bottom {
    background: #000;
    padding: var(--sp-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    /* Position it above the mega logo slightly */
    position: relative;
    z-index: 10;
}

.fb-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--sp-4);
}

@media (max-width: 600px) {
    .fb-flex {
        flex-direction: column;
        text-align: center;
    }
}

.footer-bottom span {
    font-size: var(--t-xs);
    color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: var(--col-max);
    margin: 0 auto;
    padding: var(--sp-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: var(--t-xs);
    color: rgba(255, 255, 255, 0.2);
}

/* ─── REVEAL ANIMATIONS ─── */
[data-reveal] {
    opacity: 0;
    will-change: opacity, transform;
    transition-timing-function: var(--ease-out-expo);
    transition-property: opacity, transform;
    transition-duration: var(--dur-slow);
}

[data-reveal="fade-up"] {
    transform: translateY(28px);
}

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

[data-reveal="scale-in"] {
    transform: scale(0.97);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* ─── MAGNETIC BUTTON ─── */
.magnetic {
    display: inline-flex;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__sub,
    .hero__img-frame {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__img-frame {
        transform: none;
    }

    .hero__img-frame:hover {
        transform: none;
    }

    .hero__visual {
        display: block;
        margin-top: var(--sp-6);
    }

    .section-split {
        grid-template-columns: 1fr;
    }

    .section-split__left {
        position: relative;
        top: 0;
    }

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

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

    .ft-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--sp-10) 0;
    }

    .hero {
        padding-bottom: var(--sp-8);
    }

    .hero__headline {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .navbar__nav,
    .navbar__cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

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

    .process-steps {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .ft-inner {
        grid-template-columns: 1fr;
    }
}

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
}