/* ============================================================
   AVATAR HOLDINGS - WE ARE COMING
   Over-engineered CSS for a single page. You're welcome.
   ============================================================ */

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --c-bg: #0a0a0f;
    --c-bg-deep: #050508;
    --c-primary: #00d4ff;
    --c-primary-dim: #0088aa;
    --c-secondary: #7b2fff;
    --c-accent: #ff3366;
    --c-fire: #ff6600;
    --c-earth: #8b6914;
    --c-water: #0077cc;
    --c-nature: #33aa33;
    --c-text: #e0e6f0;
    --c-text-dim: #5a6380;
    --c-glow: rgba(0, 212, 255, 0.15);

    --font-display: 'Ferro Rosso', serif;
    --font-body: 'Ferro Rosso', serif;
    --font-mono: 'Ferro Rosso', serif;

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--c-bg);
    color: var(--c-text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- PRELOADER ---------- */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--c-bg-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: preloader-spin 2s linear infinite;
}

.preloader-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    border-top-color: var(--c-primary);
    border-right-color: var(--c-primary);
    animation-duration: 1.5s;
}

.preloader-ring:nth-child(2) {
    width: 90px;
    height: 90px;
    border-bottom-color: var(--c-secondary);
    border-left-color: var(--c-secondary);
    animation-duration: 2s;
    animation-direction: reverse;
}

.preloader-ring:nth-child(3) {
    width: 60px;
    height: 60px;
    border-top-color: var(--c-accent);
    animation-duration: 1s;
}

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

.preloader-core {
    width: 20px;
    height: 20px;
    background: var(--c-primary);
    border-radius: 50%;
    animation: preloader-pulse 1s ease-in-out infinite alternate;
    box-shadow: 0 0 20px var(--c-primary), 0 0 40px var(--c-primary), 0 0 60px rgba(0, 212, 255, 0.3);
}

@keyframes preloader-pulse {
    from { transform: scale(0.8); opacity: 0.6; }
    to { transform: scale(1.2); opacity: 1; }
}

.preloader-text {
    position: absolute;
    bottom: -40px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--c-text-dim);
    animation: preloader-blink 0.8s steps(2) infinite;
}

@keyframes preloader-blink {
    50% { opacity: 0; }
}

.preloader-progress {
    position: absolute;
    bottom: -60px;
    width: 150px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
    border-radius: 1px;
    transition: width 0.3s;
    box-shadow: 0 0 10px var(--c-primary);
}

/* ---------- CUSTOM CURSOR ---------- */
#cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

.cursor-ring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s;
}

.cursor-trail {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

body:hover .cursor-ring {
    width: 50px;
    height: 50px;
    border-color: rgba(0, 212, 255, 0.4);
}

/* ---------- BACKGROUND LAYERS ---------- */
#bg-layers {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.noise-overlay {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    animation: noise-drift 0.5s steps(3) infinite;
    pointer-events: none;
}

@keyframes noise-drift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(-2%, -1%); }
    66% { transform: translate(1%, 2%); }
    100% { transform: translate(0, 0); }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: orb-float 12s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--c-primary), transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
    animation-duration: 15s;
}

.gradient-orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--c-secondary), transparent 70%);
    bottom: -200px;
    right: -100px;
    animation-delay: -4s;
    animation-duration: 18s;
}

.gradient-orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--c-accent), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -8s;
    animation-duration: 20s;
    opacity: 0.08;
}

.gradient-orb-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--c-fire), transparent 70%);
    top: 20%;
    right: 20%;
    animation-delay: -2s;
    animation-duration: 14s;
    opacity: 0.06;
}

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

.gradient-orb-3 {
    animation-name: orb-float-center;
}

@keyframes orb-float-center {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    25% { transform: translate(-45%, -55%) scale(1.1); }
    50% { transform: translate(-55%, -45%) scale(0.9); }
    75% { transform: translate(-48%, -52%) scale(1.05); }
}

/* Perspective grid floor */
.perspective-grid {
    position: absolute;
    bottom: 0;
    left: -50%;
    width: 200%;
    height: 50%;
    perspective: 500px;
    overflow: hidden;
    opacity: 0.12;
}

.grid-plane {
    width: 100%;
    height: 200%;
    transform: rotateX(65deg);
    transform-origin: center top;
    background-image:
        linear-gradient(var(--c-primary-dim) 1px, transparent 1px),
        linear-gradient(90deg, var(--c-primary-dim) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-scroll 4s linear infinite;
}

@keyframes grid-scroll {
    to { transform: rotateX(65deg) translateY(60px); }
}

/* Scan lines */
.scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
    pointer-events: none;
    animation: scanline-flicker 0.15s steps(2) infinite;
}

@keyframes scanline-flicker {
    0% { opacity: 0.6; }
    50% { opacity: 0.65; }
}

/* Vignette */
.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.6) 100%);
    pointer-events: none;
}

/* ---------- GEOMETRIC SHAPES ---------- */
#geo-shapes {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.geo-shape {
    position: absolute;
    opacity: 0;
    animation: shape-appear 2s var(--ease-out-expo) forwards;
}

.shape-triangle {
    top: 15%;
    left: 8%;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid var(--c-primary);
    opacity: 0.1;
    animation: shape-float-1 8s ease-in-out infinite, shape-rotate 20s linear infinite;
    animation-delay: 0.5s;
}

.shape-square {
    top: 70%;
    right: 12%;
    width: 25px;
    height: 25px;
    border: 1.5px solid var(--c-secondary);
    opacity: 0.12;
    animation: shape-float-2 10s ease-in-out infinite, shape-rotate 15s linear infinite reverse;
    animation-delay: 1s;
}

.shape-pentagon {
    top: 30%;
    right: 20%;
    width: 30px;
    height: 30px;
    background: var(--c-accent);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    opacity: 0.06;
    animation: shape-float-3 12s ease-in-out infinite;
    animation-delay: 1.5s;
}

.shape-hexagon {
    bottom: 25%;
    left: 15%;
    width: 35px;
    height: 35px;
    background: var(--c-water);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.08;
    animation: shape-float-1 14s ease-in-out infinite, shape-rotate 25s linear infinite;
    animation-delay: 0.8s;
}

.shape-circle {
    top: 60%;
    left: 80%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid var(--c-nature);
    opacity: 0.1;
    animation: shape-float-2 9s ease-in-out infinite;
    animation-delay: 2s;
}

.shape-diamond {
    top: 80%;
    left: 40%;
    width: 22px;
    height: 22px;
    background: var(--c-fire);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    opacity: 0.06;
    animation: shape-float-3 11s ease-in-out infinite, shape-rotate 18s linear infinite reverse;
    animation-delay: 1.2s;
}

.shape-cross {
    top: 20%;
    right: 35%;
    width: 20px;
    height: 20px;
    opacity: 0.08;
    animation: shape-float-1 13s ease-in-out infinite;
    animation-delay: 0.3s;
}

.shape-cross::before,
.shape-cross::after {
    content: '';
    position: absolute;
    background: var(--c-primary);
}

.shape-cross::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.shape-cross::after {
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.shape-ring {
    bottom: 15%;
    right: 30%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--c-earth);
    opacity: 0.07;
    animation: shape-float-2 16s ease-in-out infinite, shape-rotate 30s linear infinite;
    animation-delay: 1.8s;
}

@keyframes shape-float-1 {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(10px) translateX(-15px); }
    75% { transform: translateY(-15px) translateX(5px); }
}

@keyframes shape-float-2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(15px) translateX(-10px); }
    66% { transform: translateY(-10px) translateX(20px); }
}

@keyframes shape-float-3 {
    0%, 100% { transform: translateY(0) translateX(0) scale(1); }
    50% { transform: translateY(-25px) translateX(15px) scale(1.1); }
}

@keyframes shape-rotate {
    to { rotate: 360deg; }
}

@keyframes shape-appear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* ---------- MAIN CONTENT ---------- */
#main-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 2rem;
    gap: 1.5rem;
}

/* Glitch lines */
.glitch-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
}

.glitch-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--c-primary);
    opacity: 0;
    transform: scaleX(0);
    animation: glitch-line-sweep 8s ease-in-out infinite;
}

.glitch-line:nth-child(1) { top: 20%; animation-delay: 0s; }
.glitch-line:nth-child(2) { top: 45%; animation-delay: 1.5s; background: var(--c-accent); }
.glitch-line:nth-child(3) { top: 65%; animation-delay: 3s; }
.glitch-line:nth-child(4) { top: 80%; animation-delay: 4.5s; background: var(--c-secondary); }
.glitch-line:nth-child(5) { top: 35%; animation-delay: 6s; background: var(--c-fire); }

@keyframes glitch-line-sweep {
    0%, 90%, 100% { opacity: 0; transform: scaleX(0); }
    92% { opacity: 0.6; transform: scaleX(1); }
    94% { opacity: 0; transform: scaleX(1); }
    96% { opacity: 0.3; transform: scaleX(0.5); }
    98% { opacity: 0; transform: scaleX(0); }
}

/* ---------- LOGO ---------- */
.logo-container {
    position: relative;
    width: clamp(150px, 25vw, 300px);
    aspect-ratio: 2/3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(40px) scale(0.8);
    animation: logo-entrance 2s var(--ease-out-expo) 0.3s forwards;
}

@keyframes logo-entrance {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo-glow {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, var(--c-glow) 0%, transparent 70%);
    animation: logo-glow-pulse 3s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes logo-glow-pulse {
    from { opacity: 0.5; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); }
}

.logo-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}

.logo-ring-1 {
    inset: -15%;
    border-color: rgba(0, 212, 255, 0.1);
    animation: logo-ring-rotate 12s linear infinite;
}

.logo-ring-2 {
    inset: -25%;
    border-color: rgba(123, 47, 255, 0.08);
    animation: logo-ring-rotate 18s linear infinite reverse;
    border-style: dashed;
}

.logo-ring-3 {
    inset: -35%;
    border-color: rgba(255, 51, 102, 0.05);
    animation: logo-ring-rotate 25s linear infinite;
    border-style: dotted;
}

@keyframes logo-ring-rotate {
    to { transform: rotate(360deg); }
}

.logo-pulse {
    position: absolute;
    inset: -5%;
    border-radius: 50%;
    border: 2px solid var(--c-primary);
    opacity: 0;
    animation: logo-pulse-expand 3s ease-out infinite;
}

@keyframes logo-pulse-expand {
    0% { inset: -5%; opacity: 0.4; }
    100% { inset: -40%; opacity: 0; }
}

.logo-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3))
            drop-shadow(0 0 40px rgba(0, 212, 255, 0.1));
    animation: logo-hover 4s ease-in-out infinite;
    will-change: transform, filter;
}

@keyframes logo-hover {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.3)) drop-shadow(0 0 40px rgba(0, 212, 255, 0.1)); }
    50% { transform: translateY(-10px); filter: drop-shadow(0 0 30px rgba(0, 212, 255, 0.5)) drop-shadow(0 0 60px rgba(0, 212, 255, 0.2)); }
}

.logo-reflection {
    position: absolute;
    bottom: -40%;
    left: 10%;
    right: 10%;
    height: 40%;
    background: inherit;
    transform: scaleY(-1);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent 60%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15), transparent 60%);
    filter: blur(4px);
    opacity: 0.3;
    pointer-events: none;
}

/* ---------- TITLE ---------- */
.title-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    animation: fade-in-up 1.5s var(--ease-out-expo) 0.8s forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-title {
    font-family: var(--font-display);
    font-weight: 800;
    text-align: center;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}

.title-line {
    display: flex;
    justify-content: center;
    gap: 0.05em;
}

.title-line-1 {
    font-size: clamp(2rem, 6vw, 5rem);
}

.title-line-2 {
    font-size: clamp(1.8rem, 5vw, 4.2rem);
    letter-spacing: 0.15em;
}

.char-wrapper {
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.char {
    display: inline-block;
    background: linear-gradient(135deg, var(--c-text) 0%, var(--c-primary) 50%, var(--c-secondary) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: char-gradient 6s ease-in-out infinite, char-entrance 0.8s var(--ease-out-expo) backwards;
    text-shadow: none;
}

.title-line-1 .char-wrapper:nth-child(1) .char { animation-delay: 1.0s, 1.0s; }
.title-line-1 .char-wrapper:nth-child(2) .char { animation-delay: 1.1s, 1.1s; }
.title-line-1 .char-wrapper:nth-child(3) .char { animation-delay: 1.2s, 1.2s; }
.title-line-1 .char-wrapper:nth-child(4) .char { animation-delay: 1.3s, 1.3s; }
.title-line-1 .char-wrapper:nth-child(5) .char { animation-delay: 1.4s, 1.4s; }
.title-line-1 .char-wrapper:nth-child(6) .char { animation-delay: 1.5s, 1.5s; }

.title-line-2 .char-wrapper:nth-child(1) .char { animation-delay: 1.6s, 1.6s; }
.title-line-2 .char-wrapper:nth-child(2) .char { animation-delay: 1.7s, 1.7s; }
.title-line-2 .char-wrapper:nth-child(3) .char { animation-delay: 1.8s, 1.8s; }
.title-line-2 .char-wrapper:nth-child(4) .char { animation-delay: 1.9s, 1.9s; }
.title-line-2 .char-wrapper:nth-child(5) .char { animation-delay: 2.0s, 2.0s; }
.title-line-2 .char-wrapper:nth-child(6) .char { animation-delay: 2.1s, 2.1s; }
.title-line-2 .char-wrapper:nth-child(7) .char { animation-delay: 2.2s, 2.2s; }
.title-line-2 .char-wrapper:nth-child(8) .char { animation-delay: 2.3s, 2.3s; }

@keyframes char-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes char-entrance {
    from {
        opacity: 0;
        transform: translateY(100%) rotateX(90deg);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
        filter: blur(0);
    }
}

/* Title decorators */
.title-decorator {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    animation: fade-in-up 1.5s var(--ease-out-expo) 2.5s forwards;
}

.title-decorator span {
    display: block;
    background: var(--c-primary);
    opacity: 0.3;
}

.title-decorator-left span:nth-child(1) { width: 30px; height: 2px; }
.title-decorator-left span:nth-child(2) { width: 20px; height: 2px; }
.title-decorator-left span:nth-child(3) { width: 10px; height: 2px; }

.title-decorator-right span:nth-child(1) { width: 10px; height: 2px; margin-left: auto; }
.title-decorator-right span:nth-child(2) { width: 20px; height: 2px; margin-left: auto; }
.title-decorator-right span:nth-child(3) { width: 30px; height: 2px; margin-left: auto; }

/* ---------- DIVIDER ---------- */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: clamp(200px, 40vw, 500px);
    opacity: 0;
    animation: fade-in-up 1.5s var(--ease-out-expo) 2.8s forwards;
}

.divider-line {
    flex: 1;
    height: 1px;
    position: relative;
    overflow: hidden;
}

.divider-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
    animation: divider-shimmer 3s ease-in-out infinite;
}

.divider-line-left::before {
    animation-delay: 0s;
}

.divider-line-right::before {
    animation-delay: 1.5s;
}

@keyframes divider-shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.divider-diamond {
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    transform: rotate(45deg);
    animation: divider-diamond-pulse 2s ease-in-out infinite alternate;
    box-shadow: 0 0 10px var(--c-primary), 0 0 20px rgba(0, 212, 255, 0.3);
}

@keyframes divider-diamond-pulse {
    from { transform: rotate(45deg) scale(0.8); opacity: 0.6; }
    to { transform: rotate(45deg) scale(1.2); opacity: 1; }
}

/* ---------- SUBTITLE / WE ARE COMING ---------- */
.subtitle-section {
    position: relative;
    text-align: center;
    opacity: 0;
    animation: fade-in-up 1.5s var(--ease-out-expo) 3.2s forwards;
}

.subtitle-reveal {
    overflow: hidden;
    position: relative;
}

.subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--c-text);
    display: flex;
    gap: 0.4em;
    justify-content: center;
    position: relative;
}

/* Glitch effect on subtitle */
.subtitle.glitch {
    position: relative;
}

.subtitle.glitch::before,
.subtitle.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    gap: 0.4em;
    justify-content: center;
    letter-spacing: 0.3em;
    pointer-events: none;
}

.subtitle.glitch::before {
    color: var(--c-primary);
    animation: glitch-1 4s infinite linear;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}

.subtitle.glitch::after {
    color: var(--c-accent);
    animation: glitch-2 4s infinite linear;
    clip-path: polygon(0 66%, 100% 66%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
    0%, 85%, 100% { transform: translate(0); }
    86% { transform: translate(-3px, -1px); }
    87% { transform: translate(3px, 1px); }
    88% { transform: translate(-1px, 2px); }
    89% { transform: translate(0); }
    94% { transform: translate(2px, -1px); }
    95% { transform: translate(-2px, 1px); }
    96% { transform: translate(0); }
}

@keyframes glitch-2 {
    0%, 83%, 100% { transform: translate(0); }
    84% { transform: translate(2px, 1px); }
    85% { transform: translate(-2px, -1px); }
    86% { transform: translate(1px, -2px); }
    87% { transform: translate(0); }
    92% { transform: translate(-3px, 1px); }
    93% { transform: translate(3px, -1px); }
    94% { transform: translate(0); }
}

.subtitle-word {
    display: inline-block;
    opacity: 0;
    animation: word-reveal 1s var(--ease-out-expo) forwards;
    position: relative;
}

#word-we { animation-delay: 3.4s; }
#word-are { animation-delay: 3.7s; }
#word-coming { animation-delay: 4.0s; }

@keyframes word-reveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Subtitle echoes */
.subtitle-echo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    text-align: center;
    pointer-events: none;
    color: var(--c-primary);
}

.subtitle-echo-1 {
    opacity: 0;
    animation: echo-expand 4s ease-out 4.5s infinite;
}

.subtitle-echo-2 {
    opacity: 0;
    animation: echo-expand 4s ease-out 5.3s infinite;
}

.subtitle-echo-3 {
    opacity: 0;
    animation: echo-expand 4s ease-out 6.1s infinite;
}

@keyframes echo-expand {
    0% {
        opacity: 0.3;
        transform: scale(1);
        filter: blur(0);
    }
    100% {
        opacity: 0;
        transform: scale(1.5);
        filter: blur(10px);
    }
}

/* ---------- STATUS BAR ---------- */
.status-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--c-text-dim);
    opacity: 0;
    animation: fade-in-up 1.5s var(--ease-out-expo) 4.5s forwards;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--c-primary);
    border-radius: 50%;
    animation: status-blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px var(--c-primary);
}

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

.status-text {
    text-transform: uppercase;
}

.status-code {
    color: var(--c-primary-dim);
    font-size: 0.6rem;
    opacity: 0.5;
}

/* ---------- CORNER DECORATIONS ---------- */
.corner {
    position: fixed;
    width: 60px;
    height: 60px;
    z-index: 3;
    opacity: 0;
    animation: fade-in 1.5s var(--ease-out-expo) 5s forwards;
}

@keyframes fade-in {
    to { opacity: 0.3; }
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--c-primary);
}

.corner-tl { top: 20px; left: 20px; }
.corner-tl::before { top: 0; left: 0; width: 25px; height: 1px; }
.corner-tl::after { top: 0; left: 0; width: 1px; height: 25px; }

.corner-tr { top: 20px; right: 20px; }
.corner-tr::before { top: 0; right: 0; width: 25px; height: 1px; }
.corner-tr::after { top: 0; right: 0; width: 1px; height: 25px; }

.corner-bl { bottom: 20px; left: 20px; }
.corner-bl::before { bottom: 0; left: 0; width: 25px; height: 1px; }
.corner-bl::after { bottom: 0; left: 0; width: 1px; height: 25px; }

.corner-br { bottom: 20px; right: 20px; }
.corner-br::before { bottom: 0; right: 0; width: 25px; height: 1px; }
.corner-br::after { bottom: 0; right: 0; width: 1px; height: 25px; }

/* ---------- SIDE ELEMENTS ---------- */
.side-element {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fade-in 2s var(--ease-out-expo) 5.5s forwards;
}

.side-left {
    left: 20px;
}

.side-right {
    right: 20px;
}

.side-line {
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--c-primary), transparent);
    animation: side-line-pulse 3s ease-in-out infinite alternate;
}

@keyframes side-line-pulse {
    from { height: 60px; opacity: 0.3; }
    to { height: 100px; opacity: 0.6; }
}

.side-data {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--c-text-dim);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    opacity: 0.3;
}

/* ---------- AUDIO BARS ---------- */
.audio-bars {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 30px;
    z-index: 3;
    opacity: 0;
    animation: fade-in 2s var(--ease-out-expo) 5.8s forwards;
}

.audio-bars .bar {
    width: 3px;
    background: var(--c-primary);
    border-radius: 1px 1px 0 0;
    opacity: 0.3;
    animation: bar-dance 1.2s ease-in-out infinite alternate;
}

.audio-bars .bar:nth-child(1)  { animation-delay: 0.00s; height: 8px; }
.audio-bars .bar:nth-child(2)  { animation-delay: 0.06s; height: 14px; }
.audio-bars .bar:nth-child(3)  { animation-delay: 0.12s; height: 10px; }
.audio-bars .bar:nth-child(4)  { animation-delay: 0.18s; height: 20px; }
.audio-bars .bar:nth-child(5)  { animation-delay: 0.24s; height: 16px; }
.audio-bars .bar:nth-child(6)  { animation-delay: 0.30s; height: 22px; }
.audio-bars .bar:nth-child(7)  { animation-delay: 0.36s; height: 12px; }
.audio-bars .bar:nth-child(8)  { animation-delay: 0.42s; height: 18px; }
.audio-bars .bar:nth-child(9)  { animation-delay: 0.48s; height: 24px; }
.audio-bars .bar:nth-child(10) { animation-delay: 0.54s; height: 14px; }
.audio-bars .bar:nth-child(11) { animation-delay: 0.60s; height: 26px; }
.audio-bars .bar:nth-child(12) { animation-delay: 0.66s; height: 18px; }
.audio-bars .bar:nth-child(13) { animation-delay: 0.72s; height: 10px; }
.audio-bars .bar:nth-child(14) { animation-delay: 0.78s; height: 22px; }
.audio-bars .bar:nth-child(15) { animation-delay: 0.84s; height: 16px; }
.audio-bars .bar:nth-child(16) { animation-delay: 0.90s; height: 20px; }
.audio-bars .bar:nth-child(17) { animation-delay: 0.96s; height: 12px; }
.audio-bars .bar:nth-child(18) { animation-delay: 1.02s; height: 8px; }
.audio-bars .bar:nth-child(19) { animation-delay: 1.08s; height: 14px; }
.audio-bars .bar:nth-child(20) { animation-delay: 1.14s; height: 6px; }

@keyframes bar-dance {
    0% { height: 4px; opacity: 0.2; }
    100% { height: 28px; opacity: 0.5; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .title-decorator { display: none; }
    .side-element { display: none; }
    .audio-bars { gap: 2px; }
    .audio-bars .bar { width: 2px; }
    .corner { width: 40px; height: 40px; }
    .corner::before { width: 15px !important; }
    .corner::after { height: 15px !important; }

    .logo-container {
        width: clamp(120px, 40vw, 200px);
    }

    .subtitle {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.2em;
    }
}

@media (max-width: 480px) {
    .geo-shape { display: none; }
    .corner { display: none; }
    .glitch-lines { display: none; }

    .logo-container {
        width: clamp(100px, 50vw, 180px);
    }

    .status-bar {
        flex-direction: column;
        gap: 0.5rem;
    }
}

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

    .noise-overlay,
    .scanlines,
    .glitch-lines,
    .subtitle.glitch::before,
    .subtitle.glitch::after {
        display: none;
    }
}

/* ---------- SELECTION ---------- */
::selection {
    background: var(--c-primary);
    color: var(--c-bg);
}
