*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blood: #8B1A1A;
    --blood-bright: #C62828;
    --bone: #D4C5A9;
    --bone-dim: #A89A7E;
    --parchment: #E8DCC8;
    --ember: #D4760A;
    --ember-glow: #F4A420;
    --shadow: #1A1614;
    --void: #0D0B0A;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Serif', Georgia, serif;
    background: var(--void);
    color: var(--bone);
    overflow-x: hidden;
    line-height: 1.75;
}

/* Noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--void);
}

::-webkit-scrollbar-thumb {
    background: var(--blood);
    border-radius: 4px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: background 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
    background: rgba(13, 11, 10, 0.93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(139, 26, 26, 0.25);
}

.nav-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.05rem;
    color: var(--bone);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    justify-content: center;
}

.nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.72rem;
    color: var(--bone-dim);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blood-bright);
    transition: width 0.3s;
}

.nav-links a:hover { color: var(--parchment); }
.nav-links a:hover::after { width: 100%; }

.nav-links a:hover,
.nav-links a.active {
    color: var(--parchment);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* ── NAV RIGHT GROUP ── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.nav-divider-v {
    width: 1px;
    height: 22px;
    background: rgba(139, 26, 26, 0.4);
    flex-shrink: 0;
}

/* ── SERVER STATUS PILL ── */
.nav-server-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
}

.nav-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(212, 197, 169, 0.2);
    flex-shrink: 0;
    transition: background 0.4s, box-shadow 0.4s;
}

.nav-server-status.is-online .nav-status-dot {
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    animation: nav-dot-pulse 2.5s ease-in-out infinite;
}

.nav-server-status.is-offline .nav-status-dot {
    background: var(--blood);
}

@keyframes nav-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15); }
    50%       { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3), 0 0 8px rgba(76, 175, 80, 0.25); }
}

.nav-status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-status-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.nav-status-count {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--bone);
    font-weight: 600;
    transition: color 0.4s;
}

.nav-server-status.is-online .nav-status-count {
    color: #81c784;
}

/* ── NAV DISCORD BUTTON ── */
.nav-discord {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bone-dim);
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(139, 26, 26, 0.35);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    white-space: nowrap;
}

.nav-discord i {
    font-size: 0.85rem;
}

.nav-discord:hover {
    color: var(--parchment);
    border-color: var(--blood-bright);
    background: rgba(139, 26, 26, 0.12);
}

/* ── HAMBURGER ── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--bone);
    transition: all 0.3s;
}

/* ── MOBILE ── */
@media (max-width: 900px) {
    nav {
        grid-template-columns: 1fr auto auto;
    }

    .nav-links {
        display: none;
        position: fixed;
        inset: 62px 0 0 0;
        background: rgba(13, 11, 10, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .nav-links.open { display: flex; }

    .nav-links a { font-size: 1rem; }

    .nav-right {
        gap: 0.6rem;
    }

    /* Hide label and Discord text, keep dot + count + icon only */
    .nav-status-label,
    .nav-discord span {
        display: none;
    }

    .nav-discord {
        border: none;
        padding: 0.4rem;
        font-size: 1.1rem;
    }

    .hamburger { display: flex; }
}

/* ══════════════════════════════════════
   PLACEHOLDER IMAGE SYSTEM
   Replace background gradients with your
   own images using background-image:url()
   ══════════════════════════════════════ */

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('img/hero-bg.jpg') center/cover;
    /* background: radial-gradient(ellipse at 30% 70%, #3a1a0a 0%, transparent 50%),
     radial-gradient(ellipse at 70% 30%, #1a0a0a 0%, transparent 50%),
     radial-gradient(ellipse at 50% 50%, #2a1510 0%, #0d0b0a 100%);*/
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

/* Ember particles */
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1.5px 1.5px at 12% 35%, var(--ember) 50%, transparent 50%),
    radial-gradient(1px 1px at 28% 72%, var(--ember-glow) 50%, transparent 50%),
    radial-gradient(2px 2px at 55% 18%, rgba(198, 40, 40, 0.7) 50%, transparent 50%),
    radial-gradient(1px 1px at 72% 55%, var(--ember) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 88% 40%, var(--ember-glow) 50%, transparent 50%),
    radial-gradient(1px 1px at 18% 88%, rgba(198, 40, 40, 0.6) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 62% 85%, var(--ember) 50%, transparent 50%),
    radial-gradient(1px 1px at 92% 12%, var(--ember-glow) 50%, transparent 50%),
    radial-gradient(1px 1px at 42% 48%, var(--ember) 50%, transparent 50%);
    animation: embers 6s ease-in-out infinite alternate;
}

/* Mountain silhouette */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 11, 10, 0.95) 100%);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath d='M0,400 L0,280 Q120,180 240,220 Q360,260 480,200 Q540,170 600,190 Q720,230 800,160 Q880,100 960,140 Q1080,200 1200,170 Q1320,140 1440,180 L1440,400Z' fill='white'/%3E%3C/svg%3E");
    mask-size: cover;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400'%3E%3Cpath d='M0,400 L0,280 Q120,180 240,220 Q360,260 480,200 Q540,170 600,190 Q720,230 800,160 Q880,100 960,140 Q1080,200 1200,170 Q1320,140 1440,180 L1440,400Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: cover;
}

@keyframes heroZoom {
    0% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1.12);
    }
}

@keyframes embers {
    0% {
        opacity: 0.4;
        transform: translateY(0);
    }
    100% {
        opacity: 0.8;
        transform: translateY(-15px);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(139, 26, 26, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(13, 11, 10, 0.5) 0%, transparent 35%, transparent 65%, var(--void) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-subtitle-top {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--blood-bright);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 1s 0.3s forwards;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 900;
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    line-height: 1.05;
    color: var(--parchment);
    text-shadow: 0 0 80px rgba(139, 26, 26, 0.4), 0 4px 30px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeUp 1.2s 0.6s forwards;
}

.hero-title .amp {
    display: inline-block;
    color: var(--blood-bright);
    font-size: 0.85em;
    margin: 0 0.05em;
}

.hero-tagline {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bone-dim);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeUp 1s 1s forwards;
}

.hero-divider {
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood), transparent);
    margin: 2.5rem auto;
    opacity: 0;
    animation: fadeUp 1s 1.2s forwards;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--bone-dim);
    max-width: 560px;
    margin: 0 auto;
    font-style: italic;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s 1.4s forwards;
}

.hero-cta {
    display: inline-flex;
    gap: 1.2rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeUp 1s 1.7s forwards;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.9rem 2.2rem;
    border: 1px solid var(--blood);
    color: var(--parchment);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--blood);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
    z-index: -1;
}

.btn:hover::before {
    transform: scaleX(1);
}

.btn:hover {
    border-color: var(--blood-bright);
}

.btn-primary {
    background: var(--blood);
    border-color: var(--blood-bright);
}

.btn-primary::before {
    background: var(--blood-bright);
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeUp 1s 2s forwards;
}

.scroll-indicator span {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.scroll-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, var(--blood), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.6);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ── SECTIONS ── */
section {
    position: relative;
    padding: 6rem 1.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* ── PARALLAX DIVIDERS ── */
.parallax-divider {
    position: relative;
    height: 45vh;
    min-height: 260px;
    overflow: hidden;
}

.parallax-divider-one {
    background: url('img/parallax1.jpg') center/cover;
}

.parallax-divider-two {
    background: url('img/parallax2.jpg') center/cover;
}

.parallax-divider-three {
    background: url('img/parallax3.jpg') center/cover;
}

.parallax-divider .p-bg {
    position: absolute;
    inset: 0;
}

.parallax-divider .p-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--void) 0%, rgba(13, 11, 10, 0.25) 30%, rgba(13, 11, 10, 0.25) 70%, var(--void) 100%);
}

.parallax-divider .p-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.parallax-divider blockquote {
    font-family: 'Noto Serif', serif;
    font-size: clamp(1rem, 2.8vw, 1.5rem);
    font-style: italic;
    font-weight: 300;
    color: var(--parchment);
    text-align: center;
    max-width: 620px;
    padding: 0 2rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.parallax-divider cite {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--blood-bright);
    margin-top: 1.2rem;
    font-style: normal;
}

/* Placeholder parallax backgrounds */
.p-desert {
    background: radial-gradient(ellipse at 60% 80%, #4a2a10 0%, transparent 50%),
    radial-gradient(ellipse at 30% 40%, #2a1208 0%, transparent 50%),
    linear-gradient(180deg, #1a0e08 0%, #30180c 40%, #4a2810 60%, #1a0e08 100%);
}

.p-ruins {
    background: radial-gradient(ellipse at 40% 60%, #1a1a2a 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, #2a1520 0%, transparent 50%),
    linear-gradient(180deg, #0d0b0a 0%, #1a1218 50%, #0d0b0a 100%);
}

.p-volcanic {
    background: radial-gradient(ellipse at 50% 70%, #3a0a0a 0%, transparent 40%),
    radial-gradient(ellipse at 30% 30%, #2a1505 0%, transparent 50%),
    linear-gradient(180deg, #0d0b0a 0%, #1a0c08 50%, #0d0b0a 100%);
}

/* ── ORNAMENTS ── */
.ornament {
    text-align: center;
    margin-bottom: 2.5rem;
}

.ornament-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.ornament-line::before, .ornament-line::after {
    content: '';
    width: 70px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood), transparent);
}

.ornament-diamond {
    width: 8px;
    height: 8px;
    background: var(--blood);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--blood-bright);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--parchment);
    font-weight: 700;
    line-height: 1.15;
}

/* ── ABOUT ── */
#about {
    background: radial-gradient(ellipse at 80% 20%, rgba(139, 26, 26, 0.05) 0%, transparent 50%), linear-gradient(180deg, var(--void), var(--shadow), var(--void));
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    margin-top: 2.5rem;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.3rem;
    color: var(--bone);
    font-weight: 300;
}

.about-text p:first-child::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.2rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.5rem;
    color: var(--blood-bright);
    font-weight: 700;
}

.server-info {
    border: 1px solid rgba(139, 26, 26, 0.3);
    padding: 2.2rem;
    background: rgba(26, 22, 20, 0.6);
    backdrop-filter: blur(5px);
}

.server-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blood-bright);
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(139, 26, 26, 0.2);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(212, 197, 169, 0.06);
}

.info-label {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bone-dim);
    flex-shrink: 0;
}

.info-value {
    font-size: 0.92rem;
    color: var(--parchment);
    text-align: right;
}

.info-value a {
    color: var(--ember-glow);
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: var(--ember);
}

/* ── TRAILER ── */
#trailer {
    background: var(--void);
    padding: 5rem 1.5rem 6rem;
}

.trailer-wrapper {
    max-width: 900px;
    margin: 2.5rem auto 0;
    border: 1px solid rgba(139, 26, 26, 0.3);
    background: #000;
    position: relative;
}

.trailer-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    border: 1px solid rgba(139, 26, 26, 0.12);
    transform: translate(5px, 5px);
    pointer-events: none;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── FEATURES ── */
#features {
    background: radial-gradient(ellipse at 20% 50%, rgba(212, 118, 10, 0.04) 0%, transparent 50%), linear-gradient(180deg, var(--void), #15110F, var(--void));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    padding: 2.2rem;
    border: 1px solid rgba(139, 26, 26, 0.15);
    background: linear-gradient(135deg, rgba(26, 22, 20, 0.5), rgba(42, 35, 32, 0.3));
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(to bottom, var(--blood-bright), var(--ember));
    transition: height 0.5s;
}

.feature-card:hover {
    border-color: rgba(139, 26, 26, 0.35);
    background: linear-gradient(135deg, rgba(42, 35, 32, 0.5), rgba(26, 22, 20, 0.6));
    transform: translateY(-3px);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--parchment);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.94rem;
    color: var(--bone-dim);
    font-weight: 300;
    line-height: 1.8;
}

/* ── VIDEO CELL ── */
.gi-video {
    cursor: default;
}

.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.4s;
}

.gi-video:hover .video-poster {
    filter: brightness(0.6);
}

.video-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.3s;
}

.video-play-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(212, 197, 169, 0.6);
    background: rgba(13, 11, 10, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.video-play-icon i {
    color: var(--bone);
    font-size: 1.1rem;
    margin-left: 3px; /* optical center for play icon */
    transition: color 0.3s;
}

.video-play-btn:hover .video-play-icon {
    background: rgba(139, 26, 26, 0.75);
    border-color: var(--blood-bright);
    transform: scale(1.08);
}

.video-play-btn:hover .video-play-icon i {
    color: var(--parchment);
}

.video-play-label {
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(212, 197, 169, 0.7);
    transition: color 0.3s;
}

.video-play-btn:hover .video-play-label {
    color: var(--parchment);
}

/* Hide play button once video is playing */
.gi-video.is-playing .video-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Pause button on hover when playing */
.gi-video.is-playing:hover::after {
    content: '\f04c'; /* FA pause unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: rgba(212, 197, 169, 0.7);
    z-index: 2;
    cursor: pointer;
}

/* ── GALLERY ── */
#gallery {
    background: var(--void);
    padding: 6rem 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 320px 320px 280px;
    gap: 4px;
    margin-top: 2.5rem;
}

/* Item base */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Square = 1 col × 1 row (fills its row height naturally) */
.gi-square      { grid-column: span 1; }

/* Landscape narrow = 1 col */
.gi-landscape-1 { grid-column: span 1; }

/* Landscape wide = 2 cols */
.gi-landscape-2 { grid-column: span 2; }

/* Landscape wide = 3 cols */
.gi-landscape-3 { grid-column: span 3; }

/* Image fills the cell */
.gallery-item .g-img {
    position: absolute;
    inset: 0;
    transition: transform 0.6s, filter 0.6s;
    filter: brightness(0.75) saturate(0.85);
}

.gallery-item .g-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item:hover .g-img {
    transform: scale(1.06);
    filter: brightness(0.95) saturate(1.05);
}

/* Caption */
.gallery-item .g-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 0.8rem 0.8rem;
    background: linear-gradient(to top, rgba(13, 11, 10, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s;
}

.gallery-item:hover .g-caption {
    transform: translateY(0);
}

.g-caption span {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone);
}

/* ── LIGHTBOX ── */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 3, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImg {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 1px solid rgba(212, 197, 169, 0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox.active #lightboxImg {
    transform: scale(1);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: none;
    border: none;
    color: var(--bone);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    font-size: 1.2rem;
    padding: 0.8rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.4rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ── SYSTEMS ── */
#systems {
    background: radial-gradient(ellipse at 70% 70%, rgba(139, 26, 26, 0.05) 0%, transparent 50%), linear-gradient(180deg, var(--void), var(--shadow), var(--void));
}

.systems-layout {
    margin-top: 2.5rem;
}

.system-block {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 2.5rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(212, 197, 169, 0.06);
    align-items: start;
}

.system-block:last-child {
    border-bottom: none;
}

.system-label {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--blood-bright);
    padding-top: 0.3rem;
    position: sticky;
    top: 5rem;
}

.system-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--parchment);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.system-content p {
    font-size: 0.98rem;
    color: var(--bone-dim);
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.system-items {
    list-style: none;
    margin-top: 0.8rem;
}

.system-items li {
    font-size: 0.94rem;
    color: var(--bone);
    padding: 0.55rem 0 0.55rem 1.4rem;
    position: relative;
    font-weight: 300;
    border-bottom: 1px solid rgba(212, 197, 169, 0.04);
}

.system-items li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--blood);
}

/* ── PILLARS ── */
#pillars {
    background: radial-gradient(ellipse at 50% 30%, rgba(212, 118, 10, 0.04) 0%, transparent 60%), linear-gradient(180deg, var(--void), #15110F, var(--void));
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 2.5rem;
    background: rgba(139, 26, 26, 0.15);
}

.pillar {
    background: var(--void);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
}

.pillar:hover {
    background: rgba(26, 22, 20, 0.8);
}

.pillar-number {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--blood);
    opacity: 0.4;
    margin-bottom: 0.8rem;
}

.pillar h3 {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--parchment);
    margin-bottom: 1rem;
}

.pillar p {
    font-size: 0.92rem;
    color: var(--bone-dim);
    font-weight: 300;
    line-height: 1.8;
}

/* ── JOIN ── */
#join {
    text-align: center;
    padding: 0;
}

.join-bg {
    position: relative;
    padding: 8rem 1.5rem 2rem 1.5rem;
    overflow: hidden;
}

.join-bg-img {
    position: absolute;
    inset: 0;
    /* ▼ REPLACE: background: url('your-join-bg.jpg') center/cover; ▼ */
    background: radial-gradient(ellipse at 50% 50%, #2a1510 0%, transparent 50%), radial-gradient(ellipse at 30% 70%, #1a0a08 0%, transparent 50%), linear-gradient(180deg, var(--void), #1a100c, var(--void));
}

.join-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(139, 26, 26, 0.12) 0%, transparent 60%), linear-gradient(180deg, var(--void), rgba(13, 11, 10, 0.3) 30%, rgba(13, 11, 10, 0.3) 70%, var(--void));
}

.join-content {
    position: relative;
    z-index: 2;
}

.join-text {
    max-width: 700px;
    margin: 0 auto;
}

.join-text .section-title {
    margin-bottom: 1.8rem;
}

.join-text p {
    font-size: 1.02rem;
    color: var(--bone);
    font-weight: 300;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.character-types {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.char-type {
    font-family: 'Cinzel', serif;
    font-size: 0.70rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone-dim);
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(212, 197, 169, 0.1);
    transition: all 0.3s;
}

.char-type:hover {
    color: var(--parchment);
    border-color: var(--blood);
    background: rgba(139, 26, 26, 0.1);
}

.join-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(139, 26, 26, 0.2);
    padding: 3.5rem 1.5rem 2rem;
    text-align: center;
    background: var(--void);
}

.footer-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    color: var(--parchment);
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--bone-dim);
    margin-bottom: 1.8rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.77rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bone-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--blood-bright);
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(168, 154, 126, 0.35);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══ TABLET ≤960 ═══ */
@media (max-width: 960px) {
    section {
        padding: 5rem 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .system-block {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .system-label {
        position: static;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
        background: none;
        gap: 0;
    }

    .pillar {
        border-bottom: 1px solid rgba(139, 26, 26, 0.12);
    }

    .pillar:last-child {
        border-bottom: none;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-item.span-2 {
        grid-column: span 2;
    }
}

/* ═══ MOBILE ≤600 ═══ */
@media (max-width: 600px) {
    nav {
        padding: 0.8rem 1.2rem;
    }

    .nav-brand {
        font-size: 0.88rem;
        letter-spacing: 0.1em;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        height: 100dvh;
        background: rgba(13, 11, 10, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.8rem;
        transition: right 0.4s;
        border-left: 1px solid rgba(139, 26, 26, 0.2);
    }

    .nav-links.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section {
        padding: 3.5rem 1.2rem;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.6rem;
    }

    .hero-cta {
        gap: 0.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.span-2 {
        grid-column: span 1;
    }

    .gallery-item .g-caption {
        transform: translateY(0);
    }

    .character-types {
        gap: 0.5rem;
    }

    .char-type {
        padding: 0.45rem 0.8rem;
        font-size: 0.56rem;
    }

    .parallax-divider {
        height: 32vh;
        min-height: 200px;
    }

    .parallax-divider blockquote {
        font-size: 0.9rem;
        padding: 0 1.2rem;
    }

    .parallax-divider cite {
        font-size: 0.65rem;
    }

    .info-row {
        flex-direction: column;
        gap: 0.15rem;
    }

    .info-value {
        text-align: left;
    }

    .trailer-wrapper {
        margin-left: -1.2rem;
        margin-right: -1.2rem;
        border-left: none;
        border-right: none;
    }

    .trailer-wrapper::after {
        display: none;
    }

    .footer-links {
        gap: 0.8rem;
    }

    .footer-links a {
        font-size: 0.56rem;
    }

    .ornament-line::before, .ornament-line::after {
        width: 40px;
    }

    .join-bg {
        padding: 5rem 1.2rem;
    }
}


/* ── NAV SERVER STATUS ── */
.nav-server-status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.38rem 0.9rem 0.38rem 0.65rem;
    border: 1px solid rgba(139, 26, 26, 0.35);
    border-radius: 2px;
    background: rgba(13, 11, 10, 0.6);
    backdrop-filter: blur(8px);
    cursor: default;
    transition: border-color 0.4s, background 0.4s;
    flex-shrink: 0;
}

.nav-server-status.is-online {
    border-color: rgba(76, 175, 80, 0.4);
    background: rgba(76, 175, 80, 0.06);
}

.nav-server-status.is-online:hover {
    border-color: rgba(76, 175, 80, 0.7);
    background: rgba(76, 175, 80, 0.1);
}

.nav-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(212, 197, 169, 0.25);
    flex-shrink: 0;
    transition: background 0.4s, box-shadow 0.4s;
}

.is-online .nav-status-dot {
    background: #4caf50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    animation: nav-dot-pulse 2.5s ease-in-out infinite;
}

.is-offline .nav-status-dot {
    background: var(--blood);
}

@keyframes nav-dot-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.3), 0 0 8px rgba(76, 175, 80, 0.3);
    }
}

.nav-status-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}


.is-online .nav-status-count {
    color: #81c784;
}

@media (max-width: 768px) {
    .nav-server-status {
        padding: 0.4rem;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        justify-content: center;
    }

    .nav-status-text {
        display: none;
    }
}