/* Trispark Design / XR demo page — Android XR–inspired layout */

body.design-page .starfield {
    opacity: 0.25;
}

body.design-page nav {
    background: rgba(0, 0, 0, 0.65);
}

.design-xr {
    --xr-accent: #6366f1;
    --xr-accent-2: #8b5cf6;
    --xr-accent-3: #a78bfa;
    --xr-surface: rgba(255, 255, 255, 0.04);
    --xr-border: rgba(255, 255, 255, 0.1);
    --xr-muted: rgba(255, 255, 255, 0.62);
    --xr-radius: 24px;
    --xr-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --vaulk-line: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Vaulk-style page progress */
.xr-page-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.06);
}

.xr-page-progress span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--xr-accent), #fff);
    transition: width 0.12s linear;
}

.design-xr--vaulk .xr-section-num {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--xr-muted);
    margin-bottom: 20px;
    padding-left: 24px;
}

.xr-vaulk-section {
    position: relative;
    border-top: 1px solid var(--vaulk-line);
}

.xr-hero--vaulk .xr-hero__bg-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 119px,
        rgba(255, 255, 255, 0.04) 119px,
        rgba(255, 255, 255, 0.04) 120px
    );
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
    pointer-events: none;
    z-index: 1;
}

.xr-hero__portal-frame--3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xr-hero__portal-grid {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(99, 102, 241, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    animation: xr-portal-grid 12s linear infinite;
    pointer-events: none;
}

@keyframes xr-portal-grid {
    0% { transform: perspective(400px) rotateX(8deg) translateY(0); }
    100% { transform: perspective(400px) rotateX(8deg) translateY(24px); }
}

/* Spotlight motion (no duplicate video) */
.xr-spotlight__visual--motion {
    position: relative;
    overflow: hidden;
    background: #0a0a14;
}

.xr-spotlight__visual--motion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.xr-spotlight__motion-layer {
    position: absolute;
    inset: -50%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.35), transparent, rgba(139, 92, 246, 0.3), transparent);
    animation: xr-spotlight-spin 14s linear infinite;
    mix-blend-mode: screen;
}

.xr-spotlight__motion-layer--2 {
    animation-duration: 22s;
    animation-direction: reverse;
    opacity: 0.6;
}

@keyframes xr-spotlight-spin {
    to { transform: rotate(360deg); }
}

/* Cinema — Vaulk scroll polish */
.design-xr--vaulk .xr-cinema__screen {
    transform: scale(var(--cinema-scale, 1));
    transition: transform 0.35s var(--xr-ease), box-shadow 0.35s;
}

.design-xr--vaulk .xr-cinema__step {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.design-xr--vaulk .xr-cinema__body {
    scroll-snap-type: y proximity;
}

.xr-cinema__counter {
    position: absolute;
    top: 20px;
    left: 24px;
    z-index: 15;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--xr-muted);
    font-weight: 600;
}

.xr-cinema__video {
    transform: scale(1.02);
}

.xr-cinema__layer.is-active .xr-cinema__video {
    animation: xr-cinema-zoom 18s ease-in-out infinite alternate;
}

@keyframes xr-cinema-zoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

.design-xr main,
.design-xr {
    overflow-x: clip;
}

/* Hero */
.xr-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    perspective: 1400px;
}

#xrParticles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.xr-hero__grid-floor {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -20%;
    height: 55%;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.35) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: perspective(500px) rotateX(72deg);
    transform-origin: center top;
    mask-image: linear-gradient(180deg, transparent, #000 35%, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 85%, transparent);
    opacity: 0.45;
    animation: xr-grid-scroll 20s linear infinite;
    z-index: 0;
}

@keyframes xr-grid-scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 48px; }
}

.xr-hero__aurora {
    position: absolute;
    inset: -20%;
    background:
        conic-gradient(from 180deg at 50% 50%, transparent, rgba(99, 102, 241, 0.15), transparent, rgba(139, 92, 246, 0.12), transparent);
    animation: xr-aurora-spin 25s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes xr-aurora-spin {
    to { transform: rotate(360deg); }
}

.xr-hero__scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.015) 2px,
        rgba(255, 255, 255, 0.015) 4px
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0.5;
}

.xr-hero__floaters {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.xr-floater {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.35);
    background: radial-gradient(circle at 30% 30%, rgba(139, 92, 246, 0.2), transparent 70%);
    animation: xr-floater-drift var(--dur, 14s) var(--xr-ease) infinite;
}

.xr-floater--1 { width: 120px; height: 120px; top: 18%; left: 8%; --dur: 16s; }
.xr-floater--2 { width: 64px; height: 64px; top: 28%; right: 12%; --dur: 12s; animation-delay: -3s; }
.xr-floater--3 { width: 90px; height: 90px; bottom: 32%; left: 14%; --dur: 18s; animation-delay: -6s; }
.xr-floater--4 { width: 48px; height: 48px; bottom: 40%; right: 18%; --dur: 10s; animation-delay: -2s; }

@keyframes xr-floater-drift {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    33% { transform: translate(12px, -20px) scale(1.08); opacity: 0.85; }
    66% { transform: translate(-8px, 14px) scale(0.95); opacity: 0.6; }
}

.xr-hero h1.xr-title-ready .xr-title-line {
    display: inline-block;
    animation: xr-title-in 1.1s var(--xr-ease) both;
}

@keyframes xr-title-in {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.92);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

.xr-hero__device-wrap {
    position: relative;
    z-index: 4;
    margin-top: 56px;
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

.xr-hero__ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.35);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.xr-hero__ring--1 {
    width: min(110%, 620px);
    height: min(110%, 620px);
    aspect-ratio: 1;
    animation: xr-ring-pulse 4s ease-in-out infinite;
}

.xr-hero__ring--2 {
    width: min(130%, 720px);
    height: min(130%, 720px);
    aspect-ratio: 1;
    border-color: rgba(99, 102, 241, 0.2);
    animation: xr-ring-pulse 4s ease-in-out infinite reverse;
    animation-delay: -2s;
}

@keyframes xr-ring-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.04); opacity: 0.9; }
}

.xr-hero__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 102, 241, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.2), transparent 50%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(167, 139, 250, 0.15), transparent 45%);
    pointer-events: none;
}

.xr-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: xr-orb-float 12s var(--xr-ease) infinite;
}

.xr-hero__orb--1 {
    width: 420px;
    height: 420px;
    background: rgba(99, 102, 241, 0.4);
    top: 10%;
    left: -8%;
}

.xr-hero__orb--2 {
    width: 320px;
    height: 320px;
    background: rgba(139, 92, 246, 0.35);
    bottom: 15%;
    right: -5%;
    animation-delay: -4s;
}

@keyframes xr-orb-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -30px) scale(1.05); }
}

.xr-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 920px;
}

.xr-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xr-accent-3);
    margin-bottom: 20px;
}

.xr-hero h1 {
    font-size: clamp(2.75rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.xr-hero h1 strong {
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--xr-accent-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xr-hero__lead {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    line-height: 1.65;
    color: var(--xr-muted);
    max-width: 680px;
    margin: 0 auto 40px;
}

.xr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.xr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s var(--xr-ease), box-shadow 0.25s var(--xr-ease), background 0.25s;
}

.xr-btn--primary {
    background: linear-gradient(135deg, var(--xr-accent), var(--xr-accent-2));
    color: #fff;
}

.xr-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.35);
}

.xr-btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid var(--xr-border);
}

.xr-btn--ghost:hover {
    background: var(--xr-surface);
    border-color: rgba(255, 255, 255, 0.25);
}

.xr-hero__device {
    position: relative;
    z-index: 2;
    margin-top: 0;
    width: min(100%, 560px);
    aspect-ratio: 16 / 10;
    border-radius: var(--xr-radius);
    overflow: hidden;
    border: 1px solid var(--xr-border);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: xr-device-float 5s var(--xr-ease) infinite;
}

@keyframes xr-device-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.xr-hero__device img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease, transform 8s ease;
    animation: xr-ken-burns 18s ease-in-out infinite alternate;
}

.xr-hero__device img.is-swapping {
    opacity: 0.4;
    transform: scale(1.02);
}

@keyframes xr-ken-burns {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.08) translate(-1%, -1%); }
}

.xr-hero__device::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 60%
    );
    background-size: 200% 100%;
    animation: xr-shimmer 3.5s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes xr-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.xr-hero__device::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
    z-index: 1;
}

.xr-hero__hud {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--xr-radius) - 8px);
    z-index: 3;
    pointer-events: none;
}

.xr-hero__hud::before,
.xr-hero__hud::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border-color: rgba(167, 139, 250, 0.8);
    border-style: solid;
}

.xr-hero__hud::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-radius: 8px 0 0 0;
}

.xr-hero__hud::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 8px 0;
}

/* Spotlight */
.xr-spotlight {
    padding: 100px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.xr-spotlight__card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
    border-radius: calc(var(--xr-radius) + 8px);
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
}

.xr-spotlight__card h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.xr-spotlight__card p {
    color: var(--xr-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.xr-spotlight__visual {
    border-radius: var(--xr-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    position: relative;
}

.xr-spotlight__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Category rail */
.xr-categories {
    padding: 0 24px 48px;
    max-width: 900px;
    margin: 0 auto;
}

.xr-categories__label {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--xr-muted);
    margin-bottom: 20px;
}

.xr-pill-rail {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.xr-pill {
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--xr-muted);
    background: var(--xr-surface);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.3s var(--xr-ease);
}

.xr-pill:hover {
    color: #fff;
    border-color: var(--xr-border);
}

.xr-pill.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.25));
    border-color: rgba(139, 92, 246, 0.5);
}

/* Section headers */
.xr-section {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.xr-section--wide {
    max-width: 1400px;
}

.xr-section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.xr-section__head h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.xr-section__head p {
    color: var(--xr-muted);
    font-size: 1.1rem;
    line-height: 1.65;
}

/* Scroll-story: Experience / Creation / Exploration / Expression */
.xr-scroll-story {
    position: relative;
    padding: 40px 0 0;
    max-width: 1400px;
    margin: 0 auto;
}

.xr-scroll-story .xr-section__head {
    padding: 0 24px;
}

.xr-scroll-story__nav-wrap {
    position: sticky;
    top: 80px;
    z-index: 60;
    padding: 16px 24px 20px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 85%, transparent 100%);
    backdrop-filter: blur(20px);
}

.xr-scroll-story__tabs {
    margin: 0 auto;
}

.xr-scroll-story__progress {
    max-width: 320px;
    height: 3px;
    margin: 16px auto 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
}

.xr-scroll-story__progress-fill {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--xr-accent), var(--xr-accent-2), var(--xr-accent-3));
    border-radius: 99px;
    transition: width 0.45s var(--xr-ease), transform 0.45s var(--xr-ease);
    transform-origin: left center;
}

.xr-scroll-story__track {
    position: relative;
    padding: 0 24px 40px;
}

.xr-scroll-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    z-index: 1;
    pointer-events: none;
}

.xr-scroll-slide:nth-child(1) { z-index: 1; }
.xr-scroll-slide:nth-child(2) { z-index: 2; }
.xr-scroll-slide:nth-child(3) { z-index: 3; }
.xr-scroll-slide:nth-child(4) { z-index: 4; }

.xr-scroll-slide__frame {
    position: relative;
    width: min(100%, 1080px);
    height: min(70vh, 640px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06) inset,
        0 40px 100px rgba(0, 0, 0, 0.65),
        0 0 80px rgba(99, 102, 241, 0.15);
    transform: scale(0.88) translateY(40px);
    opacity: 0.45;
    filter: blur(2px);
    transition:
        transform 0.65s var(--xr-ease),
        opacity 0.65s var(--xr-ease),
        filter 0.65s var(--xr-ease),
        box-shadow 0.65s var(--xr-ease);
    pointer-events: auto;
    will-change: transform, opacity;
}

.xr-scroll-slide.is-centered .xr-scroll-slide__frame {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.25) inset,
        0 50px 120px rgba(0, 0, 0, 0.75),
        0 0 120px rgba(139, 92, 246, 0.35);
}

.xr-scroll-slide__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    transition: transform 1.2s var(--xr-ease);
}

.xr-scroll-slide.is-centered .xr-scroll-slide__video {
    transform: scale(1);
    animation: xr-video-drift 20s ease-in-out infinite alternate;
}

@keyframes xr-video-drift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.06) translate(-1.5%, -1%); }
}

.xr-scroll-slide__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 35%, transparent 55%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

.xr-scroll-slide__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    padding: 48px 40px 36px;
    text-align: center;
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.6s var(--xr-ease), opacity 0.6s var(--xr-ease);
}

.xr-scroll-slide.is-centered .xr-scroll-slide__content {
    transform: translateY(0);
    opacity: 1;
}

.xr-scroll-slide__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--xr-accent-3);
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(167, 139, 250, 0.35);
    backdrop-filter: blur(8px);
}

.xr-scroll-slide__content h3 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.xr-scroll-slide .xr-panel__play {
    z-index: 5;
    bottom: auto;
    top: 20px;
    left: auto;
    right: 20px;
}

.xr-scroll-slide .xr-panel__mesh,
.xr-scroll-slide .xr-panel__scan,
.xr-scroll-slide .xr-panel__video-glow {
    z-index: 3;
}

/* Legacy explorer tab rail (shared) */
.xr-explorer__sticky {
    position: sticky;
    top: 88px;
    z-index: 50;
    padding: 16px 24px;
    margin: 0 -24px 32px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--xr-border);
}

.xr-tab-rail {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 640px;
    margin: 0 auto;
}

.xr-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--xr-muted);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s var(--xr-ease);
    font-family: inherit;
}

.xr-tab:hover {
    color: #fff;
}

.xr-tab.is-active {
    color: #fff;
    background: var(--xr-surface);
    box-shadow: 0 0 0 1px var(--xr-border);
}

.xr-panels {
    position: relative;
    min-height: 520px;
}

.xr-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.6s var(--xr-ease), transform 0.6s var(--xr-ease), visibility 0.6s;
}

.xr-panel.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.xr-panel__media {
    position: relative;
    border-radius: calc(var(--xr-radius) + 4px);
    overflow: hidden;
    aspect-ratio: 21 / 10;
    margin-bottom: 32px;
    border: 1px solid var(--xr-border);
}

.xr-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: xr-ken-burns 22s ease-in-out infinite alternate;
}

.xr-panel__media.xr-ken-burns-play img {
    animation: xr-ken-burns 22s ease-in-out infinite alternate;
}

.xr-panel__video-glow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa, #6366f1);
    background-size: 300% 100%;
    animation: xr-border-flow 4s linear infinite;
    z-index: -1;
    opacity: 0.6;
    filter: blur(12px);
}

@keyframes xr-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.xr-panel__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent, rgba(167, 139, 250, 0.08), transparent);
    animation: xr-scan-line 5s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes xr-scan-line {
    0%, 100% { top: -40%; opacity: 0; }
    10% { opacity: 1; }
    50% { top: 100%; opacity: 1; }
    60% { opacity: 0; }
}

.xr-panel__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.25), transparent 50%),
        linear-gradient(225deg, rgba(139, 92, 246, 0.2), transparent 50%);
    animation: xr-mesh-shift 8s ease infinite;
}

@keyframes xr-mesh-shift {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.xr-panel__play {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 8px 14px;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.xr-panel h3 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.2;
}

/* Capability cards */
.xr-cap-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.xr-cap-card {
    position: relative;
    border-radius: var(--xr-radius);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--xr-border);
    background: var(--xr-surface);
}

.xr-cap-card__bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.xr-cap-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-cap-card__content {
    position: relative;
    z-index: 2;
    padding: 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.85) 100%);
}

.xr-cap-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--xr-accent), var(--xr-accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.xr-cap-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.xr-cap-card p {
    color: var(--xr-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Design disciplines — secondary tabs */
.xr-disciplines {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06) 50%, transparent);
    padding: 100px 24px;
}

.xr-discipline-panels {
    max-width: 1100px;
    margin: 48px auto 0;
}

.xr-discipline-panel {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.xr-discipline-panel.is-active {
    display: grid;
}

.xr-discipline-panel.xr-discipline-enter {
    animation: xr-discipline-in 0.6s var(--xr-ease);
}

@keyframes xr-discipline-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.xr-discipline-panel__media {
    position: relative;
    border-radius: var(--xr-radius);
    overflow: hidden;
    aspect-ratio: 1;
    border: 1px solid var(--xr-border);
}

.xr-discipline-panel__media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.25) inset;
    pointer-events: none;
}

.xr-discipline-panel__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-discipline-panel h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.xr-discipline-panel p {
    color: var(--xr-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.xr-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.xr-tag-list li {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    background: rgba(99, 102, 241, 0.15);
    color: var(--xr-accent-3);
    border: 1px solid rgba(99, 102, 241, 0.25);
}

/* Gallery */
.xr-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 100px;
}

.xr-gallery__item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--xr-border);
    aspect-ratio: 1;
}

.xr-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--xr-ease);
}

.xr-gallery__item:hover img {
    transform: scale(1.06);
}

.xr-gallery__item--lg {
    grid-column: span 6;
    aspect-ratio: 16 / 10;
}

.xr-gallery__item--md {
    grid-column: span 3;
}

.xr-gallery__item--sm {
    grid-column: span 3;
}

.xr-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
    opacity: 0;
    transition: opacity 0.35s;
}

.xr-gallery__item:hover .xr-gallery__overlay {
    opacity: 1;
}

.xr-gallery__overlay span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Motion lab */
.xr-motion-lab {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.xr-motion-card {
    aspect-ratio: 1;
    border-radius: 16px;
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    overflow: hidden;
}

.xr-motion-card__demo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--xr-accent), var(--xr-accent-2));
}

.xr-motion-card:nth-child(1) .xr-motion-card__demo {
    animation: xr-spin 3s linear infinite;
}

.xr-motion-card:nth-child(2) .xr-motion-card__demo {
    animation: xr-pulse 1.8s ease-in-out infinite;
}

.xr-motion-card:nth-child(3) .xr-motion-card__demo {
    animation: xr-bounce 1.4s ease-in-out infinite;
}

.xr-motion-card:nth-child(4) .xr-motion-card__demo {
    animation: xr-morph 4s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes xr-spin {
    to { transform: rotate(360deg); }
}

@keyframes xr-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.6; }
}

@keyframes xr-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes xr-morph {
    0%, 100% { border-radius: 12px; transform: rotate(0deg); }
    50% { border-radius: 50%; transform: rotate(180deg); }
}

.xr-motion-card span {
    font-size: 0.85rem;
    color: var(--xr-muted);
}

/* Stats strip */
.xr-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

.xr-stat {
    text-align: center;
    padding: 28px 16px;
    border-radius: var(--xr-radius);
    background: var(--xr-surface);
    border: 1px solid var(--xr-border);
}

.xr-stat strong {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--xr-accent-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.xr-stat span {
    font-size: 0.9rem;
    color: var(--xr-muted);
}

/* Build CTA */
.xr-build {
    text-align: center;
    padding: 100px 24px;
    margin: 0 24px 80px;
    border-radius: calc(var(--xr-radius) + 8px);
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08)),
        var(--xr-surface);
    border: 1px solid var(--xr-border);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.xr-build h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.xr-build p {
    color: var(--xr-muted);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.65;
}

/* FAQ scoped */
.design-xr .faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.design-xr .xr-faq-wrap {
    padding: 40px 24px 100px;
}

.design-xr .xr-faq-wrap h2 {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .xr-spotlight__card,
    .xr-discipline-panel.is-active {
        grid-template-columns: 1fr;
    }

    .xr-cap-grid {
        grid-template-columns: 1fr;
    }

    .xr-gallery__item--lg,
    .xr-gallery__item--md,
    .xr-gallery__item--sm {
        grid-column: span 6;
    }

    .xr-motion-lab {
        grid-template-columns: repeat(2, 1fr);
    }

    .xr-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .xr-scroll-story__nav-wrap {
        top: 72px;
    }

    .xr-scroll-slide {
        padding: 120px 0 60px;
    }

    .xr-scroll-slide__frame {
        height: min(58vh, 480px);
        border-radius: 20px;
    }

    .xr-scroll-slide__content {
        padding: 32px 20px 24px;
    }
}

@media (max-width: 600px) {
    .xr-spotlight__card {
        padding: 28px;
    }

    .xr-gallery__item--lg,
    .xr-gallery__item--md,
    .xr-gallery__item--sm {
        grid-column: span 12;
    }

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

    .xr-panel__media {
        aspect-ratio: 4 / 3;
    }

    .xr-hero__ring--1,
    .xr-hero__ring--2 {
        display: none;
    }
}

/* ——— Mega hero (full-width cinematic stage) ——— */
.xr-hero--mega {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 24px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
}

.xr-hero__mega-wrap {
    position: relative;
    z-index: 8;
    width: min(100%, 1320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.xr-hero--mega .xr-hero__inner {
    max-width: 900px;
}

.xr-eyebrow--pulse {
    animation: xr-eyebrow-glow 2.5s ease-in-out infinite;
}

@keyframes xr-eyebrow-glow {
    0%, 100% { opacity: 0.85; text-shadow: 0 0 0 transparent; }
    50% { opacity: 1; text-shadow: 0 0 24px rgba(167, 139, 250, 0.5); }
}

.xr-hero__title {
    font-size: clamp(3rem, 10vw, 6.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.xr-hero__title-line {
    display: inline-block;
    animation: xr-title-rise 1s var(--xr-ease) both;
}

.xr-hero__title-gradient {
    display: inline-block;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 40%, #6366f1 70%, #8b5cf6 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: xr-gradient-flow 5s ease infinite, xr-title-rise 1s var(--xr-ease) 0.15s both;
}

@keyframes xr-title-rise {
    from { opacity: 0; transform: translateY(40px); filter: blur(8px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes xr-gradient-flow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.xr-hero--mega .xr-hero__lead {
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.xr-hero--mega .xr-hero__actions {
    justify-content: center;
}

.xr-btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* Hero stage — large cinematic frame */
.xr-hero__stage {
    position: relative;
    width: 100%;
    max-width: 1280px;
    perspective: 1400px;
}

.xr-hero__stage-glow {
    position: absolute;
    inset: -8%;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.35), transparent 65%);
    animation: xr-stage-glow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes xr-stage-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.xr-hero__stage-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.xr-hero__stage-ring--1 {
    width: 108%;
    height: 108%;
    animation: xr-stage-ring 8s linear infinite;
}

.xr-hero__stage-ring--2 {
    width: 118%;
    height: 118%;
    border-color: rgba(99, 102, 241, 0.15);
    animation: xr-stage-ring 12s linear infinite reverse;
}

@keyframes xr-stage-ring {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.xr-hero__stage-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(68vh, 720px);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.2) inset,
        0 50px 120px rgba(0, 0, 0, 0.75),
        0 0 100px rgba(99, 102, 241, 0.25);
    transform: rotateX(var(--stage-rx, 2deg)) rotateY(var(--stage-ry, 0deg));
    transition: transform 0.2s ease-out;
    background: #050508;
}

.xr-hero__stage-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: xr-stage-video-drift 22s ease-in-out infinite alternate;
}

@keyframes xr-stage-video-drift {
    0% { transform: scale(1); }
    100% { transform: scale(1.06); }
}

.xr-hero__stage-scan {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(167, 139, 250, 0.06) 100%);
    animation: xr-scan-line 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

.xr-hero__stage-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 90% 80% at 50% 50%, transparent 50%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.xr-hero__stage-frame .xr-hero__hud {
    z-index: 4;
}

.xr-hero__stage-label {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.xr-hero__stage-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 12px #22c55e;
    animation: xr-live-pulse 1.5s ease infinite;
}

@keyframes xr-live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* Floating tags */
.xr-hero__float-tags {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.xr-float-tag {
    position: absolute;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--xr-accent-3);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(167, 139, 250, 0.35);
    backdrop-filter: blur(8px);
    animation: xr-tag-float 10s var(--xr-ease) infinite;
}

.xr-float-tag--1 { top: 18%; left: 8%; animation-delay: 0s; }
.xr-float-tag--2 { top: 28%; right: 10%; animation-delay: -2s; }
.xr-float-tag--3 { bottom: 32%; left: 12%; animation-delay: -4s; }
.xr-float-tag--4 { bottom: 38%; right: 8%; animation-delay: -6s; }

@keyframes xr-tag-float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(8px, -14px); }
    66% { transform: translate(-6px, 10px); }
}

.xr-hero__world--center {
    left: 50%;
    right: auto;
    top: 55%;
    transform: translate(-50%, -50%);
    width: min(90vw, 900px);
    height: min(75vh, 700px);
    opacity: 0.55;
}

.xr-orbit-world--lg {
    inset: 0;
}

.xr-hero--mega .xr-hero__bg-dim {
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(99, 102, 241, 0.12), transparent 55%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 45%, rgba(0, 0, 0, 0.85) 100%);
}

.xr-hero--mega .xr-hero__grid-floor {
    opacity: 0.35;
    bottom: -10%;
    height: 45%;
}

@media (max-width: 900px) {
    .xr-hero--mega {
        padding: 96px 16px 64px;
    }

    .xr-hero__mega-wrap {
        gap: 32px;
    }

    .xr-hero__stage-frame {
        border-radius: 16px;
        max-height: 52vh;
    }

    .xr-float-tag {
        display: none;
    }

    .xr-hero__world--center {
        width: 100%;
        height: 50vh;
        opacity: 0.35;
    }
}

/* ——— Pro hero + 3D world (legacy) ——— */
.xr-hero--pro {
    min-height: 100vh;
    padding: 110px 32px 64px;
    justify-content: flex-end;
}

.xr-hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.xr-hero__bg-dim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.35) 100%),
        linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
}

.xr-hero__world {
    position: absolute;
    right: 4%;
    top: 50%;
    transform: translateY(-48%);
    width: min(48vw, 500px);
    height: min(62vh, 500px);
    z-index: 2;
    pointer-events: none;
}

#xrWorld3d {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.xr-orbit-world {
    position: absolute;
    inset: 10%;
    transform-style: preserve-3d;
    perspective: 900px;
    animation: xr-orbit-tilt 14s var(--xr-ease) infinite alternate;
}

@keyframes xr-orbit-tilt {
    0% { transform: rotateX(12deg) rotateY(-8deg); }
    100% { transform: rotateX(18deg) rotateY(12deg); }
}

.xr-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.45);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.xr-orbit-ring--a { animation: xr-orbit-spin 18s linear infinite; }
.xr-orbit-ring--b { inset: 12%; animation: xr-orbit-spin 24s linear infinite reverse; opacity: 0.7; }
.xr-orbit-ring--c { inset: 24%; animation: xr-orbit-spin 30s linear infinite; opacity: 0.45; }

@keyframes xr-orbit-spin {
    to { transform: rotateZ(360deg); }
}

.xr-orbit-core {
    position: absolute;
    inset: 38%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
    animation: xr-core-pulse 3s ease-in-out infinite;
}

@keyframes xr-core-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.xr-hero__layout {
    position: relative;
    z-index: 6;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    max-width: 1180px;
    width: 100%;
    align-items: center;
    text-align: left;
}

.xr-hero--pro .xr-hero__inner {
    max-width: none;
}

.xr-hero__portal-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(167, 139, 250, 0.35);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.2);
    transform: perspective(800px) rotateY(-6deg) rotateX(4deg);
    transition: transform 0.4s var(--xr-ease);
}

.xr-hero__portal:hover .xr-hero__portal-frame {
    transform: perspective(800px) rotateY(0deg) rotateX(0deg);
}

.xr-hero__portal-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.xr-hero__portal-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
    background-size: 220% 100%;
    animation: xr-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

.xr-hero__portal-caption {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--xr-muted);
    text-align: center;
    letter-spacing: 0.06em;
}

.xr-hero__scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--xr-muted);
}

.xr-hero__scroll-hint i {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    position: relative;
}

.xr-hero__scroll-hint i::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    background: #fff;
    border-radius: 2px;
    animation: xr-scroll-dot 1.6s ease infinite;
}

@keyframes xr-scroll-dot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* Marquee */
.xr-marquee-band {
    overflow: hidden;
    padding: 20px 0;
    border-block: 1px solid var(--xr-border);
    background: rgba(99, 102, 241, 0.06);
}

.xr-marquee-band__track {
    display: flex;
    gap: 48px;
    width: max-content;
    animation: xr-marquee 28s linear infinite;
}

.xr-marquee-band__track span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xr-accent-3);
    white-space: nowrap;
}

@keyframes xr-marquee {
    to { transform: translateX(-50%); }
}

/* Cinema viewport (fixed video on scroll) */
.xr-cinema {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px 0;
}

.xr-cinema__nav {
    position: sticky;
    top: 80px;
    z-index: 40;
    padding: 12px 0 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7) 80%, transparent);
    backdrop-filter: blur(16px);
}

.xr-cinema__progress {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    margin-top: 14px;
    overflow: hidden;
}

.xr-cinema__progress span {
    display: block;
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--xr-accent), var(--xr-accent-2));
    border-radius: 99px;
    transition: width 0.5s var(--xr-ease);
}

.xr-cinema__body {
    position: relative;
}

.xr-cinema__pin {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 40px;
    z-index: 10;
}

.xr-cinema__screen {
    position: relative;
    width: min(100%, 1040px);
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 620px);
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    background: #080810;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 1px rgba(167, 139, 250, 0.15) inset,
        0 40px 100px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(99, 102, 241, 0.2);
}

.xr-cinema__layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s var(--xr-ease), visibility 0.65s;
    z-index: 1;
}

.xr-cinema__layer.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.xr-cinema__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.xr-cinema__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 32px 28px;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.85) 100%);
    pointer-events: none;
}

.xr-cinema__tag {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--xr-accent-3);
    margin-bottom: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(167, 139, 250, 0.35);
}

.xr-cinema__overlay h3 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    max-width: 640px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
}

.xr-cinema__screen .xr-panel__mesh,
.xr-cinema__screen .xr-panel__scan {
    z-index: 4;
    pointer-events: none;
}

.xr-cinema__play-btn {
    position: absolute;
    z-index: 20;
    right: 16px;
    top: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s, background 0.2s;
}

.xr-cinema__play-btn:hover {
    transform: scale(1.08);
    background: rgba(99, 102, 241, 0.6);
}

.xr-cinema__play-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.xr-cinema__steps {
    position: relative;
    z-index: 1;
    margin-top: -100vh;
}

.xr-cinema__step {
    height: 100vh;
    pointer-events: none;
}

/* Immersive strip */
.xr-immersive-strip {
    position: relative;
    padding: 100px 24px;
    margin: 40px 24px 0;
    border-radius: calc(var(--xr-radius) + 4px);
    overflow: hidden;
    border: 1px solid var(--xr-border);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(0, 0, 0, 0.4));
}

.xr-immersive-strip__grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    opacity: 0.35;
}

.xr-immersive-strip__grid span {
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.15), transparent);
    animation: xr-strip-pulse 4s ease-in-out infinite;
}

.xr-immersive-strip__grid span:nth-child(odd) { animation-delay: -2s; }

@keyframes xr-strip-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.xr-immersive-strip__content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.xr-immersive-strip__content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.xr-immersive-strip__content p {
    color: var(--xr-muted);
    line-height: 1.7;
}

.xr-spotlight__visual--video {
    position: relative;
    overflow: hidden;
}

.xr-spotlight__visual--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.xr-spotlight__visual-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    pointer-events: none;
}

.design-xr video.is-paused {
    filter: brightness(0.7);
}

@media (max-width: 900px) {
    .xr-hero__layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .xr-hero__world {
        width: 280px;
        height: 280px;
        right: 50%;
        transform: translate(50%, -30%);
        opacity: 0.5;
    }

    .xr-hero--pro {
        padding-bottom: 80px;
    }

    .xr-cinema__pin {
        padding: 100px 0 24px;
    }

    .xr-cinema__screen {
        max-height: 50vh;
        border-radius: 16px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .design-xr *,
    .design-xr *::before,
    .design-xr *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #xrParticles {
        display: none;
    }
}
