/* ============================================
   MAGNA HISTORIA - EPIC LANDING THEME
   Ancient Mesopotamian meets cinematic grandeur
   ============================================ */

/* ============================================
   GOOGLE FONTS - Dramatic Typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;500;600;700;900&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ============================================
   GLOBAL SCROLL — single scroll context on body
   ============================================ */
html {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

body::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
}

body.magna-landing {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Kill ALL scrollbars site-wide — scrolling still works, bars invisible */
*, *::before, *::after {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
*::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* ============================================
   COLOR PALETTE - Ancient Gold & Obsidian
   ============================================ */
:root {
    --magna-gold: #d4af37;
    --magna-gold-light: #f4d03f;
    --magna-gold-bright: #ffd700;
    --magna-gold-dark: #996515;
    --magna-gold-deep: #7a5411;
    --magna-bronze: #cd7f32;
    --magna-lapis: #26619c;
    --magna-turquoise: #30d5c8;
    --magna-obsidian: #050508;
    --magna-void: #000000;
    --magna-clay: #8b7355;
    --magna-sand: #c2b280;
    --magna-papyrus: #f4ecd8;
    --magna-glow: rgba(212, 175, 55, 0.6);

    /* Typography */
    --font-display: 'Cinzel Decorative', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
}

/* ============================================
   EPIC GOLD TEXT EFFECT
   ============================================ */
.gold-text {
    background: linear-gradient(
        135deg,
        #7a5411 0%,
        #d4af37 20%,
        #ffd700 35%,
        #f4d03f 50%,
        #ffd700 65%,
        #d4af37 80%,
        #7a5411 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: epicGoldShimmer 8s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
}

@keyframes epicGoldShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4));
    }
    25% {
        background-position: 50% 100%;
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    }
    75% {
        background-position: 50% 0%;
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 0.7));
    }
}

/* ============================================
   MAGNA HISTORIA HERO SECTION - CINEMATIC
   ============================================ */
.magna-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--magna-void);
    overflow: hidden;
    padding: 2rem;
}

/* Layered atmospheric background */
.magna-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 120% 80% at 50% 120%, rgba(38, 97, 156, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 30%);
    z-index: 1;
    animation: atmosphericPulse 12s ease-in-out infinite;
}

@keyframes atmosphericPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Subtle star field effect */
.magna-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 50% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 60%, rgba(255, 255, 255, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 40%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 15% 90%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 85%, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    z-index: 1;
    animation: starTwinkle 6s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* ============================================
   ROTATING IMPOSSIBLE GEOMETRY BACKGROUND
   Sacred architecture from around the world
   ============================================ */
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Subtle zoom and pan animation */
    animation: kenBurns 30s ease-in-out infinite;
    transform-origin: center center;
}

.hero-background-image.active {
    opacity: 0.35;
}

/* Ken Burns slow zoom effect */
@keyframes kenBurns {
    0% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.08) translateY(-2%);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* Overlay to ensure text readability */
.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(10, 10, 15, 0.3) 0%, rgba(10, 10, 15, 0.7) 100%),
        linear-gradient(180deg, rgba(10, 10, 15, 0.5) 0%, rgba(10, 10, 15, 0.2) 50%, rgba(10, 10, 15, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Golden vignette enhancement */
.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 100% at 50% 50%, transparent 30%, rgba(212, 175, 55, 0.05) 70%, rgba(212, 175, 55, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Legacy faravahar support */
.hero-faravahar {
    width: 90vw;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    opacity: 0.85;
    filter:
        drop-shadow(0 0 60px rgba(212, 175, 55, 0.5))
        drop-shadow(0 0 120px rgba(212, 175, 55, 0.3))
        drop-shadow(0 0 200px rgba(212, 175, 55, 0.2))
        contrast(1.1)
        saturate(1.2);
    animation: faravaharGlow 8s ease-in-out infinite;
    transform-origin: center center;
}

@keyframes faravaharGlow {
    0%, 100% {
        opacity: 0.75;
        transform: scale(1);
        filter:
            drop-shadow(0 0 60px rgba(212, 175, 55, 0.5))
            drop-shadow(0 0 120px rgba(212, 175, 55, 0.3))
            drop-shadow(0 0 200px rgba(212, 175, 55, 0.2))
            contrast(1.1)
            saturate(1.2);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.02);
        filter:
            drop-shadow(0 0 80px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 160px rgba(212, 175, 55, 0.4))
            drop-shadow(0 0 250px rgba(212, 175, 55, 0.25))
            contrast(1.15)
            saturate(1.4);
    }
}

/* ============================================
   HERO CONTENT - EPIC TITLE CARD
   ============================================ */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
    animation: contentReveal 2s ease-out forwards;
    opacity: 0;
}

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

/* THE TITLE - Refined Treatment */
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
    animation: titleEntrance 2.5s ease-out forwards;
}

@keyframes titleEntrance {
    0% {
        opacity: 0;
        letter-spacing: 0.5em;
        filter: blur(10px);
    }
    50% {
        opacity: 0.8;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        letter-spacing: 0.15em;
        filter: blur(0);
    }
}

/* Decorative lines around title */
.hero-title::before,
.hero-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--magna-gold-dark) 20%,
        var(--magna-gold-bright) 50%,
        var(--magna-gold-dark) 80%,
        transparent 100%
    );
    animation: lineExpand 2s ease-out 0.5s forwards;
    width: 0;
}

.hero-title::before {
    top: -20px;
}

.hero-title::after {
    bottom: -15px;
}

@keyframes lineExpand {
    0% { width: 0; opacity: 0; }
    100% { width: 80%; opacity: 1; }
}

/* THE TAGLINE - Ancient Wisdom */
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--magna-gold);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    text-shadow:
        0 0 30px rgba(212, 175, 55, 0.5),
        0 0 60px rgba(212, 175, 55, 0.3);
    animation: taglineReveal 2s ease-out 0.8s forwards;
    opacity: 0;
}

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

/* THE SUBTITLE */
.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--magna-sand);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    letter-spacing: 0.03em;
    animation: subtitleReveal 2s ease-out 1.2s forwards;
    opacity: 0;
}

@keyframes subtitleReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.magna-hero .scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: scrollBounce 2s ease-in-out infinite, fadeIn 2s ease-out 2s forwards;
    opacity: 0;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeIn {
    to { opacity: 0.6; }
}

/* ============================================
   THREE PILLAR NAVIGATION - REFINED
   ============================================ */
/* ============================================
   PILLAR NAVIGATION — Compact antiquarian index
   ============================================ */
.pillar-nav {
    display: flex;
    justify-content: center;
    gap: 1px;
    padding: 3rem 1.5rem;
    background: linear-gradient(180deg,
        var(--magna-void) 0%,
        rgba(5, 5, 8, 0.98) 50%,
        var(--magna-obsidian) 100%
    );
    flex-wrap: wrap;
    position: relative;
}

.pillar-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--magna-gold-dark) 30%,
        var(--magna-gold) 50%,
        var(--magna-gold-dark) 70%,
        transparent 100%
    );
}

.pillar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.4rem 1.6rem 1.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    width: 150px;
    transition: all 0.4s ease;
    position: relative;
}

/* Thin vertical separator between items */
.pillar-btn + .pillar-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.2), transparent);
}

/* No corner accents — clean */
.pillar-btn::after {
    display: none;
}

.pillar-btn:hover {
    transform: translateY(-3px);
    background: rgba(212, 175, 55, 0.04);
}

/* SVG icons — hand-drawn style */
.pillar-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--magna-gold);
    opacity: 0.55;
    margin-bottom: 0.7rem;
    transition: all 0.4s ease;
}

.pillar-btn:hover .pillar-icon-svg {
    opacity: 0.85;
    transform: scale(1.08);
}

/* Legacy emoji icon — hidden */
.pillar-icon {
    display: none;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--magna-gold);
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
}

.pillar-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    font-style: italic;
    color: var(--magna-sand);
    opacity: 0.55;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: 0.03em;
}

/* ============================================
   CONTENT PREVIEW SECTION
   ============================================ */
.content-preview {
    padding: 5rem 2rem;
    background: var(--magna-obsidian);
    display: flex;
    justify-content: center;
}

.preview-card {
    max-width: 850px;
    background: linear-gradient(145deg,
        rgba(212, 175, 55, 0.06) 0%,
        rgba(0, 0, 0, 0.4) 100%
    );
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 2px;
    padding: 3.5rem;
    position: relative;
}

/* Decorative corners */
.preview-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--magna-gold-dark),
        var(--magna-gold),
        var(--magna-gold-dark),
        transparent
    );
}

.preview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--magna-gold);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.preview-card p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 2;
    color: var(--magna-sand);
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.preview-card p:last-child {
    margin-bottom: 0;
}

.preview-card .emphasis {
    font-family: var(--font-body);
    color: var(--magna-gold-light);
    font-weight: 500;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(212, 175, 55, 0.08) 50%,
        transparent 100%
    );
    border-left: 3px solid var(--magna-gold);
    border-right: 3px solid var(--magna-gold);
    margin-top: 2rem;
}

/* ============================================
   HEADER UPDATES FOR MAGNA HISTORIA THEME
   ============================================ */
body.magna-theme .athenaeum-header {
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.97) 0%, rgba(10, 14, 26, 0.88) 100%);
    border-bottom: none; /* unified-nav litho-rule handles the separator */
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

body.magna-theme .header-titles h1 {
    font-family: var(--font-heading);
    letter-spacing: 0.1em;
    background: linear-gradient(
        90deg,
        rgb(48, 213, 200) 0%,
        rgb(38, 97, 156) 30%,
        rgb(168, 112, 208) 60%,
        rgb(212, 175, 55) 85%,
        rgb(240, 200, 100) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-gradient-shift 8s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(48, 213, 200, 0.3))
            drop-shadow(0 0 24px rgba(168, 112, 208, 0.15));
}

body.magna-theme .header-titles .subtitle {
    font-family: var(--font-body);
    color: var(--magna-sand);
    opacity: 0.7;
    font-style: italic;
}

body.magna-theme .header-pyramid-logo {
    opacity: 0.9;
}

/* ============================================
   FOOTER UPDATES
   ============================================ */
body.magna-theme footer {
    background: rgba(8, 12, 22, 0.85);
    border-top: 1px solid rgba(180, 160, 120, 0.10);
}

body.magna-theme footer p {
    font-family: var(--font-body);
    color: var(--magna-sand);
}

/* ============================================
   TABLET/IPAD RESPONSIVENESS
   ============================================ */
@media (max-width: 1024px) {
    .magna-hero {
        padding: 2rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 3rem);
    }

    .pillar-nav {
        gap: 0;
        padding: 2.5rem 1rem;
    }

    .pillar-btn {
        width: 140px;
        padding: 1.2rem 1rem 1rem;
    }
}

/* iPad landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .magna-hero {
        min-height: auto;
        padding: 3rem 2rem;
    }

    .hero-background-image {
        object-position: center 40%;
    }

    .hero-background-image.active {
        opacity: 0.3;
    }

    .hero-faravahar {
        width: 60vw;
        max-width: 500px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .pillar-nav {
        flex-direction: row;
        padding: 2.5rem 1.5rem;
    }

    .pillar-btn {
        width: 140px;
    }
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
    .magna-hero {
        padding: 1.5rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-background-image {
        object-position: center center;
        /* Slower animation on mobile for performance */
        animation: kenBurnsMobile 40s ease-in-out infinite;
    }

    .hero-background-image.active {
        opacity: 0.4;
    }

    @keyframes kenBurnsMobile {
        0% {
            transform: scale(1.05);
        }
        50% {
            transform: scale(1.15);
        }
        100% {
            transform: scale(1.05);
        }
    }

    .hero-faravahar {
        width: 120vw;
        max-width: none;
        opacity: 0.35;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
        letter-spacing: 0.08em;
    }

    .hero-tagline {
        font-size: clamp(1rem, 3.5vw, 1.2rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .pillar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 2rem 1rem;
        gap: 0;
    }

    .pillar-btn {
        width: 120px;
        padding: 1rem 0.8rem;
    }

    .pillar-icon-svg {
        width: 24px;
        height: 24px;
    }

    .pillar-title {
        font-size: 0.65rem;
    }

    .content-preview {
        padding: 3rem 1.5rem;
    }

    .preview-card {
        padding: 2rem 1.5rem;
    }

    .preview-card h3 {
        font-size: 1.3rem;
    }

    .preview-card p {
        font-size: 1.05rem;
        line-height: 1.8;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .pillar-icon-svg {
        width: 22px;
        height: 22px;
    }

    .pillar-title {
        font-size: 0.6rem;
    }

    .pillar-subtitle {
        font-size: 0.55rem;
    }

    .pillar-btn {
        width: 80px;
        padding: 0.8rem 0.5rem;
    }
}

/* ============================================
   HIDE OLD ELEMENTS ON LANDING PAGE
   ============================================ */
body.magna-theme #emerald-hero,
body.magna-theme .emerald-hero,
body.magna-theme .landing-hero,
body.magna-theme #landing-hero {
    display: none !important;
}

/* Hide the old header, nav, main content, and footer on landing page */
body.magna-theme.magna-landing .athenaeum-header,
body.magna-theme.magna-landing .visualization-menu,
body.magna-theme.magna-landing #visualization-container,
body.magna-theme.magna-landing > main,
body.magna-theme.magna-landing > footer:not(.magna-footer) {
    display: none !important;
}

/* Hide loading screen on landing */
body.magna-theme.magna-landing #loading-screen {
    display: none !important;
}

/* Ensure entrance experience stays hidden */
body.magna-theme #entrance-experience {
    display: none !important;
}

/* ============================================
   EXPLORE VISUALIZATIONS LINK
   ============================================ */
.explore-visualizations {
    display: flex;
    justify-content: center;
    padding: 3rem 2rem;
    background: var(--magna-obsidian);
}

.explore-link {
    font-family: var(--font-heading);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 2px;
    color: var(--magna-gold);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    position: relative;
}

.explore-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 175, 55, 0.1),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.explore-link:hover {
    border-color: var(--magna-gold);
    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.2),
        inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.explore-link:hover::before {
    opacity: 1;
}

.explore-link svg {
    width: 20px;
    height: 20px;
    stroke: var(--magna-gold);
}

/* ============================================
   MAGNA HISTORIA SITE FOOTER
   ============================================ */
.magna-footer {
    background: var(--magna-void);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding: 4rem 2rem;
    text-align: center;
}

.magna-footer p {
    font-family: var(--font-body);
    color: var(--magna-sand);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-style: italic;
    letter-spacing: 0.02em;
}

.magna-footer .disclaimer {
    font-size: 0.9rem;
    opacity: 0.5;
    font-style: normal;
}

/* ============================================
   INTRO SOUND TOGGLE BUTTON
   ============================================ */
.intro-sound-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.intro-sound-toggle:hover {
    border-color: var(--magna-gold);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1.05);
}

.intro-sound-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--magna-gold);
    transition: opacity 0.3s ease;
}

.intro-sound-toggle.muted .sound-on {
    display: none;
}

.intro-sound-toggle.muted .sound-off {
    display: block !important;
}

/* Pulse animation when audio starts */
.intro-sound-toggle.playing {
    animation: soundPulse 2s ease-in-out infinite;
}

@keyframes soundPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
}

/* Click prompt on first load */
.intro-sound-toggle::after {
    content: 'Click for sound';
    position: absolute;
    top: 60px;
    right: 0;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--magna-gold);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.intro-sound-toggle:not(.interacted)::after {
    animation: promptFade 3s ease-in-out 2s forwards;
}

@keyframes promptFade {
    0%, 100% { opacity: 0; transform: translateY(-10px); }
    20%, 80% { opacity: 1; transform: translateY(0); }
}

.intro-sound-toggle.interacted::after {
    display: none;
}

@media (max-width: 768px) {
    .intro-sound-toggle {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
    }

    .intro-sound-toggle svg {
        width: 20px;
        height: 20px;
    }

    .intro-sound-toggle::after {
        display: none;
    }
}

/* Sound Relic removed - using calming frequency audio instead */

/* ============================================
   LANDING PAGE — LIGHT PARCHMENT OVERRIDES
   Scoped to .magna-landing body class only
   ============================================ */
.magna-landing .pillar-nav {
    background: linear-gradient(180deg, #f4ecd8 0%, #efe6d5 100%);
    padding: 2.5rem 1.5rem;
}

.magna-landing .pillar-nav::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(90, 74, 58, 0.12) 30%,
        rgba(90, 74, 58, 0.2) 50%,
        rgba(90, 74, 58, 0.12) 70%,
        transparent 100%
    );
}

.magna-landing .pillar-btn {
    background: transparent;
    color: #5a4a3a;
}

.magna-landing .pillar-btn + .pillar-btn::before {
    background: linear-gradient(180deg, transparent, rgba(90, 74, 58, 0.15), transparent);
}

.magna-landing .pillar-btn:hover {
    background: rgba(90, 74, 58, 0.04);
}

.magna-landing .pillar-title {
    color: #5a4a3a;
}

.magna-landing .pillar-subtitle {
    color: #7a6a5a;
}

.magna-landing .pillar-icon-svg {
    color: #7a6a5a;
    opacity: 0.5;
}

.magna-landing .pillar-btn:hover .pillar-icon-svg {
    color: #5a4a3a;
    opacity: 0.75;
}

.magna-landing .content-preview {
    background: #efe6d5;
    color: #5a4a3a;
}

.magna-landing .preview-card {
    background: linear-gradient(145deg,
        rgba(90, 74, 58, 0.03) 0%,
        rgba(244, 236, 216, 0.6) 100%
    );
    border-color: rgba(90, 74, 58, 0.12);
}

.magna-landing .preview-card::before {
    background: linear-gradient(90deg,
        transparent,
        rgba(90, 74, 58, 0.2),
        rgba(90, 74, 58, 0.35),
        rgba(90, 74, 58, 0.2),
        transparent
    );
}

.magna-landing .preview-card h3 {
    color: #5a4a3a;
}

.magna-landing .preview-card p {
    color: #6b5b4a;
}

.magna-landing .preview-card .emphasis {
    color: #5a4a3a;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(90, 74, 58, 0.06) 50%,
        transparent 100%
    );
    border-left-color: rgba(90, 74, 58, 0.4);
    border-right-color: rgba(90, 74, 58, 0.4);
}

.magna-landing .explore-visualizations {
    background: #efe6d5;
}

.magna-landing .explore-link {
    color: #5a4a3a;
    border-color: rgba(90, 74, 58, 0.3);
}

.magna-landing .explore-link:hover {
    border-color: rgba(90, 74, 58, 0.6);
    box-shadow: 0 0 20px rgba(90, 74, 58, 0.08);
}

.magna-landing .explore-link svg {
    stroke: #5a4a3a;
}

.magna-landing .magna-footer {
    background: #e8dece;
    border-top-color: rgba(90, 74, 58, 0.1);
}

.magna-landing .magna-footer p {
    color: #6b5b4a;
}

.magna-landing .magna-footer .disclaimer {
    color: #8a7a6a;
}

.magna-landing .intro-sound-toggle {
    border-color: rgba(90, 74, 58, 0.3);
    background: rgba(244, 236, 216, 0.8);
}

.magna-landing .intro-sound-toggle:hover {
    border-color: rgba(90, 74, 58, 0.5);
    background: rgba(90, 74, 58, 0.08);
}

.magna-landing .intro-sound-toggle svg {
    stroke: #5a4a3a;
}
