/* =========================================================
   sora.quest -- Y2K futurism, full-bleed, eclectic-hybrid
   ========================================================= */

:root {
    --chrome-black: #0D0D12;
    --holo-white: #F4F0FF;
    --y2k-blue: #4D7CFF;
    --iridescent-pink: #FF66AA;
    --chrome-silver: #C8CCD4;
    --neon-cyan: #00E5CC;
    --deep-violet: #2B1854;

    /* per-panel theme variables (defaults = dark scheme) */
    --bg: var(--chrome-black);
    --text: var(--holo-white);
    --text-muted: rgba(244, 240, 255, 0.66);
    --accent: var(--y2k-blue);
    --accent-alt: var(--iridescent-pink);
    --border: rgba(200, 204, 212, 0.24);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1vw, 1.05rem);
    line-height: 1.75;
    background: var(--chrome-black);
    color: var(--holo-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================================
   Navigation ribbon
   ========================================================= */
.nav-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 100;
    background: rgba(13, 13, 18, 0.28);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    transition: background 0.6s ease, color 0.6s ease;
}

.nav-ribbon.nav-on-light {
    background: rgba(244, 240, 255, 0.35);
    color: var(--chrome-black);
}

.nav-inner {
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: baseline;
}
.nav-brand .brand-sora {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    line-height: 1;
}
.nav-brand .brand-dot {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: var(--iridescent-pink);
    margin: 0 0.05em;
}
.nav-brand .brand-quest {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.8rem);
    list-style: none;
}

.nav-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: inherit;
    opacity: 0.82;
    text-decoration: none;
    padding: 4px 0;
    background-image: linear-gradient(90deg, var(--y2k-blue), var(--iridescent-pink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    transition: background-size 0.32s ease, opacity 0.25s ease, color 0.25s ease;
}
.nav-link:hover {
    opacity: 1;
    background-size: 100% 2px;
}

.nav-border {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background-image: linear-gradient(
        90deg,
        rgba(200, 204, 212, 0.9) 0%,
        rgba(77, 124, 255, 0.9) 33%,
        rgba(255, 102, 170, 0.9) 66%,
        rgba(0, 229, 204, 0.9) 100%
    );
    background-size: 300% 100%;
    background-repeat: repeat-x;
    animation: shimmerBorder 8s linear infinite;
    opacity: 0.9;
}

@keyframes shimmerBorder {
    0%   { background-position: 0% 0; }
    100% { background-position: 300% 0; }
}

/* =========================================================
   Panels
   ========================================================= */
.panel {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: clamp(6rem, 14vh, 10rem) clamp(1.25rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    transition: background 0.6s ease, color 0.6s ease;
}

.panel-dark {
    --bg: var(--chrome-black);
    --text: var(--holo-white);
    --text-muted: rgba(244, 240, 255, 0.66);
    --accent: var(--y2k-blue);
    --accent-alt: var(--iridescent-pink);
    --border: rgba(200, 204, 212, 0.22);
}

.panel-light {
    --bg: var(--holo-white);
    --text: var(--chrome-black);
    --text-muted: rgba(13, 13, 18, 0.62);
    --accent: var(--deep-violet);
    --accent-alt: var(--iridescent-pink);
    --border: rgba(43, 24, 84, 0.18);
}

.panel-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
}

/* =========================================================
   Gradient meshes (each panel unique)
   ========================================================= */
.mesh {
    position: absolute;
    inset: -10%;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.5px);
}

/* Hero mesh -- silver / blue / pink (dark ground) */
.mesh-hero {
    background-image:
        radial-gradient(ellipse 55% 60% at 22% 30%, rgba(77, 124, 255, 0.55), transparent 60%),
        radial-gradient(ellipse 50% 50% at 80% 20%, rgba(255, 102, 170, 0.45), transparent 60%),
        radial-gradient(ellipse 60% 55% at 65% 80%, rgba(0, 229, 204, 0.28), transparent 65%),
        conic-gradient(from 200deg at 50% 50%, rgba(200, 204, 212, 0.2), rgba(43, 24, 84, 0.5), rgba(77, 124, 255, 0.28), rgba(200, 204, 212, 0.2));
    background-blend-mode: screen, screen, screen, normal;
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: meshDrift1 18s ease-in-out infinite alternate;
}

/* Panel 1 mesh (light) -- pink / blue / silver on holo-white */
.mesh-1 {
    background-image:
        radial-gradient(ellipse 60% 55% at 15% 25%, rgba(77, 124, 255, 0.35), transparent 65%),
        radial-gradient(ellipse 55% 60% at 85% 70%, rgba(255, 102, 170, 0.32), transparent 65%),
        radial-gradient(ellipse 40% 45% at 60% 25%, rgba(0, 229, 204, 0.22), transparent 65%),
        conic-gradient(from 45deg at 70% 40%, rgba(200, 204, 212, 0.3), rgba(244, 240, 255, 0.1), rgba(77, 124, 255, 0.22), rgba(200, 204, 212, 0.3));
    background-blend-mode: screen, screen, screen, normal;
    background-size: 220% 220%, 220% 220%, 220% 220%, 100% 100%;
    animation: meshDrift2 20s ease-in-out infinite alternate;
}

/* Panel 2 mesh (dark) -- violet / cyan / blue */
.mesh-2 {
    background-image:
        radial-gradient(ellipse 55% 60% at 80% 25%, rgba(0, 229, 204, 0.34), transparent 60%),
        radial-gradient(ellipse 60% 55% at 20% 70%, rgba(77, 124, 255, 0.42), transparent 65%),
        radial-gradient(ellipse 45% 45% at 55% 50%, rgba(43, 24, 84, 0.6), transparent 65%),
        conic-gradient(from 120deg at 40% 60%, rgba(43, 24, 84, 0.55), rgba(13, 13, 18, 0.2), rgba(255, 102, 170, 0.22), rgba(43, 24, 84, 0.55));
    background-blend-mode: multiply, screen, screen, normal;
    background-size: 220% 220%, 220% 220%, 220% 220%, 100% 100%;
    animation: meshDrift3 17s ease-in-out infinite alternate;
}

/* Panel 3 mesh (light) -- violet / pink / cyan */
.mesh-3 {
    background-image:
        radial-gradient(ellipse 50% 55% at 80% 30%, rgba(255, 102, 170, 0.3), transparent 65%),
        radial-gradient(ellipse 60% 55% at 20% 75%, rgba(43, 24, 84, 0.22), transparent 70%),
        radial-gradient(ellipse 45% 40% at 50% 45%, rgba(0, 229, 204, 0.18), transparent 65%),
        conic-gradient(from 280deg at 30% 40%, rgba(200, 204, 212, 0.32), rgba(244, 240, 255, 0.1), rgba(255, 102, 170, 0.2), rgba(200, 204, 212, 0.32));
    background-blend-mode: screen, screen, screen, normal;
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    animation: meshDrift4 19s ease-in-out infinite alternate;
}

/* Panel 4 mesh (dark) -- pink / blue / violet */
.mesh-4 {
    background-image:
        radial-gradient(ellipse 55% 60% at 25% 25%, rgba(255, 102, 170, 0.42), transparent 65%),
        radial-gradient(ellipse 60% 60% at 78% 75%, rgba(77, 124, 255, 0.48), transparent 65%),
        radial-gradient(ellipse 40% 45% at 50% 50%, rgba(43, 24, 84, 0.5), transparent 65%),
        conic-gradient(from 340deg at 60% 30%, rgba(43, 24, 84, 0.55), rgba(13, 13, 18, 0.2), rgba(0, 229, 204, 0.2), rgba(43, 24, 84, 0.55));
    background-blend-mode: multiply, screen, screen, normal;
    background-size: 220% 220%, 220% 220%, 220% 220%, 100% 100%;
    animation: meshDrift5 21s ease-in-out infinite alternate;
}

/* Footer mesh (light) -- subtle silver / blue */
.mesh-footer {
    background-image:
        radial-gradient(ellipse 60% 55% at 20% 40%, rgba(77, 124, 255, 0.22), transparent 70%),
        radial-gradient(ellipse 55% 55% at 85% 60%, rgba(255, 102, 170, 0.2), transparent 70%),
        conic-gradient(from 60deg at 50% 50%, rgba(200, 204, 212, 0.28), rgba(244, 240, 255, 0.1), rgba(200, 204, 212, 0.28));
    background-blend-mode: screen, screen, normal;
    background-size: 200% 200%, 200% 200%, 100% 100%;
    animation: meshDrift2 22s ease-in-out infinite alternate;
}

@keyframes meshDrift1 {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    100% { background-position: 100% 100%, 0% 100%, 20% 40%, 0 0; }
}
@keyframes meshDrift2 {
    0%   { background-position: 100% 0%, 0% 100%, 50% 50%, 0 0; }
    100% { background-position: 0% 100%, 100% 0%, 20% 80%, 0 0; }
}
@keyframes meshDrift3 {
    0%   { background-position: 20% 80%, 80% 20%, 50% 50%, 0 0; }
    100% { background-position: 80% 20%, 20% 80%, 70% 30%, 0 0; }
}
@keyframes meshDrift4 {
    0%   { background-position: 0% 100%, 100% 0%, 40% 60%, 0 0; }
    100% { background-position: 100% 0%, 0% 100%, 60% 40%, 0 0; }
}
@keyframes meshDrift5 {
    0%   { background-position: 50% 0%, 50% 100%, 30% 30%, 0 0; }
    100% { background-position: 50% 100%, 50% 0%, 70% 70%, 0 0; }
}

/* =========================================================
   Hero panel
   ========================================================= */
.panel-hero {
    padding-top: 48px;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    text-align: center;
    padding: 0 1rem;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 10rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin: 1.2rem 0 2rem;
}

.hero-sora {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: var(--holo-white);
    background: linear-gradient(180deg, #FFFFFF 0%, #C8CCD4 60%, #9AA3B4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-dot {
    font-family: 'DM Serif Display', serif;
    display: inline-block;
    color: var(--iridescent-pink);
    text-shadow:
        0 0 14px rgba(255, 102, 170, 0.8),
        0 0 28px rgba(255, 102, 170, 0.45);
    animation: dotPulse 3.4s ease-in-out infinite;
    margin: 0 -0.02em 0 -0.05em;
}

@keyframes dotPulse {
    0%, 100% {
        text-shadow:
            0 0 10px rgba(255, 102, 170, 0.55),
            0 0 22px rgba(255, 102, 170, 0.3);
        transform: translateY(0) scale(1);
    }
    50% {
        text-shadow:
            0 0 22px rgba(255, 102, 170, 0.95),
            0 0 46px rgba(255, 102, 170, 0.6),
            0 0 70px rgba(77, 124, 255, 0.45);
        transform: translateY(-2px) scale(1.06);
    }
}

.hero-quest {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    background: linear-gradient(90deg, var(--y2k-blue), var(--neon-cyan), var(--iridescent-pink));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: questGradient 8s linear infinite;
    display: inline-block;
}

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

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 0.95vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--chrome-silver);
    margin: 0 auto;
    max-width: 40rem;
}

.hero-subtitle .reveal-link {
    background-image: linear-gradient(90deg, var(--neon-cyan), var(--iridescent-pink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    padding-bottom: 2px;
    transition: background-size 0.6s ease 0.4s;
}

.hero-content.is-on .hero-subtitle .reveal-link {
    background-size: 100% 2px;
}

.hero-chrome-ring {
    width: clamp(140px, 22vw, 220px);
    height: clamp(140px, 22vw, 220px);
    margin: 3rem auto 2.5rem;
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            rgba(200, 204, 212, 0.9),
            rgba(77, 124, 255, 0.85),
            rgba(255, 102, 170, 0.85),
            rgba(0, 229, 204, 0.85),
            rgba(200, 204, 212, 0.9));
    position: relative;
    animation: ringSpin 16s linear infinite;
    filter: blur(0.4px);
}

.hero-chrome-ring::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(13,13,18,0.1), var(--chrome-black) 72%);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.08);
}

@keyframes ringSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-scroll-hint {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--chrome-silver);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.hero-scroll-hint .scroll-arrow {
    font-size: 1rem;
    animation: scrollBob 2.4s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50%      { transform: translateY(6px); opacity: 1; }
}

/* =========================================================
   Sparkle clusters
   ========================================================= */
.sparkle-cluster {
    display: inline-flex;
    gap: 0.5em;
    align-items: center;
    margin: 0.5rem 0 1.2rem;
}
.sparkle-cluster.sparkle-top {
    display: flex;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.sparkle-cluster.sparkle-end {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-start;
}
.sparkle {
    color: var(--neon-cyan);
    font-size: 14px;
    line-height: 1;
    text-shadow: 0 0 10px rgba(0, 229, 204, 0.55);
    animation: sparkleTwinkle 2.6s ease-in-out infinite;
}
.sparkle:nth-child(2) { animation-delay: 0.35s; }
.sparkle:nth-child(3) { animation-delay: 0.7s; color: var(--iridescent-pink); text-shadow: 0 0 10px rgba(255, 102, 170, 0.6); }
.sparkle:nth-child(4) { animation-delay: 1.05s; color: var(--y2k-blue); text-shadow: 0 0 10px rgba(77, 124, 255, 0.6); }
.sparkle:nth-child(5) { animation-delay: 1.4s; }

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0.35; transform: scale(0.9); }
    50%      { opacity: 1;    transform: scale(1.15); }
}

/* =========================================================
   Pill tags
   ========================================================= */
.pill-tag {
    display: inline-block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    padding: 0.5em 1.2em;
    border-radius: 50vh;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(77, 124, 255, 0.1), rgba(255, 102, 170, 0.08));
    color: var(--text);
    margin-bottom: 1.5rem;
}
.pill-tag.pill-dark {
    background: linear-gradient(135deg, rgba(77, 124, 255, 0.22), rgba(43, 24, 84, 0.35));
    border-color: rgba(200, 204, 212, 0.3);
}

/* =========================================================
   Headings
   ========================================================= */
.panel-heading {
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--text);
}
.heading-serif {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
}
.heading-sans {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
}

.panel-lede {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text);
    max-width: 45rem;
}

.panel-body {
    color: var(--text-muted);
    max-width: 45rem;
    margin-bottom: 1.5rem;
}

/* =========================================================
   Text links (underline-draw via IntersectionObserver)
   ========================================================= */
.text-link {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(90deg, var(--y2k-blue), var(--y2k-blue));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 2px;
    padding-bottom: 2px;
    transition: background-size 0.4s ease, background-image 0.2s ease, color 0.2s ease;
}
.text-link.is-drawn {
    background-size: 100% 2px;
}
.text-link:hover {
    background-image: linear-gradient(90deg, var(--iridescent-pink), var(--iridescent-pink));
    color: var(--iridescent-pink);
}

/* =========================================================
   Orbit accent (overlapping circles)
   ========================================================= */
.orbit-accent {
    position: relative;
    height: 120px;
    margin-top: 3rem;
}
.orbit-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    top: 0;
}
.orbit-a {
    width: 100px; height: 100px;
    left: 0;
    background: radial-gradient(circle at 35% 30%, rgba(77,124,255,0.25), transparent 70%);
}
.orbit-b {
    width: 100px; height: 100px;
    left: 60px;
    background: radial-gradient(circle at 35% 30%, rgba(255,102,170,0.25), transparent 70%);
    mix-blend-mode: screen;
}
.orbit-c {
    width: 100px; height: 100px;
    left: 120px;
    background: radial-gradient(circle at 35% 30%, rgba(0,229,204,0.25), transparent 70%);
    mix-blend-mode: screen;
}

/* =========================================================
   Chrome list (definition rows for atlas panel)
   ========================================================= */
.chrome-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.chrome-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, rgba(200,204,212,0.0), rgba(200,204,212,0.55), rgba(77,124,255,0.4), rgba(200,204,212,0.0)) 1;
}
.chrome-row:last-child {
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, rgba(200,204,212,0.0), rgba(255,102,170,0.55), rgba(0,229,204,0.4), rgba(200,204,212,0.0)) 1;
}
.chrome-term {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--chrome-silver);
}
.chrome-def {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
}

/* =========================================================
   Chronicle entries
   ========================================================= */
.chronicle-entry {
    padding: 2rem 0;
    border-top: 1px solid;
    border-image: linear-gradient(90deg, rgba(43,24,84,0.0), rgba(77,124,255,0.55), rgba(255,102,170,0.4), rgba(43,24,84,0.0)) 1;
}
.chronicle-entry:last-child {
    border-bottom: 1px solid;
    border-image: linear-gradient(90deg, rgba(43,24,84,0.0), rgba(255,102,170,0.55), rgba(0,229,204,0.4), rgba(43,24,84,0.0)) 1;
}

.entry-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.entry-divider {
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--y2k-blue), var(--iridescent-pink));
}
.entry-tag {
    color: var(--y2k-blue);
}
.entry-title {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 0.6rem;
    color: var(--text);
}
.entry-body {
    color: var(--text-muted);
    max-width: 42rem;
}

/* =========================================================
   Dispatch card
   ========================================================= */
.dispatch-card {
    margin-top: 2.5rem;
    padding: 2rem;
    border-radius: 28px;
    border: 1px solid rgba(200, 204, 212, 0.3);
    background:
        linear-gradient(135deg, rgba(77, 124, 255, 0.14), rgba(255, 102, 170, 0.08) 60%, rgba(0, 229, 204, 0.08));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 10px 36px rgba(77, 124, 255, 0.15);
}
.dispatch-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: baseline;
}
.dispatch-row + .dispatch-row {
    border-top: 1px solid rgba(200, 204, 212, 0.18);
}
.dispatch-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--chrome-silver);
}
.dispatch-row .text-link {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

/* =========================================================
   Dividers between panels (2px iridescent gradient)
   ========================================================= */
.divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(200, 204, 212, 0.0) 0%,
        rgba(200, 204, 212, 0.9) 18%,
        rgba(77, 124, 255, 0.95) 42%,
        rgba(255, 102, 170, 0.95) 62%,
        rgba(0, 229, 204, 0.9) 82%,
        rgba(200, 204, 212, 0.0) 100%
    );
    background-size: 220% 100%;
    animation: shimmerBorder 10s linear infinite;
}

/* =========================================================
   Footer
   ========================================================= */
.panel-footer {
    min-height: 50vh;
}
.panel-inner-footer {
    text-align: center;
}
.footer-brand {
    font-size: 2.6rem;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: baseline;
}
.footer-brand .brand-sora {
    font-family: 'DM Serif Display', serif;
    color: var(--text);
}
.footer-brand .brand-dot {
    font-family: 'DM Serif Display', serif;
    color: var(--iridescent-pink);
    margin: 0 0.03em;
    animation: dotPulse 3.4s ease-in-out infinite;
}
.footer-brand .brand-quest {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    background: linear-gradient(90deg, var(--y2k-blue), var(--iridescent-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-note {
    margin: 1.2rem auto 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.footer-ticker {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem 1.4rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--text);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    opacity: 0.85;
}
.footer-ticker span:nth-child(odd) {
    color: var(--iridescent-pink);
}

/* =========================================================
   Reveal animations (IntersectionObserver-driven)
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.9s cubic-bezier(.22,.8,.26,1), transform 0.9s cubic-bezier(.22,.8,.26,1);
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Responsive tweaks
   ========================================================= */
@media (max-width: 720px) {
    .nav-links { gap: 0.75rem; }
    .nav-link { font-size: 0.66rem; letter-spacing: 0.18em; }
    .chrome-row,
    .dispatch-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
    .hero-title { letter-spacing: -0.02em; }
    .orbit-accent { height: 110px; }
    .orbit-a, .orbit-b, .orbit-c { width: 78px; height: 78px; }
    .orbit-b { left: 46px; }
    .orbit-c { left: 92px; }
}
