/* ===== sora.day styles ===== */
/* Palette:
   Frost White: #e8eef4
   Warm Frost: #f0e8e4
   Aurora Pink: #e87aa8
   Aurora Teal: #7ae8d8
   Bling Gold: #d4b870
   Deep Violet: #4a2a6a
   Prism Silver: #b8b4c8
   Violet mid: #8a6ab8
*/

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: #e8eef4;
    color: #4a2a6a;
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    overflow-x: hidden;
}

#svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ===== Typography ===== */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(72px, 15vw, 200px);
    line-height: 1;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 18px);
    color: #b8b4c8;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 1rem;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.body-text {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
    color: #4a2a6a;
    max-width: 520px;
}

.accent-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(18px, 2vw, 26px);
    color: #8a6ab8;
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    border-left: 2px solid #d4b870;
    line-height: 1.6;
}

.large-quote {
    font-size: clamp(28px, 4vw, 56px);
    border-left: none;
    padding-left: 0;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 500;
}

/* ===== Prismatic Text ===== */
.prismatic-text {
    background: linear-gradient(135deg, #e87aa8, #7ae8d8, #d4b870, #e87aa8);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prismaticShift 8s ease infinite;
}

@keyframes prismaticShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== Split Screen Layout ===== */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    position: relative;
}

.split-60-40 {
    grid-template-columns: 3fr 2fr;
}

.split-40-60 {
    grid-template-columns: 2fr 3fr;
}

.split-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-cool {
    background: #e8eef4;
}

.panel-warm {
    background: #f0e8e4;
}

.panel-content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 5rem);
    text-align: center;
}

.split-section .panel-content:not(.visual-panel) {
    text-align: left;
}

#hero .panel-content {
    text-align: center;
}

/* ===== Aurora Layers ===== */
.aurora-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.5;
}

.aurora-cool {
    background: linear-gradient(135deg, #7ae8d8 0%, #8a6ab8 40%, #e87aa8 70%, #7ae8d8 100%);
    background-size: 400% 400%;
    animation: auroraMove 18s ease infinite;
}

.aurora-warm {
    background: linear-gradient(225deg, #e87aa8 0%, #d4b870 35%, #8a6ab8 65%, #e87aa8 100%);
    background-size: 400% 400%;
    animation: auroraMove 20s ease infinite reverse;
}

.aurora-cool-alt {
    background: linear-gradient(180deg, #7ae8d8 0%, #4a2a6a 50%, #e87aa8 100%);
    background-size: 400% 400%;
    animation: auroraMove 16s ease infinite;
}

.aurora-warm-alt {
    background: linear-gradient(45deg, #d4b870 0%, #e87aa8 50%, #7ae8d8 100%);
    background-size: 400% 400%;
    animation: auroraMove 22s ease infinite reverse;
}

.aurora-cool-deep {
    background: linear-gradient(160deg, #4a2a6a 0%, #7ae8d8 40%, #8a6ab8 80%, #e87aa8 100%);
    background-size: 400% 400%;
    animation: auroraMove 19s ease infinite;
}

.aurora-warm-deep {
    background: linear-gradient(200deg, #e87aa8 0%, #d4b870 40%, #f0e8e4 70%, #8a6ab8 100%);
    background-size: 400% 400%;
    animation: auroraMove 17s ease infinite reverse;
}

.aurora-full {
    background: linear-gradient(135deg, #e87aa8 0%, #7ae8d8 25%, #8a6ab8 50%, #d4b870 75%, #e87aa8 100%);
    background-size: 400% 400%;
    animation: auroraMove 20s ease infinite;
}

.aurora-full-alt {
    background: linear-gradient(315deg, #7ae8d8 0%, #e87aa8 30%, #d4b870 60%, #8a6ab8 100%);
    background-size: 400% 400%;
    animation: auroraMove 22s ease infinite reverse;
}

@keyframes auroraMove {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

/* ===== Frost Overlay ===== */
.frost-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.frost-heavy {
    background: rgba(232, 238, 244, 0.72);
    backdrop-filter: blur(1px);
}

.panel-warm .frost-heavy {
    background: rgba(240, 232, 228, 0.72);
}

.frost-light {
    background: rgba(232, 238, 244, 0.6);
    backdrop-filter: blur(0.5px);
}

.panel-warm .frost-light {
    background: rgba(240, 232, 228, 0.6);
}

/* ===== Center Line (Hero) ===== */
.center-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, transparent, #d4b870, #e87aa8, #7ae8d8, transparent);
    z-index: 10;
    transform: translateX(-50%);
    opacity: 0;
}

.center-line.animate {
    height: 100%;
    opacity: 1;
    transition: height 0.8s ease-out, opacity 0.3s ease;
}

/* ===== Interstitials ===== */
.interstitial {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.interstitial-content {
    position: relative;
    z-index: 2;
    padding: clamp(2rem, 5vw, 5rem);
    text-align: center;
}

/* ===== Closing Section ===== */
.closing-section {
    min-height: 80vh;
}

.closing-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 120px);
    line-height: 1;
    margin-bottom: 1rem;
}

.closing-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 40px);
    color: #8a6ab8;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.closing-tagline {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    color: #4a2a6a;
}

/* ===== Sparkle System ===== */
.sparkle {
    position: fixed;
    width: 6px;
    height: 6px;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    animation: sparkleAnim 1.5s ease infinite;
}

.sparkle-gold {
    background: #d4b870;
}

.sparkle-pink {
    background: #e87aa8;
}

@keyframes sparkleAnim {
    0% { opacity: 0; transform: scale(0) rotate(0deg); }
    30% { opacity: 1; transform: scale(1) rotate(60deg); }
    70% { opacity: 1; transform: scale(1.1) rotate(120deg); }
    100% { opacity: 0; transform: scale(0) rotate(180deg); }
}

/* ===== Visual Panels ===== */
.visual-panel {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shell visual */
.shell-visual {
    position: relative;
    width: clamp(150px, 20vw, 280px);
    height: clamp(150px, 20vw, 280px);
}

.shell-spiral {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(232, 122, 168, 0.4);
    background: conic-gradient(
        from 0deg,
        rgba(232, 122, 168, 0.15),
        rgba(122, 232, 216, 0.15),
        rgba(212, 184, 112, 0.15),
        rgba(138, 106, 184, 0.15),
        rgba(232, 122, 168, 0.15)
    );
    animation: shellRotate 15s linear infinite;
}

.shell-spiral::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    border-radius: 50%;
    border: 2px solid rgba(212, 184, 112, 0.5);
    background: conic-gradient(
        from 90deg,
        rgba(122, 232, 216, 0.2),
        rgba(232, 122, 168, 0.2),
        rgba(212, 184, 112, 0.2),
        rgba(122, 232, 216, 0.2)
    );
    animation: shellRotate 10s linear infinite reverse;
}

.shell-spiral::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 30%;
    right: 30%;
    bottom: 30%;
    border-radius: 50%;
    border: 1px solid rgba(138, 106, 184, 0.5);
    background: radial-gradient(circle, rgba(232, 122, 168, 0.3), transparent);
}

.shell-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 122, 168, 0.15), rgba(122, 232, 216, 0.08), transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes shellRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Sky visual */
.sky-visual {
    position: relative;
    width: clamp(180px, 22vw, 300px);
    height: clamp(180px, 22vw, 300px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.aurora-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(122, 232, 216, 0.3);
    background: radial-gradient(ellipse at 30% 40%, rgba(122, 232, 216, 0.12), rgba(138, 106, 184, 0.08), transparent 70%);
    animation: circleFloat 8s ease-in-out infinite;
}

.circle-2 {
    width: 75%;
    height: 75%;
    border-color: rgba(232, 122, 168, 0.3);
    background: radial-gradient(ellipse at 60% 30%, rgba(232, 122, 168, 0.12), rgba(212, 184, 112, 0.08), transparent 70%);
    animation-delay: -2.5s;
    animation-duration: 6s;
}

.circle-3 {
    width: 50%;
    height: 50%;
    border-color: rgba(212, 184, 112, 0.4);
    background: radial-gradient(ellipse at 50% 50%, rgba(212, 184, 112, 0.15), transparent 70%);
    animation-delay: -5s;
    animation-duration: 5s;
}

@keyframes circleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, -5%) scale(1.03); }
    50% { transform: translate(-3%, 3%) scale(0.97); }
    75% { transform: translate(4%, 2%) scale(1.02); }
}

/* ===== Opening Sequence Animation ===== */
.split-panel {
    opacity: 0;
}

.split-panel.fade-in {
    opacity: 1;
    transition: opacity 0.6s ease;
}

.hero-title {
    opacity: 0;
    transform: translateY(20px);
}

.hero-title.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Force prismatic-text to remain visible once reveal is set */
.hero-title.reveal.prismatic-text {
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    opacity: 0;
}

.hero-subtitle.reveal {
    opacity: 1;
    transition: opacity 0.6s ease 0.2s;
}

/* ===== Scroll Reveal ===== */
.section-heading,
.body-text,
.accent-quote {
    opacity: 0;
    transform: translateY(30px);
}

.section-heading.visible,
.body-text.visible,
.accent-quote.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ===== Parallax (handled by JS, base styles) ===== */
.aurora-layer {
    will-change: transform;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .split-section {
        grid-template-columns: 1fr;
    }

    .split-60-40,
    .split-40-60 {
        grid-template-columns: 1fr;
    }

    .split-panel {
        min-height: 50vh;
    }

    .center-line {
        display: none;
    }

    .panel-content {
        padding: clamp(1.5rem, 4vw, 3rem);
    }

    .hero-title {
        font-size: clamp(60px, 20vw, 140px);
    }

    .body-text {
        max-width: 100%;
    }
}
