/* heisei.boo - Surreal Dreamscape Promo */
/* Palette: #e8e0f0, #d4c8e0, #ffffff, #2e1f3e, #4a3560, #6b5b7b, #9f7aea, #c4b5d6 */
/* Fonts: Cormorant (display), Lato (body), Roboto (dates) */

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

html {
    scroll-behavior: smooth;
}

body {
    background: #e8e0f0;
    color: #2e1f3e;
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================================
   CHERRY BLOSSOM MOTIF (CSS shapes)
   5 overlapping circles = flower
   ================================ */
.blossom {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.blossom .petal {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f4c7d4;
}

.blossom .petal:nth-child(1) { top: 0; left: 10px; }
.blossom .petal:nth-child(2) { top: 6px; left: 18px; }
.blossom .petal:nth-child(3) { top: 16px; left: 15px; }
.blossom .petal:nth-child(4) { top: 16px; left: 5px; }
.blossom .petal:nth-child(5) { top: 6px; left: 2px; }

/* Hero section blossoms */
.blossom-1 { top: 8%; left: 5%; transform: scale(1.2) rotate(15deg); opacity: 0.12; }
.blossom-2 { top: 15%; right: 8%; left: auto; transform: scale(0.8) rotate(-20deg); opacity: 0.1; }
.blossom-3 { bottom: 25%; left: 3%; transform: scale(1.0) rotate(45deg); opacity: 0.08; }
.blossom-4 { top: 40%; right: 4%; left: auto; transform: scale(0.6) rotate(10deg); opacity: 0.1; }
.blossom-5 { bottom: 10%; right: 15%; left: auto; transform: scale(1.4) rotate(-30deg); opacity: 0.07; }
.blossom-6 { top: 60%; left: 12%; transform: scale(0.9) rotate(60deg); opacity: 0.09; }

/* Dissolve section blossoms */
.blossom-end-1 { bottom: 15%; left: 10%; transform: scale(1.0) rotate(25deg); opacity: 0.06; }
.blossom-end-2 { bottom: 20%; right: 12%; left: auto; transform: scale(0.7) rotate(-15deg); opacity: 0.05; }

/* ================================
   KANJI WATERMARK
   ================================ */
.kanji-watermark {
    position: absolute;
    font-size: 200px;
    color: #2e1f3e;
    opacity: 0.08;
    font-weight: 300;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* ================================
   SECTION 1: REMEMBER (Hero)
   ================================ */
.remember {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
    background: linear-gradient(180deg, #e8e0f0 0%, #d4c8e0 100%);
}

.remember .kanji-watermark {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Floating memory frames */
.memory-frame {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 30px rgba(74, 53, 96, 0.1);
    border-radius: 2px;
    z-index: 1;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.frame-1 {
    width: 140px;
    height: 95px;
    top: 12%;
    left: 8%;
    transform: rotate(-3deg);
    animation: float-drift-1 8s ease-in-out infinite;
}

.frame-2 {
    width: 110px;
    height: 75px;
    top: 22%;
    right: 10%;
    transform: rotate(2.5deg);
    animation: float-drift-2 10s ease-in-out infinite;
}

.frame-3 {
    width: 95px;
    height: 70px;
    bottom: 22%;
    left: 20%;
    transform: rotate(-1.5deg);
    animation: float-drift-3 9s ease-in-out infinite;
}

.frame-4 {
    width: 120px;
    height: 80px;
    bottom: 15%;
    right: 15%;
    transform: rotate(1deg);
    animation: float-drift-4 11s ease-in-out infinite;
}

.frame-5 {
    width: 80px;
    height: 60px;
    top: 45%;
    left: 5%;
    transform: rotate(-2deg);
    animation: float-drift-5 7s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float-drift-1 {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-2deg) translateY(-12px); }
}

@keyframes float-drift-2 {
    0%, 100% { transform: rotate(2.5deg) translateX(0); }
    50% { transform: rotate(3deg) translateX(8px); }
}

@keyframes float-drift-3 {
    0%, 100% { transform: rotate(-1.5deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-10px); }
}

@keyframes float-drift-4 {
    0%, 100% { transform: rotate(1deg) translate(0, 0); }
    50% { transform: rotate(1.5deg) translate(-6px, -8px); }
}

@keyframes float-drift-5 {
    0%, 100% { transform: rotate(-2deg) translateY(0); opacity: 0.6; }
    50% { transform: rotate(-1.5deg) translateY(-15px); opacity: 0.4; }
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.brand {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: clamp(48px, 10vw, 72px);
    color: #2e1f3e;
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.boo-suffix {
    opacity: 0.4;
}

.tagline {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #6b5b7b;
    letter-spacing: 0.08em;
}

/* ================================
   SECTION 2: DRIFT (Memory Panels)
   ================================ */
.drift {
    position: relative;
    max-width: 650px;
    margin: 0 auto;
    padding: 6rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.drift-kanji {
    top: 10%;
    right: -5%;
    font-size: 160px;
    opacity: 0.05;
}

.wavy-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.memory-panel {
    background: rgba(255, 255, 255, 0.5);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(74, 53, 96, 0.15);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.tilt-left {
    transform: rotate(-1.5deg);
}

.tilt-right {
    transform: rotate(1.5deg);
}

.overlap-up {
    margin-top: -1rem;
}

.year-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #9f7aea;
    letter-spacing: 0.12em;
    display: block;
    margin-bottom: 0.3rem;
}

.panel-title {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 1.4rem;
    color: #4a3560;
    margin-bottom: 0.4rem;
}

.panel-text {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.88rem;
    color: #4a3560;
    opacity: 0.8;
    line-height: 1.8;
}

/* ================================
   SECTION 3: TIMELINE (Drifting)
   ================================ */
.timeline {
    position: relative;
    height: 50vh;
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    overflow: hidden;
}

.timeline-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.year-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.6s ease;
}

.marker-year {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #9f7aea;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.marker-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9f7aea;
    opacity: 0.5;
}

/* ================================
   SECTION 4: DISSOLVE
   ================================ */
.dissolve {
    position: relative;
    text-align: center;
    padding: 8rem 2rem 12rem;
    min-height: 60vh;
    overflow: hidden;
}

.dissolve-kanji {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 220px;
    opacity: 0.06;
}

.dissolve-content {
    position: relative;
    z-index: 1;
}

.dissolve-line {
    font-family: 'Cormorant', serif;
    font-weight: 300;
    font-size: 1.3rem;
    color: #4a3560;
    margin-bottom: 0.6rem;
    transition: opacity 1s ease, letter-spacing 1s ease, transform 1s ease;
}

.dissolve-brand {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    color: #6b5b7b;
    opacity: 0.4;
    display: block;
    margin-top: 2rem;
    letter-spacing: 0.15em;
    transition: opacity 1.5s ease, letter-spacing 1.5s ease;
}

/* Dissolve animation states */
.dissolve-el {
    opacity: 1;
    letter-spacing: 0;
}

.dissolve-el.dissolving {
    letter-spacing: 0.1em;
}

/* ================================
   FADE-IN (Scroll reveal)
   ================================ */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: none;
}

/* Preserve tilt when visible */
.fade-in.visible.tilt-left {
    transform: rotate(-1.5deg);
}

.fade-in.visible.tilt-right {
    transform: rotate(1.5deg);
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 600px) {
    .drift {
        padding: 4rem 1rem 3rem;
        gap: 2rem;
    }

    .memory-panel {
        padding: 18px;
    }

    .timeline {
        height: 40vh;
    }

    .dissolve {
        padding: 5rem 1.5rem 8rem;
    }

    .brand {
        font-size: clamp(36px, 12vw, 56px);
    }

    .frame-4,
    .frame-5 {
        display: none;
    }
}
