/* ─────────────────────────────────────────────────────────────
   OBSIDIAN KINETIC — Public Site Design System
   Cinematic dark-mode design system for all public-facing pages.
   Scoped independently from the admin panel's existing styles
   (which continue to use the tokens/classes in style.css).
   ───────────────────────────────────────────────────────────── */

:root {
    --ok-bg: #05000a;
    --ok-surface: #0a0a0b;
    --ok-surface-container: #131314;
    --ok-surface-container-low: #1c1b1c;
    --ok-surface-container-lowest: #0e0e0f;
    --ok-surface-card: rgba(20, 15, 30, 0.35);
    --ok-primary: #7c3aed;
    --ok-primary-light: #d2bbff;
    --ok-text-primary: #ffffff;
    --ok-text-main: #ffffff;
    --ok-text-secondary: #a1a1aa;
    --ok-text-tertiary: #71717a;
    --ok-border: rgba(255, 255, 255, 0.1);
    --ok-border-primary: rgba(124, 58, 237, 0.25);
    --ok-glow: rgba(124, 58, 237, 0.35);
    --ok-radius-sm: 0.375rem;
    --ok-radius-md: 0.625rem;
    --ok-radius: 0.75rem;
    --ok-radius-lg: 1rem;
    --ok-radius-xl: 1.5rem;
    --ok-radius-full: 9999px;
    --ok-gutter: 32px;
    --ok-margin-desktop: 80px;
    --ok-margin-mobile: 24px;
    --ok-container-max: 1440px;
    --ok-section-gap: 140px;
}

.ok-page {
    background: var(--ok-bg);
    color: var(--ok-text-primary);
    overflow-x: hidden;
}

/* Neutralize legacy style.css bare-element rules (header, article, body::before) inside .ok-page */
.ok-page::before {
    display: none !important;
}

.ok-page .ok-site-header {
    position: static;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.ok-page article {
    max-width: none;
    margin: 0;
    padding: 0;
}

.ok-page * {
    box-sizing: border-box;
}

.ok-container {
    max-width: var(--ok-container-max);
    margin: 0 auto;
    padding: 0 var(--ok-margin-mobile);
}

@media (min-width: 768px) {
    .ok-container { padding: 0 var(--ok-margin-desktop); }
}

.ok-section { padding: 96px 0; position: relative; z-index: 1; }
.ok-section-bordered { border-top: 1px solid var(--ok-border); border-bottom: 1px solid var(--ok-border); }
.ok-section-tight { padding: 56px 0; }

/* ── Typography ── */
.ok-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ok-display {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--ok-text-primary);
}

.ok-headline {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--ok-text-primary);
}

.ok-body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--ok-text-secondary);
}

.ok-glow-text {
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.55);
}

.ok-gradient-text {
    background: linear-gradient(120deg, var(--ok-primary-light), var(--ok-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ok-hero-section::before {
    content: '';
    position: absolute;
    inset: 8% 0 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(ellipse at 30% 45%, rgba(5, 0, 10, 0.94) 0%, rgba(5, 0, 10, 0.78) 48%, rgba(5, 0, 10, 0.35) 100%);
}
.ok-hero-section .ok-container { position: relative; z-index: 1; }

.ok-btn-primary { box-shadow: 0 10px 30px rgba(124, 58, 237, 0.35); }
.ok-btn-primary:hover, .ok-btn-primary:focus-visible { box-shadow: 0 12px 36px rgba(124, 58, 237, 0.55); }

.ok-section-head { margin-bottom: 56px; }
.ok-section-head .ok-headline { font-size: 40px; margin: 14px 0 12px; }
.ok-section-head p { max-width: 560px; }

@media (min-width: 768px) {
    .ok-section-head .ok-headline { font-size: 52px; }
}

/* ── Buttons ── */
.ok-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: var(--ok-radius-full);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    white-space: nowrap;
}

.ok-btn-primary {
    background: var(--ok-primary);
    color: #fff;
}

.ok-btn-primary:hover {
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.45), inset 0 0 20px rgba(124, 58, 237, 0.2);
}

.ok-btn-secondary {
    background: transparent;
    border-color: var(--ok-border);
    color: var(--ok-text-primary);
}

.ok-btn-secondary:hover {
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.25);
    color: var(--ok-primary);
}

/* Neutralize the legacy nav-underline pseudo-element (css/style.css: `nav a:hover::after`)
   which otherwise draws a growing underline bar under this button since it lives inside <nav> */
.ok-nav-cta::after { content: none !important; }

.ok-btn-white {
    background: #fff;
    color: var(--ok-bg);
}

.ok-btn-white:hover {
    background: var(--ok-primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.45);
}

.ok-btn-sm { padding: 10px 20px; font-size: 12px; }
.ok-btn-block { width: 100%; }

.ok-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-primary-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.ok-link:hover { color: #fff; }
.ok-link .ok-arrow { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ok-link:hover .ok-arrow { transform: translateX(4px); }

/* ── Nav ── */
.ok-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    background: rgba(8, 4, 16, 0.94);
    border-bottom: 1px solid var(--ok-border);
}

.ok-nav-inner {
    max-width: var(--ok-container-max);
    margin: 0 auto;
    padding: 20px var(--ok-margin-mobile);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .ok-nav-inner { padding: 20px var(--ok-margin-desktop); }
}

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

.ok-nav-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.ok-nav-links {
    display: none;
    align-items: center;
    gap: 44px;
}

@media (min-width: 900px) {
    .ok-nav-links { display: flex; }
}

.ok-nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--ok-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.ok-nav-links a:hover, .ok-nav-links a.active { color: #fff; }
.ok-nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ok-primary-light);
    box-shadow: 0 0 8px var(--ok-primary-light);
}

/* Neutralize legacy style.css `nav a` rules so links inside <nav class="ok-nav">
   never inherit dark ink hover colors or unwanted full-width underline bars */
.ok-page .ok-nav a::after {
    content: none !important;
}

.ok-page .ok-nav-links > a.active::after,
.ok-page .ok-nav-links > .ok-nav-item-has-mega > a.active::after {
    content: '' !important;
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 4px !important;
    height: 4px !important;
    border-radius: 50%;
    background: var(--ok-primary-light);
    box-shadow: 0 0 8px var(--ok-primary-light);
}

.ok-nav-right { display: flex; align-items: center; gap: 16px; }
.ok-nav-cta { display: none; }
@media (min-width: 900px) { .ok-nav-cta { display: inline-flex; } }

.ok-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 0;
}

@media (min-width: 900px) { .ok-nav-toggle { display: none; } }

.ok-nav-toggle .bar {
    width: 20px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.ok-nav-toggle.is-open .bar-1 { transform: translateY(7px) rotate(45deg); }
.ok-nav-toggle.is-open .bar-2 { opacity: 0; }
.ok-nav-toggle.is-open .bar-3 { transform: translateY(-7px) rotate(-45deg); }

/* Higher specificity (.ok-page #mainNav) to override legacy #mainNav white drawer in style.css */
.ok-page #mainNav.ok-mobile-nav {
    display: none;
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    max-width: none;
    max-height: calc(100vh - 73px);
    overflow-y: auto;
    background: rgba(8, 4, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: none;
    border-bottom: 1px solid var(--ok-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
    z-index: 499;
    padding: 20px var(--ok-margin-mobile) 28px;
    transform: none;
}

.ok-page #mainNav.ok-mobile-nav.nav-open {
    display: block;
    transform: none;
}

.ok-page #mainNav.ok-mobile-nav a {
    display: block;
    padding: 13px 0;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--ok-text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--ok-border);
}

.ok-page #mainNav.ok-mobile-nav a:hover,
.ok-page #mainNav.ok-mobile-nav a.active {
    color: var(--ok-primary-light);
}

.ok-page #mainNav.ok-mobile-nav .ok-btn {
    display: inline-flex;
    justify-content: center;
    color: #ffffff;
    border-bottom: none;
    padding: 14px 24px;
    margin-top: 18px;
}

@media (min-width: 900px) {
    .ok-page #mainNav.ok-mobile-nav { display: none !important; }
}

/* ── Live ticker (badge below nav) ── */
.ok-ticker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    border-radius: var(--ok-radius-full);
    background: rgba(10, 5, 20, 0.5);
    border: 1px solid var(--ok-border);
    backdrop-filter: blur(20px);
}

.ok-ticker .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok-primary);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
    animation: ok-pulse 2s infinite;
}

@keyframes ok-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── Cards & surfaces ── */
.ok-page .ok-card,
.ok-card {
    background: var(--ok-surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--ok-border-primary);
    border-radius: var(--ok-radius-xl);
    padding: 40px;
    transition: all 0.4s ease;
}

@media (max-width: 640px) {
    .ok-page .ok-card,
    .ok-card {
        padding: 26px 22px;
    }
    .ok-section {
        padding: 68px 0;
    }
    .ok-section-head {
        margin-bottom: 36px;
    }
    .ok-section-head .ok-headline {
        font-size: 32px;
    }
}

.ok-card:hover {
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-5px);
}

.ok-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ok-primary-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.08);
    padding: 5px 12px;
    border-radius: var(--ok-radius-full);
    display: inline-block;
}

/* ── Capabilities grid (home) ── */
.ok-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.ok-cap-grid .ok-card { grid-column: span 1; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; }
.ok-cap-grid .ok-card.span-2 { grid-column: span 2; }
@media (max-width: 900px) { .ok-cap-grid .ok-card.span-2 { grid-column: span 1; } }

.ok-cap-grid h3 { font-size: 28px; margin: 20px 0 12px; }
.ok-cap-grid .span-2 h3 { font-size: 34px; }

/* ── Selected work / case cards ── */
.ok-work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .ok-work-grid { grid-template-columns: 1fr; }
}

.ok-work-grid .full { grid-column: 1 / -1; }

.ok-work-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--ok-surface-container-lowest);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--ok-radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ok-work-grid .full .ok-work-image { aspect-ratio: 21 / 9; }

.ok-work-image .placeholder {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

.ok-work-title { font-size: 24px; margin-bottom: 6px; transition: color 0.3s ease; }
.ok-work-grid a:hover .ok-work-title { color: var(--ok-primary-light); }
.ok-work-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
}

/* ── Methodology timeline ── */
.ok-timeline { position: relative; padding-left: 64px; max-width: 720px; }
.ok-timeline::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(124,58,237,0.1), rgba(124,58,237,0.8), rgba(124,58,237,0.1));
}

.ok-timeline-item { position: relative; margin-bottom: 28px; }
.ok-timeline-item:last-child { margin-bottom: 0; }
.ok-timeline-num {
    position: absolute;
    left: -64px;
    top: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--ok-primary);
    background: var(--ok-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--ok-primary-light);
    z-index: 1;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.ok-timeline-item h3 { font-size: 22px; margin-bottom: 10px; }

@media (max-width: 640px) {
    .ok-timeline { padding-left: 48px; }
    .ok-timeline::before { left: 17px; }
    .ok-timeline-num {
        left: -48px;
        top: 20px;
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    .ok-timeline-item h3 { font-size: 19px; }
}

/* ── Stats ── */
.ok-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

@media (max-width: 700px) {
    .ok-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
}

.ok-stat {
    border-left: 2px solid var(--ok-border);
    padding-left: 24px;
    transition: border-color 0.4s ease;
}

@media (max-width: 640px) {
    .ok-stat { padding-left: 16px; }
}

.ok-stat:hover { border-color: var(--ok-primary); }
.ok-stat .num {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1;
    color: #fff;
    display: block;
    margin-bottom: 8px;
}

.ok-stat .label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
}

/* ── Testimonial ── */
.ok-quote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
}

.ok-quote .mark {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 48px;
    color: var(--ok-primary-light);
    opacity: 0.8;
    display: block;
    margin-bottom: 20px;
}

.ok-quote h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .ok-quote h3 { font-size: 36px; }
}

.ok-quote .attribution {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 8px 16px;
    border-radius: var(--ok-radius-full);
    display: inline-block;
}

/* Testimonial grid (multiple, e.g. from projects) */
.ok-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.ok-testimonial-grid .ok-card p { color: var(--ok-text-primary); font-style: italic; font-family: 'Bricolage Grotesque', sans-serif; font-size: 16px; line-height: 1.5; margin-bottom: 16px; }
.ok-testimonial-grid .ok-card .attribution { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; color: var(--ok-primary-light); }
.ok-testimonial-grid .ok-card .source { font-size: 11px; color: var(--ok-text-tertiary); margin-top: 4px; }

/* ── Final CTA ── */
.ok-cta {
    text-align: center;
    position: relative;
    padding: 120px 0;
}

.ok-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.18), transparent 65%);
    pointer-events: none;
}

.ok-cta h2 { font-size: 48px; margin-bottom: 20px; }
@media (min-width: 768px) { .ok-cta h2 { font-size: 72px; } }
.ok-cta p { max-width: 560px; margin: 0 auto 40px; font-size: 18px; }

/* ── Footer ── */
.ok-footer {
    background: var(--ok-bg);
    border-top: 1px solid var(--ok-border);
    padding: 80px 0 40px;
}

.ok-footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 56px;
}

@media (max-width: 800px) {
    .ok-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .ok-footer-grid { grid-template-columns: 1fr; }
}

.ok-nav-logo img { display: block; width: 160px; height: auto; }
.ok-footer-brand img { width: 112px; height: 112px; object-fit: contain; opacity: 0.95; margin-bottom: 20px; }

.ok-page a:focus-visible,
.ok-page button:focus-visible,
.ok-page input:focus-visible,
.ok-page textarea:focus-visible,
.ok-page select:focus-visible {
    outline: 3px solid var(--ok-primary-light);
    outline-offset: 3px;
}

.bt-consent-banner {
    position: fixed;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid var(--ok-border-primary);
    border-radius: var(--ok-radius);
    background: rgba(19, 19, 20, 0.98);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.bt-consent-banner[hidden] { display: none; }
.bt-consent-banner strong { color: var(--ok-text-primary); font-family: 'Bricolage Grotesque', sans-serif; }
.bt-consent-banner p { margin: 5px 0 0; color: var(--ok-text-secondary); font-size: 13px; line-height: 1.5; max-width: 680px; }
.bt-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }

@media (max-width: 700px) {
    .bt-consent-banner { left: 12px; right: 12px; bottom: 12px; align-items: stretch; flex-direction: column; }
    .bt-consent-actions { justify-content: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    .ok-page *, .ok-page *::before, .ok-page *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    #canvas-container { opacity: 0 !important; }
}
.ok-footer-brand p { max-width: 320px; }

.ok-footer-col h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 20px;
}

.ok-footer-col a {
    display: block;
    font-size: 14px;
    color: var(--ok-text-secondary);
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.3s ease;
}

.ok-footer-col a:hover { color: var(--ok-primary-light); }

.ok-footer-bottom {
    border-top: 1px solid var(--ok-border);
    padding-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
}

.ok-footer-bottom a { color: var(--ok-text-secondary); text-decoration: none; margin-left: 24px; }
.ok-footer-bottom a:hover { color: var(--ok-primary-light); }

/* ── Editorial / Blog — redesigned 2026-10 ── */

/* Hero: tight, not a banner */
.ok-editorial-hero { padding: 110px 0 40px; }
.ok-editorial-hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: 40px;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}
@media (min-width: 768px) { .ok-editorial-hero h1 { font-size: 56px; } }
.ok-editorial-hero p { max-width: 560px; font-size: 16px; line-height: 1.7; color: var(--ok-text-secondary); margin-bottom: 36px; }

/* Category pill filter bar */
.ok-cat-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--ok-border);
}
.ok-cat-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--ok-radius-full);
    border: 1px solid var(--ok-border);
    color: var(--ok-text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    background: transparent;
    text-decoration: none;
}
.ok-cat-pill:hover,
.ok-cat-pill.active {
    border-color: var(--ok-primary);
    color: var(--ok-primary-light);
    background: rgba(124,58,237,0.08);
}

/* Featured post — full-width hero card */
.ok-featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-lg);
    background: var(--ok-surface-container);
    text-decoration: none;
    color: inherit;
    margin: 40px 0 56px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.ok-featured-article:hover {
    border-color: rgba(124,58,237,0.45);
    background: rgba(124,58,237,0.04);
}
@media (max-width: 800px) {
    .ok-featured-article {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 28px;
    }
}

/* Featured image — 16/9, no-image state collapses cleanly */
.ok-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--ok-radius);
    overflow: hidden;
    border: 1px solid var(--ok-border);
    background: var(--ok-surface-container-low) center / cover no-repeat;
    position: relative;
    order: 2;
}
.ok-featured-image:not([style*="background-image"]) {
    background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(124,58,237,0.03) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 800px) { .ok-featured-image { order: 0; } }
.ok-featured-image .tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }

/* Featured body */
.ok-featured-body { display: flex; flex-direction: column; gap: 16px; order: 1; }
.ok-featured-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
}
.ok-featured-eyebrow .dot { color: var(--ok-primary); }
.ok-featured-body h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0;
}
@media (min-width: 768px) { .ok-featured-body h2 { font-size: 36px; } }
.ok-featured-body .ok-body {
    color: var(--ok-text-secondary);
    font-size: 15px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ok-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ok-primary-light);
    margin-top: 4px;
}
.ok-featured-cta svg { transition: transform 0.2s; }
.ok-featured-article:hover .ok-featured-cta svg { transform: translateX(4px); }

/* Section header */
.ok-archive-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.ok-archive-head h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    margin: 0;
}

/* Article grid — 3 col, 2 col tablet, 1 col mobile */
.ok-article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) { .ok-article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ok-article-grid { grid-template-columns: 1fr; } }

/* Article card */
.ok-article-card {
    display: flex;
    flex-direction: column;
    background: var(--ok-surface-container);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius);
    overflow: hidden;           /* image flush to card edges */
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.ok-article-card:hover {
    border-color: rgba(124,58,237,0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px -12px rgba(124,58,237,0.2);
}

/* Card image — 16:9, no overflow scroll, collapses when no image */
.ok-article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--ok-surface-container-low) center / cover no-repeat;
    flex-shrink: 0;
}
.ok-article-image.no-img {
    background: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(124,58,237,0.02) 100%);
    display: none;              /* hide entirely, no empty box */
}

/* Card body */
.ok-article-body-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    gap: 10px;
}

/* ── Featured meta & direct article-card children (used on projects.php & service related work) ── */
.ok-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-primary-light);
}

.ok-article-card > .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 22px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
}

.ok-article-card > h4 {
    padding: 20px 22px 0;
}

.ok-article-card > p.ok-body {
    padding: 10px 22px 20px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.ok-article-card > .foot {
    padding: 16px 22px 20px;
}

/*Card eyebrow: category · read-time · date */
.ok-article-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
}
.ok-article-eyebrow .sep { opacity: 0.35; }
.ok-article-eyebrow .cat { color: var(--ok-primary-light); }

.ok-article-card h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0;
}
.ok-article-card .excerpt {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ok-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    flex: 1;
}
.ok-article-card .foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--ok-border);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
    margin-top: auto;
}
.ok-article-card .foot .arrow { transition: transform 0.2s; }
.ok-article-card:hover .foot .arrow { transform: translateX(4px); }

.ok-load-more { display: flex; justify-content: center; margin-top: 48px; }

/* ── Forms (public, dark) ── */
.ok-form-group { margin-bottom: 20px; }
.ok-form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    margin-bottom: 10px;
}

.ok-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ok-input::placeholder { color: var(--ok-text-tertiary); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ok-input:focus { outline: none; border-color: var(--ok-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); }
textarea.ok-input { resize: vertical; min-height: 110px; }

.ok-form-status { padding: 14px 18px; border-radius: var(--ok-radius-sm); font-size: 13.5px; margin-bottom: 20px; }
.ok-form-status.success { background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.3); color: var(--ok-primary-light); }
.ok-form-status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

.ok-form-card {
    background: var(--ok-surface-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--ok-border-primary);
    border-radius: var(--ok-radius-xl);
    padding: 36px;
}

/* ── Pricing / related-work cards used on service pages ── */
.ok-pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.ok-pricing-card .price { font-family: 'Bricolage Grotesque', sans-serif; font-size: 26px; font-weight: 700; color: var(--ok-primary-light); margin: 10px 0 14px; }

/* ── FAQ / process steps ── */
.ok-faq-item { padding: 24px 0; border-bottom: 1px solid var(--ok-border); }
.ok-faq-item:last-child { border-bottom: none; }
.ok-faq-item h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; margin-bottom: 10px; }

.ok-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 800px) { .ok-process-grid { grid-template-columns: repeat(2, 1fr); } }
.ok-process-grid .step-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 24px; color: var(--ok-primary-light); margin-bottom: 8px; }

/* ── Utility ── */
.ok-mt-0 { margin-top: 0 !important; }
.ok-text-center { text-align: center; }
.ok-mx-auto { margin-left: auto; margin-right: auto; }
.ok-max-w-md { max-width: 640px; }

/* ── Background mesh canvas (shared, drawn by the existing initCanvasMesh() in main.js) ── */
.ok-page #meshCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ── Fade-in-up scroll reveal (reused pattern) ── */
.ok-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease-out, transform 0.7s ease-out; }
.ok-reveal.in { opacity: 1; transform: translateY(0); }

/* ── Selection ── */
.ok-page ::selection { background: var(--ok-primary); color: #fff; }

/* ── Scoped overrides for shared JS-bound classes (forms, buttons, modal) ──
   These reuse the exact class names main.js/admin JS depend on (.form-control,
   .form-status, .btn, .planner-modal-*), but scoped under .ok-page so the
   admin panel (which doesn't carry that class) keeps its original look. */

.ok-page .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ok-page .form-control::placeholder { color: var(--ok-text-tertiary); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.ok-page .form-control:focus { outline: none; border-color: var(--ok-primary); box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15); background: rgba(255,255,255,0.05); }
.ok-page textarea.form-control { resize: vertical; min-height: 100px; }
.ok-page select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 14px;
    padding-right: 44px;
}

.ok-page .form-group { margin-bottom: 18px; }
.ok-page .form-group label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    margin-bottom: 10px;
}

.ok-page .form-status { padding: 14px 18px; border-radius: var(--ok-radius-sm); font-size: 13.5px; margin-bottom: 20px; }
.ok-page .form-status.success { background: rgba(124, 58, 237, 0.12); border: 1px solid rgba(124, 58, 237, 0.3); color: var(--ok-primary-light); }
.ok-page .form-status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; }

.ok-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 16px 32px;
    border-radius: var(--ok-radius-full);
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.ok-page .btn-primary { background: var(--ok-primary); color: #fff; }
.ok-page .btn-primary:hover { box-shadow: 0 0 40px rgba(124, 58, 237, 0.45), inset 0 0 20px rgba(124, 58, 237, 0.2); }
.ok-page .btn-secondary { background: transparent; border-color: var(--ok-border); color: #fff; }
.ok-page .btn-secondary:hover { border-color: rgba(124, 58, 237, 0.6); box-shadow: 0 0 30px rgba(124, 58, 237, 0.25); }
.ok-page .btn .btn-arrow { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.ok-page .btn:hover .btn-arrow { transform: translateX(4px); }

/* Popup planner modal */
.ok-page .planner-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 0, 10, 0.8);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
    overflow: hidden;
}

.ok-page .planner-modal-overlay.active { opacity: 1; pointer-events: auto; }

/* Ambient purple glow blurs behind the modal, matching the reference */
.ok-page .planner-modal-overlay::before,
.ok-page .planner-modal-overlay::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.35), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.ok-page .planner-modal-overlay::before { top: -160px; left: -160px; }
.ok-page .planner-modal-overlay::after { bottom: -160px; right: -160px; background: radial-gradient(circle, rgba(210, 187, 255, 0.25), transparent 70%); }

.ok-page .planner-modal-container {
    background: var(--ok-surface-container);
    border: 1px solid var(--ok-border-primary);
    border-radius: var(--ok-radius-xl);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(124, 58, 237, 0.15);
}

.ok-page .planner-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--ok-border);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-page .planner-modal-close:hover { border-color: var(--ok-primary); color: var(--ok-primary-light); }

/* ── Article detail body (rich text content from the blog editor) ── */
/* ── Blog Article Body — clean prose rendering ── */
.ok-article-body {
    font-family: 'Inter', sans-serif;
    color: var(--ok-text-secondary);
    font-size: 17px;
    line-height: 1.85;
    max-width: 720px;
}
/* override any inline styles from Google Docs paste */
.ok-article-body * { font-family: inherit !important; color: inherit !important; background: none !important; font-size: inherit !important; line-height: inherit !important; }
.ok-article-body h1,
.ok-article-body h2,
.ok-article-body h3,
.ok-article-body h4,
.ok-article-body h5 {
    font-family: 'Bricolage Grotesque', sans-serif !important;
    color: var(--ok-text-main) !important;
    letter-spacing: -0.02em;
    margin: 48px 0 18px;
    line-height: 1.2;
}
.ok-article-body h1 { font-size: 34px; margin-top: 64px; }
.ok-article-body h2 { font-size: 28px; }
.ok-article-body h3 { font-size: 22px; }
.ok-article-body h4 { font-size: 18px; }
.ok-article-body p { margin-bottom: 22px; color: var(--ok-text-secondary) !important; }
.ok-article-body strong, .ok-article-body b { color: var(--ok-text-main) !important; font-weight: 600; }
.ok-article-body em, .ok-article-body i { font-style: italic; }
.ok-article-body a { color: var(--ok-primary-light) !important; text-decoration: underline; text-underline-offset: 3px; }
.ok-article-body a:hover { color: #a78bfa !important; }
.ok-article-body ul, .ok-article-body ol { margin: 0 0 24px 28px; }
.ok-article-body li { margin-bottom: 10px; }
.ok-article-body img { max-width: 100% !important; border-radius: var(--ok-radius); margin: 32px 0; border: 1px solid var(--ok-border); display: block; }
.ok-article-body figure { margin: 32px 0; }
.ok-article-body figcaption { text-align: center; font-size: 13px !important; color: var(--ok-text-secondary) !important; margin-top: 10px; font-family: 'JetBrains Mono', monospace !important; }
.ok-article-body blockquote {
    border-left: 3px solid var(--ok-primary);
    margin: 32px 0;
    padding: 16px 24px;
    background: rgba(124,58,237,0.05);
    border-radius: 0 var(--ok-radius-sm) var(--ok-radius-sm) 0;
    color: var(--ok-text-secondary) !important;
}
.ok-article-body pre, .ok-article-body code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 14px !important;
    background: var(--ok-surface-container) !important;
    border: 1px solid var(--ok-border);
    border-radius: var(--ok-radius-sm);
}
.ok-article-body pre { padding: 20px 24px; overflow-x: auto; margin: 24px 0; }
.ok-article-body code { padding: 2px 6px; color: var(--ok-primary-light) !important; }
.ok-article-body hr { border: none; border-top: 1px solid var(--ok-border); margin: 48px 0; }
/* kill empty paragraphs */
.ok-article-body p:empty { display: none; }

/* ── Simple page hero (used on services/about/contact/terms/privacy — "middle ground" pages) ── */
.ok-page-hero { padding: 160px 0 72px; text-align: center; }
.ok-page-hero .ok-eyebrow { justify-content: center; }
.ok-page-hero h1 { font-size: 38px; margin: 16px auto 20px; max-width: 720px; }
@media (min-width: 768px) { .ok-page-hero h1 { font-size: 54px; } }
.ok-page-hero p { max-width: 620px; margin: 0 auto 32px; font-size: 17px; }

/* Service/simple grid (services listing, capabilities-lite) */
.ok-simple-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 800px) { .ok-simple-grid { grid-template-columns: 1fr; } }
.ok-icon-tile {
    width: 48px; height: 48px; border-radius: var(--ok-radius);
    background: rgba(124, 58, 237, 0.1); border: 1px solid rgba(124,58,237,0.25);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.ok-icon-tile svg { width: 22px; height: 22px; stroke: var(--ok-primary-light); fill: none; stroke-width: 1.6; }

/* ── Legal pages (privacy/terms) — scoped, kept simple and readable ── */
.ok-page .privacy-terms-body { max-width: 760px; margin: 0 auto; padding: 160px var(--ok-margin-mobile) 96px; }
.ok-page .privacy-terms-body h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 40px; color: #fff; margin-bottom: 8px; }
.ok-page .privacy-terms-body .updated { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ok-text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 40px; }
.ok-page .privacy-terms-content { color: var(--ok-text-secondary); font-size: 16px; line-height: 1.75; }
.ok-page .privacy-terms-content h2 { font-family: 'Bricolage Grotesque', sans-serif; color: #fff; font-size: 22px; margin: 40px 0 14px; }
.ok-page .privacy-terms-content p { margin-bottom: 16px; }
.ok-page .privacy-terms-content ul { margin: 0 0 16px 22px; }
.ok-page .privacy-terms-content li { margin-bottom: 10px; }
.ok-page .privacy-terms-content strong { color: #fff; }
.ok-page .privacy-terms-content a { color: var(--ok-primary-light); }

/* ── Two-panel popup modal (form + "Direct Channel" booking panel) ── */
.ok-page .planner-modal-container.two-panel {
    max-width: 780px;
    padding: 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

@media (max-width: 720px) {
    .ok-page .planner-modal-container.two-panel { grid-template-columns: 1fr; max-width: 460px; }
    .ok-page .modal-side-panel { border-top: 1px solid var(--ok-border); border-left: none !important; }
}

.ok-page .modal-form-panel { padding: 20px 24px; }
.ok-page .modal-side-panel {
    padding: 20px 22px;
    background: rgba(124, 58, 237, 0.04);
    border-left: 1px solid var(--ok-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.ok-page .modal-side-panel-cal { justify-content: flex-start; }
.ok-page .cal-inline-embed { width: 100%; height: 260px; overflow: auto; border-radius: var(--ok-radius); }

.ok-page .modal-side-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25), transparent 70%);
    pointer-events: none;
}

.ok-page .modal-side-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--ok-radius);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ok-page .modal-side-icon svg { width: 20px; height: 20px; stroke: var(--ok-primary-light); fill: none; stroke-width: 1.6; }
.ok-page .modal-side-panel h4 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 19px; color: #fff; margin-bottom: 10px; }
.ok-page .modal-side-panel p { font-size: 13.5px; color: var(--ok-text-secondary); line-height: 1.6; margin-bottom: 24px; }

.ok-page .modal-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.3);
    padding: 5px 12px;
    border-radius: var(--ok-radius-full);
    margin-bottom: 20px;
}

/* Tighter field spacing inside the popup modal specifically, to help it fit one frame */
.ok-page .modal-form-panel .form-group { margin-bottom: 8px; }
.ok-page .modal-form-panel .form-group label { margin-bottom: 5px; font-size: 10px; }
.ok-page .modal-form-panel .form-control { padding: 10px 14px; }
.ok-page .modal-side-icon { margin-bottom: 8px; width: 36px; height: 36px; }
.ok-page .modal-side-panel h4 { margin-bottom: 4px; font-size: 17px; }
.ok-page .modal-side-panel p { margin-bottom: 10px; font-size: 12.5px; }

/* Tighter field spacing on the contact page form, to help each step fit one frame */
#contactForm .form-group { margin-bottom: 9px; }
#contactForm .form-group label { margin-bottom: 6px; }
#contactForm .form-control { padding: 11px 14px; }
#contactForm textarea.form-control { min-height: 70px; }

/* ─────────────────────────────────────────────────────────────
   PHASE 1: MEGA-MENU, 2-COL SPLIT HERO, STORYBOARD & SUB-PILLS
   ───────────────────────────────────────────────────────────── */

/* 1. Header Services Compact Popover Menu */
.ok-nav-item-has-mega {
    position: relative;
    display: flex;
    align-items: center;
}

.ok-nav-mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ok-nav-caret {
    transition: transform 0.2s ease;
    opacity: 0.65;
}

.ok-nav-item-has-mega.mega-open .ok-nav-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.ok-mega-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 440px;
    background: rgba(12, 8, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 187, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 36px rgba(124, 58, 237, 0.14);
    padding: 14px 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 600;
}

/* Invisible hover bridge between link and popover */
.ok-mega-menu::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.ok-nav-item-has-mega.mega-open .ok-mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ok-mega-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ok-mega-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ok-mega-heading {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ok-text-tertiary);
    margin-bottom: 4px;
    padding: 0 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ok-nav-links .ok-mega-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.ok-nav-links .ok-mega-link::after {
    content: none !important;
}

.ok-nav-links .ok-mega-link:hover {
    background: rgba(124, 58, 237, 0.16);
}

.ok-mega-title {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #e4e4e7;
    white-space: nowrap;
}

.ok-nav-links .ok-mega-link:hover .ok-mega-title {
    color: #ffffff;
}

.ok-mega-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.06em;
    color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(210, 187, 255, 0.18);
    padding: 2px 6px;
    border-radius: 999px;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}

.ok-nav-links .ok-mega-link:hover .ok-mega-badge {
    opacity: 1;
}

.ok-mega-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ok-nav-links .ok-mega-ddaas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(210, 187, 255, 0.24);
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
}

.ok-nav-links .ok-mega-ddaas:hover {
    background: rgba(124, 58, 237, 0.26);
    border-color: rgba(210, 187, 255, 0.45);
}

.ok-nav-links .ok-mega-ddaas::after { content: none !important; }

.ok-mega-ddaas-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    font-weight: 700;
    color: #05000a;
    background: #10b981;
    padding: 2px 6px;
    border-radius: 999px;
}

.ok-nav-links .ok-mega-all {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-primary-light);
    white-space: nowrap;
    padding: 4px 6px;
}
.ok-nav-links .ok-mega-all::after { content: none !important; }

.ok-mobile-subnav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    padding: 10px 0 12px 12px;
    border-bottom: 1px solid var(--ok-border);
}

.ok-mobile-nav .ok-mobile-subnav a {
    border-bottom: none;
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--ok-text-secondary);
}

.ok-footer-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.ok-footer-contact-pills a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--ok-primary-light);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--ok-radius-full);
    border: 1px solid rgba(210, 187, 255, 0.22);
    background: rgba(124, 58, 237, 0.08);
    transition: border-color 0.2s, background 0.2s;
}

.ok-footer-contact-pills a:hover {
    border-color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.18);
}

.ok-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.ok-footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--ok-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ok-footer-socials a:hover {
    color: #ffffff;
    border-color: rgba(210, 187, 255, 0.4);
    background: rgba(124, 58, 237, 0.16);
    transform: translateY(-1px);
}

/* 2. Homepage 2-Column Split Hero & Typewriter */
.ok-hero-split-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 108px;
    padding-bottom: 56px;
    overflow: hidden;
}

.ok-hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
    align-items: center;
}

@media (max-width: 1080px) {
    .ok-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ok-hero-split-section {
        min-height: auto;
        padding-top: 112px;
    }
}

.ok-hero-copy .hero-headline {
    font-size: clamp(32px, 4.4vw, 64px);
    line-height: 1.08;
    margin: 0;
}

@media (max-width: 480px) {
    .ok-hero-copy .hero-headline {
        font-size: clamp(29px, 7.6vw, 38px);
    }
}

.ok-typewriter-wrap {
    display: inline-flex;
    align-items: baseline;
    min-height: 1.08em;
    white-space: nowrap;
}

.ok-typewriter-cursor {
    display: inline-block;
    margin-left: 3px;
    color: var(--ok-primary-light);
    font-weight: 400;
    animation: ok-blink 0.9s steps(2, start) infinite;
}

@keyframes ok-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.ok-hero-lead {
    font-size: clamp(15px, 1.25vw, 18px);
    max-width: 580px;
    margin: 22px 0 28px;
}

.ok-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 32px;
}

@media (max-width: 480px) {
    .ok-hero-actions .ok-btn {
        flex: 1 1 calc(50% - 7px);
        padding: 14px 18px;
        font-size: 12px;
    }
}

.ok-hero-proof-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
}

@media (max-width: 640px) {
    .ok-hero-proof-bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.ok-hero-proof-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ok-hero-proof-item .ok-hero-proof-icon,
.ok-hero-proof-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(210, 187, 255, 0.28);
    color: var(--ok-primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin: 0;
}

.ok-hero-proof-icon svg {
    display: block;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ok-hero-proof-item strong {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 14.5px;
    color: #ffffff;
    line-height: 1.2;
}

.ok-hero-proof-item > div > span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: var(--ok-text-secondary);
    margin-top: 3px;
}

/* 3. Right Column: 6-Stage SVG Product Continuity Storyboard */
.ok-sb-shell {
    background: rgba(12, 8, 22, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 187, 255, 0.24);
    border-radius: var(--ok-radius-xl);
    padding: 16px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65), 0 0 80px rgba(124, 58, 237, 0.18);
    position: relative;
}

.ok-sb-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

@media (max-width: 600px) {
    .ok-sb-tabs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ok-sb-tab {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 8px 6px;
    color: var(--ok-text-secondary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.25s ease;
}

.ok-sb-tab .num {
    font-size: 9.5px;
    opacity: 0.65;
    color: var(--ok-primary-light);
}

.ok-sb-tab:hover {
    border-color: rgba(210, 187, 255, 0.35);
    color: #fff;
}

.ok-sb-tab.active {
    background: rgba(124, 58, 237, 0.22);
    border-color: var(--ok-primary-light);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.ok-sb-stage-wrap {
    position: relative;
    border-radius: var(--ok-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #06030d;
}

.ok-sb-svg {
    display: block;
    width: 100%;
    height: auto;
}

.ok-sb-scene {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    transform-origin: center center;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.ok-sb-scene.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Continuous SVG micro-animations */
@keyframes sbDashFlow {
    to { stroke-dashoffset: -48; }
}

@keyframes sbCursorMove {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(18px, -12px); }
}

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

@keyframes sbLaserSweep {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(290px); opacity: 0.85; }
}

.sb-flow-line {
    animation: sbDashFlow 1.8s linear infinite;
}

.sb-cursor-motion {
    animation: sbCursorMove 3.2s ease-in-out infinite;
}

.sb-anim-float {
    animation: sbFloatCard 3s ease-in-out infinite;
}

.sb-laser-sweep {
    animation: sbLaserSweep 3.4s ease-in-out infinite;
}

.ok-sb-footer {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ok-sb-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: var(--ok-text-secondary);
}

.ok-sb-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    flex-shrink: 0;
}

.ok-sb-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.ok-sb-progress-fill {
    height: 100%;
    width: 16.66%;
    background: linear-gradient(90deg, var(--ok-primary), var(--ok-primary-light));
    border-radius: 999px;
    transition: width 0.12s linear;
}

/* 4. Capability Card Sub-Deliverable Pills */
.ok-cap-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 18px;
}

.ok-cap-pills span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 11px;
    border-radius: var(--ok-radius-full);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.ok-card:hover .ok-cap-pills span {
    border-color: rgba(210, 187, 255, 0.28);
    color: #e4e4e7;
}

/* ─────────────────────────────────────────────────────────────
   PHASE 2: SINGLE-SERVICE CAPABILITY ARCHITECTURE (MT-BYTES STYLE)
   1. Geometric Scroll-Scrubbed Overview Scene
   2. 4-Pillar x 4-Deliverable Vertical Stacking Reel / Mobile Rail
   3. Sticky 6-Stage Delivery Chapters (#how-we-work)
   4. Cross-Capability Ecosystem Connections
   ───────────────────────────────────────────────────────────── */

/* 1. Geometric Scroll-Scrubbed Overview Scene */
.ok-cap-overview-scene {
    overflow: hidden;
}

.ok-cap-overview-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

@media (max-width: 960px) {
    .ok-cap-overview-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.ok-cap-overview-title {
    font-size: clamp(30px, 3.8vw, 52px);
    line-height: 1.1;
    margin: 16px 0 20px;
    will-change: transform;
    transition: transform 0.15s ease-out;
}

.ok-cap-overview-lead {
    font-size: 17px;
    max-width: 600px;
    margin-bottom: 28px;
}

.ok-cap-overview-anchors {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.ok-cap-overview-vector-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-cap-overview-svg {
    width: 100%;
    max-width: 390px;
    height: auto;
    will-change: transform;
    transition: transform 0.12s linear;
}

/* 2. Sub-Capabilities 4-Pillar x 4-Deliverable Vertical Stacking Reel */
.ok-subcap-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 44px;
}

.ok-subcap-header .ok-headline {
    font-size: clamp(28px, 3.4vw, 44px);
    margin: 12px 0 10px;
}

.ok-subcap-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ok-subcap-counter {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(210, 187, 255, 0.28);
    padding: 8px 14px;
    border-radius: var(--ok-radius-full);
}

.ok-subcap-nav-btns {
    display: flex;
    gap: 8px;
}

.ok-subcap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--ok-border);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ok-subcap-btn:hover {
    border-color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.2);
}

/* Desktop: Sticky Vertical Stacking Cards (when viewport has enough height & width) */
.ok-subcap-stack-track {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
}

.ok-page .ok-subcap-card,
.ok-subcap-card {
    position: relative;
    background: rgba(15, 11, 26, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 187, 255, 0.26);
    border-radius: var(--ok-radius-xl);
    padding: 36px 40px 28px;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.65), 0 20px 60px rgba(0, 0, 0, 0.55);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 1025px) and (min-height: 740px) {
    .ok-page .ok-subcap-card,
    .ok-subcap-card {
        position: sticky;
        top: calc(92px + var(--subcap-idx, 0) * 18px);
    }
}

.ok-subcap-card.is-active-pillar {
    border-color: rgba(210, 187, 255, 0.55);
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.7), 0 0 50px rgba(124, 58, 237, 0.22);
}

@media (max-width: 900px) {
    .ok-subcap-stack-track {
        gap: 22px;
    }
    .ok-page .ok-subcap-card,
    .ok-subcap-card {
        position: relative;
        top: auto;
        width: 100%;
        min-width: 0;
        padding: 26px 22px 22px;
    }
}

.ok-subcap-card-top {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    padding-bottom: 24px;
    margin-bottom: 28px;
}

.ok-subcap-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ok-subcap-pillar-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.14em;
    color: var(--ok-primary-light);
}

.ok-subcap-card-title-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: end;
}

@media (max-width: 800px) {
    .ok-subcap-card-title-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.ok-subcap-card-title-row h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(24px, 2.5vw, 34px);
    margin: 0;
    line-height: 1.15;
}

.ok-subcap-card-title-row p {
    margin: 0;
    font-size: 15px;
}

.ok-subcap-deliverables-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .ok-subcap-deliverables-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ok-subcap-deliverables-grid {
        grid-template-columns: 1fr;
    }
}

.ok-subcap-deliverable {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ok-radius);
    padding: 20px;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.ok-subcap-deliverable:hover {
    border-color: rgba(210, 187, 255, 0.35);
    background: rgba(124, 58, 237, 0.08);
}

.ok-subcap-del-code {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.18);
    padding: 3px 9px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.ok-subcap-deliverable h4 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 16.5px;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}

.ok-subcap-deliverable p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ok-text-secondary);
    margin: 0;
}

.ok-subcap-card-progress {
    margin-top: 24px;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    overflow: hidden;
}

.ok-subcap-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ok-primary), var(--ok-primary-light));
    border-radius: 999px;
}

/* 3. Sticky 6-Stage Delivery Chapters (#how-we-work) */
.ok-chapters-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: start;
}

@media (max-width: 960px) {
    .ok-chapters-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.ok-chapters-sidebar {
    position: sticky;
    top: 108px;
}

@media (max-width: 960px) {
    .ok-chapters-sidebar {
        position: static;
    }
}

.ok-chapters-sidebar .ok-headline {
    font-size: clamp(28px, 3.2vw, 42px);
    margin: 12px 0 14px;
}

.ok-chapters-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 28px;
}

.ok-chapters-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: var(--ok-radius);
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--ok-text-secondary);
    transition: all 0.25s ease;
}

.ok-chapters-nav-item .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ok-primary-light);
    opacity: 0.65;
}

.ok-chapters-nav-item .lbl {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.ok-chapters-nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.ok-chapters-nav-item.active {
    color: #ffffff;
    background: rgba(124, 58, 237, 0.16);
    border-color: rgba(210, 187, 255, 0.35);
}

.ok-chapters-nav-item.active .num {
    opacity: 1;
}

.ok-chapters-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ok-chapter-card {
    padding: 32px 36px;
    scroll-margin-top: 112px;
}

.ok-chapter-card.active-chapter {
    border-color: rgba(210, 187, 255, 0.55);
    box-shadow: 0 12px 44px rgba(124, 58, 237, 0.18);
}

.ok-chapter-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ok-chapter-step-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ok-primary-light);
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(210, 187, 255, 0.28);
    padding: 5px 12px;
    border-radius: var(--ok-radius-full);
}

.ok-chapter-fraction {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--ok-text-tertiary);
}

.ok-chapter-card h3 {
    font-size: 24px;
    margin: 0 0 10px;
}

.ok-chapter-card p {
    margin: 0;
    font-size: 15.5px;
}

/* 4. Cross-Capability Ecosystem Cards */
.ok-cross-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.ok-cross-cap-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    min-height: 260px;
}

.ok-cross-cap-card h3 {
    font-size: 23px;
    margin: 16px 0 10px;
}

/* ─────────────────────────────────────────────────────────────
   PHASE 3: DIGITAL DEPARTMENT AS A SERVICE (DDAAS) & PARTNER MODELS
   1. Homepage Engagement Models ("Ways We Partner")
   2. DDaaS Lens-Focus Convergence Cards
   3. DDaaS Folio Deck Fan-Out Grid
   4. DDaaS Sticky Stacking Chapters with Giant Watermarks
   5. DDaaS "Case Files" Dossier Untilt Cards
   6. DDaaS 4-Step Timeline + Continuous Review Loop
   ───────────────────────────────────────────────────────────── */

/* 1. Homepage Engagement Models */
.ok-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 960px) {
    .ok-partner-grid {
        grid-template-columns: 1fr;
    }
}

.ok-partner-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.ok-partner-card-featured {
    background: linear-gradient(155deg, rgba(124, 58, 237, 0.2), rgba(15, 10, 28, 0.92));
    border-color: rgba(210, 187, 255, 0.5);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18);
}

.ok-partner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.ok-partner-cadence {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
}

.ok-partner-card h3 {
    font-size: 26px;
    margin: 0 0 12px;
}

.ok-partner-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.ok-partner-list li {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #e4e4e7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ok-partner-list li::before {
    content: '✓';
    font-family: 'JetBrains Mono', monospace;
    color: var(--ok-primary-light);
    font-weight: 700;
}

/* 2. DDaaS Lens-Focus Convergence Cards */
.ok-ddaas-lens-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.ok-ddaas-lens-card {
    will-change: transform, opacity;
    transition: transform 0.2s ease-out, border-color 0.3s ease;
}

.ok-ddaas-lens-center {
    border-color: rgba(210, 187, 255, 0.45);
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.16), rgba(20, 15, 32, 0.65));
}

.ok-ddaas-lens-num {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--ok-primary-light);
    margin-bottom: 16px;
}

.ok-ddaas-lens-card h3 {
    font-size: 25px;
    margin: 0 0 12px;
}

/* 3. DDaaS Folio Deck Fan-Out Grid */
.ok-ddaas-folio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 960px) {
    .ok-ddaas-folio-grid {
        grid-template-columns: 1fr;
    }
}

.ok-ddaas-folio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(var(--folio-x, 0px)) rotate(var(--folio-tilt, 0deg)) scale(0.94);
    opacity: 0.82;
    transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.75s ease, border-color 0.3s ease;
}

.ok-ddaas-folio-section.folio-fanned .ok-ddaas-folio-card {
    transform: translateX(0) rotate(0deg) scale(1);
    opacity: 1;
}

.ok-ddaas-folio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.ok-ddaas-folio-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-tertiary);
}

.ok-ddaas-folio-card h3 {
    font-size: 23px;
    margin: 0 0 10px;
}

.ok-ddaas-folio-list {
    list-style: none;
    padding: 16px 0 0;
    margin: 16px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ok-ddaas-folio-list li {
    font-size: 13.5px;
    color: var(--ok-text-secondary);
    padding-left: 16px;
    position: relative;
}

.ok-ddaas-folio-list li::before {
    content: '·';
    position: absolute;
    left: 2px;
    color: var(--ok-primary-light);
    font-weight: 700;
}

/* 4. DDaaS Sticky Stacking Chapters with Giant Watermarks */
.ok-ddaas-why-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 960px) {
    .ok-ddaas-why-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

.ok-ddaas-why-sidebar {
    position: sticky;
    top: 112px;
}

@media (max-width: 960px) {
    .ok-ddaas-why-sidebar {
        position: static;
    }
}

.ok-ddaas-why-sidebar .ok-headline {
    font-size: clamp(28px, 3.3vw, 44px);
    margin: 14px 0 16px;
}

.ok-ddaas-why-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.ok-page .ok-ddaas-why-card,
.ok-ddaas-why-card {
    position: relative;
    background: rgba(15, 11, 26, 0.96);
    border: 1px solid rgba(210, 187, 255, 0.3);
    overflow: hidden;
    padding: 44px 40px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

@media (min-width: 961px) and (min-height: 700px) {
    .ok-page .ok-ddaas-why-card,
    .ok-ddaas-why-card {
        position: sticky;
        top: calc(104px + var(--why-idx, 0) * 22px);
    }
}

@media (max-width: 960px) {
    .ok-page .ok-ddaas-why-card,
    .ok-ddaas-why-card {
        position: relative;
        top: auto;
        padding: 28px 22px;
    }
}

.ok-ddaas-watermark {
    position: absolute;
    right: -10px;
    bottom: -18px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(64px, 8vw, 116px);
    font-weight: 800;
    color: rgba(210, 187, 255, 0.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.ok-ddaas-why-card h3 {
    font-size: 26px;
    margin: 18px 0 12px;
    position: relative;
    z-index: 1;
}

.ok-ddaas-why-card p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* 5. DDaaS "Case Files" Dossier Untilt Cards */
.ok-ddaas-dossier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 800px) {
    .ok-ddaas-dossier-grid {
        grid-template-columns: 1fr;
    }
}

.ok-ddaas-dossier-card {
    transform: rotate(var(--dossier-tilt, 0deg)) translateY(16px);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.ok-ddaas-dossier-section.dossiers-aligned .ok-ddaas-dossier-card {
    transform: rotate(0deg) translateY(0);
}

.ok-ddaas-dossier-tab {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ok-primary-light);
    background: rgba(24, 18, 38, 0.95);
    border: 1px solid rgba(210, 187, 255, 0.28);
    border-bottom: none;
    padding: 8px 18px;
    border-radius: 12px 12px 0 0;
}

.ok-ddaas-dossier-body {
    background: rgba(18, 13, 30, 0.85);
    border: 1px solid rgba(210, 187, 255, 0.26);
    border-radius: 0 16px 16px 16px;
    padding: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ok-ddaas-dossier-card:hover .ok-ddaas-dossier-body {
    border-color: rgba(210, 187, 255, 0.5);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.15);
}

.ok-ddaas-dossier-body h3 {
    font-size: 22px;
    margin: 0 0 10px;
}

.ok-ddaas-dossier-body p {
    margin: 0;
}

/* 6. DDaaS 4-Step Timeline + Continuous Review Loop Banner */
.ok-ddaas-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

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

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

.ok-ddaas-step-card {
    padding: 28px;
}

.ok-ddaas-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.18);
    border: 1px solid var(--ok-primary-light);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--ok-primary-light);
    margin-bottom: 18px;
}

.ok-ddaas-step-card h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.ok-ddaas-step-card p {
    font-size: 14px;
    margin: 0;
}

.ok-ddaas-loop-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 28px 36px;
    border-radius: var(--ok-radius-xl);
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.18), rgba(16, 185, 129, 0.08));
    border: 1px solid rgba(210, 187, 255, 0.35);
}

.ok-ddaas-loop-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid #10b981;
    color: #6ee7b7;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ok-ddaas-loop-copy {
    flex: 1;
    min-width: 260px;
}

.ok-ddaas-loop-copy strong {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    color: #fff;
    margin-bottom: 6px;
}

.ok-ddaas-loop-copy p {
    margin: 0;
    font-size: 14.5px;
}

/* ─────────────────────────────────────────────────────────────
   PHASE 4: INDUSTRY BOTTLENECK & REVENUE LEAK DIAGNOSTIC DASHBOARD
   ───────────────────────────────────────────────────────────── */
.ok-leak-shell {
    background: rgba(12, 8, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 187, 255, 0.26);
    border-radius: var(--ok-radius-xl);
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

@media (max-width: 700px) {
    .ok-leak-shell {
        padding: 20px;
    }
}

.ok-leak-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

@media (max-width: 640px) {
    .ok-leak-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding-bottom: 18px;
        margin-bottom: 24px;
    }
}

.ok-leak-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: var(--ok-radius-full);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ok-text-secondary);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

@media (max-width: 640px) {
    .ok-leak-tab {
        padding: 9px 10px;
        font-size: 10.5px;
        letter-spacing: 0.03em;
    }
}

.ok-leak-tab:hover {
    border-color: rgba(210, 187, 255, 0.4);
    color: #fff;
}

.ok-leak-tab.active {
    background: var(--ok-primary);
    border-color: var(--ok-primary-light);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.4);
}

.ok-leak-panel {
    display: none;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: center;
}

.ok-leak-panel.active {
    display: grid;
    animation: okFadeSlide 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 920px) {
    .ok-leak-panel {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.ok-leak-big-stat {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(64px, 7vw, 96px);
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    margin: 18px 0 12px;
    letter-spacing: -0.04em;
}

.ok-leak-big-stat span {
    color: var(--ok-primary-light);
    font-size: 0.65em;
}

.ok-leak-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ok-text-secondary);
    margin: 0 0 28px;
}

.ok-leak-fix-box {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(210, 187, 255, 0.25);
    border-radius: var(--ok-radius);
    padding: 20px;
}

.ok-leak-fix-title {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.14em;
    color: #6ee7b7;
    margin-bottom: 12px;
}

.ok-leak-fix-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ok-leak-fix-pills a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(210, 187, 255, 0.3);
    padding: 7px 13px;
    border-radius: var(--ok-radius-full);
    transition: all 0.2s ease;
}

.ok-leak-fix-pills a:hover {
    background: var(--ok-primary);
    border-color: var(--ok-primary-light);
}

.ok-leak-bars-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.ok-leak-bar-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ok-radius);
    padding: 18px 20px;
}

.ok-leak-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.ok-leak-bar-head strong {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 15.5px;
    color: #ffffff;
}

.ok-leak-bar-head span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    color: #fca5a5;
    white-space: nowrap;
}

.ok-leak-bar-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}

.ok-leak-bar-fill {
    width: var(--leak-w, 50%);
    height: 100%;
    background: linear-gradient(90deg, #ef4444, var(--ok-primary), var(--ok-primary-light));
    border-radius: 999px;
}

.ok-leak-bar-item p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: var(--ok-text-secondary);
    margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   SHARED RESPONSIVE LAYOUT UTILITIES & MOBILE POLISH
   ───────────────────────────────────────────────────────────── */
.ok-split-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ok-gutter);
}

@media (max-width: 860px) {
    .ok-split-2col {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.ok-contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--ok-gutter);
    align-items: start;
}

.ok-contact-sticky {
    position: sticky;
    top: 96px;
    align-self: start;
}

@media (max-width: 900px) {
    .ok-contact-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .ok-contact-sticky {
        position: static;
    }
}

.ok-faq-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 16px 0;
}

@media (max-width: 640px) {
    .ok-page-hero {
        padding: 124px 0 48px;
    }
    .ok-page-hero h1 {
        font-size: clamp(30px, 7.5vw, 38px);
    }
    .ok-cta {
        padding: 72px 0;
    }
    .ok-cta h2 {
        font-size: clamp(30px, 7.5vw, 44px) !important;
    }
    .ok-ddaas-loop-banner {
        padding: 22px 20px;
    }
    .ok-ddaas-dossier-body {
        padding: 24px 20px;
    }
    .ok-footer-bottom a:first-child {
        margin-left: 0;
    }
    .ok-author-bio {
        flex-direction: column;
    }
}

/* ─────────────────────────────────────────────────────────────
   AEO / GEO SEMANTIC COMPARISON TABLE (.ok-compare-table)
   ───────────────────────────────────────────────────────────── */
.ok-compare-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--ok-radius-xl);
    border: 1px solid var(--ok-border);
    background: rgba(15, 11, 24, 0.85);
}

.ok-compare-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}

.ok-compare-table th,
.ok-compare-table td {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.ok-compare-table thead th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ok-text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.ok-compare-table thead th.is-featured-col,
.ok-compare-table tbody td.is-featured-col {
    background: rgba(124, 58, 237, 0.14);
    border-left: 1px solid rgba(210, 187, 255, 0.28);
    border-right: 1px solid rgba(210, 187, 255, 0.28);
    color: #ffffff;
}

.ok-compare-table thead th.is-featured-col {
    color: var(--ok-primary-light);
    font-weight: 700;
}

.ok-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.ok-compare-table tbody td:first-child {
    font-weight: 600;
    color: #ffffff;
    width: 22%;
}

.ok-compare-table tbody td {
    color: var(--ok-text-secondary);
    line-height: 1.55;
}

/* ─────────────────────────────────────────────────────────────
   PHASE 7: ANIMATED MASCOT RIG ("VOLT") + LIVE SVG LIGHTNING FX
   ───────────────────────────────────────────────────────────── */

/* Keyframes for Mascot Poses & Electric FX */
@keyframes okMascotFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(1.2deg); }
}

@keyframes okMascotSprint {
    0%, 100% { transform: translateX(0px) skewX(-2deg); }
    50% { transform: translateX(6px) skewX(-5deg); }
}

@keyframes okMascotSlamPulse {
    0%, 100% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.55)); }
    45% { transform: scale(1.04) translateY(2px); filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.85)); }
}

@keyframes okMascotJump {
    0%, 100% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-10px) scale(1.06); }
}

@keyframes okArcFlicker {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.85; }
    25% { stroke-dashoffset: 18; opacity: 0.25; }
    50% { stroke-dashoffset: 36; opacity: 1; }
    75% { stroke-dashoffset: 54; opacity: 0.4; }
}

@keyframes okSpeedTrail {
    0% { transform: translateX(12px); opacity: 0; }
    40% { opacity: 0.9; }
    100% { transform: translateX(-28px); opacity: 0; }
}

/* Core Mascot Image Blending on Obsidian Dark Background */
.ok-mascot-img {
    display: block;
    max-width: 100%;
    height: auto;
    mix-blend-mode: screen;
    -webkit-mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 74% 74% at 50% 50%, #000 62%, transparent 100%);
    filter: contrast(1.08) saturate(1.12) drop-shadow(0 0 16px rgba(139, 92, 246, 0.45));
    user-select: none;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.ok-mascot-img-box {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.32), inset 0 0 14px rgba(56, 189, 248, 0.18);
    transition: opacity 0.22s ease, transform 0.28s ease;
}

.ok-mascot-float {
    animation: okMascotFloat 3.6s ease-in-out infinite;
}

.ok-mascot-sprint {
    animation: okMascotSprint 1.4s ease-in-out infinite;
}

.ok-mascot-slam {
    animation: okMascotSlamPulse 2.4s ease-in-out infinite;
}

.ok-mascot-jump {
    animation: okMascotJump 1.8s ease-in-out infinite;
}

/* Live SVG Lightning Overlay */
.ok-mascot-arcs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.ok-mascot-arcs path {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 14 10;
    animation: okArcFlicker 1.2s linear infinite;
}

.ok-mascot-arcs path.arc-cyan {
    stroke: #38bdf8;
    stroke-width: 1.8;
    filter: drop-shadow(0 0 6px #38bdf8);
}

.ok-mascot-arcs path.arc-purple {
    stroke: #d2bbff;
    stroke-width: 1.5;
    animation-duration: 1.65s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 6px #a855f7);
}

/* ─────────────────────────────────────────────────────────────
   1. FLOATING CORNER "ASK VOLT" MASCOT WIDGET (includes/footer.php)
   ───────────────────────────────────────────────────────────── */
.ok-volt-Launcher {
    position: fixed;
    right: 22px;
    bottom: 94px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ok-volt-Launcher[hidden] {
    display: none !important;
}

.ok-volt-bubble {
    background: rgba(12, 8, 24, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(56, 189, 248, 0.38);
    border-radius: 14px 14px 4px 14px;
    padding: 9px 13px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 20px rgba(124, 58, 237, 0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    max-width: 225px;
}

.ok-volt-Launcher:hover .ok-volt-bubble,
.ok-volt-Launcher.is-nudging .ok-volt-bubble {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.ok-volt-bubble-text {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.35;
    color: #f4f4f5;
    text-decoration: none;
}

.ok-volt-bubble-text strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 2px;
}

.ok-volt-dismiss {
    background: none;
    border: none;
    color: var(--ok-text-tertiary);
    font-size: 14px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 4px;
}

.ok-volt-dismiss:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.ok-volt-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, rgba(124, 58, 237, 0.35), rgba(8, 5, 16, 0.96) 72%);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 22px rgba(124, 58, 237, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    overflow: visible;
}

.ok-volt-btn:hover {
    transform: translateY(-3px) scale(1.06);
    border-color: #38bdf8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75), 0 0 28px rgba(56, 189, 248, 0.65);
}

.ok-volt-btn .ok-mascot-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.ok-volt-status-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #05000a;
    box-shadow: 0 0 8px #10b981;
    z-index: 3;
}

@media (max-width: 640px) {
    .ok-volt-Launcher {
        right: 16px;
        bottom: 84px;
    }
    .ok-volt-btn {
        width: 54px;
        height: 54px;
    }
    .ok-volt-btn .ok-mascot-img {
        width: 50px;
        height: 50px;
    }
    .ok-volt-bubble {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────────
   2. MODAL INTERACTIVE MASCOT COMPANION (includes/modal.php)
   ───────────────────────────────────────────────────────────── */
.ok-modal-mascot-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(56, 189, 248, 0.06));
    border: 1px solid rgba(210, 187, 255, 0.22);
    position: relative;
    overflow: hidden;
}

.ok-modal-mascot-stage {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #040109;
    border: 1px solid rgba(56, 189, 248, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ok-modal-mascot-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.ok-modal-mascot-copy {
    flex: 1;
    min-width: 0;
}

.ok-modal-mascot-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    margin-bottom: 3px;
}

.ok-modal-mascot-tag .pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 8px #38bdf8;
}

.ok-modal-mascot-speech {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    line-height: 1.4;
    color: #e4e4e7;
    margin: 0;
}

.ok-modal-service-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ok-modal-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--ok-text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
}

.ok-modal-chip:hover,
.ok-modal-chip.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.14);
    color: #ffffff;
}

/* ─────────────────────────────────────────────────────────────
   3. SPEED SPRINT & AI AGENT CALLOUT BANNERS
   ───────────────────────────────────────────────────────────── */
.ok-mascot-callout {
    position: relative;
    display: grid;
    grid-template-columns: 128px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    border-radius: 18px;
    background: linear-gradient(125deg, rgba(16, 10, 30, 0.92), rgba(8, 5, 18, 0.96));
    border: 1px solid rgba(210, 187, 255, 0.24);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-top: 28px;
}

.ok-mascot-callout::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.24), transparent 70%);
    pointer-events: none;
}

.ok-mascot-callout-figure {
    position: relative;
    width: 120px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-mascot-callout-figure .ok-mascot-img {
    width: 120px;
    height: 110px;
    object-fit: contain;
}

.ok-mascot-speed-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ok-mascot-speed-lines span {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #38bdf8, #d2bbff);
    animation: okSpeedTrail 1.1s linear infinite;
}

.ok-mascot-speed-lines span:nth-child(1) { top: 28%; left: 4px; width: 34px; animation-delay: 0s; }
.ok-mascot-speed-lines span:nth-child(2) { top: 52%; left: 0px; width: 46px; animation-delay: 0.35s; }
.ok-mascot-speed-lines span:nth-child(3) { top: 74%; left: 8px; width: 30px; animation-delay: 0.7s; }

.ok-mascot-callout-body h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 4px 0 6px;
}

.ok-mascot-callout-body p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ok-text-secondary);
    margin: 0;
    max-width: 640px;
}

.ok-mascot-callout-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ok-mascot-callout-badges span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 10px;
    border-radius: 999px;
}

@media (max-width: 820px) {
    .ok-mascot-callout {
        grid-template-columns: 96px 1fr;
        padding: 18px 20px;
    }
    .ok-mascot-callout-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .ok-mascot-callout {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .ok-mascot-callout-badges {
        justify-content: center;
    }
}

/* ─────────────────────────────────────────────────────────────
   4. BRANDING PAGE: INTERACTIVE MASCOT & CHARACTER STUDIO
   ───────────────────────────────────────────────────────────── */
.ok-char-studio {
    background: linear-gradient(160deg, rgba(16, 11, 30, 0.94), rgba(6, 3, 14, 0.98));
    border: 1px solid rgba(210, 187, 255, 0.24);
    border-radius: 22px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.ok-char-studio-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: center;
}

.ok-char-stage {
    position: relative;
    min-height: 340px;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.22), rgba(4, 1, 10, 0.98) 72%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px;
    overflow: hidden;
}

.ok-char-stage-gridlines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(210, 187, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(210, 187, 255, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.ok-char-stage-badge {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 3;
}

.ok-char-stage-img-wrap {
    position: relative;
    z-index: 2;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-char-stage-img-wrap img {
    max-width: 210px;
    max-height: 210px;
    width: auto;
    height: auto;
}

.ok-char-stage-caption {
    position: relative;
    z-index: 3;
    margin-top: 14px;
    text-align: center;
}

.ok-char-stage-caption strong {
    display: block;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 17px;
    color: #ffffff;
}

.ok-char-stage-caption span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
}

.ok-char-controls-group {
    margin-bottom: 20px;
}

.ok-char-controls-group:last-child {
    margin-bottom: 0;
}

.ok-char-controls-label {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ok-text-tertiary);
    margin-bottom: 8px;
}

.ok-char-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ok-char-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--ok-text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 7px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.ok-char-btn:hover {
    color: #ffffff;
    border-color: rgba(210, 187, 255, 0.4);
    background: rgba(124, 58, 237, 0.14);
}

.ok-char-btn.active {
    color: #ffffff;
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

@media (max-width: 900px) {
    .ok-char-studio {
        padding: 22px 18px;
    }
    .ok-char-studio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ─────────────────────────────────────────────────────────────
   5. 404 CIRCUIT OVERLOAD SCENE (404.php)
   ───────────────────────────────────────────────────────────── */
.ok-404-stage {
    position: relative;
    width: 220px;
    height: 190px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ok-404-stage .ok-mascot-img {
    width: 210px;
    height: 180px;
    object-fit: contain;
}

/* ─────────────────────────────────────────────────────────────
   PHASE 8: ARTICULATED SKELETAL VECTOR PUPPET RIG ("VOLT")
   Independent limb rotation, eye blinking, pupil tracking,
   headphone bounce, sneaker run cycle & HUD visor animations
   ───────────────────────────────────────────────────────────── */
.volt-rig-stage {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.volt-fx-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.volt-rig-svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 6px 18px rgba(124, 58, 237, 0.45));
}

/* Transform Origins for Skeletal Joints */
.volt-char-root {
    transform-origin: 120px 135px;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.volt-limb-arm-l {
    transform-origin: 86px 118px;
}

.volt-hand-l {
    transform-origin: 0px 0px;
}

.volt-limb-arm-r {
    transform-origin: 152px 126px;
}

.volt-limb-leg-l {
    transform-origin: 104px 154px;
}

.volt-limb-leg-r {
    transform-origin: 134px 154px;
}

.volt-headphones-cups,
.volt-headphones-arch {
    transform-origin: 120px 76px;
}

.volt-eyes-blink {
    transform-origin: 119px 84px;
    animation: voltBlink 4.2s infinite;
}

.volt-pupil {
    transition: transform 0.08s ease-out;
}

.volt-internal-veins .volt-vein {
    stroke-dasharray: 18 10;
    animation: voltVeinFlow 1.1s linear infinite;
}

.volt-bt-emblem {
    transform-origin: 17px 15px;
    animation: voltEmblemPulse 2.2s ease-in-out infinite;
}

/* Default Hidden Overlays */
.volt-mouth { display: none; }
.volt-mouth-happy { display: block; }
.volt-hud-visor,
.volt-thinking-marks,
.volt-sprint-trails,
.volt-shockwave-rings {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

/* Core Skeletal Keyframes */
@keyframes voltBlink {
    0%, 44%, 48%, 94%, 98%, 100% { transform: scaleY(1); }
    46%, 96% { transform: scaleY(0.08); }
}

@keyframes voltVeinFlow {
    0% { stroke-dashoffset: 0; opacity: 0.7; }
    50% { opacity: 1; }
    100% { stroke-dashoffset: -28; opacity: 0.7; }
}

@keyframes voltEmblemPulse {
    0%, 100% { opacity: 0.85; filter: drop-shadow(0 0 4px #38bdf8); }
    50% { opacity: 1; filter: drop-shadow(0 0 12px #67e8f9); }
}

@keyframes voltRootBreathe {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(1.2deg); }
}

@keyframes voltWaveArmL {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(22deg); }
}

@keyframes voltSwingArmR {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(-12deg); }
}

@keyframes voltWalkLegL {
    0%, 100% { transform: rotate(-8deg) translateY(0); }
    50% { transform: rotate(10deg) translateY(-4px); }
}

@keyframes voltWalkLegR {
    0%, 100% { transform: rotate(10deg) translateY(-4px); }
    50% { transform: rotate(-8deg) translateY(0); }
}

@keyframes voltHeadphoneBob {
    0%, 100% { transform: translateY(0px) scaleX(1); }
    50% { transform: translateY(-3px) scaleX(1.02); }
}

/* SPRINT STATE KEYFRAMES */
@keyframes voltSprintRoot {
    0%, 100% { transform: translateX(4px) translateY(0px) rotate(14deg) skewX(-8deg); }
    50% { transform: translateX(10px) translateY(-6px) rotate(16deg) skewX(-10deg); }
}

@keyframes voltSprintLegL {
    0%, 100% { transform: rotate(-34deg) translateY(-4px); }
    50% { transform: rotate(28deg) translateY(2px); }
}

@keyframes voltSprintLegR {
    0%, 100% { transform: rotate(28deg) translateY(2px); }
    50% { transform: rotate(-34deg) translateY(-4px); }
}

@keyframes voltSprintArmL {
    0%, 100% { transform: rotate(36deg); }
    50% { transform: rotate(-28deg); }
}

@keyframes voltSprintArmR {
    0%, 100% { transform: rotate(-32deg); }
    50% { transform: rotate(30deg); }
}

@keyframes voltSprintLines {
    0% { transform: translateX(18px); opacity: 0; }
    40% { opacity: 0.95; }
    100% { transform: translateX(-26px); opacity: 0; }
}

/* THINKING STATE KEYFRAMES */
@keyframes voltThinkArmL {
    0%, 100% { transform: rotate(42deg) translate(16px, -6px); }
    50% { transform: rotate(48deg) translate(18px, -9px); }
}

@keyframes voltQuestionFloat {
    0%, 100% { transform: translateY(0px) rotate(-6deg); opacity: 0.55; }
    50% { transform: translateY(-7px) rotate(8deg); opacity: 1; }
}

/* WORKING / HUD CODING STATE KEYFRAMES */
@keyframes voltTypeArmL {
    0%, 100% { transform: rotate(28deg) translateY(0); }
    50% { transform: rotate(38deg) translateY(4px); }
}

@keyframes voltTypeArmR {
    0%, 100% { transform: rotate(-28deg) translateY(4px); }
    50% { transform: rotate(-16deg) translateY(0); }
}

@keyframes voltHudScan {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -28; }
}

/* POWER SLAM / 404 STATE KEYFRAMES */
@keyframes voltSlamRoot {
    0%, 100% { transform: translateY(8px) scale(1.03, 0.95); }
    35% { transform: translateY(-14px) scale(0.96, 1.06); }
    70% { transform: translateY(12px) scale(1.06, 0.92); }
}

@keyframes voltShockwave {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* JUMP & DANCE KEYFRAMES */
@keyframes voltJumpRoot {
    0%, 100% { transform: translateY(2px) scale(1.02, 0.96); }
    45% { transform: translateY(-18px) scale(0.97, 1.05) rotate(-4deg); }
}

@keyframes voltDanceRoot {
    0%, 100% { transform: translateX(-6px) translateY(0) rotate(-7deg); }
    25% { transform: translateX(0px) translateY(-8px) rotate(0deg); }
    50% { transform: translateX(6px) translateY(0) rotate(7deg); }
    75% { transform: translateX(0px) translateY(-8px) rotate(0deg); }
}

/* ─────────────────────────────────────────────────────────────
   STATE RULES BY [data-volt-state]
   ───────────────────────────────────────────────────────────── */

/* 1. Default Greeting / Walk */
.volt-rig-stage[data-volt-state="greeting"] .volt-char-root,
.volt-rig-stage[data-volt-state="happy"] .volt-char-root,
.volt-rig-stage[data-volt-state="front"] .volt-char-root {
    animation: voltRootBreathe 2.6s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="greeting"] .volt-limb-arm-l,
.volt-rig-stage[data-volt-state="happy"] .volt-limb-arm-l,
.volt-rig-stage[data-volt-state="front"] .volt-limb-arm-l {
    animation: voltWaveArmL 1.1s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="greeting"] .volt-limb-arm-r,
.volt-rig-stage[data-volt-state="happy"] .volt-limb-arm-r,
.volt-rig-stage[data-volt-state="front"] .volt-limb-arm-r {
    animation: voltSwingArmR 2.2s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="greeting"] .volt-limb-leg-l,
.volt-rig-stage[data-volt-state="happy"] .volt-limb-leg-l {
    animation: voltWalkLegL 1.8s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="greeting"] .volt-limb-leg-r,
.volt-rig-stage[data-volt-state="happy"] .volt-limb-leg-r {
    animation: voltWalkLegR 1.8s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="greeting"] .volt-headphones-cups,
.volt-rig-stage[data-volt-state="happy"] .volt-headphones-cups {
    animation: voltHeadphoneBob 1.3s ease-in-out infinite;
}

/* 2. Speed Sprint State */
.volt-rig-stage[data-volt-state="sprint"] .volt-sprint-trails {
    opacity: 1;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-sprint-trails line {
    animation: voltSprintLines 0.55s linear infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-sprint-trails line:nth-child(2) { animation-delay: 0.15s; }
.volt-rig-stage[data-volt-state="sprint"] .volt-sprint-trails line:nth-child(3) { animation-delay: 0.3s; }
.volt-rig-stage[data-volt-state="sprint"] .volt-char-root {
    animation: voltSprintRoot 0.48s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-limb-leg-l {
    animation: voltSprintLegL 0.48s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-limb-leg-r {
    animation: voltSprintLegR 0.48s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-limb-arm-l {
    animation: voltSprintArmL 0.48s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-limb-arm-r {
    animation: voltSprintArmR 0.48s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-brow-l {
    transform: rotate(10deg);
    transform-origin: 100px 68px;
}
.volt-rig-stage[data-volt-state="sprint"] .volt-brow-r {
    transform: rotate(-10deg);
    transform-origin: 138px 68px;
}

/* 3. Thinking (? ? ?) State */
.volt-rig-stage[data-volt-state="thinking"] .volt-mouth-happy { display: none; }
.volt-rig-stage[data-volt-state="thinking"] .volt-mouth-thinking { display: block; }
.volt-rig-stage[data-volt-state="thinking"] .volt-thinking-marks { opacity: 1; }
.volt-rig-stage[data-volt-state="thinking"] .volt-thinking-marks text {
    animation: voltQuestionFloat 1.6s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="thinking"] .volt-thinking-marks .q2 { animation-delay: 0.4s; }
.volt-rig-stage[data-volt-state="thinking"] .volt-thinking-marks .q3 { animation-delay: 0.8s; }
.volt-rig-stage[data-volt-state="thinking"] .volt-char-root {
    animation: voltRootBreathe 3s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="thinking"] .volt-limb-arm-l {
    animation: voltThinkArmL 1.8s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="thinking"] .volt-brow-l {
    transform: translateY(-4px) rotate(-8deg);
    transform-origin: 100px 68px;
}

/* 4. Working / HUD Coding Visor State */
.volt-rig-stage[data-volt-state="working"] .volt-mouth-happy { display: none; }
.volt-rig-stage[data-volt-state="working"] .volt-mouth-thinking { display: block; }
.volt-rig-stage[data-volt-state="working"] .volt-hud-visor { opacity: 1; }
.volt-rig-stage[data-volt-state="working"] .volt-hud-code line {
    animation: voltHudScan 0.65s linear infinite;
}
.volt-rig-stage[data-volt-state="working"] .volt-char-root {
    animation: voltRootBreathe 2s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="working"] .volt-limb-arm-l {
    animation: voltTypeArmL 0.32s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="working"] .volt-limb-arm-r {
    animation: voltTypeArmR 0.32s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="working"] .volt-headphones-cups {
    animation: voltHeadphoneBob 0.7s ease-in-out infinite;
}

/* 5. Power Slam / Surprised / 404 Overload State */
.volt-rig-stage[data-volt-state="slam"] .volt-mouth-happy,
.volt-rig-stage[data-volt-state="surprised"] .volt-mouth-happy,
.volt-rig-stage[data-volt-state="error"] .volt-mouth-happy { display: none; }
.volt-rig-stage[data-volt-state="slam"] .volt-mouth-surprised,
.volt-rig-stage[data-volt-state="surprised"] .volt-mouth-surprised,
.volt-rig-stage[data-volt-state="error"] .volt-mouth-surprised { display: block; }
.volt-rig-stage[data-volt-state="slam"] .volt-shockwave-rings { opacity: 1; }
.volt-rig-stage[data-volt-state="slam"] .volt-shock-ring {
    transform-origin: 120px 218px;
    animation: voltShockwave 1.3s ease-out infinite;
}
.volt-rig-stage[data-volt-state="slam"] .volt-shock-ring.r2 { animation-delay: 0.45s; }
.volt-rig-stage[data-volt-state="slam"] .volt-char-root {
    animation: voltSlamRoot 1.3s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="slam"] .volt-limb-arm-l,
.volt-rig-stage[data-volt-state="surprised"] .volt-limb-arm-l {
    animation: voltWaveArmL 0.45s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="slam"] .volt-limb-arm-r,
.volt-rig-stage[data-volt-state="surprised"] .volt-limb-arm-r {
    animation: voltSwingArmR 0.45s ease-in-out infinite;
}

/* 6. Mid-Air Launch Jump / Success State */
.volt-rig-stage[data-volt-state="jump"] .volt-char-root,
.volt-rig-stage[data-volt-state="success"] .volt-char-root {
    animation: voltJumpRoot 0.95s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="jump"] .volt-limb-arm-l,
.volt-rig-stage[data-volt-state="success"] .volt-limb-arm-l {
    animation: voltWaveArmL 0.55s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="jump"] .volt-limb-leg-l,
.volt-rig-stage[data-volt-state="success"] .volt-limb-leg-l {
    animation: voltWalkLegL 0.65s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="jump"] .volt-limb-leg-r,
.volt-rig-stage[data-volt-state="success"] .volt-limb-leg-r {
    animation: voltWalkLegR 0.65s ease-in-out infinite;
}

/* 7. Dance / Groove State */
.volt-rig-stage[data-volt-state="dance"] .volt-char-root {
    animation: voltDanceRoot 1.2s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="dance"] .volt-limb-arm-l {
    animation: voltWaveArmL 0.6s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="dance"] .volt-limb-arm-r {
    animation: voltSwingArmR 0.6s ease-in-out infinite;
}
.volt-rig-stage[data-volt-state="dance"] .volt-headphones-cups {
    animation: voltHeadphoneBob 0.4s ease-in-out infinite;
}

/* 8. Sad / Empathy & Intense / Bug-Slayer States */
.volt-rig-stage[data-volt-state="sad"] .volt-mouth-happy { display: none; }
.volt-rig-stage[data-volt-state="sad"] .volt-mouth-sad { display: block; }
.volt-rig-stage[data-volt-state="angry"] .volt-brow-l {
    transform: rotate(18deg) translateY(3px);
    transform-origin: 100px 68px;
}
.volt-rig-stage[data-volt-state="angry"] .volt-brow-r {
    transform: rotate(-18deg) translateY(3px);
    transform-origin: 138px 68px;
}
.volt-rig-stage[data-volt-state="angry"] .volt-limb-arm-l {
    animation: voltWaveArmL 0.5s ease-in-out infinite;
}

/* 9. 3D Turnaround Perspectives & Detail Zooms on Branding Studio */
.volt-rig-stage[data-volt-state="turn-3q"] .volt-char-root {
    transform: perspective(500px) rotateY(-22deg) scale(1.02);
}
.volt-rig-stage[data-volt-state="turn-side"] .volt-char-root {
    transform: perspective(500px) rotateY(-46deg) scaleX(0.78);
}
.volt-rig-stage[data-volt-state="turn-back"] .volt-face-group,
.volt-rig-stage[data-volt-state="turn-back"] .volt-bt-emblem {
    opacity: 0;
}
.volt-rig-stage[data-volt-state="detail-head"] .volt-char-root {
    transform: scale(1.75) translateY(38px);
}
.volt-rig-stage[data-volt-state="detail-hand"] .volt-char-root {
    transform: scale(2.1) translate(55px, 28px);
}
.volt-rig-stage[data-volt-state="detail-sneaker"] .volt-char-root {
    transform: scale(2.0) translate(12px, -68px);
}
.volt-rig-stage[data-volt-state="detail-emblem"] .volt-char-root {
    transform: scale(2.3) translate(0px, -12px);
}



