/* ═══════════════════════════════════════════════════════════════
   XUNODUS PORTFOLIO — DESIGN SYSTEM V2
   Cinematic dark-luxury aesthetic · Classical sophistication
   meets futuristic AI intelligence · Premium systems brand
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────────────── */
:root {
    /* Color Palette */
    --color-bg: #050816;
    /* Base dark */
    --color-bg-elevated: #0B1220;
    /* Secondary dark */
    --color-bg-card: #0D162A;
    /* Card surface */
    --color-bg-subtle: #080d1a;
    --color-surface: #111827;
    --color-surface-elevated: #151F32;
    --color-surface-inset: rgba(0, 0, 0, 0.4);

    --color-text-primary: #F8FAFC;
    /* Primary Text */
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;

    --color-accent: #38BDF8;
    /* Primary Accent (Cyan) */
    --color-accent-glow: rgba(56, 189, 248, 0.15);
    --color-accent-bright: #7DD3FC;
    --color-accent-dim: #3B82F6;
    /* Secondary Accent (Blue) */

    --color-cyan: #3B82F6;
    --color-cyan-glow: rgba(59, 130, 246, 0.15);

    --color-purple: #8B5CF6;
    --color-purple-glow: rgba(139, 92, 246, 0.15);

    --color-gold: #C0842A;
    /* Luxury micro-accent */

    --color-border: rgba(255, 255, 255, 0.06);
    --color-border-subtle: rgba(255, 255, 255, 0.03);
    --color-border-hover: rgba(255, 255, 255, 0.12);
    --color-border-active: rgba(56, 189, 248, 0.3);
    --color-border-glow: rgba(56, 189, 248, 0.15);

    --color-success: #10B981;
    --color-error: #EF4444;
    --color-white: #ffffff;
    --color-black: #000000;

    /* Typography */
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Type Scale */
    --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.25rem;
    --text-6xl: 4rem;
    --text-hero: clamp(2.5rem, 5.5vw, 5rem);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;
    --space-section: clamp(6rem, 14vh, 11rem);

    /* Layout */
    --container-max: 1280px;
    --container-pad: clamp(1.25rem, 4vw, 3rem);

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 200ms;
    --duration-base: 400ms;
    --duration-slow: 800ms;
    --duration-slower: 1200ms;

    /* Effects */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-glow: 0 0 50px rgba(56, 189, 248, 0.15);
    --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-form: 0 12px 48px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
    direction: ltr !important;
}

body.xunodus-body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    overflow-x: hidden;
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: embed;
}

body.is-loading {
    overflow: hidden;
    height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

::selection {
    background: var(--color-accent);
    color: var(--color-bg);
}

/* ── Container ───────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* ── Typography ──────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

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

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
}

.section-title--large {
    font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
}

.section-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 640px;
    line-height: 1.8;
}

.section-intro--centered {
    margin-left: auto;
    margin-right: auto;
}

.section-header--centered {
    text-align: center;
}

/* ── V2 Design System Utilities ──────────────────────────────── */
.tech-border {
    border: 1px solid var(--color-border-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-panel {
    background: rgba(11, 18, 32, 0.4);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid var(--color-border-subtle);
}

.glow-accent {
    position: relative;
}
.glow-accent::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%);
    opacity: 0.15;
    border-radius: inherit;
    pointer-events: none;
}

.system-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
}
.system-label::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
}

.section-elevated {
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

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

/* ── Section Color Layering ──────────────────────────────────── */
.section-capabilities {
    background: linear-gradient(180deg, #0a0714, #0d0b1e);
}
.section-process {
    background: linear-gradient(180deg, #060d1a, #081022);
}
.section-work {
    background: linear-gradient(180deg, #0d0b1e, #0a0714);
}
.section-philosophy {
    background: linear-gradient(180deg, #081022, #060d1a);
}
.section-why {
    background: linear-gradient(180deg, #0a0714, #0d0b1e);
}
.section-inquiry {
    background: linear-gradient(180deg, #060d1a, #081022);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 1rem 2.25rem;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out-expo);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-dim), var(--color-accent));
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-primary::before {
    background: rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.35), 0 0 30px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-text-primary);
    border-color: rgba(139, 92, 246, 0.25);
    transition: all 250ms var(--ease-in-out);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.btn-subtle {
    background: transparent;
    color: var(--color-text-secondary);
    border-color: rgba(139, 92, 246, 0.15);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    transition: all 250ms var(--ease-in-out);
}

.btn-subtle:hover {
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-ghost:active,
.btn-outline:active,
.btn-subtle:active {
    transform: translateY(0) scale(0.98);
}

.btn-lg {
    padding: 1.25rem 3rem;
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════════ */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
}

html.skip-intro .preloader {
    display: none !important;
}

html.skip-intro body.is-loading {
    overflow: auto !important;
    height: auto !important;
}

.preloader.is-done {
    pointer-events: none;
    animation: preloaderExit 0.9s var(--ease-out-expo) forwards;
}

@keyframes preloaderExit {
    0% {
        opacity: 1;
        clip-path: inset(0);
    }

    100% {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
    }
}

#preloader-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
}

.preloader-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.preloader-logo-text {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--color-text-primary);
    position: relative;
    animation: logoReveal 1.2s var(--ease-out-expo) forwards;
    opacity: 0;
}

@keyframes logoReveal {
    0% {
        opacity: 0;
        letter-spacing: 0.8em;
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        letter-spacing: 0.4em;
        filter: blur(0);
    }
}

.preloader-tagline {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    animation: fadeIn 0.8s var(--ease-out-expo) 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.preloader-bar {
    width: 160px;
    height: 2px;
    background: var(--color-border);
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    animation: fadeIn 0.5s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--color-accent-dim), var(--color-accent));
    border-radius: inherit;
    animation: barFill 1.8s var(--ease-in-out) 0.5s forwards;
}

@keyframes barFill {
    0% {
        width: 0;
    }

    60% {
        width: 75%;
    }

    100% {
        width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--duration-base) var(--ease-out-quart);
    opacity: 0;
    transform: translateY(-20px);
}

.site-header.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-header.is-scrolled {
    padding: var(--space-sm) 0;
    background: rgba(10, 10, 15, 0.88);
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-bottom: 1px solid var(--color-border);
}

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

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

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-primary);
    transition: color var(--duration-fast);
}

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

/* Global Nav Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--duration-base) var(--ease-out-expo);
    transform-origin: center;
}

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

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

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

/* ═══════════════════════════════════════════════════════════════
   SLIDE-OUT NAVIGATION V2
   ═══════════════════════════════════════════════════════════════ */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 22, 0.85);
    /* Matches new base bg */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-base) var(--ease-out-expo);
}

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

.side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: rgba(11, 18, 32, 0.98);
    /* Matches new secondary */
    backdrop-filter: blur(24px) saturate(1.5);
    -webkit-backdrop-filter: blur(24px) saturate(1.5);
    border-right: 1px solid var(--color-border);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform var(--duration-slow) var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.side-nav.is-open {
    transform: translateX(0);
}

.side-nav-inner {
    padding: var(--space-2xl) var(--space-xl);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(15px);
    transition: all var(--duration-slow) var(--ease-out-expo) 0.1s;
}

.side-nav.is-open .side-nav-header {
    opacity: 1;
    transform: translateY(0);
}

.side-nav-brand {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-primary);
}

.side-nav-close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 8px;
    margin-right: -8px;
    transition: color var(--duration-fast), transform var(--duration-slow) var(--ease-out-expo);
}

.side-nav-close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.side-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: auto;
}

.side-nav-link {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--color-text-secondary);
    position: relative;
    display: inline-block;
    transition: color var(--duration-base) var(--ease-out-quart), transform var(--duration-base) var(--ease-out-quart);
    opacity: 0;
    transform: translateX(-20px);
}

.side-nav.is-open .side-nav-list li:nth-child(1) .side-nav-link {
    transition: all 0.8s var(--ease-out-expo) 0.15s;
    opacity: 1;
    transform: translateX(0);
}

.side-nav.is-open .side-nav-list li:nth-child(2) .side-nav-link {
    transition: all 0.8s var(--ease-out-expo) 0.25s;
    opacity: 1;
    transform: translateX(0);
}

.side-nav.is-open .side-nav-list li:nth-child(3) .side-nav-link {
    transition: all 0.8s var(--ease-out-expo) 0.35s;
    opacity: 1;
    transform: translateX(0);
}

.side-nav-link:hover {
    color: var(--color-text-primary);
    transform: translateX(10px) !important;
}

.side-nav-list li:nth-child(1) .side-nav-link::after {
    background: var(--color-cyan);
}

.side-nav-list li:nth-child(2) .side-nav-link::after {
    background: var(--color-accent);
}

.side-nav-list li:nth-child(3) .side-nav-link::after {
    background: var(--color-gold);
    box-shadow: 0 0 10px rgba(192, 132, 42, 0.2);
}

.side-nav-list li:nth-child(4) .side-nav-link::after {
    background: var(--color-cyan);
}

.side-nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--duration-base) var(--ease-out-expo);
}

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

.side-nav-footer {
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    opacity: 0;
    transform: translateY(15px);
    transition: all var(--duration-slow) var(--ease-out-expo) 0.4s;
}

.side-nav.is-open .side-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.side-nav-contact-block {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.side-nav-action-btn {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--color-text-primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--duration-fast), transform var(--duration-fast);
}

.side-nav-action-btn:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.side-nav-direct {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.side-nav-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.side-nav-email,
.side-nav-phone {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.side-nav-email:hover,
.side-nav-phone:hover {
    color: var(--color-accent);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Deep blue-purple indigo base — richer than flat black */
    background: radial-gradient(
        ellipse at 50% 40%,
        #0d0b2a 0%,
        #080618 40%,
        #050816 80%
    );
}

/* ── Background Atmosphere ─────────────────────────────────── */
.hero-media-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.25;
    z-index: 5;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* ── Hero Atmosphere Layer Base ─────────────────────────────── */
.hero-atmos {
    position: absolute;
    pointer-events: none;
}
.hero-atmos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── LAYER A: GLOBAL MAP — Far/Dominant Layer ──────────────── */
/* Full-bleed behind everything. Continents + network lines must be */
/* clearly readable. Opacity increased to make it the hero base.    */
.hero-atmos-map {
    inset: -5%;
    /* slight overflow so edges aren't cut */
    opacity: 0.38;
    mix-blend-mode: color-dodge;
    z-index: 0;
    /* Slow drift: creates subtle living motion */
    animation: mapDrift 20s ease-in-out infinite alternate;
}
.hero-atmos-map img {
    object-fit: cover;
    object-position: center 42%;
    transform: scale(1.08);
    /* slight upscale: ensures continent spread fills viewport */
    filter: brightness(1.15) saturate(1.3);
}

@keyframes mapDrift {
    from { transform: scale(1.08) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1%, 1%); }
}

/* ── LAYER B: NETWORK FLOW — Mid/Motion Layer ──────────────── */
/* Diagonal sweep top-right → bottom-left. Adds directional energy. */
/* Glow filter brightens the glowing nodes and connection lines.     */
.hero-atmos-network {
    top: -15%;
    right: -15%;
    width: 75%;
    height: 105%;
    opacity: 0.30;
    mix-blend-mode: screen;
    /* mild blur for depth illusion — not too soft */
    filter: blur(1.5px) brightness(1.4) drop-shadow(0 0 18px rgba(56, 189, 248, 0.45));
    z-index: 1;
    transform: rotate(-14deg);
    /* diagonal: top-right ↘ bottom-left diagonal sweep */
    -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, black 35%, transparent 80%);
    mask-image: radial-gradient(ellipse 70% 80% at 60% 40%, black 35%, transparent 80%);
    animation: networkPulse 5s ease-in-out infinite alternate;
}
.hero-atmos-network img {
    object-fit: contain;
    object-position: center center;
}

@keyframes networkPulse {
    from {
        opacity: 0.26;
        filter: blur(1.5px) brightness(1.4) drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
    }
    to {
        opacity: 0.36;
        filter: blur(1px) brightness(1.6) drop-shadow(0 0 28px rgba(56, 189, 248, 0.65));
    }
}

/* ── LAYER C: ARCHITECTURE BLOCKS — Near/Structure Layer ───── */
/* Anchored to lower hero (behind CTA zone). Sharper than other    */
/* layers — represents engineered structure. No heavy blur.        */
.hero-atmos-arch {
    bottom: -8%;
    left: 50%;
    transform: translateX(-50%) scale(0.88);
    width: 58%;
    height: 72%;
    opacity: 0.22;
    mix-blend-mode: screen;
    /* Deliberately sharper — engineered precision */
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(99, 102, 241, 0.3));
    z-index: 2;
    /* Fade top edges — keeps bottom blocks solidly visible */
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 25%,
        black 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 25%,
        black 80%,
        transparent 100%
    );
    animation: archSettle 7s ease-in-out infinite alternate;
}
.hero-atmos-arch img {
    object-fit: contain;
    object-position: center bottom;
}

@keyframes archSettle {
    from {
        opacity: 0.19;
        filter: brightness(1.1) drop-shadow(0 0 6px rgba(99, 102, 241, 0.2));
    }
    to {
        opacity: 0.26;
        filter: brightness(1.3) drop-shadow(0 0 16px rgba(99, 102, 241, 0.45));
    }
}

/* ── Hero Overlay: Depth/Color Correction ─────────────────── */
/* IMPORTANT: Overlay must not be so dark it kills the assets.    */
/* Linear gradient bottom is lightened to let architecture show.  */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Indigo accent glow top-left */
        radial-gradient(ellipse at 25% 15%, rgba(67, 56, 202, 0.22) 0%, transparent 50%),
        /* Purple accent glow bottom-right */
        radial-gradient(ellipse at 75% 85%, rgba(139, 92, 246, 0.18) 0%, transparent 50%),
        /* Center indigo depth tone */
        radial-gradient(ellipse at 50% 50%, rgba(49, 46, 129, 0.12) 0%, transparent 60%),
        /* Top fade (navbar area) — gentle, not crushing */
        linear-gradient(180deg,
            rgba(8, 6, 22, 0.42) 0%,
            rgba(6, 5, 16, 0.28) 35%,
            rgba(5, 8, 22, 0.18) 65%,
            rgba(5, 8, 22, 0.62) 100%
        );
    z-index: 3;
    /* Layer C (arch) is z-index 2, overlay at 3, content at 5 */
}

.hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--color-border-hover) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-hover) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.09;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
    mask-image: radial-gradient(ellipse at center, black 15%, transparent 70%);
}

/* ── Breathing Glow Core — Amplified ───────────────────────── */
/* Sits above overlay (z-index 4), below hero content (z-index 5) */
/* Strengthened intensity to push indigo/purple into the scene.   */
.hero-glow-core {
    position: absolute;
    top: 38%;
    left: 50%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
        rgba(99, 102, 241, 0.28) 0%,
        rgba(139, 92, 246, 0.14) 35%,
        rgba(67, 56, 202, 0.06) 60%,
        transparent 75%);
    border-radius: 50%;
    filter: blur(90px);
    z-index: 4;
    pointer-events: none;
    animation: coreBreathe 8s ease-in-out infinite alternate;
}

@keyframes coreBreathe {
    from { opacity: 0.55; transform: translate(-50%, -50%) scale(0.88); }
    to   { opacity: 1.0;  transform: translate(-50%, -50%) scale(1.12); }
}

/* ── Signal Banner ─────────────────────────────────────────── */
.hero-signal-banner {
    position: absolute;
    top: 72px; /* below fixed navbar */
    left: 0;
    right: 0;
    z-index: 10;
    height: 36px;
    overflow: hidden;
    background: linear-gradient(90deg,
        rgba(5, 8, 22, 0.95),
        rgba(11, 18, 32, 0.90),
        rgba(5, 8, 22, 0.95));
    border-bottom: 1px solid rgba(56, 189, 248, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-signal-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(56, 189, 248, 0.06),
        transparent);
    animation: signalSweep 6s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes signalSweep {
    0%   { left: -50%; }
    100% { left: 150%; }
}

.signal-banner-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: signalScroll 30s linear infinite;
    will-change: transform;
}

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

.signal-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.7);
    padding: 0 16px;
}

.signal-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
    animation: dotPulse 2.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.4; box-shadow: 0 0 4px var(--color-accent); }
    50%      { opacity: 1;   box-shadow: 0 0 10px var(--color-accent), 0 0 20px rgba(56, 189, 248, 0.3); }
}

.signal-divider {
    color: rgba(100, 116, 139, 0.3);
    font-size: 0.65rem;
    padding: 0 6px;
}

/* ── Hero Body (text-centered) ─────────────────────────────── */
.hero-content {
    position: relative;
    z-index: 5;
    padding: var(--space-3xl) 0;
    padding-top: calc(var(--space-3xl) + 36px); /* account for signal banner */
}

.hero-body {
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: var(--space-lg);
    padding: 8px 20px;
    border: 1px solid var(--color-border-subtle);
    border-radius: 20px;
    background: rgba(11, 18, 32, 0.5);
    backdrop-filter: blur(12px);
}

.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--color-accent-bright), var(--color-accent), var(--color-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.3));
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL AI DATA LAYER
   ═══════════════════════════════════════════════════════════════ */
.global-data-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
}

main,
section,
footer {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
    color: var(--color-text-secondary);
    max-width: 580px;
    margin: 0 auto var(--space-xl);
    line-height: 1.8;
    opacity: 0.8;
}

.hero-ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.scroll-text {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.scroll-line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, var(--color-accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ═══════════════════════════════════════════════════════════════
   CAPABILITIES SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-capabilities {
    padding: var(--space-section) 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-capabilities .section-header {
    margin-bottom: var(--space-3xl);
}

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

.capability-card {
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--duration-slow) var(--ease-out-expo);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.capability-card:hover {
    border-color: var(--color-border-active);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow), 0 20px 40px rgba(0,0,0,0.4);
}

.capability-icon {
    width: 44px;
    height: 44px;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    transition: all var(--duration-slow) var(--ease-out-expo);
}

.capability-card:hover .capability-icon {
    transform: scale(1.1);
    color: var(--color-gold);
}

.capability-number {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-xs);
}

.capability-title {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
}

.capability-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS / HOW WE WORK SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-process {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--color-bg), var(--color-bg-elevated));
    position: relative;
    overflow: hidden;
}

.section-process::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-accent-glow), transparent 60%);
    pointer-events: none;
    opacity: 0.4;
}

.section-process .section-header {
    margin-bottom: var(--space-3xl);
}

.process-timeline {
    display: flex;
    gap: var(--space-md);
    position: relative;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.process-step-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-lg);
    position: relative;
    width: 100%;
}

.process-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    position: relative;
    z-index: 2;
    transition: all var(--duration-base) var(--ease-out-expo);
}

.process-step:hover .process-step-number {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.process-step-line {
    position: absolute;
    top: 26px;
    left: calc(50% + 30px);
    width: calc(100% - 60px);
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-border));
    opacity: 0.3;
}

.process-step:last-child .process-step-line {
    display: none;
}

.process-step-content {
    padding: 0 var(--space-sm);
}

.process-step-title {
    font-size: var(--text-lg);
    color: var(--color-text-primary);
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.process-step-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   SELECTED SYSTEMS CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.section-work {
    padding: var(--space-section) 0 var(--space-3xl);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    overflow: visible;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.section-work .section-intro {
    margin-bottom: var(--space-2xl);
}

.carousel-nav {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.carousel-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* Carousel Track */
.work-carousel {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    position: relative;
    /* Hide default scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.work-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.work-carousel.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snap while dragging for smooth feel */
}

.work-carousel-track {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-lg);
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    min-width: max-content;
    will-change: transform;
}

/* Slide Cards */
.work-slide {
    flex: 0 0 min(560px, 85vw);
    scroll-snap-align: start;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.work-slide:hover {
    border-color: var(--color-accent);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 20px var(--color-accent-glow);
}

.work-slide-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg-subtle);
}

.work-slide-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 40%, rgba(13, 22, 42, 0.9) 100%),
                radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.5) 100%);
    opacity: 0.8;
    transition: opacity var(--duration-base);
}

.work-slide:hover .work-slide-media::after {
    opacity: 0.4;
}

.work-slide-media canvas {
    width: 100%;
    height: 100%;
}

.work-slide-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.work-slide-body {
    padding: var(--space-lg);
}

.work-card-category {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.work-card-title {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.work-card-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.work-card-metrics {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.work-card-metrics .metric {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.work-card-metrics .metric strong {
    color: var(--color-accent-bright);
    font-weight: 600;
    font-family: var(--font-display);
}

.work-card-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.02em;
    transition: letter-spacing var(--duration-base) var(--ease-out-expo);
}

.work-slide:hover .work-card-link {
    letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════════════════════
   PHILOSOPHY SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-philosophy {
    padding: var(--space-section) 0;
    background: var(--color-bg-elevated);
    position: relative;
}

.philosophy-layout {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: var(--space-3xl);
    align-items: start;
    position: relative;
}

.philosophy-left {
    position: sticky;
    top: 120px;
    padding-right: var(--space-xl);
}

.philosophy-text p {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-weight: 300;
}

.philosophy-text p:first-child {
    font-size: var(--text-2xl);
    line-height: 1.6;
    color: var(--color-white);
}

.philosophy-text p:last-child {
    margin-bottom: 0;
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.philosophy-values {
    margin-top: var(--space-2xl);
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    background: rgba(11, 18, 32, 0.4);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border-subtle);
    transition: all var(--duration-base);
}

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

.value-item:hover {
    transform: translateX(10px);
    border-color: var(--color-accent);
}

.value-number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    min-width: 2rem;
}

.value-text {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   WHY XUNODUS SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-why {
    padding: var(--space-section) 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.section-why .section-header {
    margin-bottom: var(--space-3xl);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.why-item {
    padding: var(--space-xl);
    border-left: 2px solid var(--color-border);
    transition: all var(--duration-base) var(--ease-out-expo);
}

.why-item:hover {
    border-left-color: var(--color-accent);
}

.why-item-title {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.why-item-desc {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   INQUIRY FORM SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-inquiry {
    padding: var(--space-section) 0;
    background: linear-gradient(180deg, var(--color-bg-elevated), var(--color-bg));
    position: relative;
    overflow: hidden;
}

.section-inquiry::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -200px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-accent-glow), transparent 60%);
    pointer-events: none;
    opacity: 0.5;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: 4fr 5fr;
    gap: var(--space-3xl);
    align-items: start;
    position: relative;
}

.inquiry-info {
    position: sticky;
    top: 120px;
}

.inquiry-intro {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

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

.inquiry-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.inquiry-detail-label {
    font-size: var(--text-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.inquiry-detail-value {
    font-size: var(--text-sm);
    color: var(--color-text-primary);
    font-weight: 500;
}

/* Form Styles */
.inquiry-form-wrap {
    background: rgba(11, 18, 32, 0.4);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border: 1px solid var(--color-border-subtle);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(56, 189, 248, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--space-md);
    position: relative;
}

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

.inquiry-form-wrap .form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.form-label .required {
    color: #DC2626;
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: #F8FAFC;
    background: #0F172A;
    border: 1.5px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out-quart), box-shadow var(--duration-fast) var(--ease-out-quart);
    -webkit-appearance: none;
    appearance: none;
}

.form-input, .form-select {
    height: 52px;
}

.form-textarea {
    height: 130px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #64748B;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #38BDF8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
    background: #0B1220;
}

.email-autocomplete-wrapper {
    position: relative;
}

.email-suggestions-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #0B1220;
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 20px rgba(56, 189, 248, 0.04);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    animation: suggestionsSlideIn 0.2s var(--ease-out-expo);
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, 0.2) transparent;
}

.email-suggestions-list::-webkit-scrollbar {
    width: 5px;
}

.email-suggestions-list::-webkit-scrollbar-track {
    background: transparent;
}

.email-suggestions-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.2);
    border-radius: 10px;
}

@keyframes suggestionsSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.email-suggestions-list li {
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    font-size: var(--text-base);
    color: #94A3B8;
    transition: background var(--duration-fast), color var(--duration-fast);
    border-radius: 6px;
    margin: 0 4px;
}

.email-suggestions-list li:hover,
.email-suggestions-list li.is-active {
    background: rgba(56, 189, 248, 0.08);
    color: #38BDF8;
}

.form-input.is-error,
.form-select.is-error,
.form-textarea.is-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25), 0 0 12px rgba(239, 68, 68, 0.08);
    animation: fieldShake 0.4s var(--ease-out-expo);
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

.form-input.is-valid,
.form-select.is-valid {
    border-color: #10B981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2), 0 0 8px rgba(16, 185, 129, 0.06);
}

/* Inline Field Error Messages */
.field-error {
    display: none;
    font-size: 0.85rem;
    color: #F87171;
    font-weight: 500;
    margin-top: 6px;
    padding-left: 2px;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

.field-error.is-active {
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fieldErrorIn 0.3s var(--ease-out-expo) forwards;
}

.field-error.is-active::before {
    content: '⚠';
    font-size: 0.75rem;
    flex-shrink: 0;
}

@keyframes fieldErrorIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* intl-tel-input Overrides — Dark Panel Theme */
.iti {
    width: 100%;
}
.iti__country-list {
    background-color: #0B1220;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    color: #94A3B8;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.iti__country.iti__highlight,
.iti__country:hover {
    background-color: #111827;
    color: #F8FAFC;
}
.iti__divider {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.iti__dial-code,
.iti__country-name {
    color: #94A3B8;
}
.iti__selected-dial-code {
    color: #F8FAFC;
}
.iti__search-input {
    background: #111827;
    color: #F8FAFC;
    border-color: rgba(56,189,248,0.2);
}
.iti__flag-box {
    filter: brightness(0.85);
}

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

.form-select option {
    background: #0B1220;
    color: #F8FAFC;
}

.form-submit {
    margin-top: var(--space-lg);
}

.form-status {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    text-align: center;
    font-weight: 500;
}

.form-status.is-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34D399;
    border-radius: var(--radius-md);
}

.form-status.is-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #F87171;
    border-radius: var(--radius-md);
}

/* Premium Success Panel */
.inquiry-form-wrap {
    position: relative;
    /* Ensure the panel can cover it */
}

.success-panel {
    position: absolute;
    inset: 0;
    background: var(--color-bg-elevated);
    border-radius: 16px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out-expo);
}

.success-panel.is-active {
    opacity: 1;
}

.success-panel-inner {
    transform: translateY(20px);
    transition: transform var(--duration-slow) var(--ease-out-expo) 0.1s;
}

.success-panel.is-active .success-panel-inner {
    transform: translateY(0);
}

.success-panel-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
}

.success-circle {
    transform: rotate(-90deg);
    transform-origin: center;
    transition: stroke-dashoffset 0.8s var(--ease-out-quart) 0.3s;
}

.success-panel.is-active .success-circle {
    stroke-dashoffset: 0;
}

.success-check {
    transition: stroke-dashoffset 0.5s var(--ease-out-quart) 0.8s;
}

.success-panel.is-active .success-check {
    stroke-dashoffset: 0;
}

.success-panel-title {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.success-panel-desc {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.inquiry-form-wrap .form-trust-note {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: var(--space-md);
    text-align: center;
    letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT PAGE
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: var(--space-3xl);
    }
}

.about-body {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

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

.stat-card {
    background: var(--color-bg-elevated);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.stat-label {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
}

.principles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

@media (min-width: 768px) {
    .principles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.principle-card {
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out-expo);
}

.principle-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-border-active);
}

.principle-number {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.principle-title {
    font-size: var(--text-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.principle-desc {
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES PAGE V2
   ═══════════════════════════════════════════════════════════════ */
.section-hero--inner {
    min-height: 60vh;
    padding-top: calc(var(--space-3xl) + 80px);
    padding-bottom: var(--space-3xl);
    align-items: flex-end;
    text-align: left;
}

.section-hero--inner .hero-content {
    text-align: left;
    padding-bottom: 0;
}

.section-hero--inner .hero-subtitle {
    margin: 0 0 var(--space-xl) 0;
}

.hero-overlay--subtle {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.05) 0%, transparent 60%),
        linear-gradient(180deg, transparent 0%, var(--color-bg) 100%);
}

.section-services-list {
    padding: var(--space-xl) 0 var(--space-section);
    position: relative;
    z-index: 2;
}

.services-placeholder-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    max-width: 900px;
}

.service-module {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--duration-base) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.service-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background var(--duration-base);
}

.service-module:hover {
    border-color: var(--color-border-hover);
    transform: translateX(8px);
}

.service-module:hover::before {
    background: var(--color-accent);
}

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

.service-module-number {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
}

.service-module-title {
    font-size: var(--text-2xl);
    color: var(--color-text-primary);
}

.service-module-content p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: var(--space-md);
}

.service-module-footer {
    display: flex;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.service-module-status {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-success);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-module-status::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT / CLOSING CTA SECTION
   ═══════════════════════════════════════════════════════════════ */
.section-contact {
    padding: clamp(5rem, 10vh, 10rem) 0;
    position: relative;
    background: #030308;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.terminal-panel {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-subtle);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.terminal-panel .contact-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-sm);
}

.terminal-panel .contact-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    max-width: 480px;
    margin: 0 auto var(--space-lg);
    line-height: 1.8;
}

.terminal-panel .contact-ctas {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.contact-email-link {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: color var(--duration-fast);
}

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

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.site-footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: #000000;
}

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

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-text-primary);
}

.footer-tagline {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
    letter-spacing: 0.02em;
}

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

.footer-heading {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-col a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: color var(--duration-fast);
}

.footer-col a:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer-credit {
    letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity var(--duration-slow) var(--ease-out-expo),
        transform var(--duration-slow) var(--ease-out-expo);
}

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

/* ── Default page styles ─────────────────────────────────────── */
.page-default {
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-3xl);
}

.entry-title,
.page-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

.entry-content,
.page-content {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 720px;
}

.entry-content p,
.page-content p {
    margin-bottom: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-body {
        max-width: 100%;
        padding: 0 var(--space-sm);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-eyebrow {
        display: inline-block;
    }

    .hero-signal-banner {
        top: 60px;
        height: 32px;
    }

    .signal-item {
        font-size: 0.6rem;
        padding: 0 12px;
    }

    .capabilities-grid {
        display: flex;
        flex-direction: column;
    }
    
    .capability-card {
        width: 100%;
    }

    .process-timeline {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        gap: var(--space-lg);
    }

    .process-step-marker {
        flex-direction: row;
        width: auto;
        margin-bottom: 0;
    }

    .process-step-line {
        position: relative;
        top: auto;
        left: auto;
        width: 1px;
        height: 40px;
        background: linear-gradient(180deg, var(--color-accent), var(--color-border));
        display: none;
    }

    .carousel-nav {
        margin-top: var(--space-md);
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .philosophy-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .inquiry-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

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

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

    .contact-ctas {
        flex-direction: column;
        align-items: center;
    }

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

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

    .work-card-metrics {
        flex-direction: column;
        gap: var(--space-xs);
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .capability-card {
        padding: var(--space-lg);
    }

    .work-slide {
        flex: 0 0 85vw;
    }
}