/* ==========================================================================
   parallel.day -- vaporwave / retro-futuristic dual-timeline experience
   Palette
     #2d1b69  Deep Space        (background)
     #ff6b9d  Sunset Pink       (primary accent)
     #00d4ff  Timeline Cyan     (cool column)
     #ffb347  Timeline Amber    (warm column)
     #e0d0ff  Lavender Light    (text on dark)
     #1a0f3c  Void Purple       (deep background)
     #c0a0e0  Mist Purple       (secondary text)
     #c0c0c0  Chrome Silver
     #808080  Chrome Shadow
   Type
     Audiowide  -- display, timeline labels
     Lexend     -- body
     "space"    -- referenced; mapped to system mono fallback
   ========================================================================== */

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

html, body {
    background: #1a0f3c;
    color: #e0d0ff;
    font-family: "Lexend", "Inter", system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 107, 157, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, #2d1b69 0%, #1a0f3c 60%, #1a0f3c 100%);
    background-attachment: fixed;
}

/* horizon glow ambient layer ------------------------------------------------ */
.horizon-glow {
    position: fixed;
    inset: 0 0 auto 0;
    height: 60vh;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 157, 0.15) 0%, transparent 65%);
    z-index: 0;
}

/* ==========================================================================
   HERO -- perspective grid + chrome title
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem 6rem;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

.grid-perspective {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 220%;
    height: 60%;
    transform: translateX(-50%);
    perspective: 800px;
    perspective-origin: 50% 0%;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 100%);
}

.grid-floor {
    position: absolute;
    inset: 0;
    transform: rotateX(60deg);
    transform-origin: 50% 100%;
    background:
        repeating-linear-gradient(0deg,
            rgba(255, 107, 157, 0.35) 0px,
            rgba(255, 107, 157, 0.35) 1px,
            transparent 1px,
            transparent 40px),
        repeating-linear-gradient(90deg,
            rgba(255, 107, 157, 0.35) 0px,
            rgba(255, 107, 157, 0.35) 1px,
            transparent 1px,
            transparent 40px);
    animation: gridScroll 6s linear infinite;
}

@keyframes gridScroll {
    0%   { background-position: 0 0, 0 0; }
    100% { background-position: 0 40px, 0 0; }
}

.hero-sun {
    position: absolute;
    left: 50%;
    bottom: 38%;
    width: clamp(220px, 32vw, 420px);
    aspect-ratio: 1 / 1;
    transform: translate(-50%, 50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%,
            rgba(255, 179, 71, 0.7) 0%,
            rgba(255, 107, 157, 0.55) 35%,
            rgba(255, 107, 157, 0.15) 65%,
            transparent 75%);
    filter: blur(0.4px);
    z-index: 2;
    animation: sunPulse 5s ease-in-out infinite;
}

.hero-sun::before {
    content: "";
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: linear-gradient(180deg,
        #ffb347 0%,
        #ff6b9d 55%,
        #c0a0e0 100%);
    opacity: 0.85;
    box-shadow:
        0 0 60px rgba(255, 107, 157, 0.6),
        0 0 120px rgba(255, 179, 71, 0.35);
}

.hero-sun::after {
    content: "";
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: repeating-linear-gradient(0deg,
        transparent 0px,
        transparent 12px,
        rgba(26, 15, 60, 0.55) 12px,
        rgba(26, 15, 60, 0.55) 18px);
    mix-blend-mode: multiply;
    opacity: 0.55;
}

@keyframes sunPulse {
    0%, 100% { filter: blur(0.4px) brightness(1); }
    50%      { filter: blur(0.4px) brightness(1.1); }
}

.hero-stars {
    position: absolute;
    inset: 0 0 50% 0;
    pointer-events: none;
    z-index: 1;
}

.hero-stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #e0d0ff;
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 4px rgba(224, 208, 255, 0.6);
    animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50%      { opacity: 0.9; transform: scale(1.4); }
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 920px;
    padding: 1.5rem;
}

.hero-eyebrow {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.32em;
    text-transform: lowercase;
    color: #c0a0e0;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: clamp(2.5rem, 9vw, 6.5rem);
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 1;
    margin-bottom: 1.25rem;
    text-transform: lowercase;
}

.hero-subtitle {
    font-family: "Lexend", sans-serif;
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #e0d0ff;
    max-width: 520px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
    opacity: 0.9;
}

.hero-coords {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: #c0a0e0;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 107, 157, 0.25);
    border-radius: 999px;
    background: rgba(26, 15, 60, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.coord-sep {
    color: #ff6b9d;
    opacity: 0.6;
}

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    z-index: 4;
}

.cue-label {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: #c0a0e0;
    text-transform: lowercase;
}

.cue-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, #ff6b9d);
    animation: cueDrift 2.4s ease-in-out infinite;
    transform-origin: top;
}

@keyframes cueDrift {
    0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
    50%      { transform: scaleY(1);   opacity: 1;   }
}

/* ==========================================================================
   CHROME TEXT
   ========================================================================== */
.chrome {
    background: linear-gradient(180deg,
        #ffffff 0%,
        #c0c0c0 40%,
        #ffffff 50%,
        #808080 70%,
        #c0c0c0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 24px rgba(224, 208, 255, 0.15);
    position: relative;
}

.chrome::before {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, #ff6b9d 0%, #c0a0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    transform: translate(2px, 3px);
    opacity: 0.45;
    filter: blur(1px);
    pointer-events: none;
}

/* ==========================================================================
   TWIN TIMELINES
   ========================================================================== */
.timelines {
    position: relative;
    padding: 6rem 1.5rem 5rem;
    z-index: 2;
}

.timeline-header {
    max-width: 920px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-title {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: lowercase;
    margin-bottom: 0.75rem;
}

.section-lede {
    font-family: "Lexend", sans-serif;
    color: #c0a0e0;
    font-size: 0.95rem;
    max-width: 520px;
    margin: 0 auto;
}

.timeline-wrap {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1280px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 107, 157, 0.15);
    border-bottom: 1px solid rgba(255, 107, 157, 0.15);
}

.timeline-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    border-left: 1px dashed rgba(255, 107, 157, 0.3);
    pointer-events: none;
    animation: dividerPulse 3s ease-in-out infinite;
    z-index: 3;
}

.timeline-divider::before,
.timeline-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b9d;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(255, 107, 157, 0.7);
}

.timeline-divider::before { top: -4px; }
.timeline-divider::after  { bottom: -4px; }

@keyframes dividerPulse {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1;    }
}

.timeline {
    max-height: 80vh;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    position: relative;
    scrollbar-width: thin;
}

.timeline::-webkit-scrollbar { width: 6px; }
.timeline::-webkit-scrollbar-track { background: transparent; }
.timeline::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 157, 0.35);
    border-radius: 3px;
}

.timeline--cool {
    background: linear-gradient(180deg,
        rgba(0, 212, 255, 0.04) 0%,
        rgba(45, 27, 105, 0.0) 100%);
    color: #e0d0ff;
}

.timeline--warm {
    background: linear-gradient(180deg,
        rgba(255, 179, 71, 0.06) 0%,
        rgba(45, 27, 105, 0.0) 100%);
    color: #e0d0ff;
}

.timeline-cap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255, 107, 157, 0.18);
}

.timeline--warm .timeline-cap {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-tag {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
}

.timeline--cool .timeline-tag { color: #00d4ff; }
.timeline--warm .timeline-tag { color: #ffb347; }

.timeline-marker {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0.4;
}

.timeline--cool .timeline-marker { color: #00d4ff; }
.timeline--warm .timeline-marker { color: #ffb347; }

.timeline-entry {
    position: relative;
    padding: 1.25rem 0 1.5rem 1.5rem;
    margin-bottom: 1.25rem;
    border-left: 1px solid rgba(255, 107, 157, 0.18);
    transition: border-color 0.6s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(18px);
}

.timeline-entry.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.timeline--warm .timeline-entry {
    border-left: none;
    border-right: 1px solid rgba(255, 107, 157, 0.18);
    padding: 1.25rem 1.5rem 1.5rem 0;
    text-align: right;
}

.timeline-entry::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: -5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.7);
    transition: transform 0.6s ease-in-out;
}

.timeline--warm .timeline-entry::before {
    left: auto;
    right: -5px;
    background: #ffb347;
    box-shadow: 0 0 12px rgba(255, 179, 71, 0.7);
}

.timeline-entry:hover {
    border-color: rgba(255, 107, 157, 0.55);
}

.timeline-entry:hover::before {
    transform: scale(1.3);
}

.entry-time {
    display: inline-block;
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: lowercase;
    color: #c0a0e0;
    margin-bottom: 0.5rem;
}

.timeline--cool .entry-time { color: rgba(0, 212, 255, 0.85); }
.timeline--warm .entry-time { color: rgba(255, 179, 71, 0.9);  }

.entry-title {
    font-family: "Audiowide", "Inter", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.35;
    color: #e0d0ff;
    margin-bottom: 0.75rem;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.timeline-entry p {
    font-family: "Lexend", sans-serif;
    font-size: 0.95rem;
    color: #c0a0e0;
    line-height: 1.75;
}

.timeline-foot {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(255, 107, 157, 0.18);
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: #c0a0e0;
    text-transform: lowercase;
}

.timeline--warm .timeline-foot {
    flex-direction: row-reverse;
    text-align: right;
}

.foot-glyph {
    font-size: 1rem;
    color: #ff6b9d;
}

/* timeline controls -------------------------------------------------------- */
.timeline-controls {
    max-width: 1280px;
    margin: 2rem auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding: 0 1rem;
}

.tl-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 1.4rem;
    background: rgba(26, 15, 60, 0.6);
    border: 1px solid rgba(255, 107, 157, 0.35);
    border-radius: 999px;
    color: #e0d0ff;
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.5s ease-in-out, border-color 0.5s ease-in-out, color 0.5s ease-in-out;
}

.tl-btn:hover {
    background: rgba(255, 107, 157, 0.15);
    border-color: rgba(255, 107, 157, 0.7);
}

.tl-btn-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0a0e0;
    box-shadow: 0 0 6px currentColor;
    transition: background 0.5s ease-in-out;
}

.tl-btn.is-active .tl-btn-dot { background: #ff6b9d; }
.tl-btn.is-active            { border-color: rgba(255, 107, 157, 0.8); }

.tl-meter {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    flex: 1 1 360px;
    max-width: 520px;
}

.tl-meter-track {
    position: relative;
    height: 4px;
    background: rgba(255, 107, 157, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.tl-meter-fill {
    position: absolute;
    inset: 0 100% 0 0;
    background: linear-gradient(90deg, #00d4ff, #ff6b9d);
    transition: right 0.3s ease-out;
}

#meterWarm.tl-meter-fill {
    background: linear-gradient(90deg, #ffb347, #ff6b9d);
}

.tl-meter-label {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    color: #c0a0e0;
    text-transform: lowercase;
}

/* ==========================================================================
   INTERLUDE
   ========================================================================== */
.interlude {
    position: relative;
    padding: 7rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.interlude-grid {
    position: absolute;
    inset: 0;
    perspective: 800px;
    perspective-origin: 50% 50%;
    pointer-events: none;
    opacity: 0.45;
    z-index: -1;
}

.interlude-grid::before {
    content: "";
    position: absolute;
    inset: -10% -10%;
    transform: rotateX(72deg) translateZ(-50px);
    background:
        repeating-linear-gradient(0deg,
            rgba(0, 212, 255, 0.18) 0px,
            rgba(0, 212, 255, 0.18) 1px,
            transparent 1px,
            transparent 60px),
        repeating-linear-gradient(90deg,
            rgba(255, 179, 71, 0.18) 0px,
            rgba(255, 179, 71, 0.18) 1px,
            transparent 1px,
            transparent 60px);
    animation: gridScroll 10s linear infinite;
}

.interlude-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    border-top: 1px dashed rgba(255, 107, 157, 0.25);
    border-bottom: 1px dashed rgba(255, 107, 157, 0.25);
}

.interlude-tag {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: #ff6b9d;
    text-transform: lowercase;
    margin-bottom: 1.5rem;
}

.interlude-quote {
    font-family: "Lexend", sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    line-height: 1.55;
    color: #e0d0ff;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.interlude-attr {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: #c0a0e0;
    text-transform: lowercase;
}

/* ==========================================================================
   CONVERGENCE
   ========================================================================== */
.convergence {
    position: relative;
    padding: 7rem 1.5rem 5rem;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.convergence-rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 179, 71, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 0%,   rgba(0, 212, 255, 0.18) 0%, transparent 55%);
}

.convergence-inner {
    max-width: 720px;
    margin: 0 auto;
}

.conv-eyebrow {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: #ff6b9d;
    text-transform: lowercase;
    margin-bottom: 1rem;
}

.conv-title {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: clamp(1.75rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 2.25rem;
    text-transform: lowercase;
    letter-spacing: 0.03em;
}

.conv-body {
    font-family: "Lexend", sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #c0a0e0;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.conv-glyph {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: 3rem auto 2.5rem;
}

.g-circle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: transform 0.6s ease-in-out;
}

.g-circle--cool {
    background: #00d4ff;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.6);
    animation: glyphFloatA 4s ease-in-out infinite;
}

.g-circle--warm {
    background: #ffb347;
    box-shadow: 0 0 16px rgba(255, 179, 71, 0.6);
    animation: glyphFloatB 4s ease-in-out infinite;
}

.g-line {
    flex: 0 0 80px;
    height: 1px;
    background: linear-gradient(90deg, #00d4ff, #ff6b9d, #ffb347);
}

@keyframes glyphFloatA {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(-6px); }
}

@keyframes glyphFloatB {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}

.conv-sign {
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: #c0a0e0;
    text-transform: lowercase;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
    border-top: 1px dashed rgba(255, 107, 157, 0.25);
    padding: 2rem 1.5rem;
    background: rgba(26, 15, 60, 0.6);
}

.foot-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
    font-family: "Audiowide", "Inter", sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    color: #c0a0e0;
    text-transform: lowercase;
}

.foot-cell--center {
    color: #ff6b9d;
    text-align: center;
}

.foot-cell--right {
    text-align: right;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 880px) {
    .timeline-wrap {
        grid-template-columns: 1fr;
    }

    .timeline-divider {
        display: none;
    }

    .timeline {
        max-height: 70vh;
        padding: 2rem 1.25rem;
    }

    .timeline--warm .timeline-cap,
    .timeline--warm .timeline-foot {
        flex-direction: row;
        text-align: left;
    }

    .timeline--warm .timeline-entry {
        text-align: left;
        padding: 1.25rem 0 1.5rem 1.5rem;
        border-right: none;
        border-left: 1px solid rgba(255, 107, 157, 0.18);
    }

    .timeline--warm .timeline-entry::before {
        left: -5px;
        right: auto;
    }

    .foot-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .foot-cell--right {
        text-align: center;
    }

    .timeline-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .tl-meter {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .hero { padding: 3rem 1rem 4rem; }
    .hero-coords {
        font-size: 0.6rem;
        gap: 0.5rem;
        padding: 0.5rem 0.9rem;
    }
}
