        @font-face {
            font-family: 'Inter';
            src: url('https://fonts.gstatic.com/s/inter/v18/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2') format('woff2');
            font-weight: 100 900;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --accent: #0d9488;
            --accent-dark: #0b7b74;
            --accent-light: #14b8a8;
            --accent-prismo: #7c3aed;
            --accent-prismo-light: #a78bfa;
            --font-sans: 'Inter', system-ui, sans-serif;
            --font-serif: Georgia, 'Times New Roman', serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
            --nav-h: 4.25rem;
            --radius-sm: 0.5rem;
            --radius-md: 1rem;
            --radius-lg: 1.5rem;
            --radius-xl: 2rem;
            --site-margin: clamp(1.5rem, 4vw, 5rem);
            --container: min(90rem, 100vw - var(--site-margin) * 2);
            --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
            --logo-offset: 0px;
        }

        [data-theme="light"] {
            --bg: #faf9f5;
            --bg-2: #f0eee6;
            --bg-3: #e8e6dc;
            --txt: #141413;
            --txt-2: #5e5d59;
            --txt-3: #b0aea5;
            --border: rgba(20, 20, 19, 0.1);
            --border-2: rgba(20, 20, 19, 0.18);
            --card-bg: #ffffff;
            --nav-glass: rgba(250, 249, 245, 0.72);
            --btn-bg: #141413;
            --btn-txt: #faf9f5;
            --btn-hover: #3d3d3a;
            --footer-bg: #141413;
            --footer-txt: #faf9f5;
            --footer-muted: #87867f;
            --bmo-bg: #141413;
            --bmo-txt: #faf9f5;
            --toggle-bg: #d1cfc5;
            --toggle-dot: #ffffff;
            --modal-veil: rgba(20, 20, 19, 0.55);
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.08);
            --demo-chat-bg: #ffffff;
            --demo-chat-surface: #faf9f5;
            --demo-user-bubble: #0d9488;
            --demo-model-bubble: #f0eee6;
            --demo-model-text: #141413;
            --demo-muted: #87867f;
            --demo-model-label: #0d9488;
            --demo-prismo-label: #7c3aed;
            --demo-border: rgba(20, 20, 19, 0.1);
            --demo-header-bg: #f0eee6;
            --input-bg: #ffffff;
            --input-border: rgba(20, 20, 19, 0.18);
            --input-focus: #0d9488;
            --file-drop-bg: #f0eee6;
            --error-bg: #fde8e8;
            --error-border: #fca5a5;
            --error-text: #991b1b;
            --success-bg: #d1fae5;
            --success-border: #6ee7b7;
            --success-text: #065f46;
        }

        [data-theme="dark"] {
            --bg: #141413;
            --bg-2: #1e1e1c;
            --bg-3: #2a2a28;
            --txt: #faf9f5;
            --txt-2: #b0aea5;
            --txt-3: #87867f;
            --border: rgba(255, 255, 255, 0.08);
            --border-2: rgba(255, 255, 255, 0.15);
            --card-bg: #1e1e1c;
            --nav-glass: rgba(20, 20, 19, 0.75);
            --btn-bg: #faf9f5;
            --btn-txt: #141413;
            --btn-hover: #e8e6dc;
            --footer-bg: #0d0d0c;
            --footer-txt: #faf9f5;
            --footer-muted: #5e5d59;
            --bmo-bg: #0d0d0c;
            --bmo-txt: #faf9f5;
            --toggle-bg: #5e5d59;
            --toggle-dot: #141413;
            --modal-veil: rgba(0, 0, 0, 0.72);
            --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
            --demo-chat-bg: #1e1e1c;
            --demo-chat-surface: #1a1a18;
            --demo-user-bubble: #0d9488;
            --demo-model-bubble: #2a2a28;
            --demo-model-text: #faf9f5;
            --demo-muted: #87867f;
            --demo-model-label: #14b8a8;
            --demo-prismo-label: #a78bfa;
            --demo-border: rgba(255, 255, 255, 0.08);
            --demo-header-bg: #222220;
            --input-bg: #1e1e1c;
            --input-border: rgba(255, 255, 255, 0.15);
            --input-focus: #0d9488;
            --file-drop-bg: #2a2a28;
            --error-bg: #7f1d1d;
            --error-border: #dc2626;
            --error-text: #fde8e8;
            --success-bg: #064e3b;
            --success-border: #059669;
            --success-text: #d1fae5;
        }

        @media (prefers-color-scheme: dark) {
            [data-theme="system"] {
                --bg: #141413;
                --bg-2: #1e1e1c;
                --bg-3: #2a2a28;
                --txt: #faf9f5;
                --txt-2: #b0aea5;
                --txt-3: #87867f;
                --border: rgba(255, 255, 255, 0.08);
                --border-2: rgba(255, 255, 255, 0.15);
                --card-bg: #1e1e1c;
                --nav-glass: rgba(20, 20, 19, 0.75);
                --btn-bg: #faf9f5;
                --btn-txt: #141413;
                --btn-hover: #e8e6dc;
                --footer-bg: #0d0d0c;
                --footer-txt: #faf9f5;
                --footer-muted: #5e5d59;
                --bmo-bg: #0d0d0c;
                --bmo-txt: #faf9f5;
                --toggle-bg: #5e5d59;
                --toggle-dot: #141413;
                --modal-veil: rgba(0, 0, 0, 0.72);
                --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
                --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.5);
                --demo-chat-bg: #1e1e1c;
                --demo-chat-surface: #1a1a18;
                --demo-user-bubble: #0d9488;
                --demo-model-bubble: #2a2a28;
                --demo-model-text: #faf9f5;
                --demo-muted: #87867f;
                --demo-model-label: #14b8a8;
                --demo-prismo-label: #a78bfa;
                --demo-border: rgba(255, 255, 255, 0.08);
                --demo-header-bg: #222220;
                --input-bg: #1e1e1c;
                --input-border: rgba(255, 255, 255, 0.15);
                --input-focus: #0d9488;
                --file-drop-bg: #2a2a28;
                --error-bg: #7f1d1d;
                --error-border: #dc2626;
                --error-text: #fde8e8;
                --success-bg: #064e3b;
                --success-border: #059669;
                --success-text: #d1fae5;
            }
        }

        @media (prefers-color-scheme: light) {
            [data-theme="system"] {
                --bg: #faf9f5;
                --bg-2: #f0eee6;
                --bg-3: #e8e6dc;
                --txt: #141413;
                --txt-2: #5e5d59;
                --txt-3: #b0aea5;
                --border: rgba(20, 20, 19, 0.1);
                --border-2: rgba(20, 20, 19, 0.18);
                --card-bg: #ffffff;
                --nav-glass: rgba(250, 249, 245, 0.72);
                --btn-bg: #141413;
                --btn-txt: #faf9f5;
                --btn-hover: #3d3d3a;
                --footer-bg: #141413;
                --footer-txt: #faf9f5;
                --footer-muted: #87867f;
                --bmo-bg: #141413;
                --bmo-txt: #faf9f5;
                --toggle-bg: #d1cfc5;
                --toggle-dot: #ffffff;
                --modal-veil: rgba(20, 20, 19, 0.55);
                --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.05);
                --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.14), 0 8px 16px rgba(0, 0, 0, 0.08);
                --demo-chat-bg: #ffffff;
                --demo-chat-surface: #faf9f5;
                --demo-user-bubble: #0d9488;
                --demo-model-bubble: #f0eee6;
                --demo-model-text: #141413;
                --demo-muted: #87867f;
                --demo-model-label: #0d9488;
                --demo-prismo-label: #7c3aed;
                --demo-border: rgba(20, 20, 19, 0.1);
                --demo-header-bg: #f0eee6;
                --input-bg: #ffffff;
                --input-border: rgba(20, 20, 19, 0.18);
                --input-focus: #0d9488;
                --file-drop-bg: #f0eee6;
                --error-bg: #fde8e8;
                --error-border: #fca5a5;
                --error-text: #991b1b;
                --success-bg: #d1fae5;
                --success-border: #6ee7b7;
                --success-text: #065f46;
            }
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        html {
            background: var(--bg);
            scroll-behavior: smooth;
            -webkit-text-size-adjust: 100%;
        }
        body {
            background: var(--bg);
            color: var(--txt);
            font-family: var(--font-sans);
            font-size: 1.0625rem;
            line-height: 1.6;
            font-weight: 400;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color 0.3s, color 0.3s;
            min-height: 100dvh;
            overflow-x: hidden;
        }
        @media (prefers-reduced-motion: reduce) {
            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
                scroll-behavior: auto !important;
            }
        }
        a {
            color: inherit;
            text-decoration: none;
        }
        img {
            max-width: 100%;
            display: block;
            vertical-align: middle;
        }
        ul,
        ol {
            list-style: none;
        }
        button {
            font: inherit;
            color: inherit;
            cursor: pointer;
            background: none;
            border: none;
        }
        :focus-visible {
            outline: 2px solid var(--accent);
            outline-offset: 3px;
            border-radius: 3px;
        }

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

        .loading {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: rgba(20, 20, 19, 0.3);
            backdrop-filter: blur(24px) saturate(1.3);
            -webkit-backdrop-filter: blur(24px) saturate(1.3);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.45s var(--ease-smooth), visibility 0s linear 0.45s;
        }
        .loading.hidden {
            opacity: 0;
            visibility: hidden;
        }
        .loading-spinner {
            width: 40px;
            height: 40px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.75s linear infinite;
        }
        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        /* ── INLINE DEMO CHAT SECTION ─────────────────── */
        .demo-section {
            margin: clamp(1.5rem, 3vw, 3rem) auto;
            max-width: var(--container);
            border-radius: var(--radius-xl);
            overflow: hidden;
            background: var(--bmo-bg);
            color: var(--bmo-txt);
            padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
            position: relative;
            direction: ltr;
        }
        .demo-section-inner {
            display: flex;
            align-items: stretch;
            gap: clamp(2rem, 4vw, 3.5rem);
            flex-wrap: wrap;
        }
        .demo-section-info {
            flex: 1;
            min-width: 240px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        .demo-section-label {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-light);
            margin-bottom: 0.75rem;
        }
        .demo-section-info h2 {
            font-family: var(--font-serif);
            font-size: clamp(2rem, 4vw, 3.5rem);
            font-weight: 400;
            line-height: 1.06;
            letter-spacing: -0.01em;
            margin-bottom: 0.5rem;
            color: #fff;
        }
        .demo-section-info p {
            color: rgba(255, 255, 255, 0.6);
            font-size: clamp(0.9rem, 1.4vw, 1.05rem);
            line-height: 1.6;
            max-width: 34ch;
        }
        .demo-chat-wrap {
            flex: 1;
            min-width: 300px;
            max-width: 480px;
            background: var(--demo-chat-bg);
            border-radius: var(--radius-lg);
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
            display: flex;
            flex-direction: column;
            overflow: hidden;
            height: 420px;
            border: 1px solid var(--demo-border);
        }
        .demo-chat-header {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.7rem 1rem;
            background: var(--demo-header-bg);
            border-bottom: 1px solid var(--demo-border);
            flex-shrink: 0;
        }
        .demo-chat-header-dot {
            width: 9px;
            height: 9px;
            border-radius: 50%;
            background: #34d399;
            box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
            animation: dotPulse 2s ease-in-out infinite;
        }
        @keyframes dotPulse {
            0%,
            100% {
                box-shadow: 0 0 6px rgba(52, 211, 153, 0.5);
            }
            50% {
                box-shadow: 0 0 14px rgba(52, 211, 153, 0.8);
            }
        }
        .demo-chat-header-label {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--demo-muted);
            letter-spacing: 0.03em;
        }
        .demo-chat-body {
            flex: 1;
            overflow-y: auto;
            padding: 1rem 0.875rem;
            display: flex;
            flex-direction: column;
            gap: 0.55rem;
            min-height: 180px;
            scroll-behavior: smooth;
            background: var(--demo-chat-surface);
        }
        .demo-chat-body::-webkit-scrollbar {
            width: 4px;
        }
        .demo-chat-body::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.12);
            border-radius: 4px;
        }
        .chat-msg {
            max-width: 82%;
            padding: 0.6rem 0.85rem;
            border-radius: 1rem;
            font-size: 0.8rem;
            line-height: 1.5;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo);
            word-break: break-word;
            position: relative;
        }
        .chat-msg.visible {
            opacity: 1;
            transform: translateY(0);
        }
        .chat-msg.user {
            align-self: flex-end;
            background: var(--demo-user-bubble);
            color: #fff;
            border-bottom-right-radius: 0.25rem;
            margin-left: auto;
        }
        .chat-msg.bmo {
            align-self: flex-start;
            background: var(--demo-model-bubble);
            color: var(--demo-model-text);
            border-bottom-left-radius: 0.25rem;
        }
        .chat-msg.pb {
            align-self: flex-start;
            background: var(--demo-model-bubble);
            color: var(--demo-model-text);
            border-bottom-left-radius: 0.25rem;
        }
        .chat-msg.prismo {
            align-self: flex-start;
            background: var(--demo-model-bubble);
            color: var(--demo-model-text);
            border-bottom-left-radius: 0.25rem;
        }
        .chat-msg-model {
            font-size: 0.6rem;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            margin-bottom: 0.15rem;
            color: var(--demo-model-label);
        }
        .chat-msg.prismo .chat-msg-model {
            color: var(--demo-prismo-label);
        }
        .chat-typing {
            align-self: flex-start;
            display: flex;
            gap: 3px;
            padding: 0.6rem 0.85rem;
            opacity: 0;
            transition: opacity 0.25s;
        }
        .chat-typing.visible {
            opacity: 1;
        }
        .chat-typing span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--demo-muted);
            animation: typeBounce 1.2s ease-in-out infinite;
        }
        .chat-typing span:nth-child(2) {
            animation-delay: 0.15s;
        }
        .chat-typing span:nth-child(3) {
            animation-delay: 0.3s;
        }
        @keyframes typeBounce {
            0%,
            60%,
            100% {
                transform: translateY(0);
            }
            30% {
                transform: translateY(-5px);
            }
        }
        .demo-chat-footer {
            padding: 0.6rem 1rem;
            border-top: 1px solid var(--demo-border);
            background: var(--demo-header-bg);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .demo-chat-footer-indicator {
            font-size: 0.7rem;
            color: var(--demo-muted);
            font-weight: 500;
            letter-spacing: 0.03em;
        }
        .demo-chat-footer-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #34d399;
            animation: dotPulse 2s ease-in-out infinite;
        }

        /* ── NAVIGATION ─────────────────────────────────── */
        .nav {
            position: sticky;
            top: 0;
            z-index: 100;
            height: var(--nav-h);
            background: transparent;
            border-bottom: 1px solid transparent;
            transition: background 0.4s var(--ease-smooth), backdrop-filter 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
        }
        .nav.scrolled {
            background: var(--nav-glass);
            backdrop-filter: blur(20px) saturate(1.2);
            -webkit-backdrop-filter: blur(20px) saturate(1.2);
            border-bottom-color: var(--border);
        }
        .nav-inner {
            display: flex;
            align-items: center;
            height: 100%;
            justify-content: space-between;
            max-width: var(--container);
            margin: 0 auto;
            padding: 0 1.5rem;
            position: relative;
        }
        .nav-logo {
            font-family: var(--font-sans);
            font-weight: 700;
            font-size: clamp(1.05rem, 2.2vw, 1.375rem);
            letter-spacing: -0.025em;
            color: var(--txt);
            z-index: 2;
            will-change: transform;
            transition: transform 0.8s var(--ease-out-expo);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
        }
        .nav-logo-img {
            height: 1.5em;
            width: auto;
            display: block;
            flex-shrink: 0;
        }
        .nav.minimal .nav-logo {
            transform: translateX(var(--logo-offset));
        }
        .nav.minimal .nav-links,
        .nav.minimal .nav-actions {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.25s, visibility 0s linear 0.25s;
        }
        .nav.returning .nav-links,
        .nav.returning .nav-actions {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: none;
        }
        .nav-links {
            display: flex;
            align-items: center;
            gap: clamp(0.5rem, 1.2vw, 1.5rem);
            font-size: clamp(0.75rem, 1.3vw, 0.9rem);
            transition: opacity 0.35s, visibility 0s;
            flex-wrap: wrap;
        }
        .nav-links a {
            padding: 0.3rem 0;
            color: var(--txt-2);
            cursor: pointer;
            transition: color 0.2s;
            white-space: nowrap;
            font-weight: 500;
        }
        .nav-links a:hover {
            color: var(--txt);
        }
        .nav-links a.nav-link-prismo {
            color: var(--accent-prismo-light);
        }
        .nav-links a.nav-link-prismo:hover {
            color: var(--accent-prismo);
        }
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: opacity 0.35s, visibility 0s;
        }
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 110;
            border-radius: var(--radius-sm);
        }
        .hamburger span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--txt);
            border-radius: 2px;
            transition: all 0.3s var(--ease-smooth);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.4rem;
            padding: 0.5rem 1.25rem;
            border-radius: var(--radius-sm);
            font-family: var(--font-sans);
            font-weight: 600;
            font-size: 0.875rem;
            line-height: 1;
            white-space: nowrap;
            cursor: pointer;
            border: 1px solid transparent;
            transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.12s;
        }
        .btn:active {
            transform: scale(0.97);
        }
        .btn-primary {
            background: var(--btn-bg);
            color: var(--btn-txt);
            border-color: var(--btn-bg);
        }
        .btn-primary:hover {
            background: var(--btn-hover);
            border-color: var(--btn-hover);
        }
        .btn-accent {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }
        .btn-accent:hover {
            background: var(--accent-dark);
            border-color: var(--accent-dark);
        }
        .btn-prismo {
            background: var(--accent-prismo);
            color: #fff;
            border-color: var(--accent-prismo);
        }
        .btn-prismo:hover {
            background: #6d28d9;
            border-color: #6d28d9;
        }
        .btn-outline {
            background: transparent;
            border-color: var(--txt);
            color: var(--txt);
        }
        .btn-outline:hover {
            background: var(--btn-bg);
            color: var(--btn-txt);
            border-color: var(--btn-bg);
        }
        .btn-ghost {
            background: transparent;
            border-color: rgba(255, 255, 255, 0.35);
            color: #fff;
        }
        .btn-ghost:hover {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.6);
        }

        .toggle-wrap {
            position: relative;
            display: inline-block;
            width: 34px;
            height: 18px;
            flex-shrink: 0;
        }
        .toggle-wrap input {
            opacity: 0;
            width: 0;
            height: 0;
            position: absolute;
        }
        .toggle-track {
            position: absolute;
            inset: 0;
            background: var(--toggle-bg);
            border-radius: 18px;
            cursor: pointer;
            transition: background 0.25s;
        }
        .toggle-track::before {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            left: 3px;
            top: 3px;
            background: var(--toggle-dot);
            border-radius: 50%;
            transition: transform 0.25s var(--ease-smooth);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
        }
        .toggle-wrap input:checked+.toggle-track {
            background: var(--accent);
        }
        .toggle-wrap input:checked+.toggle-track::before {
            transform: translateX(16px);
        }

        .lang-select {
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 500;
            padding: 0.28rem 1.7rem 0.28rem 0.6rem;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-2);
            background: var(--bg-2);
            color: var(--txt);
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2387867f'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.5rem center;
            transition: border-color 0.2s;
        }
        .lang-select:focus {
            border-color: var(--accent);
        }
        [dir="rtl"] .lang-select {
            background-position: left 0.5rem center;
            padding: 0.28rem 0.6rem 0.28rem 1.7rem;
        }

        .mobile-menu {
            position: fixed;
            inset: 0;
            background: var(--bg);
            z-index: 105;
            display: flex;
            flex-direction: column;
            padding: 2rem 1.5rem;
            transform: translateX(100%);
            transition: transform 0.38s var(--ease-smooth);
        }
        [dir="rtl"] .mobile-menu {
            transform: translateX(-100%);
        }
        .mobile-menu.open {
            transform: translateX(0);
        }
        .mobile-close {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--txt);
            cursor: pointer;
            border-radius: var(--radius-sm);
        }
        [dir="rtl"] .mobile-close {
            right: auto;
            left: 1.25rem;
        }
        .mobile-nav {
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex: 1;
            gap: 1.5rem;
            font-size: 1.5rem;
            font-weight: 600;
            letter-spacing: -0.02em;
        }
        .mobile-nav a {
            opacity: 0;
            transform: translateY(16px);
            transition: opacity 0.3s var(--ease-out-expo), transform 0.3s var(--ease-out-expo), color 0.2s;
            cursor: pointer;
            color: var(--txt);
        }
        .mobile-nav a:hover {
            color: var(--txt-2);
        }
        .mobile-nav a.mobile-nav-prismo {
            color: var(--accent-prismo-light);
        }
        .mobile-menu.open .mobile-nav a {
            opacity: 1;
            transform: none;
        }
        .mobile-menu.open .mobile-nav a:nth-child(1) {
            transition-delay: 0.04s;
        }
        .mobile-menu.open .mobile-nav a:nth-child(2) {
            transition-delay: 0.08s;
        }
        .mobile-menu.open .mobile-nav a:nth-child(3) {
            transition-delay: 0.12s;
        }
        .mobile-menu.open .mobile-nav a:nth-child(4) {
            transition-delay: 0.16s;
        }
        .mobile-menu.open .mobile-nav a:nth-child(5) {
            transition-delay: 0.20s;
        }
        .mobile-menu.open .mobile-nav a:nth-child(6) {
            transition-delay: 0.24s;
        }
        .mobile-footer {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            margin-top: auto;
        }
        .mobile-footer-label {
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--txt-2);
        }

        .reveal {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
        }
        .reveal.visible {
            opacity: 1;
            transform: none;
        }

        .hero {
            padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
        }
        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1.5rem;
        }
        .hero-eyebrow::before {
            content: '';
            display: block;
            width: 18px;
            height: 1px;
            background: var(--accent);
        }
        [dir="rtl"] .hero-eyebrow::before {
            order: 1;
        }
        .hero h1 {
            font-family: var(--font-sans);
            font-size: clamp(2.5rem, 5.5vw, 4.5rem);
            line-height: 1.06;
            font-weight: 700;
            letter-spacing: -0.03em;
            max-width: 18ch;
        }
        .hero p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            max-width: 42ch;
            margin-top: 1.75rem;
            color: var(--txt-2);
            line-height: 1.65;
        }
        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 2.5rem;
        }

        .billboard {
            margin: clamp(2rem, 4vw, 4rem) auto;
            max-width: var(--container);
            border-radius: var(--radius-xl);
            overflow: hidden;
            background: var(--bmo-bg);
            color: var(--bmo-txt);
            display: flex;
            align-items: center;
            gap: clamp(2rem, 4vw, 4rem);
            padding: clamp(2.5rem, 5vw, 4.5rem);
            position: relative;
            direction: ltr;
        }
        .billboard-content {
            flex: 1;
            min-width: 0;
        }
        .billboard-label {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent-light);
            margin-bottom: 1rem;
        }
        .billboard h2 {
            font-family: var(--font-serif);
            font-size: clamp(2.8rem, 6vw, 5.5rem);
            font-weight: 400;
            line-height: 1.02;
            letter-spacing: -0.01em;
        }
        .billboard p {
            color: rgba(255, 255, 255, 0.65);
            font-size: clamp(1rem, 1.8vw, 1.2rem);
            margin: 1.25rem 0 2rem;
            max-width: 38ch;
            line-height: 1.6;
        }
        .billboard-img {
            flex: 0 0 auto;
            width: clamp(160px, 22vw, 260px);
            height: clamp(160px, 22vw, 260px);
            border-radius: var(--radius-md);
            overflow: hidden;
            will-change: transform;
        }
        .billboard-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .section-label {
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 0.75rem;
        }
        .section-title {
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            margin-bottom: 2.5rem;
        }
        .cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1.25rem;
        }
        .card {
            background: var(--bg-2);
            border-radius: var(--radius-lg);
            padding: 1.75rem;
            display: flex;
            flex-direction: column;
            gap: 0.875rem;
            border: 1px solid transparent;
            transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
            cursor: pointer;
        }
        .card:hover {
            border-color: var(--border-2);
            transform: translateY(-3px);
            box-shadow: var(--shadow-sm);
        }
        .card-tag {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            font-family: var(--font-mono);
        }
        .card-tag.card-tag-prismo {
            color: var(--accent-prismo);
        }
        .card h3 {
            font-size: 1.25rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.2;
        }
        .card p {
            font-size: 0.9375rem;
            color: var(--txt-2);
            line-height: 1.6;
        }
        .card-link {
            margin-top: auto;
            padding-top: 1rem;
            border-top: 1px solid var(--border);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--txt-2);
            display: flex;
            align-items: center;
            gap: 0.25rem;
            transition: color 0.2s;
        }
        .card:hover .card-link {
            color: var(--txt);
        }

        .caps-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: clamp(2rem, 4vw, 4rem);
            margin: clamp(3rem, 6vw, 5rem) auto;
            align-items: start;
        }
        .caps-heading {
            font-size: clamp(1.375rem, 2.5vw, 2rem);
            font-weight: 700;
            letter-spacing: -0.025em;
            line-height: 1.2;
            max-width: 16ch;
            position: sticky;
            top: calc(var(--nav-h) + 1.5rem);
        }
        .cap-list {
            display: flex;
            flex-direction: column;
        }
        .cap-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.1rem 0;
            border-bottom: 1px solid var(--border);
            font-size: clamp(0.9rem, 1.6vw, 1.0625rem);
            font-weight: 500;
            transition: color 0.2s;
            cursor: pointer;
            color: var(--txt);
        }
        .cap-item:first-child {
            border-top: 1px solid var(--border);
        }
        .cap-item:hover {
            color: var(--txt-2);
        }
        .cap-badge {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            font-family: var(--font-mono);
            color: var(--txt-3);
            white-space: nowrap;
            padding-left: 1rem;
        }
        [dir="rtl"] .cap-badge {
            padding-left: 0;
            padding-right: 1rem;
        }
        .cap-badge-prismo {
            color: var(--accent-prismo-light) !important;
        }

        .modal-veil {
            position: fixed;
            inset: 0;
            z-index: 200;
            background: var(--modal-veil);
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding: clamp(1rem, 3vw, 2rem);
            overflow-y: auto;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s var(--ease-smooth), visibility 0s linear 0.3s;
        }
        .modal-veil.open {
            opacity: 1;
            visibility: visible;
            transition: opacity 0.3s var(--ease-smooth);
        }
        .modal-panel {
            background: var(--bg);
            border-radius: var(--radius-xl);
            max-width: 780px;
            width: 100%;
            padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem);
            position: relative;
            margin: auto;
            transform: translateY(28px) scale(0.99);
            transition: transform 0.38s var(--ease-out-expo);
            box-shadow: var(--shadow-lg);
        }
        .modal-veil.open .modal-panel {
            transform: none;
        }
        .modal-x {
            position: absolute;
            top: 1.25rem;
            right: 1.25rem;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            color: var(--txt-2);
            cursor: pointer;
            transition: background 0.18s, color 0.18s;
            font-size: 1.1rem;
        }
        .modal-x:hover {
            background: var(--bg-2);
            color: var(--txt);
        }
        [dir="rtl"] .modal-x {
            right: auto;
            left: 1.25rem;
        }
        .modal-kicker {
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 0.5rem;
        }
        .modal-kicker-prismo {
            color: var(--accent-prismo) !important;
        }
        .modal-panel h2 {
            font-family: var(--font-serif);
            font-size: clamp(2rem, 4.5vw, 3.5rem);
            font-weight: 400;
            line-height: 1.06;
            letter-spacing: -0.01em;
            margin-bottom: 0.25rem;
        }
        .modal-panel h3 {
            font-size: 1.0625rem;
            font-weight: 600;
            color: var(--txt-2);
            margin-bottom: 1.5rem;
            line-height: 1.4;
        }
        .modal-divider {
            height: 1px;
            background: var(--border);
            margin: 1.5rem 0;
        }
        .modal-panel h4 {
            font-size: 0.9375rem;
            font-weight: 700;
            margin: 1.75rem 0 0.5rem;
            letter-spacing: -0.01em;
        }
        .modal-panel p {
            margin-bottom: 0.875rem;
            color: var(--txt-2);
            line-height: 1.7;
            font-size: 0.9375rem;
        }
        .modal-panel p strong {
            color: var(--txt);
        }
        .modal-btns {
            display: flex;
            flex-wrap: wrap;
            gap: 0.875rem;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }

        .footer {
            background: var(--footer-bg);
            color: var(--footer-txt);
            padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
            margin-top: clamp(3rem, 6vw, 6rem);
            font-size: 0.875rem;
        }
        .footer-grid {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
        }
        .footer-brand {
            max-width: 26ch;
        }
        .footer-brand-name {
            font-weight: 700;
            font-size: 1.125rem;
            letter-spacing: -0.02em;
            margin-bottom: 0.75rem;
        }
        .footer-brand p {
            color: var(--footer-muted);
            font-size: 0.875rem;
            line-height: 1.65;
        }
        .footer-col h5 {
            font-weight: 600;
            font-size: 0.75rem;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: var(--footer-muted);
            margin-bottom: 1rem;
        }
        .footer-col a {
            display: block;
            color: var(--footer-muted);
            margin-bottom: 0.625rem;
            cursor: pointer;
            transition: color 0.2s;
            font-size: 0.875rem;
        }
        .footer-col a:hover {
            color: var(--footer-txt);
        }
        .footer-bottom {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-top: 3rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            color: var(--footer-muted);
        }
        .footer-controls {
            display: flex;
            align-items: center;
            gap: 0.875rem;
            flex-wrap: wrap;
        }
        .footer-controls .toggle-label {
            font-size: 0.8rem;
            font-weight: 500;
        }

        @media (max-width: 900px) {
            .caps-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            .caps-heading {
                position: static;
                max-width: 100%;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 2rem;
            }
            .footer-brand {
                grid-column: 1 / -1;
            }
            .cards {
                grid-template-columns: 1fr;
            }
            .demo-section-inner {
                flex-direction: column;
                gap: 1.75rem;
            }
            .demo-chat-wrap {
                max-width: 100%;
                height: 380px;
            }
            .demo-chat-body {
                min-height: 140px;
            }
        }

        @media (max-width: 680px) {
            .nav-links,
            .nav-actions {
                display: none;
            }
            .hamburger {
                display: flex;
            }
            .nav.minimal .nav-logo {
                transform: none !important;
            }
            .cards {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            .billboard {
                flex-direction: column;
                padding: 2.5rem 1.75rem;
                gap: 2rem;
            }
            .billboard-img {
                width: 100%;
                height: 220px;
            }
            .demo-section {
                padding: 2rem 1.25rem;
            }
            .demo-section-inner {
                flex-direction: column;
                gap: 1.5rem;
            }
            .demo-chat-wrap {
                max-width: 100%;
                height: 350px;
            }
            .demo-chat-body {
                min-height: 140px;
            }
            .chat-msg {
                font-size: 0.75rem;
                max-width: 86%;
            }
            .footer-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1.75rem;
            }
            .footer-brand {
                grid-column: 1 / -1;
            }
            .footer-bottom {
                flex-direction: column;
                align-items: flex-start;
            }
            .modal-panel {
                padding: 1.75rem 1.25rem;
            }
            .modal-btns {
                flex-direction: column;
            }
            .modal-btns .btn {
                width: 100%;
                justify-content: center;
            }
            .hero-actions {
                flex-direction: column;
                align-items: flex-start;
            }
            .nav-links {
                gap: 0.35rem;
            }
            .nav-links a {
                font-size: 0.7rem;
            }
        }

        /* ═══════════ CAREERS PAGE (careers.html) ═══════════ */
        .careers-hero {
            padding: clamp(4rem, 8vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
        }
        .careers-hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 1.5rem;
        }
        .careers-hero-eyebrow::before {
            content: '';
            display: block;
            width: 18px;
            height: 1px;
            background: var(--accent);
        }
        [dir="rtl"] .careers-hero-eyebrow::before {
            order: 1;
        }
        .careers-hero h1 {
            font-family: var(--font-sans);
            font-size: clamp(2.5rem, 5.5vw, 4.5rem);
            line-height: 1.06;
            font-weight: 700;
            letter-spacing: -0.03em;
            max-width: 16ch;
        }
        .careers-hero p {
            font-size: clamp(1rem, 2vw, 1.25rem);
            max-width: 42ch;
            margin-top: 1.75rem;
            color: var(--txt-2);
            line-height: 1.65;
        }

        /* ── FORM SECTION ────────────────────────────────── */
        .form-section {
            padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 6vw, 6rem);
        }
        .form-wrap {
            max-width: 720px;
            margin: 0 auto;
            background: var(--card-bg);
            border-radius: var(--radius-xl);
            padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.75rem);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .form-label {
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.07em;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 0.75rem;
            display: block;
        }
        .form-title {
            font-family: var(--font-serif);
            font-size: clamp(1.5rem, 3vw, 2.25rem);
            font-weight: 400;
            line-height: 1.1;
            letter-spacing: -0.01em;
            margin-bottom: 0.5rem;
        }
        .form-subtitle {
            color: var(--txt-2);
            font-size: 0.9375rem;
            line-height: 1.6;
            margin-bottom: 2rem;
        }
        .form-divider {
            height: 1px;
            background: var(--border);
            margin: 1.5rem 0;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }
        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 600;
            margin-bottom: 0.4rem;
            color: var(--txt);
            letter-spacing: -0.01em;
        }
        .form-group label .required {
            color: var(--accent);
            margin-left: 0.15rem;
        }
        [dir="rtl"] .form-group label .required {
            margin-left: 0;
            margin-right: 0.15rem;
        }
        .form-hint {
            font-size: 0.75rem;
            color: var(--txt-3);
            margin-top: 0.3rem;
            line-height: 1.4;
        }
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.65rem 0.85rem;
            font-family: var(--font-sans);
            font-size: 0.9375rem;
            color: var(--txt);
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: var(--radius-sm);
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-appearance: none;
            appearance: none;
        }
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--input-focus);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
        }
        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: var(--txt-3);
        }
        .form-group textarea {
            resize: vertical;
            min-height: 120px;
        }
        .form-group select {
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%2387867f'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
            padding-right: 2.5rem;
        }
        [dir="rtl"] .form-group select {
            background-position: left 0.75rem center;
            padding-right: 0.85rem;
            padding-left: 2.5rem;
        }
        .form-group.has-error input,
        .form-group.has-error textarea,
        .form-group.has-error select {
            border-color: var(--error-border);
        }
        .form-group .field-error {
            font-size: 0.8rem;
            color: var(--error-text);
            margin-top: 0.25rem;
            display: none;
        }
        .form-group.has-error .field-error {
            display: block;
        }

        /* ── FILE UPLOAD ──────────────────────────────────── */
        .file-upload {
            position: relative;
        }
        .file-upload-input {
            position: absolute;
            inset: 0;
            opacity: 0;
            cursor: pointer;
            z-index: 2;
        }
        .file-upload-trigger {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 1rem 0.85rem;
            border: 2px dashed var(--input-border);
            border-radius: var(--radius-sm);
            background: var(--file-drop-bg);
            transition: border-color 0.2s, background 0.2s;
            cursor: pointer;
        }
        .file-upload-trigger:hover,
        .file-upload-trigger.dragover {
            border-color: var(--accent);
            background: var(--bg-2);
        }
        .file-upload-icon {
            flex-shrink: 0;
            width: 2rem;
            height: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--accent);
            color: #fff;
            font-size: 0.9rem;
        }
        .file-upload-text {
            flex: 1;
            min-width: 0;
        }
        .file-upload-label {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--txt);
        }
        .file-upload-hint {
            font-size: 0.75rem;
            color: var(--txt-3);
            margin-top: 0.15rem;
        }
        .file-upload-name {
            font-size: 0.875rem;
            color: var(--accent);
            font-weight: 600;
            word-break: break-word;
            display: none;
        }
        .file-upload.has-file .file-upload-label,
        .file-upload.has-file .file-upload-hint {
            display: none;
        }
        .file-upload.has-file .file-upload-name {
            display: block;
        }
        .file-upload.has-file .file-upload-trigger {
            border-style: solid;
            border-color: var(--accent);
        }

        /* ── FORM ACTIONS ─────────────────────────────────── */
        .form-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.875rem;
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
            align-items: center;
        }
        .form-actions .btn {
            padding: 0.7rem 1.75rem;
            font-size: 0.9375rem;
        }
        .form-note {
            font-size: 0.8rem;
            color: var(--txt-3);
        }

        /* ── SUCCESS / ERROR STATES ──────────────────────── */
        .form-result {
            display: none;
            padding: 1.25rem 1.5rem;
            border-radius: var(--radius-md);
            margin-bottom: 1.5rem;
            font-size: 0.9375rem;
            line-height: 1.6;
        }
        .form-result.success {
            display: block;
            background: var(--success-bg);
            color: var(--success-text);
            border: 1px solid var(--success-border);
        }
        .form-result.error {
            display: block;
            background: var(--error-bg);
            color: var(--error-text);
            border: 1px solid var(--error-border);
        }
        .form-result h3 {
            font-size: 1.0625rem;
            font-weight: 700;
            margin-bottom: 0.3rem;
        }
        .form-result p {
            margin-bottom: 0;
        }

        /* ── SPINNER IN BUTTON ────────────────────────────── */
        .btn-spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
        }
        .btn.is-loading .btn-text {
            display: none;
        }
        .btn.is-loading .btn-spinner {
            display: block;
        }
        .btn.is-loading {
            pointer-events: none;
            opacity: 0.7;
        }

        /* ── CAREERS responsive ── */
        @media (max-width: 680px) {
            .form-wrap {
                padding: 1.75rem 1.25rem;
            }
            .form-actions {
                flex-direction: column;
            }
            .form-actions .btn {
                width: 100%;
                justify-content: center;
            }
            .file-upload-trigger {
                flex-direction: column;
                text-align: center;
            }
        }

        /* ── CAREERS: back-to-site nav button ── */
        .nav-back {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .nav-back-icon {
            flex-shrink: 0;
        }
        [dir="rtl"] .nav-back-icon {
            transform: scaleX(-1);
        }
        /* On mobile, the main site hides .nav-actions in favour of the hamburger
           menu. The careers page has no hamburger, so keep its Back button
           visible there (it replaces the menu). */
        @media (max-width: 680px) {
            body.careers-page .nav-actions {
                display: flex;
            }
        }

        /* ═══════════ JOB LISTINGS (careers.html) ═══════════ */
        .jobs-section {
            padding: clamp(1rem, 2vw, 2rem) 0 0;
        }

        /* Filter bar */
        .jobs-filters {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        .jobs-filter-btn {
            padding: 0.35rem 0.85rem;
            border-radius: 100px;
            font-family: var(--font-sans);
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            border: 1px solid var(--border-2);
            background: transparent;
            color: var(--txt-2);
            transition: background 0.18s, color 0.18s, border-color 0.18s;
            white-space: nowrap;
        }
        .jobs-filter-btn:hover {
            border-color: var(--txt-2);
            color: var(--txt);
        }
        .jobs-filter-btn.active {
            background: var(--btn-bg);
            color: var(--btn-txt);
            border-color: var(--btn-bg);
        }

        /* Search */
        .jobs-search {
            position: relative;
            margin-bottom: 1.5rem;
        }
        .jobs-search-input {
            width: 100%;
            padding: 0.6rem 0.85rem 0.6rem 2.4rem;
            font-family: var(--font-sans);
            font-size: 0.9375rem;
            color: var(--txt);
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: var(--radius-sm);
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-appearance: none;
            appearance: none;
        }
        .jobs-search-input:focus {
            outline: none;
            border-color: var(--input-focus);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
        }
        .jobs-search-input::placeholder {
            color: var(--txt-3);
        }
        [dir="rtl"] .jobs-search-input {
            padding: 0.6rem 2.4rem 0.6rem 0.85rem;
        }
        .jobs-search-icon {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--txt-3);
            pointer-events: none;
        }
        [dir="rtl"] .jobs-search-icon {
            left: auto;
            right: 0.75rem;
        }

        /* Category group */
        .jobs-cat-group {
            margin-bottom: 2rem;
        }
        .jobs-cat-heading {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }
        .jobs-cat-dot {
            width: 8px;
            height: 8px;
            border-radius: 2px;
            flex-shrink: 0;
        }
        .jobs-cat-name {
            font-size: 0.95rem;
            font-weight: 700;
            letter-spacing: -0.01em;
        }
        .jobs-cat-count {
            margin-inline-start: auto;
            font-size: 0.75rem;
            font-weight: 500;
            color: var(--txt-3);
        }

        /* Job cards grid */
        .jobs-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        /* Individual job card */
        .job-card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            border: 1px solid transparent;
            transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
            cursor: pointer;
        }
        .job-card:hover {
            border-color: var(--border-2);
            transform: translateY(-2px);
            box-shadow: var(--shadow-sm);
        }
        .job-card-tag {
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-family: var(--font-mono);
            color: var(--accent);
        }
        .job-card-tag.tag-consult {
            color: var(--accent-prismo);
        }
        .job-card-title {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.3;
        }
        .job-card-desc {
            font-size: 0.85rem;
            color: var(--txt-2);
            line-height: 1.55;
            flex-grow: 1;
        }
        .job-card-apply {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            margin-top: auto;
            padding-top: 0.75rem;
            border-top: 1px solid var(--border);
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--txt-2);
            transition: color 0.2s;
        }
        .job-card:hover .job-card-apply {
            color: var(--accent);
        }
        .job-card-apply-arrow {
            transition: transform 0.2s;
        }
        .job-card:hover .job-card-apply-arrow {
            transform: translateX(3px);
        }
        [dir="rtl"] .job-card:hover .job-card-apply-arrow {
            transform: translateX(-3px);
        }

        /* No results */
        .jobs-empty {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--txt-3);
            font-size: 0.95rem;
        }

        /* General application CTA */
        .jobs-cta {
            margin-top: 2.5rem;
            padding: 2rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            background: var(--bg-2);
            text-align: center;
        }
        .jobs-cta h3 {
            font-size: 1.0625rem;
            font-weight: 700;
            margin-bottom: 0.4rem;
        }
        .jobs-cta p {
            font-size: 0.9375rem;
            color: var(--txt-2);
            margin-bottom: 1.25rem;
            max-width: 42ch;
            margin-inline: auto;
        }

        /* ═══════════ APPLY VIEW (careers.html) ═══════════ */

        /* Hide hero section when in apply mode */
        body.apply-active .careers-hero {
            display: none;
        }

        .apply-view {
            display: none; /* shown via JS */
        }
        .apply-view.visible {
            display: block;
            animation: applySlideIn 0.38s var(--ease-out-expo) both;
        }
        @keyframes applySlideIn {
            from {
                opacity: 0;
                transform: translateY(24px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ── Two-column layout: info + form ── */
        .apply-layout {
            display: grid;
            grid-template-columns: 5fr 7fr;
            gap: clamp(1.5rem, 3vw, 2.5rem);
            align-items: start;
            padding: clamp(0.75rem, 1.5vw, 1.5rem) 0 clamp(4rem, 6vw, 6rem);
        }

        /* Info column — sticky on desktop */
        .apply-info .job-detail {
            position: sticky;
            top: calc(var(--nav-h) + 1.5rem);
        }

        /* Form column fills its space */
        .apply-form .form-wrap {
            max-width: none;
            margin: 0;
        }

        /* Back link */
        .apply-back {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.75rem 0;
            font-family: var(--font-sans);
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--txt-2);
            cursor: pointer;
            background: none;
            border: none;
            transition: color 0.2s;
        }
        .apply-back:hover {
            color: var(--accent);
        }
        .apply-back svg {
            flex-shrink: 0;
            transition: transform 0.2s;
        }
        .apply-back:hover svg {
            transform: translateX(-3px);
        }
        [dir="rtl"] .apply-back:hover svg {
            transform: translateX(3px) scaleX(-1);
        }
        [dir="rtl"] .apply-back svg {
            transform: scaleX(-1);
        }

        /* Job detail card */
        .job-detail {
            background: var(--card-bg);
            border-radius: var(--radius-lg);
            padding: clamp(1.25rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
            border: 1px solid var(--border);
            box-shadow: var(--shadow-sm);
        }
        .job-detail-tag {
            display: inline-block;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-family: var(--font-mono);
            color: var(--accent);
            margin-bottom: 0.5rem;
        }
        .job-detail-tag.tag-consult {
            color: var(--accent-prismo);
        }
        .job-detail-title {
            font-family: var(--font-sans);
            font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
            font-weight: 700;
            line-height: 1.35;
            letter-spacing: -0.01em;
            margin-bottom: 0.5rem;
        }
        .job-detail-desc {
            font-size: 0.85rem;
            color: var(--txt-2);
            line-height: 1.65;
        }

        /* Applying-for badge inside form */
        .form-applying-for {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.45rem 0.85rem;
            border-radius: var(--radius-sm);
            background: rgba(13, 148, 136, 0.1);
            margin-bottom: 1.25rem;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .form-applying-label {
            color: var(--accent);
        }
        .form-applying-title {
            color: var(--txt);
        }

        /* Responsive */
        @media (max-width: 900px) {
            .jobs-grid {
                grid-template-columns: 1fr;
            }
            /* Apply layout: stack to single column */
            .apply-layout {
                grid-template-columns: 1fr;
                gap: clamp(1.25rem, 2.5vw, 1.75rem);
            }
            .apply-info .job-detail {
                position: static;
            }
            /* In single column, both info and form have equal width */
            .apply-form .form-wrap {
                max-width: none;
            }
        }
        @media (max-width: 680px) {
            .jobs-filters {
                gap: 0.35rem;
            }
            .jobs-filter-btn {
                font-size: 0.75rem;
                padding: 0.3rem 0.7rem;
            }
            .job-card {
                padding: 1rem;
            }
            .jobs-cta {
                padding: 1.5rem;
            }
            .job-detail {
                padding: 1rem;
            }
            .apply-form .form-wrap {
                padding: 1.25rem;
            }
        }

        /* ═══════════ DISCLOSURE (expandable, used by contact form) ═══════════ */
        .disclosure-trigger {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            padding: 1rem 0;
            font-family: var(--font-sans);
            font-size: 0.9375rem;
            font-weight: 600;
            color: var(--txt-2);
            cursor: pointer;
            background: none;
            border: none;
            transition: color 0.2s;
            text-align: start;
        }
        .disclosure-trigger:hover {
            color: var(--txt);
        }
        .disclosure-trigger[aria-expanded="true"] {
            color: var(--txt);
        }
        .disclosure-trigger-text {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .disclosure-trigger-text::before {
            content: "";
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 1px;
            background: var(--accent);
            flex-shrink: 0;
        }
        .disclosure-chevron {
            flex-shrink: 0;
            transition: transform 0.25s var(--ease-smooth);
            color: var(--txt-3);
        }
        .disclosure-trigger[aria-expanded="true"] .disclosure-chevron {
            transform: rotate(180deg);
        }
        .disclosure-body {
            overflow: hidden;
            max-height: 0;
            opacity: 0;
            transition: max-height 0.4s var(--ease-out-expo), opacity 0.3s var(--ease-smooth), padding 0.3s var(--ease-smooth);
            padding: 0 0 0;
        }
        .disclosure-body.open {
            max-height: 600px;
            opacity: 1;
            padding: 0 0 1.25rem;
        }
        .disclosure-body[hidden] {
            display: block; /* override hidden so transition works */
        }

        /* ═══════════ CONTACT INFO CARD (inside modal) ═══════════ */
        .contact-info-card {
            background: var(--bg-2);
            border-radius: var(--radius-md);
            padding: 1rem 1.25rem;
            margin-bottom: 1.5rem;
        }
        .contact-info-row {
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
            padding: 0.6rem 0;
            border-bottom: 1px solid var(--border);
        }
        .contact-info-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        .contact-info-row:first-child {
            padding-top: 0;
        }
        .contact-info-label {
            font-size: 0.65rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            font-family: var(--font-mono);
            color: var(--txt-3);
        }
        .contact-info-value {
            font-size: 0.9375rem;
            color: var(--txt);
            line-height: 1.5;
        }
        .contact-info-value a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
            transition: opacity 0.2s;
        }
        .contact-info-value a:hover {
            opacity: 0.8;
        }

        /* ═══════════ CONTACT FORM (inside modal, expandable) ═══════════ */
        .contact-form-disclosure {
            margin-top: 1.5rem;
            border-top: 1px solid var(--border);
        }
        .contact-form-disclosure .disclosure-trigger {
            padding: 1rem 0;
        }
        .contact-form-disclosure .disclosure-body.open {
            max-height: 800px;
            padding: 0 0 0.5rem;
        }
        .contact-form {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            padding-top: 0.5rem;
        }
        .contact-form .form-group {
            display: flex;
            flex-direction: column;
            gap: 0.35rem;
        }
        .contact-form .form-group label {
            font-size: 0.8rem;
            font-weight: 600;
            color: var(--txt-2);
        }
        .contact-form input,
        .contact-form textarea {
            font-family: var(--font-sans);
            font-size: 0.9375rem;
            color: var(--txt);
            background: var(--input-bg);
            border: 1px solid var(--input-border);
            border-radius: var(--radius-sm);
            padding: 0.65rem 0.85rem;
            transition: border-color 0.2s, box-shadow 0.2s;
            -webkit-appearance: none;
            appearance: none;
        }
        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-color: var(--input-focus);
            box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
        }
        .contact-form input::placeholder,
        .contact-form textarea::placeholder {
            color: var(--txt-3);
        }
        .contact-form textarea {
            min-height: 80px;
            resize: vertical;
        }
        .contact-form .btn {
            align-self: flex-start;
            margin-top: 0.25rem;
        }
        .contact-form .form-group.has-error input,
        .contact-form .form-group.has-error textarea {
            border-color: var(--error-border);
        }
        .contact-form-disclosure .form-result {
            margin-top: 0.75rem;
            padding: 0.85rem 1rem;
            border-radius: var(--radius-sm);
            font-size: 0.9375rem;
        }
        .contact-form-disclosure .form-result.success {
            background: var(--success-bg);
            border: 1px solid var(--success-border);
            color: var(--success-text);
        }
        .contact-form-disclosure .form-result.error {
            background: var(--error-bg);
            border: 1px solid var(--error-border);
            color: var(--error-text);
        }
        .contact-form-disclosure .form-result-title {
            font-weight: 700;
            margin-bottom: 0.15rem;
        }
        .contact-form-disclosure .form-result-message {
            font-size: 0.85rem;
            opacity: 0.9;
        }
