/* ==========================================================================
   RANGORA — Coming Soon
   Aesthetic: luminous noir couture — near-black canvas, living gradient
   wordmark, drifting chromatic orbs, dual-direction category marquee.
   ========================================================================== */

:root {
    --ink:        #08070a;   /* near-black canvas            */
    --ink-2:      #0e0c12;   /* slightly lifted panel        */
    --bone:       #f4eee7;   /* warm off-white text          */
    --muted:      #8a8395;   /* dimmed lilac-grey            */
    --line:       rgba(244, 238, 231, 0.12);

    /* the "every color of life" spectrum */
    --c1: #ff5e7e;   /* rose       */
    --c2: #ffb24c;   /* amber      */
    --c3: #ffe66d;   /* gold       */
    --c4: #5ee6a8;   /* mint       */
    --c5: #4cc9ff;   /* sky        */
    --c6: #a070ff;   /* violet     */
    --c7: #ff6cd4;   /* magenta    */

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: var(--ink);
    color: var(--bone);
    font-family: "Outfit", system-ui, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ---------- Atmosphere: drifting chromatic orbs --------------------------- */
.orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    mix-blend-mode: screen;
    will-change: transform;
}
.orb--1 {
    width: 46vmax; height: 46vmax;
    top: -14vmax; left: -10vmax;
    background: radial-gradient(circle at 30% 30%, var(--c6), transparent 65%);
    animation: drift-1 26s var(--ease) infinite alternate;
}
.orb--2 {
    width: 40vmax; height: 40vmax;
    top: 8vmax; right: -14vmax;
    background: radial-gradient(circle at 70% 40%, var(--c1), transparent 65%);
    animation: drift-2 32s var(--ease) infinite alternate;
}
.orb--3 {
    width: 38vmax; height: 38vmax;
    bottom: -16vmax; left: 14vmax;
    background: radial-gradient(circle at 40% 60%, var(--c5), transparent 65%);
    animation: drift-3 29s var(--ease) infinite alternate;
}
.orb--4 {
    width: 30vmax; height: 30vmax;
    bottom: -8vmax; right: 6vmax;
    background: radial-gradient(circle at 50% 50%, var(--c4), transparent 65%);
    animation: drift-1 35s var(--ease) infinite alternate-reverse;
}

@keyframes drift-1 { to { transform: translate3d(8vmax, 6vmax, 0) scale(1.12); } }
@keyframes drift-2 { to { transform: translate3d(-7vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift-3 { to { transform: translate3d(6vmax, -7vmax, 0) scale(1.15); } }

/* ---------- Atmosphere: film grain + vignette ---------------------------- */
.grain {
    position: fixed;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(8) infinite;
}
@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10%  { transform: translate(-4%, -3%); }
    30%  { transform: translate(3%, -2%); }
    50%  { transform: translate(-2%, 4%); }
    70%  { transform: translate(4%, 2%); }
    90%  { transform: translate(-3%, 1%); }
}
.vignette {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Hero stage --------------------------------------------------- */
.stage {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(4rem, 10vh, 8rem) 1.25rem 2rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 clamp(1.4rem, 4vh, 2.4rem);
    font-size: clamp(0.66rem, 1.4vw, 0.8rem);
    font-weight: 500;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: rise 1s var(--ease) 0.1s forwards;
}
.eyebrow__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--c4);
    box-shadow: 0 0 0 0 rgba(94, 230, 168, 0.6);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(94, 230, 168, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(94, 230, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(94, 230, 168, 0); }
}

/* The living gradient wordmark */
.wordmark {
    margin: 0;
    line-height: 0.9;
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.25s forwards;
}
.wordmark__text {
    display: inline-block;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 900;
    font-size: clamp(3.4rem, 17vw, 15rem);
    letter-spacing: clamp(0.02em, 0.6vw, 0.08em);
    background: linear-gradient(
        100deg,
        var(--c1), var(--c2), var(--c3), var(--c4),
        var(--c5), var(--c6), var(--c7), var(--c1)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: flow 14s linear infinite;
    filter: drop-shadow(0 8px 60px rgba(160, 112, 255, 0.25));
}
@keyframes flow {
    to { background-position: 300% 50%; }
}

/* 404 reuses the gradient wordmark at a slightly tamer scale */
.wordmark--error .wordmark__text {
    font-size: clamp(5rem, 22vw, 13rem);
    letter-spacing: 0.04em;
}

.tagline {
    margin: clamp(1.2rem, 3.5vh, 2rem) 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.05rem, 3.4vw, 2.1rem);
    letter-spacing: 0.01em;
    color: var(--bone);
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.45s forwards;
}
.tagline__dot { color: var(--c1); }

.intro {
    max-width: 34rem;
    margin: clamp(1.1rem, 3vh, 1.6rem) auto 0;
    font-size: clamp(0.9rem, 1.8vw, 1.02rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--muted);
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.6s forwards;
}

/* Call-to-action button (used on the 404 page) */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: clamp(1.8rem, 5vh, 2.6rem) 0 0;
    padding: 0.85rem 1.7rem;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: rgba(244, 238, 231, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bone);
    font-family: "Outfit", system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-decoration: none;
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.75s forwards;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.cta svg {
    width: 18px; height: 18px;
    transition: transform 0.4s var(--ease);
}
.cta:hover {
    border-color: rgba(255, 108, 212, 0.5);
    background: rgba(160, 112, 255, 0.12);
    transform: translateY(-2px);
}
.cta:hover svg { transform: translateX(4px); }

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

/* ---------- Dual-direction category marquee ------------------------------ */
.marquee {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.5rem, 5vh, 3rem) 0 clamp(2rem, 5vh, 3rem);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.8s forwards;
}
.marquee__row { display: flex; overflow: hidden; }
.marquee__track {
    display: flex;
    flex-shrink: 0;
    gap: 0.85rem;
    padding-right: 0.85rem;
    width: max-content;
    will-change: transform;
}
.marquee__row--right .marquee__track { animation: scroll-left 38s linear infinite; }
.marquee__row--left  .marquee__track { animation: scroll-right 44s linear infinite; }

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes scroll-left  { to { transform: translateX(-50%); } }
@keyframes scroll-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.pill {
    flex-shrink: 0;
    padding: 0.62rem 1.4rem;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: rgba(244, 238, 231, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-size: clamp(0.82rem, 1.7vw, 0.98rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: var(--bone);
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.pill--ghost { color: var(--muted); background: transparent; }
.pill:hover {
    border-color: rgba(255, 108, 212, 0.5);
    background: rgba(160, 112, 255, 0.1);
    transform: translateY(-2px);
}

/* ---------- Footer ------------------------------------------------------- */
.footer {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    padding: 1.5rem 1.25rem clamp(2rem, 5vh, 3rem);
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: rise 1.1s var(--ease) 0.95s forwards;
}
.social { display: flex; gap: clamp(1rem, 4vw, 2.4rem); flex-wrap: wrap; justify-content: center; }
.social__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}
.social__link svg {
    width: 20px; height: 20px;
    fill: currentColor;
    transition: filter 0.35s var(--ease);
}
.social__link:hover {
    color: var(--bone);
    transform: translateY(-2px);
}
.social__link:hover svg {
    filter: drop-shadow(0 0 10px rgba(255, 108, 212, 0.6));
}
.copyright {
    margin: 0;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(138, 131, 149, 0.7);
}

/* ---------- Focus visibility --------------------------------------------- */
a:focus-visible {
    outline: 2px solid var(--c5);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Reduced motion ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .grain,
    .wordmark__text,
    .eyebrow__dot,
    .marquee__row--right .marquee__track,
    .marquee__row--left .marquee__track {
        animation: none !important;
    }
    .eyebrow, .wordmark, .tagline, .intro, .cta, .marquee, .footer {
        opacity: 1 !important;
        animation: none !important;
        transform: none !important;
    }
    /* Keep the gradient static but still visible on the wordmark */
    .wordmark__text { background-position: 50% 50%; }
}

/* ---------- Small screens ------------------------------------------------ */
@media (max-width: 480px) {
    .eyebrow { letter-spacing: 0.3em; }
    .intro { max-width: 22rem; }
}
