/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* Colors */
    --bg-color: #090c15;
    --bg-gradient: radial-gradient(circle at top center, #1a233a 0%, #090c15 60%);
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: rgba(148, 163, 184, 0.7);
    
    --accent-blue: #3b82f6;
    --accent-gold: #fde047;
    --accent-gold-glow: rgba(253, 224, 71, 0.3);
    
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-bg-hover: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Layout Constants */
    --max-content-width: 1200px;
    --container-padding: 20px;
    --section-spacing: 80px;
    --header-height: auto;
    
    /* Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-cinematic: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body.intro-mode {
    overflow: hidden !important;
}

body.void-active {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, .cinzel {
    font-family: 'Cinzel', serif;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    font-weight: 300;
}

p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   3. BACKGROUND LAYERS
   ========================================================================== */

/* Universal Starfield */
.starfield {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        radial-gradient(1px 1px at 10% 20%, #fff, transparent),
        radial-gradient(1px 1px at 30% 50%, #fff, transparent),
        radial-gradient(1px 1px at 50% 80%, #fff, transparent),
        radial-gradient(1px 1px at 70% 30%, #fff, transparent),
        radial-gradient(1px 1px at 90% 60%, #fff, transparent);
    background-size: 50% 50%;
    opacity: 0.3;
    animation: global-star-drift 240s linear infinite;
}

.starfield::after {
    opacity: 0.15;
    animation-duration: 400s;
    animation-direction: reverse;
}

@keyframes global-star-drift {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Light Ray */
.light-ray {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(800px, 100%);
    height: 100vh;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%);
    mask-image: linear-gradient(to bottom, transparent, black 15%);
}

/* Geometry Layer (Orbs/Thoughts) */
.geometry-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.geo-circle::before, .geo-circle::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    z-index: 1;
}

/* Grid markings on spheres */
.geo-circle::before { width: 1px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.geo-circle::after { height: 1px; width: 100%; top: 50%; left: 0; transform: translateY(-50%); }

.meridian-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.v-arc-1 { transform: scaleX(0.7); }
.v-arc-2 { transform: scaleX(0.4); }
.h-arc-1 { transform: scaleY(0.7); }

.geo-thought {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}

.geo-circle.active-thought .geo-thought { opacity: 1; }

.reserved-special { transition: box-shadow 2s ease, border-color 2s ease; cursor: pointer; pointer-events: auto; }
.reserved-special.active-thought {
    box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.08), 0 0 40px rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Sphere Interaction Animations */
@keyframes geo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-expand {
    0% { transform: scale(0.8); opacity: 0.8; border-width: 4px; }
    100% { transform: scale(2.5); opacity: 0; border-width: 1px; }
}

.geo-circle.spinning { animation: geo-spin 1.2s cubic-bezier(0.19, 1, 0.22, 1); }
.pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 5;
    animation: pulse-expand 0.8s ease-out forwards;
}

/* ==========================================================================
   4. OVERLAYS (INTRO & VOID)
   ========================================================================== */

/* Intro Overlay */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #020617;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: var(--transition-cinematic);
}

.intro-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

body.intro-mode .intro-overlay { display: flex !important; }
body.intro-mode .light-ray,
body.intro-mode .geometry-layer,
body.intro-mode header,
body.intro-mode nav,
body.intro-mode main,
body.intro-mode footer {
    opacity: 0 !important;
    pointer-events: none !important;
}

header, nav, main, footer { transition: opacity 2s ease; }

/* Void Overlay (Interaction Details) */
#void-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 200000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-cinematic);
}

#void-overlay.active { opacity: 1; pointer-events: auto; }
#void-overlay.active .void-content { display: flex; }

.section-title {
    text-align: center;
    font-size: clamp(1.3rem, 7vw, 2.5rem);
    color: var(--accent-gold);
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 15px var(--accent-gold-glow);
    overflow-wrap: break-word;
    word-wrap: break-word;
    width: 100%;
    line-height: 1.3;
}

@media (min-width: 600px) {
    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        letter-spacing: 4px;
        margin-bottom: 40px;
    }
}

.void-content {
    display: none;
    position: relative;
    width: 100%;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    padding: 80px 24px;
    box-sizing: border-box;
    z-index: 100002;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    
    /* Center panels horizontally */
    text-align: center;
}

.void-panel {
    display: none;
    max-width: 800px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-cinematic);
    margin: 0 auto; /* Horizontal center */
}

.void-panel.show { display: block; opacity: 1; transform: translateY(0); }

.void-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    text-align: center;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
}

.void-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.15);
    padding: 12px 45px;
    font-size: 0.9rem;
    letter-spacing: 3px;
    cursor: pointer;
    margin: 50px auto 0;
    display: block;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 1), 0 0 10px rgba(0, 0, 0, 0.8);
    transition: var(--transition-cinematic);
}

.void-close:hover {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(253, 224, 71, 0.4), 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Flame animation for the void close button */
@keyframes void-flame-flicker {
    0%, 100% { transform: translateY(-50%) scale(1); filter: blur(0.5px); }
    50% { transform: translateY(-54%) scale(1.1); filter: blur(1.5px); }
}

.void-close::before, .void-close::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 4px;
    height: 8px; 
    background: #ffcc00; 
    border-radius: 50% 50% 40% 40%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 1.2s ease;
    box-shadow: 0 0 8px #ffd700, 0 0 15px rgba(253, 224, 71, 0.6);
}

.void-close:hover::before, .void-close:hover::after { opacity: 1; animation: void-flame-flicker 1.5s infinite; }
.void-close::before { left: 20px; }
.void-close::after { right: 20px; }

/* ==========================================================================
   5. LAYOUT (HEADER, NAV, MAIN, FOOTER)
   ========================================================================== */

main {
    position: relative;
    z-index: 1;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Focused pages (Memorial, Symbols, etc.) often lack the banner-hero */
.focused-page {
    padding-top: 80px;
    padding-bottom: 40px;
    min-height: calc(100vh - 200px); /* Pushes footer down on short pages */
}

/* Banner Hero */
.banner-hero {
    width: 100%;
    min-height: 40vh;
    padding: 100px 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% -20%, rgba(30, 41, 59, 0.7) 0%, rgba(9, 12, 21, 0.9) 70%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.majestic-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: hsla(60, 95%, 80%, 0.95);
    text-shadow: 0 0 7px rgba(253, 224, 71, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.hibernation-divider {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, hsla(60, 95%, 80%, 0.8), transparent);
    margin: 40px auto;
}

.site-quote {
    font-style: italic;
    color: rgba(203, 213, 225, 0.6); /* Further muted for meditational feel */
    max-width: 600px;
    margin: 0 auto;
    transition: opacity 1.5s ease-in-out;
    /* Stability: Fixed height container to prevent layout shifts */
    min-height: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Navigation */
.main-nav-container {
    width: 100%;
    padding: 15px 0;
    background: rgba(30, 41, 59, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    margin-top: -30px;
    margin-bottom: 60px;
    z-index: 100;
}

.back-nav {
    margin-bottom: 40px; /* Precise uniform spacing for all sub-pages */
}

.back-link {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.back-link:hover {
    opacity: 1;
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.horizontal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px 50px;
    flex-wrap: wrap;
    padding: 0 var(--container-padding);
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: rgba(253, 224, 71, 0.9);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

/* Footer */
footer {
    text-align: center;
    padding: 60px var(--container-padding);
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--section-spacing);
    z-index: 10;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

footer p { font-size: 0.9rem; color: var(--text-secondary); }
.back-to-top { color: var(--accent-gold); }
.back-to-top:hover { color: #fef08a; }

/* ==========================================================================
   6. COMPONENTS (JOURNAL, ART, MEMORIAL)
   ========================================================================== */

/* Glass Box Wrapper */
.glass-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
    transition: var(--transition-smooth);
}

.interactive-glow:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(253, 224, 71, 0.25),
        inset 0 0 30px rgba(253, 224, 71, 0.08);
    border-color: rgba(253, 224, 71, 0.9);
    z-index: 10;
}

/* Journal Specifics */
.journal-layout-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.journal-entries-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.journal-entry {
    position: relative;
    padding: 60px 30px 30px; /* Space for top-left meta ribbon */
}

.journal-entries-container .journal-entry:nth-of-type(n+2) { opacity: 0.3; }
.journal-entries-container .journal-entry:nth-of-type(n+2):hover { opacity: 1; background: var(--glass-bg-hover); }

/* Journal Pagination */
.journal-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 10px;
}

.pagination-btn {
    background: transparent;
    border: 1px solid rgba(253, 224, 71, 0.35);
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-gold);
    cursor: pointer;
    transition: var(--transition-fast);
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(253, 224, 71, 0.1);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-indicator {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.entry-meta {
    position: absolute;
    top: -15px;
    left: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 10;
    text-align: center;
}

.entry-meta time { font-family: 'Cinzel', serif; font-size: 0.95rem; color: var(--text-secondary); letter-spacing: 1px; }

/* Parallax Sidebar */
.parallax-placeholder {
    position: relative;
    min-height: 500px;
    height: 100%;
    overflow: hidden; /* Catch falling feathers */
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    border: 1px solid rgba(253, 224, 71, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    z-index: 2;
    pointer-events: none;
}

/* Falling Feather Styling */
.feather {
    position: absolute;
    width: 2px;
    height: 15px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    transform-origin: center center;
}

.feather::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 50%;
    filter: blur(1px);
}

@keyframes feather-fall {
    0% { top: -20px; opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.4; }
    100% { top: 105%; opacity: 0; }
}

@keyframes feather-sway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(40px) rotate(45deg); }
}

/* Stars Background */
.stars-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.stars-layer {
    position: absolute;
    inset: -100px;
    background-image:
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1.5px 1.5px at 130px 80px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
}

.stars-layer-1 { animation: celestial-drift-1 120s linear infinite, twinkle 4s ease-in-out infinite; opacity: 0.6; }
.stars-layer-2 { background-size: 300px 300px; animation: celestial-drift-2 180s linear infinite, twinkle 7s ease-in-out infinite 1s; opacity: 0.4; }
.stars-layer-3 { background-size: 150px 150px; animation: celestial-drift-3 90s linear infinite, twinkle 5s ease-in-out infinite 2s; opacity: 0.2; }

@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }
@keyframes celestial-drift-1 { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-200px) rotate(5deg); } }
@keyframes celestial-drift-2 { from { transform: translateX(0) scale(1); } to { transform: translateX(-150px) scale(1.1); } }
@keyframes celestial-drift-3 { from { transform: translate(0, 0) rotate(0deg); } to { transform: translate(-100px, -100px) rotate(-10deg); } }

/* Scripture */
.scripture-block { margin: 30px 0; padding-left: 20px; border-left: 3px solid var(--accent-gold); }
.scripture { font-style: italic; color: var(--accent-gold); font-size: 1.1rem; }
.scripture-reference {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin: 40px 0;
}
.scripture-reference::before, .scripture-reference::after {
    content: ''; width: 40px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    margin: 0 20px;
}

/* Memorial Grid Layout */
.memorial-grid {
    margin: 40px 0;
}

.memorial-header-row,
.memorial-row {
    display: grid;
    grid-template-columns: 60px 170px 200px 1fr;
    gap: 15px 30px;
    align-items: center;
    padding: 12px 0;
    transition: var(--transition-fast);
}

.memorial-header-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.memorial-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.memorial-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

/* Perspectives Grid Layout (Standardized 5-Column Schema) */
.perspectives-grid {
    margin: 50px 0;
    width: 100%;
}

.perspectives-header-row {
    display: grid;
    grid-template-columns: 200px 120px 180px 200px 1fr;
    gap: 20px 30px;
    padding: 15px 10px;
    border-bottom: 2px solid rgba(253, 224, 71, 0.2);
    margin-bottom: 10px;
}

.perspectives-row {
    display: grid;
    grid-template-columns: 200px 120px 180px 200px 1fr;
    gap: 20px 30px;
    padding: 25px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
    align-items: start;
}

.perspectives-row:hover {
    background: rgba(255, 255, 255, 0.015);
}

.entity-identity {
    display: block;
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.1rem;
    font-family: 'Cinzel', serif;
    margin-bottom: 4px;
}

.type-classification {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.perspectives-grid .grid-header {
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    opacity: 0.7;
}

.perspectives-grid .grid-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    text-align: left;
}

.perspectives-grid .core-idea-col {
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
}

.perspectives-grid .considerations-col {
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.7);
    line-height: 1.6;
}

/* Mobile Archive Card View */
@media (max-width: 1024px) {
    .perspectives-header-row {
        display: none;
    }
    
    .perspectives-row {
        display: block;
        background: rgba(30, 41, 59, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        padding: 30px;
        margin-bottom: 30px;
    }

    .perspectives-row .grid-item {
        margin-bottom: 20px;
        padding-left: 0;
    }

    .perspectives-row .grid-item::before {
        content: attr(data-label);
        display: block;
        font-family: 'Cinzel', serif;
        font-size: 0.7rem;
        letter-spacing: 2px;
        color: var(--accent-gold);
        text-transform: uppercase;
        margin-bottom: 8px;
        opacity: 0.8;
    }

    .perspectives-row .grid-item:last-child {
        margin-bottom: 0;
    }
}

.grid-header {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

.grid-item {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.flag-col {
    display: flex;
    justify-content: center;
}

.flag-col span {
    font-size: 1.6rem;
    border-radius: 3px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.religion-col {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.religion-col.unverified {
    font-style: italic;
    opacity: 0.5;
}

.country-col {
    font-size: 0.95rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.name-col {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.dialect {
    display: block; /* Stack on mobile-first or kept inline below */
    opacity: 0.5;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 4px;
}

@media (min-width: 600px) {
    .dialect { display: inline-block; margin-left: 15px; margin-top: 0; }
}

@media (max-width: 768px) {
    .memorial-row {
        grid-template-columns: 60px 1fr;
        gap: 5px 20px;
        padding: 20px 10px;
    }

    .flag-col {
        grid-row: 1 / 4;
        align-self: start;
        padding-top: 5px;
    }

    .name-col {
        font-size: 1.15rem;
        line-height: 1.3;
        grid-column: 2;
    }

    .religion-col {
        font-size: 0.85rem;
        opacity: 0.6;
        grid-column: 2;
    }

    .country-col {
        font-size: 0.85rem;
        opacity: 0.6;
        grid-column: 2;
    }
}

/* Memorial Names (Legacy list fallback) */
.names-list { list-style: none; margin: 40px 0; }
.names-list li { font-size: 1.4rem; margin: 15px 0; display: flex; align-items: center; }
.names-list li .fi { margin-right: 15px; opacity: 0.7; transition: var(--transition-fast); }
.names-list li:hover .fi { opacity: 1; filter: saturate(1.2) brightness(1.2); }

/* ==========================================================================
   HELP / REPORTING FACILITATOR PAGE
   ========================================================================== */
.help-page-box .section-title {
    font-size: clamp(1.4rem, 5vw, 2.1rem);
    line-height: 1.4;
    margin-bottom: 25px;
}

.help-intro {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.help-form-heading {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 1.3rem;
    margin: 50px 0 15px;
}

.help-form-status {
    background: rgba(253, 224, 71, 0.08);
    border: 1px solid rgba(253, 224, 71, 0.25);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.help-report-form {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    opacity: 0.6;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.optional-tag {
    text-transform: none;
    font-family: 'Inter', sans-serif;
    letter-spacing: normal;
    opacity: 0.6;
    font-size: 0.8rem;
}

.form-row input[type="text"],
.form-row input[type="file"],
.form-row textarea {
    width: 100%;
    background: rgba(9, 12, 21, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    resize: vertical;
    cursor: not-allowed;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: var(--text-muted);
}

.field-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.help-submit-btn {
    align-self: flex-start;
    margin-top: 10px;
    padding: 14px 32px;
    background: rgba(253, 224, 71, 0.15);
    border: 1px solid rgba(253, 224, 71, 0.35);
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--accent-gold);
    cursor: not-allowed;
}

.help-disclaimer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.disclaimer-title {
    font-family: 'Cinzel', serif;
    color: var(--accent-gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.help-disclaimer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Art Display */
.art-selection-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.art-bridge-link { cursor: pointer; text-align: center; padding: 50px 30px !important; margin-bottom: 0; }
.art-bridge-link p { font-size: 1.25rem; color: var(--accent-gold); font-style: italic; letter-spacing: 2.5px; }

.art-showcase-container {
    max-width: 800px; /* Slightly smaller as requested */
    margin: 40px auto 0;
    position: relative;
    animation: fadeIn 0.8s ease-out;
    text-align: center; /* Center the fit-content children */
}

.art-controls {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start; /* Aligned to the left */
    position: relative;
    z-index: 100;
}

.art-close-btn {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 224, 71, 0.4);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(253, 224, 71, 0.05);
    color: var(--accent-gold);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50%;
    padding: 0;
}

.art-close-btn svg {
    transition: transform 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(253, 224, 71, 0.3));
}

.art-close-btn:hover {
    background: radial-gradient(circle at center, rgba(253, 224, 71, 0.15) 0%, rgba(15, 23, 42, 0.9) 100%);
    border-color: rgba(253, 224, 71, 0.8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(253, 224, 71, 0.2);
    color: #fff;
}

.art-close-btn:hover svg {
    transform: translateX(-3px);
    filter: drop-shadow(0 0 8px rgba(253, 224, 71, 0.6));
}

.art-version-container {
    display: inline-block; /* Snap to content width */
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    background: #000;
    overflow: hidden;
    position: relative;
    line-height: 0; /* Remove baseline gap for images */
}

.mosaic-img {
    max-width: 100%;
    max-height: 82vh;
    display: block;
}

.art-quote-overlay {
    position: relative; /* Take up actual space in the document flow */
    margin-top: 30px;
    margin-bottom: 50px; /* Generous space above the artwork */
    padding: 0 20px;
    z-index: 10;
    text-align: center;
}
.art-quote-sub {
    margin-top: 20px;
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

.version-ribbon { position: absolute; bottom: 0; right: 0; background: rgba(15, 23, 42, 0.95); padding: 12px 24px; color: var(--accent-gold); font-weight: 700; border: 1px solid rgba(255, 255, 255, 0.1); }

/* ==========================================================================
   7. ANIMATIONS & UTILITIES
   ========================================================================== */
.fade-in { opacity: 0; animation: fadeIn 1s forwards ease-out; }
.slide-up { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.slide-up.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.text-center { text-align: center; }
.flex-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.text-gradient {
    background: linear-gradient(to right, var(--accent-blue), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   8. RESPONSIVE LAYOUTS
   ========================================================================== */

/* Small Devices (Mobile) */
@media (max-width: 599px) {
    :root {
        --container-padding: 15px;
    }
    
    .banner-hero { padding: 60px 15px; min-height: 30vh; }
    .majestic-title { font-size: 2rem; letter-spacing: 2px; }
    
    .main-nav-container { margin-top: 0; margin-bottom: 30px; }
    .horizontal-links { gap: 15px 30px; }
    .nav-link { font-size: 0.9rem; }
    
    .glass-box { padding: 25px 20px; }
    
    .journal-entry { padding: 50px 15px 20px; }
    .entry-meta { left: 10px; top: -10px; }
    
    .names-list li { font-size: 1.1rem; }
}

/* Medium Devices (Tablets/Partial Desktop) */
@media (min-width: 600px) {
    .journal-entry { padding-left: 110px; padding-top: 40px; }
    .entry-meta { top: 25px; left: -20px; }
}

/* Large Devices (Full Desktop Grid) */
@media (min-width: 900px) {
    .journal-layout-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        align-items: stretch;
    }
}

/* Hidden elements on specific screens */
@media (max-width: 899px) {
    .hidden-mobile { display: none !important; }
}

/* ==========================================================================
   9. HIBERNATION/INTRO CANVAS SPECIFICS
   ========================================================================== */
#splash-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: none;
}

.shimmer-effect { position: relative; color: var(--accent-gold); display: inline-block; }
.shimmer-effect::after {
    content: attr(data-text); position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(253,224,71,0.1) 30%, rgba(253,224,71,0.6) 50%, rgba(253,224,71,0.1) 70%, transparent);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    z-index: 1; background-position: 400% 0; filter: blur(1px);
}
.shimmer-effect.active-shine::after { animation: shine-sweep 10s linear forwards; }
@keyframes shine-sweep { from { background-position: 400% 0; } to { background-position: -400% 0; } }

/* ==========================================================================
   10. SYMBOLS PAGE SPECIFICS
   ========================================================================== */
.page-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: -15px; /* Closed the gap as requested */
    perspective: 1000px;
}

.egyptian-eye {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 15px var(--accent-gold-glow));
    animation: eye-pulse 4s infinite ease-in-out;
    opacity: 0.9;
}

@keyframes eye-pulse {
    0%, 100% { transform: translateY(0) scale(1.0); opacity: 0.8; }
    50% { transform: translateY(-5px) scale(1.05); opacity: 1; filter: drop-shadow(0 0 25px var(--accent-gold)); }
}

.symbols-intro-container {
    padding: 60px 50px !important;
}

.symbols-intro {
    width: 100%;
    margin: 0 auto;
    text-align: left;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

.symbols-intro p {
    margin-bottom: 25px;
}

.symbols-intro p:last-child {
    margin-bottom: 0;
}

.symbols-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 40px;
    background: rgba(30, 41, 59, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.symbols-table th {
    background: rgba(15, 23, 42, 0.8);
    color: var(--accent-gold);
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid rgba(253, 224, 71, 0.2);
}

.symbols-table td {
    padding: 30px 20px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
}

.symbol-image-container {
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.symbol-image-container:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.symbol-img {
    max-width: 300px;
    height: auto;
    display: block;
    filter: invert(1) brightness(1.2) drop-shadow(0 0 15px rgba(59, 130, 246, 0.4));
    mix-blend-mode: lighten;
    opacity: 0.9;
    transition: all 0.5s ease;
}

.symbol-image-container:hover .symbol-img {
    filter: invert(1) brightness(1.5) drop-shadow(0 0 25px rgba(253, 224, 71, 0.5));
    opacity: 1;
}

@media (max-width: 768px) {
    .symbols-table, .symbols-table thead, .symbols-table tbody, .symbols-table tr, .symbols-table td {
        display: block;
        width: 100%;
    }
    
    .symbols-table thead { display: none; }
    
    .symbols-table tr {
        margin-bottom: 30px;
        padding-bottom: 30px;
        border-bottom: 2px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }
    
    .symbols-table td {
        border-bottom: none;
        padding: 10px 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .symbol-index {
        font-size: 0.9rem;
        opacity: 0.5;
        display: block;
        margin-bottom: 5px;
    }
    
    .symbol-title {
        font-size: clamp(1.2rem, 5vw, 1.8rem);
        font-family: 'Cinzel', serif;
        color: var(--accent-gold);
        display: block;
        margin-bottom: 10px;
        overflow-wrap: break-word;
    }
    
    .symbol-image-container {
        margin: 10px auto;
    }

    .symbol-img {
        max-width: 100%;
        width: min(180px, 100%);
        margin: 0 auto;
        height: auto;
    }
}

.symbol-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    letter-spacing: 1px;
}

/* Page Date Ribbon */
.page-date-ribbon {
    position: fixed;
    top: 30px;
    right: 0;
    background: rgba(15, 23, 42, 0.9);
    padding: 12px 25px;
    border-left: 2px solid var(--accent-gold);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border-radius: 0 !important;
}

.ribbon-label {
    display: block;
    font-size: 0.6rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.ribbon-date {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    letter-spacing: 1.5px;
    display: block;
    font-weight: 600;
}

@media (max-width: 1300px) {
    .page-date-ribbon {
        position: absolute;
        top: 20px;
        right: 0;
    }
}

@media (max-width: 600px) {
    .symbols-table thead { display: none; }
    .symbols-table tr { display: block; margin-bottom: 20px; border-bottom: 1px solid var(--glass-border); }
    .symbols-table td { display: block; width: 100%; border-bottom: none; padding: 10px 20px; }
    .symbols-table td:nth-child(2) { font-weight: bold; }
    .symbol-img { max-width: 200px; margin: 0 auto; }
}

/* Common Utilities */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* ==========================================================================
   11. PERSPECTIVES CATEGORY TABS
   ========================================================================== */
.perspectives-tabs-container {
    width: 100%;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.perspectives-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 30px;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
}

.tab-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tab-btn span {
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(253, 224, 71, 0.05);
    border-color: rgba(253, 224, 71, 0.3);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: rgba(253, 224, 71, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 20px rgba(253, 224, 71, 0.1);
}

.tab-btn.active i {
    transform: scale(1.2);
}

/* Filtering Transitions */
.perspectives-row {
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}

.perspectives-row.filtering-out {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

@media (max-width: 768px) {
    .perspectives-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.75rem;
    }
    
    .tab-btn span {
        display: none; /* Icons only on very small screens */
    }
    
    .tab-btn i {
        font-size: 1.3rem;
    }
}