/* continua.st - Y2K Futurism Design */
/* Palette: Midnight Abyss #0b1026, Deep Twilight #151b3a, Electric Lavender #8b7cf7, Bioluminescent Cyan #3de8d4, Petal Gold #f5c842, Moonlit Frost #e8eaf0, Dim Orchid #9a95b8, Nebula Rose #3b1f5e, Dawn Teal #134e5e */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0b1026;
    color: #e8eaf0;
    font-family: "Nunito", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ===== HERO RIBBON ===== */
#hero-ribbon {
    width: 100vw;
    height: 72vh;
    min-height: 500px;
    background-color: #151b3a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

#hero-botanical {
    width: 300px;
    height: 300px;
    margin-bottom: 24px;
}

.morph-path {
    fill: none;
    stroke: #3de8d4;
    stroke-width: 1.5;
    opacity: 0;
    transition: opacity 1.5s ease;
}

.morph-path.active {
    opacity: 1;
}

/* ===== HERO TITLE ===== */
#hero-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 96px;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: #e8eaf0;
    text-transform: lowercase;
    margin-bottom: 16px;
}

#hero-title .letter {
    display: inline-block;
    opacity: 0;
    animation: letterFadeIn 0.4s ease forwards;
}

#hero-title .letter:nth-child(1) { animation-delay: 0.08s; }
#hero-title .letter:nth-child(2) { animation-delay: 0.16s; }
#hero-title .letter:nth-child(3) { animation-delay: 0.24s; }
#hero-title .letter:nth-child(4) { animation-delay: 0.32s; }
#hero-title .letter:nth-child(5) { animation-delay: 0.40s; }
#hero-title .letter:nth-child(6) { animation-delay: 0.48s; }
#hero-title .letter:nth-child(7) { animation-delay: 0.56s; }
#hero-title .letter:nth-child(8) { animation-delay: 0.64s; }

@keyframes letterFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== HERO TAGLINE ===== */
#hero-tagline {
    position: relative;
    display: inline-block;
}

#tagline-text {
    font-family: "Nunito", sans-serif;
    font-size: 22px;
    font-weight: 300;
    color: #9a95b8;
    letter-spacing: 0.04em;
    opacity: 0;
    animation: taglineFadeIn 0.8s ease forwards;
    animation-delay: 0.8s;
}

#tagline-underline {
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3de8d4, #8b7cf7);
    margin-top: 4px;
    animation: underlineDraw 1.2s ease forwards;
    animation-delay: 1.6s;
}

@keyframes taglineFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes underlineDraw {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ===== MAIN CONTENT - F-PATTERN ===== */
#main-content {
    display: flex;
    gap: 4%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

#primary-column {
    flex: 0 0 62%;
}

#secondary-column {
    flex: 0 0 34%;
    position: relative;
    min-height: 800px;
}

/* ===== BOTANICAL DIVIDERS ===== */
.botanical-divider {
    width: 60%;
    margin: 80px auto;
    opacity: 0.7;
}

.botanical-divider svg {
    width: 100%;
    height: auto;
}

/* ===== CONTINUUM CARDS ===== */
.continuum-card {
    perspective: 1200px;
    width: 100%;
    max-width: 580px;
    height: 380px;
    margin-bottom: 40px;
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.continuum-card:hover .card-inner,
.continuum-card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.card-front {
    background-color: #151b3a;
    border: 1px solid rgba(139, 124, 247, 0.15);
}

.card-front:hover {
    border-color: rgba(139, 124, 247, 0.5);
}

.card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #3b1f5e, #134e5e);
    border: 1px solid rgba(61, 232, 212, 0.2);
}

.card-label {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a95b8;
    margin-bottom: 20px;
    align-self: flex-start;
}

.card-illustration {
    width: 200px;
    height: 160px;
    margin-bottom: 20px;
}

.card-title {
    font-family: "Josefin Sans", sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #e8eaf0;
    text-align: center;
}

.card-description {
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #e8eaf0;
    max-width: 38em;
    text-align: center;
    margin-bottom: 20px;
}

.card-back-detail {
    width: 80px;
    height: 80px;
    position: absolute;
    bottom: 20px;
    right: 20px;
    opacity: 0.6;
}

/* ===== POLLEN CONSTELLATION ===== */
#constellation-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.constellation-line {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.3s ease;
}

.pollen-node {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(61, 232, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s ease;
    background: rgba(11, 16, 38, 0.6);
}

.pollen-node.visible {
    opacity: 1;
    transform: scale(1);
}

.node-symbol {
    font-size: 24px;
    color: #3de8d4;
    animation: nodePulse 4s ease-in-out infinite;
}

@keyframes nodePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== FOOTER ===== */
#site-footer {
    text-align: center;
    padding: 60px 40px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

#footer-text {
    font-family: "Josefin Sans", sans-serif;
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: #9a95b8;
    margin-top: 40px;
}

#footer-meta {
    font-family: "Space Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9a95b8;
    opacity: 0.5;
    margin-top: 12px;
}

/* ===== SCROLL REVEAL ===== */
.continuum-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.continuum-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    #main-content {
        flex-direction: column;
        padding: 40px 20px;
    }

    #primary-column {
        flex: 1;
    }

    #secondary-column {
        display: none;
    }

    #hero-title {
        font-size: 56px;
    }

    .continuum-card {
        height: auto;
        min-height: 380px;
    }

    .card-front, .card-back {
        padding: 24px;
    }

    .botanical-divider {
        width: 80%;
        margin: 40px auto;
    }
}

@media (max-width: 600px) {
    #hero-title {
        font-size: 40px;
        letter-spacing: 0.08em;
    }

    #hero-ribbon {
        height: 60vh;
        min-height: 400px;
    }

    #hero-botanical {
        width: 200px;
        height: 200px;
    }

    .continuum-card {
        max-width: 100%;
    }

    .card-title {
        font-size: 22px;
    }

    #tagline-text {
        font-size: 18px;
    }
}
