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

html {
    scroll-behavior: smooth;
}

body {
    background: #1a1321;
    color: #f7f0e6;
    font-family: 'Alegreya', serif;
    font-size: clamp(1rem, 1.2vw + 0.4rem, 1.25rem);
    line-height: 1.7;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}

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

/* === Navigation Dots === */
.nav-dots {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #8b6f7d;
    background: #1a1321;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.nav-dot.active {
    background: #f5a623;
    border-color: #f5a623;
    box-shadow: 0 0 12px #f5a623, 0 0 24px rgba(245, 166, 35, 0.4);
}

/* === Oracle Card Sections === */
.oracle-card {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.card-inner {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    border: 3px solid #e85d4a;
    border-radius: 24px;
    padding: 60px 48px;
    position: relative;
    background: #f7f0e6;
    color: #1a1321;
    opacity: 0;
    clip-path: circle(0% at 50% 50%);
    transition: clip-path 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease;
}

.oracle-card.visible .card-inner {
    opacity: 1;
    clip-path: inset(0 round 24px);
}

/* === Halftone Overlay === */
.halftone-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #e85d4a 30%, transparent 31%);
    background-size: 20px 20px;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1s ease 0.3s;
}

.section-opening.visible .halftone-overlay {
    opacity: 0.12;
}

/* === Marble Background === */
.marble-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.marble-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #1a1321;
    filter: url(#marble-dark);
    opacity: 0.6;
}

.marble-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 111, 125, 0.15) 0%, transparent 50%, rgba(217, 207, 229, 0.1) 100%);
}

/* === Section 1: Opening Oracle === */
.section-opening {
    background: #1a1321;
    flex-direction: column;
}

.opening-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.burst-star {
    position: absolute;
    width: 120vw;
    height: 120vw;
    max-width: 800px;
    max-height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: -1;
    transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.section-opening.visible .burst-star {
    transform: translate(-50%, -50%) scale(1);
}

.title-mystical {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(4rem, 12vw, 9rem);
    color: #e85d4a;
    letter-spacing: 0.03em;
    line-height: 1.0;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.title-boo {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #d4327c;
    transform: rotate(-3deg);
    display: inline-block;
    margin-top: 12px;
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.section-opening.visible .title-boo {
    opacity: 1;
}

/* === Section 2: The Marble Veil === */
.section-veil .card-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.marble-sphere {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    position: relative;
    justify-self: center;
    overflow: hidden;
    border: 3px solid #8b6f7d;
}

.marble-sphere::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #d9cfe5;
    filter: url(#marble-light);
}

.marble-sphere::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 35% 35%, rgba(247, 240, 230, 0.6), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(139, 111, 125, 0.4), transparent 50%);
    border-radius: 50%;
}

.veil-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.section-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.65rem, 0.8vw + 0.2rem, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b6f7d;
    margin-bottom: 8px;
}

.label-num {
    color: #e85d4a;
    margin-right: 8px;
}

.body-text {
    font-family: 'Alegreya', serif;
    font-weight: 400;
    line-height: 1.7;
    color: #1a1321;
}

.pull-quote {
    font-family: 'Permanent Marker', cursive;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    color: #d4327c;
    letter-spacing: 0.02em;
    transform: rotate(-2deg);
    padding: 16px 0;
    line-height: 1.4;
}

/* === Section 3: Three Arcana === */
.section-arcana .card-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.arcana-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.arcana-item {
    background: #1a1321;
    border: 2px solid #e85d4a;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: #f7f0e6;
}

.arcana-item:hover {
    transform: rotate(-2deg) scale(1.03);
}

.arcana-2 {
    transform: translateY(-12px);
}

.arcana-2:hover {
    transform: translateY(-12px) rotate(2deg) scale(1.03);
}

.arcana-3:hover {
    transform: rotate(1deg) scale(1.03);
}

.arcana-halftone {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #e85d4a 30%, transparent 31%);
    background-size: 10px 10px;
    opacity: 0.08;
    pointer-events: none;
}

.arcana-number {
    font-family: 'Bungee Shade', cursive;
    font-size: 2.5rem;
    color: #f5a623;
    display: block;
    margin-bottom: 12px;
}

.arcana-title {
    font-family: 'Bungee Shade', cursive;
    font-size: 1.2rem;
    color: #e85d4a;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.arcana-desc {
    font-family: 'Alegreya', serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d9cfe5;
}

/* === Section 4: The Prophecy Scroll === */
.section-prophecy {
    background: #1a1321;
}

.section-prophecy .card-inner {
    background: #1a1321;
    border-color: #a0453a;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-prophecy .section-label {
    color: #d9cfe5;
}

.prophecy-ribbon {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding: 24px 0;
    white-space: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.prophecy-word {
    font-family: 'Bungee Shade', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.03em;
    scroll-snap-align: center;
    flex-shrink: 0;
}

.prophecy-divider {
    font-size: 2rem;
    color: #8b6f7d;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* === Section 5: Closing Sigil === */
.section-sigil {
    background: #1a1321;
    flex-direction: column;
}

.sigil-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.morphing-sigil {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 20px #f5a623);
    animation: sigil-glow 3s ease-in-out infinite alternate;
}

@keyframes sigil-glow {
    from { filter: drop-shadow(0 0 20px #f5a623); }
    to { filter: drop-shadow(0 0 40px #f5a623); }
}

.sigil-path {
    transition: d 3s cubic-bezier(0.37, 0, 0.63, 1);
}

.sigil-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(0.65rem, 0.8vw + 0.2rem, 0.85rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #8b6f7d;
}

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

    .marble-sphere {
        width: 150px;
        height: 150px;
    }

    .arcana-cards {
        grid-template-columns: 1fr;
    }

    .arcana-2 {
        transform: none;
    }

    .card-inner {
        padding: 40px 24px;
    }

    .nav-dots {
        right: 12px;
    }
}
