/* ═══════════════════════════════════════════════
   RADIOVISION — Neural Design System
   Apple × Prometheus × Minority Report
   ═══════════════════════════════════════════════ */

:root {
    --rv-red: #E31B23;
    --rv-red-soft: #ff3d44;
    --rv-black: #030303;
    --rv-white: #FFFFFF;
    --rv-accent: rgba(255, 255, 255, 0.05);
    --rv-border: rgba(255, 255, 255, 0.06);
    --rv-nav-bg: rgba(3, 3, 3, 0.7);
    --rv-text-muted: rgba(255, 255, 255, 0.45);
    --rv-section-bg: rgba(6, 6, 8, 0.6);
    --rv-text-base: rgba(255, 255, 255, 0.65);
    --rv-text-strong: #FFFFFF;
    --rv-text-dim: rgba(255, 255, 255, 0.3);
    --rv-black-rgb: 3, 3, 3;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Outfit', sans-serif;
}

html.light {
    --rv-black: #fafbfc;
    --rv-white: #0a0a0a;
    --rv-accent: rgba(0, 0, 0, 0.015);
    --rv-border: rgba(0, 0, 0, 0.06);
    --rv-nav-bg: rgba(250, 251, 252, 0.85);
    --rv-text-muted: #64748b;
    --rv-section-bg: #ffffff;
    --rv-text-base: #334155;
    --rv-text-strong: #0f172a;
    --rv-text-dim: #94a3b8;
    --rv-black-rgb: 250, 251, 252;
}

* {
    box-sizing: border-box;
}

html {
    background-color: var(--rv-black);
    transition: background-color 0.6s ease;
    overflow-x: hidden;
}

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

body {
    background: transparent;
    color: var(--rv-text-base);
    font-family: var(--font-body);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: color 0.6s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ── Theme variable overrides ── */
.text-white {
    color: var(--rv-text-strong) !important;
}

.text-white\/60,
.text-white\/50,
.text-white\/40 {
    color: var(--rv-text-muted) !important;
}

.text-white\/80,
.text-white\/90 {
    color: var(--rv-text-base) !important;
}

.border-white\/5,
.border-white\/10 {
    border-color: var(--rv-border) !important;
}

.bg-black {
    background-color: var(--rv-black) !important;
}

.bg-black\/50,
.bg-black\/30 {
    background-color: rgba(var(--rv-black-rgb), 0.5) !important;
}

.bg-zinc-950\/50,
.bg-zinc-950\/70 {
    background-color: var(--rv-section-bg) !important;
}

/* ── Light Mode ── */
.light .text-white,
.light h1,
.light h2,
.light h3,
.light h4,
.light h5,
.light h6 {
    color: var(--rv-text-strong) !important;
}

.light .text-white\/60,
.light .text-white\/50,
.light .text-white\/40 {
    color: var(--rv-text-muted) !important;
}

.light p,
.light span:not(.text-red-600):not(.gradient-text):not(.section-label) {
    color: var(--rv-text-base);
}

.light .glass-card p {
    color: var(--rv-text-base);
}

.light .client-name {
    color: var(--rv-text-muted);
}

.light .section-label {
    color: var(--rv-red);
}

.light .bg-white\/5 {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

.light .border-white\/10 {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.light .text-white\/80 {
    color: var(--rv-text-base) !important;
}

.light .bg-red-600\/20 {
    background-color: rgba(227, 27, 35, 0.04) !important;
}

.light input::placeholder,
.light textarea::placeholder {
    color: rgba(0, 0, 0, 0.3) !important;
}

.light input,
.light textarea,
.light select {
    color: var(--rv-text-strong) !important;
    background: #fff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

.light .btn-rv {
    color: #FFF !important;
}

.light .bg-red-600 {
    background-color: var(--rv-red) !important;
}

.light .text-red-600 {
    color: var(--rv-red) !important;
}

.light .glass-card {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04) !important;
}

.light .border-white\/5 {
    border-color: rgba(0, 0, 0, 0.04) !important;
}

.light .text-white\/30 {
    color: rgba(0, 0, 0, 0.2) !important;
}

.light .text-white\/50 {
    color: rgba(0, 0, 0, 0.4) !important;
}

.light .text-white\/70 {
    color: rgba(0, 0, 0, 0.55) !important;
}

.light .dither-overlay {
    opacity: 0.012;
}

.light #theme-toggle svg,
.light #theme-toggle-mobile svg {
    color: var(--rv-text-strong);
}

.light .client-ticker-container {
    border-color: rgba(0, 0, 0, 0.04) !important;
}

.light .bg-black\/50 {
    background-color: #fff !important;
}

.light .bg-zinc-950\/50,
.light .bg-zinc-950\/70 {
    background-color: #fff !important;
}

/* ── Dithering ── */
.dither-overlay {
    display: none;
}

/* ── Neural Canvas ── */
#neural-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.light #neural-canvas {
    opacity: 0.25;
}

/* ── Glassmorphism ── */
.glass-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.glass-card:hover {
    border-color: rgba(227, 27, 35, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 24px 80px rgba(227, 27, 35, 0.05), 0 0 0 1px rgba(227, 27, 35, 0.08);
}

/* ── Hero Typography ── */
.hero-text {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8.5vw, 7rem);
    line-height: 0.95;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--rv-text-strong) 0%, var(--rv-red) 35%, var(--rv-red-soft) 55%, var(--rv-text-strong) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* ── Navigation ── */
nav {
    background: var(--rv-nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background-color 0.5s ease;
}

/* ── Buttons ── */
.btn-rv {
    background: linear-gradient(135deg, #E31B23, #c9161d);
    color: #FFF !important;
    padding: 1rem 2.8rem;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: inline-block;
    border: none;
    cursor: pointer;
}

@media (max-width: 639px) {
    .btn-rv {
        padding: 0.5rem 1.4rem;
        font-size: 0.55rem;
    }
}

.btn-rv:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(227, 27, 35, 0.3), 0 0 0 1px rgba(227, 27, 35, 0.15);
}

.btn-rv,
.floating-btn-main,
a.bg-red-600,
button.bg-red-600,
a.bg-red-700,
button.bg-red-700,
.btn-rv *,
.floating-btn-main * {
    color: #FFF !important;
}

/* ── Sections ── */
section {
    padding: 140px 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: none;
    position: relative;
    overflow: hidden;
}

@media (max-width: 639px) {
    .hero-section {
        height: 90vh;
        padding-top: 60px;
    }
    .hero-text {
        font-size: clamp(2.6rem, 10vw, 4.5rem);
        line-height: 1.1;
    }
}

.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.parallax-img {
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

/* ── Section Labels ── */
.section-label {
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.45em;
    color: var(--rv-red);
    margin-bottom: 1.5rem;
    display: block;
}

/* ── Client Tickers ── */
.client-ticker-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 18px 0;
    background: rgba(227, 27, 35, 0.01);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.client-ticker {
    display: inline-block;
    animation: ticker 60s linear infinite;
}

.client-ticker-reverse {
    display: inline-block;
    animation: ticker-reverse 80s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(0)
    }

    100% {
        transform: translateX(-50%)
    }
}

@keyframes ticker-reverse {
    0% {
        transform: translateX(-50%)
    }

    100% {
        transform: translateX(0)
    }
}

.client-name {
    display: inline-block;
    padding: 0 28px;
    font-size: 0.65rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.4s ease;
    font-family: var(--font-body);
}

.client-name:hover {
    color: var(--rv-red);
}

.brain-lab-grid {
    background-image: linear-gradient(rgba(227, 27, 35, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(227, 27, 35, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--rv-black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--rv-red);
}

/* ── Floating CTA ── */
.floating-lead-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

/* Mobile-only phone icon button — bottom-left */
.floating-btn-phone-mobile {
    position: fixed;
    bottom: 28px;
    left: 20px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.floating-btn-phone-mobile:hover {
    background: rgba(227, 27, 35, 0.15);
    border-color: rgba(227, 27, 35, 0.3);
}

@media (min-width: 768px) {
    .floating-btn-phone-mobile {
        display: none !important;
    }
}

.floating-btn-main {
    background: linear-gradient(135deg, #E31B23, #c4171d);
    color: #FFF !important;
    padding: 14px 22px;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
    box-shadow: 0 4px 24px rgba(227, 27, 35, 0.3);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.floating-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(227, 27, 35, 0.4);
}

.floating-btn-main:active {
    transform: scale(0.97);
}

.floating-btn-phone {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: white;
    padding: 10px 18px;
    border-radius: 9999px;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.floating-btn-phone:hover {
    background: rgba(227, 27, 35, 0.08);
    border-color: rgba(227, 27, 35, 0.25);
    transform: translateY(-2px);
}

.floating-btn-pulse {
    animation: pulse 3.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 24px rgba(227, 27, 35, 0.3)
    }

    50% {
        box-shadow: 0 8px 48px rgba(227, 27, 35, 0.45), 0 0 0 6px rgba(227, 27, 35, 0.08)
    }
}

/* ── Elegant Divider ── */
.neural-divider {
    width: 100%;
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(227, 27, 35, 0.15) 30%, rgba(227, 27, 35, 0.3) 50%, rgba(227, 27, 35, 0.15) 70%, transparent);
}

/* ── Responsive ── */
@media (max-width:640px) {
    .floating-lead-btn {
        bottom: 20px;
        right: 16px;
    }

    .floating-btn-main {
        padding: 12px 18px;
        font-size: 10px;
    }

    .floating-btn-phone {
        padding: 9px 14px;
        font-size: 10px;
    }

    section {
        padding: 80px 16px;
    }

    .hero-text {
        font-size: clamp(2.2rem, 8vw, 4rem);
    }

    .showcase-card-inner {
        padding: 40px 24px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(12, 12, 15, 0.95);
        transition: none;
    }

    .stacked-card {
        will-change: auto;
        margin-bottom: 40px;
    }

    /* Stop SVG orbit spinning on mobile */
    .icon-orbit {
        animation: none !important;
    }

    /* Kill the blur glow blobs inside showcase cards */
    .stacked-card [class*="blur-"] {
        display: none !important;
    }

    /* Remove will-change from scroll-reveal on mobile */
    .scroll-reveal {
        will-change: auto;
    }

    /* Fix video controls staying within video on mobile */
    .vid-ctrl {
        width: 30px;
        height: 30px;
    }

    /* Prevent horizontal scroll from any overflow */
    .hero-section,
    section {
        max-width: 100vw;
    }

    /* Make airstrike radar more visible on mobile */
    #airstrike-mesh {
        opacity: 1 !important;
    }

    /* Ensure airstrike section doesn't overflow */
    #airstrike {
        overflow: hidden;
    }

    /* Tighten heritage grid on mobile */
    #heritage [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Video section cards: ensure no overflow */
    .grid.grid-cols-1.lg\:grid-cols-5 {
        overflow: hidden;
    }
}

/* ═══════════════════════════════════════
   SHOWCASE CARDS
   ═══════════════════════════════════════ */

.stacked-cards-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 40px;
    perspective: 1200px;
}

.showcase-card {
    width: 100%;
    position: relative;
}

.stacked-card {
    margin-bottom: 80px;
    transform-origin: center center;
    will-change: transform, opacity, filter;
}


.showcase-card-inner {
    padding: 60px 56px;
    background: rgba(12, 12, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: 3px solid rgba(220, 38, 38, 0.5);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 20px 60px rgba(0, 0, 0, 0.4);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card-inner:hover {
    border-top-color: rgba(220, 38, 38, 0.8);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(220, 38, 38, 0.05);
}

.showcase-icon-container {
    width: 220px;
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-icon {
    width: 100%;
    height: 100%;
}

.icon-orbit {
    animation: orbitSpin 12s linear infinite;
    transform-origin: center;
}

@keyframes orbitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════
   AIRSTRIKE PILLS
   ═══════════════════════════════════════ */

.airstrike-pill {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    cursor: default;
}

.airstrike-pill:hover {
    border-color: rgba(220, 38, 38, 0.4);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(220, 38, 38, 0.06);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.08);
}

/* ═══════════════════════════════════════
   BRAIN LAB — SLIDE-IN ANIMATION
   Pure CSS, triggered by .in-view class
   ═══════════════════════════════════════ */

#brain-lab {
    perspective: 1200px;
}

/* Main content wrapper — starts off to the left */
#brain-lab>.py-32 {
    transform: translateX(-60%) scale(0.9);
    opacity: 0;
    transition: transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#brain-lab.in-view>.py-32 {
    transform: translateX(0) scale(1);
    opacity: 1;
}

/* Section label — slides from left */
#brain-lab .section-label {
    transform: translateX(-200px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
        opacity 0.8s ease 0.1s;
}

#brain-lab.in-view .section-label {
    transform: translateX(0);
    opacity: 1;
}

/* Logo — fades in and drops down */
#brain-lab img[alt*="Brain Lab"] {
    transform: translateY(-30px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
        opacity 0.8s ease 0.2s;
}

#brain-lab.in-view img[alt*="Brain Lab"] {
    transform: translateY(0);
    opacity: 1;
}

/* Glass card — slides from bottom-left */
#brain-lab .glass-card {
    transform: translateX(-100px) translateY(60px);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s,
        opacity 0.9s ease 0.35s;
}

#brain-lab.in-view .glass-card {
    transform: translateX(0) translateY(0);
    opacity: 1;
}

/* Right column — slides from right */
#brain-lab .space-y-8 {
    transform: translateX(120px);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s,
        opacity 0.9s ease 0.45s;
}

#brain-lab.in-view .space-y-8 {
    transform: translateX(0);
    opacity: 1;
}

/* Client tickers — fade up from below */
#brain-lab .mt-20 {
    transform: translateY(80px);
    opacity: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s,
        opacity 0.8s ease 0.6s;
}

#brain-lab.in-view .mt-20 {
    transform: translateY(0);
    opacity: 1;
}

/* ═══════════════════════════════════════
   LARGE SCREEN SCALING
   Ensures the page doesn't look tiny on
   wide/4K monitors
   ═══════════════════════════════════════ */

/* 1600px+ screens — slightly bigger */
@media (min-width: 1600px) {
    .max-w-\[1400px\] {
        max-width: 1600px !important;
    }

    .max-w-\[1100px\] {
        max-width: 1300px !important;
    }

    .hero-text {
        font-size: clamp(3rem, 7vw, 8rem);
    }

    section {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* 1920px+ screens (Full HD+) — scale up more */
@media (min-width: 1920px) {
    .max-w-\[1400px\] {
        max-width: 1800px !important;
    }

    .max-w-\[1100px\] {
        max-width: 1500px !important;
    }

    .hero-text {
        font-size: clamp(3.5rem, 6.5vw, 9rem);
    }

    body {
        font-size: 1.0625rem;
    }

    h2 {
        font-size: 1.15em;
    }

    .glass-card {
        padding: 3rem;
    }

    section {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* 2560px+ screens (4K / Ultrawide) — biggest scaling */
@media (min-width: 2560px) {
    .max-w-\[1400px\] {
        max-width: 2100px !important;
    }

    .max-w-\[1100px\] {
        max-width: 1800px !important;
    }

    .hero-text {
        font-size: clamp(4rem, 6vw, 11rem);
    }

    body {
        font-size: 1.125rem;
        line-height: 1.8;
    }

    h2 {
        font-size: 1.25em;
    }

    .glass-card {
        padding: 3.5rem;
        border-radius: 32px;
    }

    .section-label {
        font-size: 0.8rem;
    }

    section {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .showcase-icon-container {
        width: 280px;
        height: 280px;
    }
}

/* ═══ AI STUDIO SECTION ANIMATIONS ═══ */

@keyframes ai-breathe {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.8);
        box-shadow: 0 0 4px rgba(220, 38, 38, 0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
        box-shadow: 0 0 16px rgba(220, 38, 38, 0.6);
    }
}

@keyframes ai-corner-pulse {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

@keyframes ai-text-flicker {

    0%,
    100% {
        opacity: 0.3;
    }

    30% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.1;
    }

    70% {
        opacity: 0.5;
    }
}

@keyframes ai-line-scan {
    0% {
        width: 0;
        opacity: 0;
    }

    20% {
        width: 6rem;
        opacity: 1;
    }

    80% {
        width: 6rem;
        opacity: 1;
    }

    100% {
        width: 0;
        opacity: 0;
    }
}

@keyframes ai-border-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ai-tag {
    position: relative;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
    transition: all 0.4s ease;
}

.ai-tag:hover {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.35);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.ai-capability-card:hover {
    background: rgba(220, 38, 38, 0.04) !important;
    border-color: rgba(220, 38, 38, 0.15) !important;
    box-shadow: 0 8px 40px rgba(220, 38, 38, 0.08);
    transform: translateY(-2px);
}

.ai-mega-card {
    background-size: 200% 200%;
}

@keyframes ai-orb-drift {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(30px, -40px);
    }

    50% {
        transform: translate(-20px, 20px);
    }

    75% {
        transform: translate(40px, 30px);
    }
}

/* ═══ ARTISTIC FLOWING LINES ANIMATIONS ═══ */

@keyframes al-draw {
    0% {
        stroke-dashoffset: 2000;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    60% {
        opacity: 0.8;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes al-draw-rev {
    0% {
        stroke-dashoffset: -2000;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    60% {
        opacity: 0.8;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

@keyframes al-breathe {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes al-sway {

    0%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-48%, -52%) rotate(0.5deg) scale(1.01);
    }

    50% {
        transform: translate(-50%, -48%) rotate(-0.3deg) scale(1.02);
    }

    75% {
        transform: translate(-52%, -50%) rotate(0.2deg) scale(1.01);
    }
}

.artistic-sway {
    animation: al-sway 25s ease-in-out infinite;
    transform-origin: center;
}

.artistic-sway-alt {
    animation: al-sway 30s ease-in-out infinite reverse;
    transform-origin: center;
}

/* Heritage section responsive */
@media (max-width: 1023px) {
    #heritage [style*="grid-template-columns:2fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ═══ SCROLL REVEAL ANIMATIONS ═══ */

.scroll-reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-left {
    transform: translateX(-40px) translateY(20px);
}

.scroll-reveal-right {
    transform: translateX(40px) translateY(20px);
}

.scroll-reveal-up {
    transform: translateY(40px);
}

.scroll-revealed {
    opacity: 1 !important;
    transform: translateX(0) translateY(0) !important;
}