/* ==========================================================================
   Rꜥ FLAGSHIP TEMPLE — CUSTOM STYLES
   Egyptian theme: gold, lapis, desert sand, red ochre, deep black
   ========================================================================== */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
    --egypt-gold: #C9A227;
    --egypt-lapis: #1E3A5F;
    --egypt-sand: #C4A882;
    --egypt-ochre: #A63A3A;
    --egypt-papyrus: #E8D8B8;
    --void-deep: #0A0806;
    --void-mid: #121008;
    --void-light: #1A1810;
    --void-surface: #16140E;
    --text-primary: #E8D8B8;
    --text-muted: #A89878;
    --text-dim: #6A5A48;
    --accent-glow: rgba(201, 162, 39, 0.08);
    --accent-glow-strong: rgba(201, 162, 39, 0.15);
    --font-display: 'Cinzel', Georgia, serif;
    --font-decorative: 'Cinzel Decorative', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --transition-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    --section-spacing: 10rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--void-deep);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Solar Canvas ───────────────────────────────────────────────────────── */
#solar-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.35rem 0;
    transition: background 0.4s var(--transition-smooth), 
                backdrop-filter 0.4s var(--transition-smooth),
                box-shadow 0.4s var(--transition-smooth);
}

.main-nav.scrolled {
    background: rgba(10, 8, 6, 0.85);
    backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 0.25rem 0;
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-img {
    height: 128px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--egypt-gold);
    transition: width 0.4s var(--transition-smooth);
}

.nav-link:hover {
    color: var(--egypt-gold);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 640px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--egypt-gold);
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.title-hieroglyph {
    display: block;
    font-family: var(--font-decorative);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--egypt-gold);
    text-shadow: 0 0 40px rgba(201, 162, 39, 0.25), 
                 0 0 80px rgba(201, 162, 39, 0.1);
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.title-divider {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--egypt-gold);
    margin: 1.5rem 0;
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

.title-trans {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.08em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--accent-glow);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--egypt-gold);
}

.meta-domain {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--egypt-gold);
    color: var(--void-deep);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s var(--transition-smooth);
    border: 2px solid var(--egypt-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--egypt-gold);
    box-shadow: 0 0 30px rgba(201, 162, 39, 0.15);
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

.btn-ghost {
    background: transparent;
    color: var(--egypt-gold);
    border-color: rgba(201, 162, 39, 0.3);
}

.btn-ghost:hover {
    background: rgba(201, 162, 39, 0.06);
    border-color: var(--egypt-gold);
}

.hero-mascot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mascot-img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    transition: transform 0.6s var(--transition-smooth);
}

.mascot-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--egypt-gold);
    opacity: 0.3;
    animation: scroll-breathe 2s ease-in-out infinite;
}

@keyframes scroll-breathe {
    0%, 100% { transform: scaleY(0.6); opacity: 0.15; }
    50% { transform: scaleY(1); opacity: 0.4; }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 2;
    padding: var(--section-spacing) 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--egypt-gold);
    margin-bottom: 1rem;
    position: relative;
}

.section-number::before,
.section-number::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(201, 162, 39, 0.25);
}

.section-number::before {
    right: calc(100% + 1rem);
}

.section-number::after {
    left: calc(100% + 1rem);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* ── The Name Section ───────────────────────────────────────────────────── */
.section-name {
    background: var(--void-deep);
    position: relative;
    overflow: hidden;
}

.section-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.name-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.name-card {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--transition-smooth);
}

.name-card:hover {
    border-color: rgba(201, 162, 39, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 162, 39, 0.04);
    transform: translateY(-4px);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--egypt-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.card-hieroglyph,
.card-ascii,
.card-unicode {
    font-family: var(--font-decorative);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.02em;
}

.card-hieroglyph {
    color: var(--egypt-gold);
    text-shadow: 0 0 30px rgba(201, 162, 39, 0.15);
}

.card-ascii {
    font-family: var(--font-display);
    color: var(--text-dim);
    font-size: 2rem;
    letter-spacing: 0.15em;
}

.card-unicode {
    font-family: var(--font-display);
    color: var(--text-primary);
}

.card-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.punycode-explainer {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 8px;
    padding: 2.5rem;
    text-align: center;
}

.explainer-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.explainer-code {
    display: block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--egypt-gold);
    background: var(--void-deep);
    padding: 1.5rem 2rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    word-break: break-all;
}

.explainer-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ── Pronunciation Section ──────────────────────────────────────────────── */
.section-pronunciation {
    background: var(--void-mid);
    position: relative;
}

.pronunciation-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.ipa-display {
    background: var(--void-deep);
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.ipa-text {
    display: block;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--egypt-gold);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 20px rgba(201, 162, 39, 0.1);
}

.ipa-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.pronunciation-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.phoneme {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.06);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.phoneme:hover {
    border-color: rgba(201, 162, 39, 0.12);
    background: rgba(201, 162, 39, 0.02);
}

.phoneme-symbol {
    font-family: var(--font-decorative);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--egypt-gold);
    min-width: 60px;
    flex-shrink: 0;
    text-align: center;
}

.phoneme-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pronunciation-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 12px;
    padding: 2rem;
}

.sidebar-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--egypt-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.sidebar-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.sidebar-divider {
    width: 40px;
    height: 1px;
    background: rgba(201, 162, 39, 0.2);
    margin: 1.5rem 0;
}

.kin-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.kin-list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-left: 1.5rem;
    position: relative;
}

.kin-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--egypt-gold);
    font-size: 0.6rem;
    top: 0.3rem;
}

.kin-list strong {
    color: var(--egypt-gold);
    font-weight: 600;
}

.accent-card {
    background: rgba(201, 162, 39, 0.02);
    border-color: rgba(201, 162, 39, 0.1);
}

/* ── The Sun Section ────────────────────────────────────────────────────── */
.section-sun {
    background: var(--void-deep);
    position: relative;
}

.sun-intro {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.9;
    font-weight: 300;
}

.lead-text strong {
    color: var(--egypt-gold);
    font-weight: 600;
}

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.domain-card {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.4s var(--transition-smooth);
}

.domain-card:hover {
    border-color: rgba(201, 162, 39, 0.18);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 162, 39, 0.04);
    transform: translateY(-6px);
}

.domain-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 16px;
}

.domain-icon svg {
    width: 48px;
    height: 48px;
}

.domain-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--egypt-gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}

.domain-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.symbols-section {
    text-align: center;
}

.symbols-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    letter-spacing: 0.05em;
}

.symbols-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.symbol-item {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.3s ease;
}

.symbol-item:hover {
    border-color: rgba(201, 162, 39, 0.18);
}

.symbol-name {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--egypt-gold);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.symbol-meaning {
    display: block;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ── Myths Section ──────────────────────────────────────────────────────── */
.section-myths {
    background: var(--void-mid);
    position: relative;
}

.myths-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.myths-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(201, 162, 39, 0.12);
}

.myth-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

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

.myth-marker {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--void-deep);
    border: 2px solid rgba(201, 162, 39, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.myth-card:hover .myth-marker {
    border-color: var(--egypt-gold);
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.12);
}

.myth-marker::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--egypt-gold);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.myth-card:hover .myth-marker::before {
    background: var(--egypt-gold);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.4);
}

.myth-content {
    background: var(--void-surface);
    border: 1px solid rgba(201, 162, 39, 0.08);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    flex: 1;
    transition: all 0.4s var(--transition-smooth);
}

.myth-card:hover .myth-content {
    border-color: rgba(201, 162, 39, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.myth-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--egypt-gold);
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(201, 162, 39, 0.06);
    border-radius: 4px;
}

.myth-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.myth-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── Pantheon Section ───────────────────────────────────────────────────── */
.section-pantheon {
    background: var(--void-deep);
    padding: 8rem 2rem;
}

.pantheon-content {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.pantheon-eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--egypt-gold);
    margin-bottom: 1rem;
}

.pantheon-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.pantheon-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.pantheon-body strong {
    color: var(--egypt-gold);
    font-weight: 600;
}

.pantheon-body em {
    color: var(--text-primary);
    font-style: italic;
}

.pantheon-mascot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pantheon-mascot-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0.9;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.main-footer {
    background: var(--void-deep);
    border-top: 1px solid rgba(201, 162, 39, 0.05);
    padding: 4rem 2rem 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--egypt-gold);
    display: block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
}

.footer-block {
    text-align: right;
}

.footer-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.footer-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--egypt-gold);
    letter-spacing: 0.05em;
}

.footer-seal {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logomark {
    width: 64px;
    height: 64px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-logomark:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(201, 162, 39, 0.05);
}

.footer-credit {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    text-transform: uppercase;
}

/* ── Reveal Animations ──────────────────────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--transition-smooth), 
                transform 0.8s var(--transition-smooth);
}

.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--transition-smooth), 
                transform 0.8s var(--transition-smooth);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-mascot {
        order: -1;
    }

    .pronunciation-grid {
        grid-template-columns: 1fr;
    }

    .name-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pantheon-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .pantheon-mascot {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info {
        align-items: center;
    }

    .footer-block {
        text-align: center;
    }

    .mascot-img {
        max-width: 320px;
    }
    .pantheon-mascot-img {
        max-width: 280px;
    }}

@media (max-width: 768px) {
    :root {
        --section-spacing: 6rem;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 8, 6, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .nav-logo-img {
        height: 96px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 7rem 1.5rem 4rem;
    }

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

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

    .name-grid {
        grid-template-columns: 1fr;
    }

    .domains-grid {
        grid-template-columns: 1fr;
    }

    .symbols-list {
        grid-template-columns: 1fr;
    }

    .myth-card {
        flex-direction: column;
        gap: 1rem;
    }

    .myth-marker {
        width: 40px;
        height: 40px;
    }

    .myths-timeline::before {
        left: 20px;
    }

    .myth-content {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #solar-canvas {
        display: none;
    }

    .reveal-up, .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
