/* ========================================
   SMOOTH SCROLL & ANIMATIONS
   ======================================== */

/* Hide browser scrollbar globally - universal approach */
* {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

*::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Opera */
    width: 0 !important;
    height: 0 !important;
}

html {
    overflow-y: auto;
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

html::-webkit-scrollbar {
    display: none !important; /* Chrome/Safari/Opera */
    width: 0 !important;
    height: 0 !important;
}

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

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

/* ========================================
   SCROLL-JACK SYSTEM (STEP-BASED)
   ======================================== */

/* Snap points */
.home-page section {
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

/* Blur overlay (in/out per step) */
.home-page section .section-blur-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 6, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    pointer-events: none;
    transition: backdrop-filter 0.35s ease, background 0.35s ease;
    z-index: 90;
}

.home-page section.is-blurred .section-blur-overlay {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(10, 8, 6, 0.35);
}



/* Section reveal animations */
.scrolljack-section {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scrolljack-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Child element staggered animations */
.scrolljack-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scrolljack-animate.is-visible,
.scrolljack-animate.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scroll Navigation - Right Side - Enhanced Design */
.scroll-nav {
    position: fixed !important;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    z-index: 99999;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    pointer-events: none;
    isolation: isolate;
    transition: transform 0.9s ease, opacity 0.9s ease;
}

/* Scroll-nav: background music toggle (below nav) */
.scroll-nav .scroll-nav-audio {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.55rem;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-nav .scroll-nav-audio video#homeBgm {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

html.preloader-active .scroll-nav .scroll-nav-audio {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
}

.scroll-nav .scroll-nav-audio-toggle {
    width: 34px;
    height: 34px;
    padding: 0;
    background: rgba(20, 18, 15, 0.62);
    border: 1px solid rgba(212, 168, 74, 0.18);
    color: var(--accent2);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.scroll-nav .scroll-nav-audio-toggle:hover {
    border-color: rgba(212, 168, 74, 0.40);
    box-shadow: 0 10px 30px rgba(212, 168, 74, 0.10);
    transform: translateY(-1px);
}

.scroll-nav .scroll-nav-audio-toggle[aria-pressed="true"] {
    color: rgba(255, 255, 255, 0.75);
    border-color: rgba(255, 255, 255, 0.14);
}

.scroll-nav .scroll-nav-volume {
    display: inline-flex;
    align-items: center;
}

.scroll-nav .scroll-nav-volume-slider {
    width: 84px;
    height: 34px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

.scroll-nav .scroll-nav-volume-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(212, 168, 74, 0.22);
    border-radius: 999px;
}

.scroll-nav .scroll-nav-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent2) 70%, var(--text) 30%);
    box-shadow: 0 0 12px rgba(212, 168, 74, 0.22);
    border: 1px solid rgba(212, 168, 74, 0.25);
}

.scroll-nav .scroll-nav-volume-slider::-moz-range-track {
    height: 4px;
    background: rgba(212, 168, 74, 0.22);
    border-radius: 999px;
}

.scroll-nav .scroll-nav-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent2) 70%, var(--text) 30%);
    box-shadow: 0 0 12px rgba(212, 168, 74, 0.22);
    border: 1px solid rgba(212, 168, 74, 0.25);
}

.scroll-nav .scroll-nav-audio-icon {
    display: inline-flex;
    line-height: 0;
}

.scroll-nav .scroll-nav-audio-icon svg {
    width: 18px;
    height: 18px;
}

.scroll-nav .scroll-nav-audio-icon-off {
    display: none;
}

.scroll-nav .scroll-nav-audio-toggle[aria-pressed="true"] .scroll-nav-audio-icon-on {
    display: none;
}

.scroll-nav .scroll-nav-audio-toggle[aria-pressed="true"] .scroll-nav-audio-icon-off {
    display: inline;
}

/* Intro animation: dots slide in from the right (staggered) */
.scroll-nav.is-intro .scroll-nav-dot {
    opacity: 0;
    transform: translateX(16px);
}

.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s ease-in, transform 0.7s ease-in;
}

.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(1) { transition-delay: 0ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(2) { transition-delay: 60ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(3) { transition-delay: 120ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(4) { transition-delay: 180ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(5) { transition-delay: 240ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(6) { transition-delay: 300ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(7) { transition-delay: 360ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(8) { transition-delay: 420ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(9) { transition-delay: 480ms; }
.scroll-nav.is-intro.is-intro-ready .scroll-nav-dot:nth-child(10) { transition-delay: 540ms; }

/* Idle behavior: fade everything except active, then fade active, then slide away */
.scroll-nav .scroll-nav-label,
.scroll-nav .scroll-nav-indicator,
.scroll-nav .scroll-nav-track {
    transition: opacity 0.9s ease, transform 0.9s ease;
}

.scroll-nav.is-fast {
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.scroll-nav.is-fast .scroll-nav-label,
.scroll-nav.is-fast .scroll-nav-indicator,
.scroll-nav.is-fast .scroll-nav-track {
    transition-duration: 0.45s;
}

.scroll-nav.is-idle-nonactive .scroll-nav-dot:not(.is-active) .scroll-nav-label,
.scroll-nav.is-idle-nonactive .scroll-nav-dot:not(.is-active) .scroll-nav-indicator {
    opacity: 0.18;
}

.scroll-nav.is-idle-active .scroll-nav-dot.is-active .scroll-nav-label,
.scroll-nav.is-idle-active .scroll-nav-dot.is-active .scroll-nav-indicator {
    opacity: 0.28;
}

.scroll-nav.is-idle-active .scroll-nav-track {
    opacity: 0.35;
}

.scroll-nav.is-idle-hidden {
    opacity: 0;
    transform: translateY(-50%) translateX(140px);
}

/* When scroll-nav is hidden, show a subtle down-arrow hint */
.scroll-nav-hint {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) translateX(16px);
    z-index: 99998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scroll-nav.is-idle-hidden ~ .scroll-nav-hint {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

html.preloader-active .scroll-nav-hint {
    opacity: 0 !important;
}

/* Up/down variants */
.scroll-nav-hint-up {
    transform: rotate(180deg);
    margin-bottom: 10px;
}

html.is-at-hero .scroll-nav-hint-up {
    display: none;
}

html.is-at-bottom .scroll-nav-hint-down {
    display: none;
}

/* Right-edge visibility gradient behind scroll-nav */
.scroll-nav::before {
    content: '';
    position: absolute;
    /* Tighter vertical footprint (more focused dark area) */
    top: -18vh;
    bottom: -18vh;
    /* Push slightly beyond the viewport so the strongest part starts off-screen */
    right: -46px;
    width: 300px;
    pointer-events: none;
    z-index: -2;
    background: linear-gradient(
        270deg,
        rgba(11, 10, 9, 0.78) 0%,
        rgba(11, 10, 9, 0.52) 28%,
        rgba(11, 10, 9, 0.24) 62%,
        rgba(11, 10, 9, 0.09) 82%,
        rgba(11, 10, 9, 0) 100%
    );
    opacity: 0.9;

    /* Fade the gradient out vertically (away from the nav center). */
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 18%,
        rgba(0, 0, 0, 1) 34%,
        rgba(0, 0, 0, 1) 66%,
        rgba(0, 0, 0, 0.25) 82%,
        rgba(0, 0, 0, 0) 100%
    );
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.25) 18%,
        rgba(0, 0, 0, 1) 34%,
        rgba(0, 0, 0, 1) 66%,
        rgba(0, 0, 0, 0.25) 82%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

/* Inline expanded sub-item list (inserted between dots) */
.scroll-nav-subitems-inline {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    pointer-events: none;
    padding: 0;
    margin: 0;
    align-items: flex-end;

    /* slight nest/indent relative to the section labels */
    padding-right: 10px;

    opacity: 0;
    transform: translateX(10px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.45s ease, transform 0.45s ease, max-height 0.45s ease;
    will-change: opacity, transform, max-height;
}

/* When switching between submenu sections, close faster before reopening */
.scroll-nav-subitems-inline.is-swapping {
    transition-duration: 0.25s;
}

.scroll-nav-subitems-inline.is-open {
    opacity: 1;
    transform: translateX(0);
    padding: 0.15rem 0 0.35rem;
    margin: 0 0 0.15rem;
    max-height: 240px;
}

.scroll-nav-subitem {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55rem;
    white-space: nowrap;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.42);
    text-transform: uppercase;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.scroll-nav-subitem::after {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.scroll-nav-subitem.is-active {
    color: rgba(212, 168, 74, 0.95);
    text-shadow: 0 0 12px rgba(212, 168, 74, 0.45);
}

.scroll-nav-subitem.is-active::after {
    background: rgba(212, 168, 74, 0.9);
    border-color: rgba(255, 224, 130, 0.85);
    box-shadow: 0 0 12px rgba(212, 168, 74, 0.6);
}



/* Section list with names and dots */
.scroll-nav-dots {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    pointer-events: auto;
    position: relative;
}

.scroll-nav-dot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

/* Section name label */
.scroll-nav-label {
    position: relative;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.12em;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.3s ease, font-size 0.3s ease, text-shadow 0.3s ease;
    text-transform: uppercase;
    font-family: 'Oxanium', sans-serif;
}

/* Visual dot indicator */
.scroll-nav-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}


/* Hover states */
.scroll-nav-dot:hover .scroll-nav-label {
    color: rgba(255, 255, 255, 0.9);
}

.scroll-nav-dot:hover .scroll-nav-indicator {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Passed state */
.scroll-nav-dot.is-passed .scroll-nav-label {
    color: rgba(212, 168, 74, 0.6);
}

.scroll-nav-dot.is-passed .scroll-nav-indicator {
    background: rgba(212, 168, 74, 0.5);
    border-color: rgba(212, 168, 74, 0.7);
}

/* Active state - current section */
.scroll-nav-dot.is-active .scroll-nav-label {
    color: #d4a84a;
    text-shadow: 0 0 12px rgba(212, 168, 74, 0.5);
    font-weight: 700;
    font-size: 0.8rem;
}

.scroll-nav-dot.is-active .scroll-nav-indicator {
    background: #d4a84a;
    border-color: #ffe082;
    width: 10px;
    height: 10px;
    box-shadow: 0 0 12px rgba(212, 168, 74, 0.8), 0 0 24px rgba(212, 168, 74, 0.4);
}

/* Sub-progress indicator for scroll-jacked sections */
.scroll-nav-dot .sub-progress {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
    transition: all 0.3s ease;
}

.scroll-nav-dot.is-active.has-sub-progress .sub-progress {
    opacity: 1;
    border-color: rgba(212, 168, 74, 0.3);
}

.scroll-nav-dot .sub-progress::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #d4a84a;
    transform: rotate(var(--sub-progress-angle, 0deg));
    transition: transform 0.2s ease;
}

/* Progress track - vertical bar */
.scroll-nav-track {
    width: 3px;
    height: auto;
    align-self: stretch;
    background: rgba(212, 168, 74, 0.15);
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.scroll-nav-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, #d4a84a 0%, #ffe082 50%, #d4a84a 100%);
    border-radius: 3px;
    transition: none;
    box-shadow: 0 0 10px rgba(212, 168, 74, 0.6);
}

/* Glowing indicator at progress tip */
.scroll-nav-progress::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    background: #ffe082;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 168, 74, 1), 0 0 20px rgba(212, 168, 74, 0.6);
}

@media (max-width: 768px) {
    .scroll-nav {
        right: 10px;
        gap: 0.6rem;
    }

    /* Keep edge gradient flush to viewport on mobile too */
    .scroll-nav::before {
        right: -24px;
    }

    .scroll-nav-subitems-inline {
        display: none;
    }

    .scroll-nav-dots {
        gap: 0.15rem;
    }

    .scroll-nav-dot {
        gap: 0.5rem;
        padding: 0.35rem 0;
    }

    .scroll-nav-label {
        font-size: 0.55rem;
    }

    .scroll-nav-indicator {
        width: 6px;
        height: 6px;
    }

    .scroll-nav-dot.is-active .scroll-nav-label {
        font-size: 0.65rem;
    }

    .scroll-nav-dot.is-active .scroll-nav-indicator {
        width: 8px;
        height: 8px;
    }

    .scroll-nav-track {
        width: 2px;
        height: 120px;
    }
}

/* ========================================
   END SCROLL NAVIGATION
   ======================================== */

/* Hero Section Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}
.fade-in-1 { animation-delay: 0.3s; }
.fade-in-2 { animation-delay: 0.6s; }
.fade-in-3 { animation-delay: 0.9s; }
.fade-in-4 { animation-delay: 1.2s; }
.fade-in-5 { animation-delay: 1.5s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: none;
    }
}

/* Logo Glow Animation */
.logo-glow {
    animation: logoGlow 1.2s cubic-bezier(0.4,0,0.2,1) 0.2s;
    animation-fill-mode: forwards;
}
@keyframes logoGlow {
    0% {
        filter: drop-shadow(0 0 60px #fff9b3) drop-shadow(0 0 40px #ffe082) drop-shadow(0 0 20px #ffe082);
        opacity: 0.2;
        transform: scale(1.15);
    }
    60% {
        filter: drop-shadow(0 0 40px #ffe082) drop-shadow(0 0 20px #ffe082);
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        filter: drop-shadow(0 0 12px rgba(72,187,120,0.35));
        opacity: 1;
        transform: scale(1);
    }
}
/* Hide dropdown arrow for multi-select Alliance Application Role IDs */
select#data_app_ally_roles[multiple] {
    background-image: none !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 0.5em;
}

/* ===================================
   Page Load Animation
   Shows site background, then fades content in smoothly
   =================================== */

/* Base state: show background, hide content */
html {
    background: var(--bg-dark, #0b0a09);
}
body {
    opacity: 1;
    transition: opacity 0.4s ease-out;
}

/* Preloader overrides: show the body so the overlay is visible */
html.preloader-active body {
    opacity: 1 !important;
    transition: none !important;
}

html.preloader-active,
html.preloader-active body {
    overflow: hidden;
}

/* Don't show the scroll-nav edge gradient during preloader */
html.preloader-active .scroll-nav::before {
    opacity: 0;
    background: none;
}

.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark, #0b0a09);
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-preloader-inner {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    perspective: 1200px;
}

/* Animated squares/rectangles background that reveals the page on exit */
.site-preloader-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-auto-flow: row;
    gap: 0;
    background: transparent;
}

.site-preloader-title,
.site-preloader-sub,
.site-preloader-spinner {
    position: relative;
    z-index: 6;
}

/* Tiles that remain briefly after the overlay is hidden, then animate away. */
.site-preloader-reveal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(6, 1fr);
    grid-auto-flow: row;
    gap: 0;
    background: transparent;
}

.site-preloader-reveal .site-preloader-shape {
    background: var(--bg-dark, #0b0a09);
}

.site-preloader-shape {
    width: 100%;
    height: 100%;
    background: var(--bg-dark, #0b0a09);
    opacity: 1;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform, opacity;
    animation: preloader-tile-breathe 9.5s ease-in-out infinite;
}

.site-preloader-shape:nth-child(2n) { animation-delay: -1.2s; }
.site-preloader-shape:nth-child(3n) { animation-delay: -2.4s; }
.site-preloader-shape:nth-child(5n) { animation-delay: -3.6s; }

@keyframes preloader-tile-breathe {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate3d(0, 0, 0) scale(1.06);
        opacity: 0.75;
    }
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
}



/* While logo is loading, keep the overlay up but hide hero-matching elements. */
.site-preloader.is-logo-loading .site-preloader-logo-wrap,
.site-preloader.is-logo-loading .site-preloader-title {
    opacity: 0;
}

.site-preloader-logo-wrap {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: top left;
    transform-style: preserve-3d;
    transition: transform 0.72s cubic-bezier(0.18, 0.95, 0.22, 1), opacity 0.45s ease;
}

.site-preloader-logo {
    width: clamp(120px, 18vw, 250px);
    height: auto;
    display: block;
    backface-visibility: hidden;
    transform: translateZ(0.1px) scale(1);
    transform-origin: center;
    filter: drop-shadow(0 0 0 rgba(0,0,0,0));
    transition: transform 140ms ease, filter 140ms ease;
}

/* Glow pulse while waiting (ease-in after zoom) */
.site-preloader.is-pulse-ready:not(.is-animating-to-hero):not(.is-zooming) .site-preloader-logo {
    animation:
        site-preloader-pulse-in 600ms ease-out both,
        site-preloader-logo-glow 1.25s ease-in-out infinite;
    animation-delay: 0ms, 600ms;
}

/* During the 2s zoom-down intro, JS drives transform/filter. */
.site-preloader.is-zooming .site-preloader-logo {
    animation: none !important;
}

/* Stronger glow during the smash */
.site-preloader.is-animating-to-hero .site-preloader-logo {
    filter: drop-shadow(0 0 22px rgba(212, 168, 74, 0.55)) drop-shadow(0 0 46px rgba(124, 58, 237, 0.25));
    animation: site-preloader-fly-pulse 720ms ease-in-out 1;
}

/* Before the preloader disappears, fade the logo glow down to nothing */
.site-preloader.is-animating-to-hero.is-exiting .site-preloader-logo {
    animation: site-preloader-glow-out 260ms ease-in-out 1 forwards;
}

@keyframes site-preloader-glow-out {
    from {
        filter: drop-shadow(0 0 22px rgba(212, 168, 74, 0.55)) drop-shadow(0 0 46px rgba(124, 58, 237, 0.25));
    }
    to {
        filter: drop-shadow(0 0 0 rgba(212, 168, 74, 0.0)) drop-shadow(0 0 0 rgba(124, 58, 237, 0.0));
    }
}

@keyframes site-preloader-fly-pulse {
    0% {
        transform: translateZ(0.1px) scale(1);
        filter: drop-shadow(0 0 10px rgba(212, 168, 74, 0.22)) drop-shadow(0 0 22px rgba(124, 58, 237, 0.10));
    }
    45% {
        transform: translateZ(0.1px) scale(1.04);
        filter: drop-shadow(0 0 30px rgba(212, 168, 74, 0.60)) drop-shadow(0 0 62px rgba(124, 58, 237, 0.22));
    }
    100% {
        transform: translateZ(0.1px) scale(1);
        filter: drop-shadow(0 0 22px rgba(212, 168, 74, 0.55)) drop-shadow(0 0 46px rgba(124, 58, 237, 0.25));
    }
}

@keyframes site-preloader-logo-glow {
    0% {
        filter: drop-shadow(0 0 10px rgba(212, 168, 74, 0.20)) drop-shadow(0 0 22px rgba(124, 58, 237, 0.10));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 22px rgba(212, 168, 74, 0.55)) drop-shadow(0 0 46px rgba(124, 58, 237, 0.22));
        transform: scale(1.02);
    }
    100% {
        filter: drop-shadow(0 0 10px rgba(212, 168, 74, 0.20)) drop-shadow(0 0 22px rgba(124, 58, 237, 0.10));
        transform: scale(1);
    }
}

@keyframes site-preloader-pulse-in {
    from {
        filter: drop-shadow(0 0 0 rgba(212, 168, 74, 0)) drop-shadow(0 0 0 rgba(124, 58, 237, 0));
        transform: scale(1);
    }
    to {
        filter: drop-shadow(0 0 10px rgba(212, 168, 74, 0.20)) drop-shadow(0 0 22px rgba(124, 58, 237, 0.10));
        transform: scale(1);
    }
}

/* Blast ring on impact */
.site-preloader-logo-wrap::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    transform: translate(-50%, -50%) scale(0.35);
    border-radius: 999px;
    border: 2px solid rgba(212, 168, 74, 0.0);
    box-shadow:
        0 0 0 0 rgba(212, 168, 74, 0.0),
        0 0 0 0 rgba(124, 58, 237, 0.0);
    opacity: 0;
    pointer-events: none;
}

.site-preloader-logo-wrap.is-blast::after {
    animation: site-preloader-blast 520ms ease-out 1;
}

@keyframes site-preloader-blast {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.35);
        border-color: rgba(212, 168, 74, 0.0);
        box-shadow:
            0 0 0 0 rgba(212, 168, 74, 0.0),
            0 0 0 0 rgba(124, 58, 237, 0.0);
    }
    18% {
        opacity: 1;
        border-color: rgba(212, 168, 74, 0.55);
        box-shadow:
            0 0 18px 2px rgba(212, 168, 74, 0.28),
            0 0 36px 6px rgba(124, 58, 237, 0.12);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(5.4);
        border-color: rgba(212, 168, 74, 0.0);
        box-shadow:
            0 0 24px 10px rgba(212, 168, 74, 0.0),
            0 0 44px 18px rgba(124, 58, 237, 0.0);
    }
}

.site-preloader-title {
    position: relative;
    z-index: 2;
    text-align: center;
    line-height: 1.05;
    text-transform: uppercase;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent2, #d4a84a) 0%, var(--accent1, #7c3aed) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.7);
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: top left;
    transition: transform 0.72s cubic-bezier(0.18, 0.95, 0.22, 1), opacity 0.45s ease;
}

@media (max-width: 800px) {
    .site-preloader-title {
        font-size: 2rem;
    }
}

.site-preloader-sub {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    color: var(--accent2, #d4a84a);
}

.site-preloader-spinner {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 2px solid rgba(212, 168, 74, 0.22);
    border-top-color: var(--accent2, #d4a84a);
    box-shadow: 0 0 0 1px rgba(212, 168, 74, 0.10);
    animation: site-preloader-spin 0.9s linear infinite;
}

.site-preloader-text {
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    color: var(--accent2, #d4a84a);
}

.site-preloader.is-animating-to-hero .site-preloader-sub {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.site-preloader.is-animating-to-hero .site-preloader-spinner {
    opacity: 0;
    transition: opacity 0.25s ease;
}

@keyframes site-preloader-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ensure error pages also get the animation */
.error-page-body {
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

html:not(.loaded) .error-page-body {
    opacity: 0;
    transform: translateY(8px);
}

html.loaded .error-page-body {
    opacity: 1;
    transform: translateY(0);
}

/* Text color utilities */
.text-accent2 {
    color: var(--accent2, #d4a84a);
}

/* Highlighted names in About section */
.highlight-name {
    color: #ffe082;
    font-weight: bold;
    /*background: linear-gradient(90deg, #7c3aed22 0%, #fbbf2422 100%);*/
    border-radius: 4px;
    padding: 0 0.25em;
    box-shadow: 0 1px 4px #0002;
    transition: background 0.2s, color 0.2s;
}
:root {
    --bg-dark: #0b0a09;
    --card: #2a1f18;
    --accent1: #7a1f18;
    --accent2: #d4a84a;
    --accent: var(--accent2);
    --muted: #b89e7f;
    --text: #f3eadb;
    --success-green: #4ade80;
    --error-red: #ef4444;
    --electric-blue: #00b3ff;
    --hero-image: url('/assets/images/hero1.jpg');
    /* layout variables */
    --site-nav-height: 66px;
    --site-footer-height: 120px;
}

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

body {
    font-family: system-ui;
    color: var(--text);
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image:
        /* warm orange, positioned near top-left */
        radial-gradient(60vmax 60vmax at 14% 18%, rgba(245,166,35,0.18) 0%, rgba(245,166,35,0.08) 25%, rgba(245,166,35,0.02) 45%, transparent 65%),
        /* deep red accent near bottom-right */
        radial-gradient(65vmax 65vmax at 86% 82%, rgba(196,30,58,0.16) 0%, rgba(196,30,58,0.06) 28%, rgba(196,30,58,0.02) 48%, transparent 68%),
        /* secondary orange accent for depth */
        radial-gradient(50vmax 50vmax at 75% 25%, rgba(245,166,35,0.10) 0%, rgba(245,166,35,0.04) 25%, transparent 50%),
        /* base warm dark wash */
        linear-gradient(135deg, rgba(15,13,10,1) 0%, rgba(26,24,20,1) 100%);
    background-blend-mode: screen, overlay, screen, normal;
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem
}

/* Fallback responsive layout for dashboard pages in case Tailwind responsive utilities
   are not present in the built CSS. Targets only `.dashboard-3col` wrapper. */
.dashboard-3col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .dashboard-3col {
        flex-direction: row;
        align-items: stretch;
    }
    .dashboard-3col .left-sidebar,
    .dashboard-3col .right-sidebar {
        width: 16rem; /* match Tailwind md:w-64 */
        flex: 0 0 16rem;
        overflow: auto;
    }
    /* Fix left sidebar under the fixed top nav and reserve space for it */
    .dashboard-3col .left-sidebar {
        position: fixed;
        left: 0;
        top: var(--site-nav-height, 64px);
        height: calc(100vh - var(--site-nav-height, 64px));
        z-index: 90;
    }
    /* Fix right sidebar on the right side so it appears full-height as well */
    .dashboard-3col .right-sidebar {
        position: fixed;
        right: 0;
        top: var(--site-nav-height, 64px);
        height: calc(100vh - var(--site-nav-height, 64px));
        z-index: 80;
    }
    /* Give the main wrapper horizontal offsets so fixed sidebars don't overlap content */
    .dashboard-3col {
        margin-left: 16rem;
        margin-right: 16rem;
    }
    .dashboard-3col section {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.header {
    background: rgba(18, 24, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1e293b;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.logo h1 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.tagline {
    font-size: 0.875rem;
    color: var(--muted)
}

.nav {
    display: flex;
    gap: 1rem
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: var(--text);
    transition: all 0.22s;
    
    overflow: visible
}

.btn-discord:hover {
    filter: brightness(0.98);
}

.btn-discord {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    font-size: 1.05rem
}

.btn-discord svg {
    overflow: visible;
    display: inline-block
}

.main {
    padding: 0 0 3rem
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 4rem 0;
    overflow: hidden
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.7) 40%, rgba(15, 23, 42, 0.6) 100%), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero .container {
    position: relative;
    z-index: 1
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent2) 0%, var(--accent1) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6)
}

.hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 1rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6)
}

.cta-text {
    font-weight: 600;
    color: var(--accent);
    margin-top: 2rem
}

.features {
    padding: 3rem 0
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem
}

.feature-card {
    background: var(--card);
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s
}


.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

/* Disable ALL animation for dashboard feature-cards */
.dashboard-main .feature-card:hover,
.dashboard-main .feature-card:focus,
.dashboard-main .feature-card:active {
    transform: none !important;
    box-shadow: none !important;
    border-color: inherit !important;
    transition: none !important;
}

.feature-card h3 {
    color: var(--accent2);
    margin-bottom: 1rem;
    font-size: 1.5rem
}

/* Discord feature icon (preserve original PNG aspect ratio) */
.discord-feature-icon {
    height: 2.7rem;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* Dashboard left sidebar/layout */
.dashboard-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.dashboard-sidebar .feature-card {
    padding: 1rem;
}
.btn-sidebar {
    display: inline-block;
    text-decoration: none;
    color: var(--text);
    background: transparent;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: background 0.15s, transform 0.12s;
}
.btn-sidebar:hover { background: rgba(255,255,255,0.03); transform: translateX(3px); }
.btn-sidebar.active { background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08)); font-weight:700; }

@media (max-width:900px) {
    .dashboard-layout { flex-direction: column; }
    .dashboard-sidebar { width: 100%; }
}

/* Fixed left navigation for dashboard on wider screens */
@media (min-width:901px) {
    .dashboard-sidebar {
        position: fixed;
        left: 0;
        top: var(--dashboard-header-height, 0px); /* flush under header using measured height */
        height: calc(100vh - var(--dashboard-header-height, 0px));
        width: 240px;
        overflow: auto;
        z-index: 90;
        padding: 0;
        background: linear-gradient(180deg, rgba(10,10,12,0.96), rgba(18,18,22,0.96));
        border-right: 1px solid rgba(255,255,255,0.04);
        box-shadow: none;
    }
    .dashboard-sidebar .feature-card {
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        border: none;
        padding: 1rem;
        min-height: 100%;
    }
    .dashboard-sidebar nav ul { padding: 0.25rem 0; }
    .dashboard-sidebar nav ul li a.btn-sidebar {
        display: block;
        width: 100%;
        padding: 0.45rem 0.9rem;
        border-radius: 0;
        text-align: left;
        font-size: 0.9rem; /* slightly smaller */
        color: var(--text);
        letter-spacing: 0.02em;
    }
    .btn-sidebar.active {
        background: rgba(99,102,241,0.08);
        border-left: 4px solid var(--accent2);
        padding-left: calc(1rem - 4px);
        font-weight:700;
    }
    /* keep content visible below the sticky header and center it; account for fixed sidebar */
    .dashboard-main { padding-left: 240px; padding-top: var(--dashboard-header-height, 0px); }
    .dashboard-content {
        margin-left: 0;
        width: 100%;
        /* allow content to fill more space but leave room for sidebar; cap at 1400px */
        max-width: min(1400px, calc(100% - 280px));
        margin: 0 auto;
        padding: 1rem;
        /* Page transition for dashboard content */
        opacity: 0;
        transition: opacity 260ms ease;
    }
    .dashboard-content.fade-in {
        opacity: 1;
    }
    .dashboard-content.fade-out {
        opacity: 0;
    }

    /* Allow the dashboard's container to expand full width while reserving space for the sidebar */
    .dashboard-main.container {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 240px; /* maintain offset for fixed sidebar */
    }
}

/* Sidebar title styling for Bahamut Dashboard */
.sidebar-title {
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--accent);
    text-align: left;
    line-height: 1.05;
    display: block;
}
.sidebar-title br { display: block; line-height: 1; }

/* Make dashboard content full-width / full-height and remove boxed card appearance */
.dashboard-main {
    min-height: calc(100vh - var(--dashboard-header-height, 0px));
}
.dashboard-main .feature-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.dashboard-content {
    padding: 1.25rem 1rem; /* breathing room inside full-area content */
}

/* Admin panel (top of clan-data edit) */
.admin-panel-box {
    background: var(--card);
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.75rem;
}
.admin-panel-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}
.admin-panel-left { flex: 1 1 auto; }
.admin-panel-right { flex: 0 0 auto; display:flex; align-items:center; gap:0.5rem; }

.admin-panel-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}
.admin-panel-controls { display:block; }
.admin-panel-controls .btn-backup, .admin-panel-controls .btn-delete-all, .admin-panel-controls .btn-restore-dropdown, .admin-panel-controls .clan-form-submit { vertical-align:middle; }
.controls-left { display:inline-flex; gap:0.5rem; align-items:center; }
.controls-right { display:inline-flex; gap:0.5rem; align-items:center; }

/* Sticky right controls box */
.admin-sticky-controls {
    position: fixed;
    right: 18px;
    top: calc(var(--dashboard-header-height, 0px) + 24px);
    width: 220px;
    z-index: 95;
    background: var(--card);
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.admin-sticky-controls .btn-backup, .admin-sticky-controls .btn-delete-all, .admin-sticky-controls .btn-restore-dropdown, .admin-sticky-controls .clan-form-submit { display:block; width:100%; text-align:center; }

@media (max-width:1000px) {
    .admin-sticky-controls { position: static; width: auto; box-shadow: none; border: none; background: transparent; padding: 0; margin-top: 0.75rem; }
    .admin-sticky-controls .btn-backup, .admin-sticky-controls .btn-delete-all, .admin-sticky-controls .btn-restore-dropdown, .admin-sticky-controls .clan-form-submit { display:inline-block; width:auto; }
}
.admin-warning {
    flex: 1 1 100%;
    background: #fff3cd; /* clearer warning background */
    border-left: 4px solid #ffc107; /* more readable accent */
    padding: 0.75rem 0.9rem;
    margin: 0.5rem 0 0 0;
    color: #856404; /* dark readable text */
    border-radius: 6px;
}

/* Custom dashboard panel positioning moved from dashboard.php */
.admin-panel-top {
    width: 100%;
}
.admin-panel-box.fixed-right {
    display:block;
}
@media (min-width:900px) {
    .admin-panel-box.fixed-right {
        position: fixed;
        right: 1rem;
        top: calc(var(--dashboard-header-height) + 1rem);
        width: 280px;
        z-index: 60;
        margin: 0;
    }
    .dashboard-layout {
        padding-right: 320px;
    }
}

/* Tippy tooltip theme for clan form tooltips */
.tippy-box[data-theme~='custom'],
.tippy-box[data-theme~='custom-dark'] {
    background: linear-gradient(145deg, #1a1814, #0f0d0a);
    color: #f3eadb;
    border: 1px solid rgba(245, 166, 35, 0.3);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    font-size: 0.85rem;
    line-height: 1.5;
}
.tippy-box[data-theme~='custom'] .tippy-arrow,
.tippy-box[data-theme~='custom-dark'] .tippy-arrow {
    color: rgba(245, 166, 35, 0.3);
}
.tippy-box[data-theme~='custom'] .tippy-content,
.tippy-box[data-theme~='custom-dark'] .tippy-content {
    padding: 0.75rem 1rem;
}
.tippy-box[data-theme~='custom'][data-placement^='top'] > .tippy-arrow::before,
.tippy-box[data-theme~='custom-dark'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: rgba(245, 166, 35, 0.3);
}
.tippy-box[data-theme~='custom'][data-placement^='bottom'] > .tippy-arrow::before,
.tippy-box[data-theme~='custom-dark'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: rgba(245, 166, 35, 0.3);
}

/* Force dashboard content to fill available area (stronger override) */
/* Keeps reserved space for the fixed sidebar on wide screens */
.dashboard-main.container,
.dashboard-main.container .container,
.dashboard-content {
    max-width: none !important;
    width: auto !important;
}

@media (min-width:901px) {
    .dashboard-main.container {
        width: calc(100% - 260px) !important; /* leave room for sidebar + gutter */
        max-width: none !important;
        padding-left: 240px !important; /* preserve sidebar offset */
        box-sizing: border-box;
    }
    .dashboard-content {
        max-width: none !important;
        width: auto !important;
    }
}
.admin-warning .warning-icon { margin-right:0.5rem; font-size:1.05rem; vertical-align:middle; display:inline-block; }
.admin-tip { margin-top:0.5rem; color:#b89e7f; font-size:0.95rem; }

@media (max-width:900px) {
    .admin-panel-inner { flex-direction: column; }
    .admin-panel-right { justify-content: flex-start; }
}

.footer {
    background: var(--bg-dark);
    border-top: 1px solid #1e293b;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem
}

.footer p {
    color: var(--muted)
}

@media (max-width:768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem
    }

    .hero h2 {
        font-size: 2rem
    }

    .feature-grid {
        grid-template-columns: 1fr
    }
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif
}

.app-root {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: var(--text)
}

.app-root .container {
    background: rgba(42, 31, 24, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
    padding: 40px 32px 32px 32px;
    text-align: center;
    max-width: 1200px;
    width: 100%
}

.logo {
    width: 150px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
    background: transparent;
    display: block;
}

/* Title styling matching druid palette */
.druids-logo-text {
    display: inline-block;
    font-size: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(to bottom, var(--accent2) 0%, var(--accent1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* Left visual column helper for responsive behavior */
.left-visual {
    background: linear-gradient(180deg, rgba(34, 25, 20, 1), rgba(20, 16, 14, 0.8));
    min-width: 420px;
    max-width: 560px;
    width: 40vw;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: stretch
}

.auth-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    min-height: 640px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
    border-radius: 1.5rem;
    overflow: hidden
}

@media (max-width:900px) {
    .auth-wrapper {
        flex-direction: column;
        min-height: unset
    }

    .left-visual {
        width: 100%;
        min-width: unset;
        max-width: unset;
        height: 260px
    }

    .app-root .container {
        padding: 24px
    }
}

h1 {
    font-size: 1.7em;
    background: linear-gradient(135deg, var(--accent2), var(--accent1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0 0 10px 0;
    letter-spacing: 0.5px;
}

h5 {
    font-weight: 400;
    color: var(--muted);
    margin: 0 0 24px 0;
}

.discord-login {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    font-weight: 500;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em;
    margin-bottom: 18px;
    transition: background 0.2s;
}

.discord-login:hover {
    background: #4752c4;
}

.discord-icon {
    display: inline-block;
    height: 1.2rem; /* keeps small button icons consistent */
    width: auto;    /* preserve original 528x400 ratio */
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.discord-link {
    margin: 18px 0 10px 0;
    font-size: 0.98em;
}

.discord-link a {
    color: #00b0f4;
    text-decoration: underline;
}

.cookie-notice {
    margin-top: 24px;
    font-size: 0.92em;
    color: #b0b3b8;
}

/* ===== Clan Home Page Styles ===== */
html {
    scroll-behavior: smooth;
}

body, .body-text {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 1.05rem;
}

.headline, h1, h2, h3, h4, h5, .btn-discord, .druids-logo-text, .nav-link {
    font-family: 'Oxanium', Arial, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Hero logo glow */
.hero-logo {
    transition: transform 300ms ease, box-shadow 300ms ease, filter 300ms ease;
    /* Start with no visible glow; the loop animates glow in/out */
    filter: drop-shadow(0 0 0 var(--accent2)) drop-shadow(0 0 0 var(--accent1));
    will-change: filter;
}

/* Looping pulse for the hero logo (enabled after the preloader lands). */
.hero-logo.hero-logo-loop {
    animation: hero-logo-idle-pulse 4.2s ease-in-out infinite;
}

@keyframes hero-logo-idle-pulse {
    0% {
        filter: drop-shadow(0 0 0 var(--accent2)) drop-shadow(0 0 0 var(--accent1));
    }
    55% {
        filter: drop-shadow(0 0 14px var(--accent2)) drop-shadow(0 0 32px var(--accent1));
    }
    100% {
        filter: drop-shadow(0 0 0 var(--accent2)) drop-shadow(0 0 0 var(--accent1));
    }
}


.btn-discord {
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Sticky Nav */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11,10,9,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(245,166,35,0.15);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.7rem 2.5rem;
}
/* Reserve space for the fixed top navigation so page content starts below it.
   Adjust `--site-nav-height` if the header height changes. */
:root {
    --site-nav-height: 66px;
    --dashboard-header-height: var(--site-nav-height);
}

body {
    padding-top: var(--site-nav-height);
}

/* Home page has no site-nav, so remove padding */
body.scrolljack-mode {
    padding-top: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    grid-column: 1;
    justify-self: start;
}

.nav-logo img {
    width: 44px;
    height: 44px;
}

.nav-logo span {
    font-size: 1.25rem;
    color: var(--accent2);
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    grid-column: 2;
    justify-self: center;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-size: 1rem;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover {
    opacity: 1;
    color: var(--accent2);
}

.nav-actions .btn-discord {
    padding: 0.55rem 1.2rem;
    font-size: 0.98rem;
}

/* Hero */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--bg-dark, #0b0a09);
}

/* Hero background image (40% opacity) */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: none;
    opacity: 0;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 150vh;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    opacity: 0.50;
    z-index: 0;
}

@media (max-width: 900px) {
    .hero-video {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@media (max-width: 600px) {
    .hero-video {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 10, 9, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: auto;
    padding: 2rem;
}

.hero-logo {
        width: 120px;
        margin-bottom: 1.5rem;
}

@media (max-width: 460px) {
    .hero-logo {
        width: 80px !important;
    }
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--accent2);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent2, #d4a84a) 0%, var(--accent1, #7c3aed) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 4px 24px rgba(0,0,0,0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Match hero button widths */
.hero-cta .btn-hero,
.hero-cta .btn-hero-secondary,
.hero-cta .btn-hero-admin {
    width: 280px;
    max-width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent2);
    color: var(--accent2);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: var(--accent2);
    color: var(--bg-dark);
}

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-arrow {
    color: var(--accent2);
    font-size: 2rem;
    font-weight: bold;
    animation: scrollBounce 2s infinite;
    opacity: 0.8;
}

@keyframes scrollBounce {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

/* ===================================
   PARALLAX DESIGN SYSTEM
   =================================== */

/* Parallax Hero - Full Viewport */
.parallax-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.parallax-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(11, 10, 9, 0.4) 0%, 
        rgba(11, 10, 9, 0.6) 50%,
        rgba(11, 10, 9, 0.9) 100%
    );
    z-index: 1;
}

.parallax-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
}

.parallax-hero-logo {
    width: 200px;
    max-width: 50vw;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 30px rgba(212, 168, 74, 0.3));
}

.parallax-hero-tagline {
    font-size: 0.85rem;
    color: var(--accent2);
    letter-spacing: 0.25em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.parallax-hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.parallax-hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-family: 'Oxanium', sans-serif;
}

.parallax-hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.btn-parallax-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent2) 0%, #b8923e 100%);
    color: #0b0a09;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: none;
}

.btn-parallax-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(212, 168, 74, 0.4);
}

.btn-parallax-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(212, 168, 74, 0.4);
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-parallax-secondary:hover {
    background: rgba(212, 168, 74, 0.1);
    border-color: var(--accent2);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.discord-icon {
    width: 24px;
    height: 24px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--accent2) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   UNIFIED SCROLL-JACKING SECTIONS
   ======================================== */

/* Base section that locks scroll */
.scrolljack-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--bg-dark);
}

.scrolljack-section > .scrolljack-content,
.scrolljack-section > .history-content,
.scrolljack-section > .dojo-content,
.scrolljack-section > .rules-content,
.scrolljack-section > .activity-content,
.scrolljack-section > .showcase-content,
.scrolljack-section > .finale-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scrolljack-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrolljack-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1s ease, transform 1.5s ease;
    z-index: 0;
}

.scrolljack-section.is-active .scrolljack-bg {
    opacity: 0.3;
    transform: scale(1);
}

.scrolljack-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(11, 10, 9, 0.8) 0%, 
        rgba(11, 10, 9, 0.5) 50%,
        rgba(11, 10, 9, 0.8) 100%
    );
    z-index: 1;
}

.scrolljack-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Full-width content sections override */
.scrolljack-content.about-content,
.scrolljack-content.staff-content,
.scrolljack-content.features-content {
    max-width: 1200px;
}

.scrolljack-header {
    margin-bottom: 2rem;
}

/* Animate items - start hidden */
.scrolljack-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* When section is active, animate items in with staggered delays */
.scrolljack-section.is-active .scrolljack-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Apply delays via data-delay attribute */
.scrolljack-section.is-active .scrolljack-animate[data-delay="0"] { transition-delay: 0ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="100"] { transition-delay: 100ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="200"] { transition-delay: 200ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="300"] { transition-delay: 300ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="400"] { transition-delay: 400ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="500"] { transition-delay: 500ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="600"] { transition-delay: 600ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="700"] { transition-delay: 700ms; }
.scrolljack-section.is-active .scrolljack-animate[data-delay="800"] { transition-delay: 800ms; }

/* Stats row */
.scrolljack-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.scrolljack-stats .parallax-stat {
    text-align: center;
}

/* Section complete state */
.scrolljack-section.is-complete .scrolljack-animate {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0ms !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .scrolljack-stats {
        gap: 1.5rem;
    }
    
    .scrolljack-content {
        padding: 1rem;
    }
}

/* ========================================
   DOJO SECTION - Scrollable Images
   ======================================== */

.dojo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    height: 100%;
}

/* DOJO: video-only background (no fallback images) */
#dojo .scrolljack-bg {
    opacity: 0;
    background-image: none !important;
}

/* DOJO: stronger top/bottom gradients + left-edge readability fade */
#dojo .scrolljack-overlay {
    background:
        linear-gradient(180deg,
            rgba(11, 10, 9, 0.92) 0%,
            rgba(11, 10, 9, 0.44) 28%,
            rgba(11, 10, 9, 0.44) 72%,
            rgba(11, 10, 9, 0.92) 100%
        ),
        linear-gradient(90deg,
            rgba(11, 10, 9, 0.78) 0%,
            rgba(11, 10, 9, 0.40) 26%,
            rgba(11, 10, 9, 0.00) 70%
        );
}

#dojo .dojo-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: none;
    transition: opacity 0.55s ease, filter 0.125s ease;
    z-index: 0;
    pointer-events: none;
}

#dojo.dojo-video-active.is-active .dojo-bg-video.is-front {
    opacity: 1;
}

/* Full blur during clip switches (keeps video visible, hides cut) */
#dojo.dojo-video-switching.is-active .dojo-bg-video {
    filter: blur(12px);
}

/* Subtle 1px diagonal mesh overlay above DOJO videos */
#dojo .scrolljack-container::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background:
        repeating-linear-gradient(45deg,
            rgba(243, 234, 219, 0.06) 0,
            rgba(243, 234, 219, 0.06) 1px,
            transparent 1px,
            transparent 10px
        ),
        repeating-linear-gradient(135deg,
            rgba(243, 234, 219, 0.04) 0,
            rgba(243, 234, 219, 0.04) 1px,
            transparent 1px,
            transparent 12px
        );
    mix-blend-mode: overlay;
    opacity: 0.55;
}

/* Layout: text overlays the full background; hide the right media column */
#dojo .dojo-layout {
    grid-template-columns: 1fr;
}

#dojo {
    --dojo-progress-accent: var(--accent2);
}

/* DOJO nav: vertical like scroll-nav (labels + dots + track) */
#dojo .dojo-nav {
    margin-top: 1.05rem;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    padding: 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

#dojo .dojo-nav-dots {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: auto;
}

#dojo .dojo-nav-item {
    --dojo-label-accent: var(--accent2);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
}

#dojo .dojo-nav-label {
    order: 2;
    text-align: left;
}

#dojo .dojo-nav-indicator {
    order: 1;
}

#dojo .dojo-nav-label {
    font-family: 'Oxanium', sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: var(--dojo-label-accent);
    transition: color 0.22s ease, transform 0.22s ease, text-shadow 0.22s ease;
    text-shadow: 0 0 0 transparent;
}

#dojo .dojo-nav-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--dojo-label-accent) 28%, transparent);
    border: 2px solid color-mix(in srgb, var(--dojo-label-accent) 38%, transparent);
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#dojo .dojo-nav-item:hover .dojo-nav-label {
    color: var(--text);
    text-shadow: 0 0 12px color-mix(in srgb, var(--dojo-label-accent) 35%, transparent);
}

#dojo .dojo-nav-item.is-active .dojo-nav-label {
    color: var(--dojo-label-accent);
    transform: scale(1.05);
    text-shadow:
        0 0 12px color-mix(in srgb, var(--dojo-label-accent) 55%, transparent),
        0 0 24px color-mix(in srgb, var(--dojo-label-accent) 25%, transparent);
}

#dojo .dojo-nav-item.is-active .dojo-nav-indicator {
    background: color-mix(in srgb, var(--dojo-label-accent) 65%, transparent);
    border-color: color-mix(in srgb, var(--dojo-label-accent) 55%, transparent);
    transform: scale(1.15);
    box-shadow:
        0 0 10px color-mix(in srgb, var(--dojo-label-accent) 95%, transparent),
        0 0 20px color-mix(in srgb, var(--dojo-label-accent) 60%, transparent);
}

/* DOJO autoplay progress: vertical track */
#dojo .dojo-playback-progress {
    order: 1;
    width: 5px;
    align-self: stretch;
    background: rgba(212, 168, 74, 0.15);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Dojo creator spotlight card (uses staff-card markup) */
#dojo .dojo-staff-spotlight {
    margin-top: 1rem;
    display: flex;
    width: 100%;
}

#dojo .dojo-staff-card {
    display: inline-flex;
    width: fit-content;
    max-width: 360px;
    padding: 1.15rem 1rem;
}

#dojo .dojo-staff-card .staff-avatar {
    width: 74px;
    height: 74px;
}

#dojo .dojo-staff-card .staff-name {
    font-size: 0.95rem;
}

#dojo .dojo-staff-card .staff-role {
    font-size: 0.65rem;
}

/* Glow pulse on the progress track */
#dojo .dojo-playback-progress::before {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--dojo-progress-accent) 18%, transparent);
    opacity: 0.0;
    animation: dojoProgressGlowPulse 1.9s ease-in-out infinite;
    pointer-events: none;
}

/* Traveling pulse down the track (subtle, behind the fill) */
#dojo .dojo-playback-progress::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.34;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 38%,
            color-mix(in srgb, var(--dojo-progress-accent) 55%, transparent) 49%,
            color-mix(in srgb, var(--dojo-progress-accent) 55%, transparent) 51%,
            rgba(255, 255, 255, 0) 62%,
            rgba(255, 255, 255, 0) 100%
        );
    background-repeat: repeat-y;
    background-size: 100% 220px;
    background-position: 0 -220px;
    filter:
        blur(0.25px)
        drop-shadow(0 0 7px color-mix(in srgb, var(--dojo-progress-accent) 45%, transparent));
    mix-blend-mode: screen;
    animation: dojoProgressTrackPulseDown 3.1s linear infinite;
}

@keyframes dojoProgressTrackPulseDown {
    from { background-position: 0 -220px; }
    to { background-position: 0 220px; }
}

@keyframes dojoProgressGlowPulse {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 0.22;
    }
}

#dojo .dojo-playback-progress-fill {
    height: 100%;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--dojo-progress-accent) 85%, var(--text) 15%) 0%,
        color-mix(in srgb, var(--dojo-progress-accent) 55%, var(--text) 45%) 50%,
        color-mix(in srgb, var(--dojo-progress-accent) 85%, var(--text) 15%) 100%
    );
    border-radius: 3px;
    transition: none;
    box-shadow: 0 0 10px color-mix(in srgb, var(--dojo-progress-accent) 55%, transparent);
    position: relative;
    animation: dojoFillGlowPulse 1.9s ease-in-out infinite;
}

/* Downward pulse shimmer inside the fill */
#dojo .dojo-playback-progress-fill::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.48;
    background:
        /* bright core */
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            color-mix(in srgb, var(--dojo-progress-accent) 92%, var(--text) 8%) 49.5%,
            color-mix(in srgb, var(--dojo-progress-accent) 92%, var(--text) 8%) 50.5%,
            rgba(255, 255, 255, 0) 61%,
            rgba(255, 255, 255, 0) 100%
        ),
        /* softer halo */
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 34%,
            color-mix(in srgb, var(--dojo-progress-accent) 45%, transparent) 49%,
            color-mix(in srgb, var(--dojo-progress-accent) 45%, transparent) 51%,
            rgba(255, 255, 255, 0) 66%,
            rgba(255, 255, 255, 0) 100%
        );
    background-repeat: repeat-y;
    background-size: 100% 190px;
    background-position: 0 -190px, 0 -190px;
    filter:
        blur(0.2px)
        drop-shadow(0 0 7px color-mix(in srgb, var(--dojo-progress-accent) 55%, transparent));
    mix-blend-mode: screen;
    animation: dojoProgressPulseDown 2.2s linear infinite;
}

@keyframes dojoProgressPulseDown {
    from {
        background-position: 0 -190px, 0 -190px;
    }
    to {
        background-position: 0 190px, 0 190px;
    }
}

@keyframes dojoFillGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 8px color-mix(in srgb, var(--dojo-progress-accent) 45%, transparent),
            0 0 18px color-mix(in srgb, var(--dojo-progress-accent) 22%, transparent);
    }
    50% {
        box-shadow:
            0 0 14px color-mix(in srgb, var(--dojo-progress-accent) 70%, transparent),
            0 0 34px color-mix(in srgb, var(--dojo-progress-accent) 35%, transparent);
    }
}

/* Glowing indicator at progress tip (matches scroll-nav vibe) */
#dojo .dojo-playback-progress-fill::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 9px;
    height: 9px;
    background: color-mix(in srgb, var(--dojo-progress-accent) 55%, var(--text) 45%);
    border-radius: 50%;
    box-shadow:
        0 0 10px color-mix(in srgb, var(--dojo-progress-accent) 95%, transparent),
        0 0 20px color-mix(in srgb, var(--dojo-progress-accent) 60%, transparent);
}

#dojo .dojo-images-panel {
    display: none;
}

.dojo-text-panel {
    position: relative;
    z-index: 5;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    background: transparent;
}

/* DOJO: nav + creator card vertical layout */
#dojo .dojo-nav-area {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Per-label colors (by playlist index) */
/* Trading Post: cherry blossoms (strong sakura pink) */
#dojo .dojo-nav-item[data-index="0"] {
    --dojo-label-accent: color-mix(in srgb, var(--error-red) 55%, var(--text) 45%);
}

/* Tenno Lab: white */
#dojo .dojo-nav-item[data-index="1"] {
    --dojo-label-accent: var(--text);
}

/* Bio Lab: red */
#dojo .dojo-nav-item[data-index="2"] {
    --dojo-label-accent: var(--error-red);
}

/* Chem Lab: lava yellow */
#dojo .dojo-nav-item[data-index="3"] {
    --dojo-label-accent: var(--accent2);
    --dojo-label-accent: color-mix(in srgb, var(--accent2) 85%, var(--accent1) 15%);
}

/* Dry Dock: medium stone grey with a hint of brown */
#dojo .dojo-nav-item[data-index="4"] {
    --dojo-label-accent: color-mix(
        in srgb,
        color-mix(in srgb, var(--text) 52%, var(--bg-dark) 48%) 88%,
        var(--muted) 12%
    );
}

/* Vault: pastel green */
#dojo .dojo-nav-item[data-index="5"] {
    --dojo-label-accent: var(--success-green);
    --dojo-label-accent: color-mix(in srgb, var(--success-green) 55%, var(--text) 45%);
}

/* Energy Lab: electric blue */
#dojo .dojo-nav-item[data-index="6"] {
    --dojo-label-accent: var(--electric-blue);
    --dojo-label-accent: color-mix(in srgb, var(--electric-blue) 75%, var(--text) 25%);
}

.dojo-check {
    color: var(--accent2);
    font-size: 1rem;
}

.dojo-scroll-hint {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
}

.dojo-current-label {
    margin-left: 0.75rem;
    color: var(--text);
    opacity: 0.9;
}

.dojo-images-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 100%;
    align-self: stretch;
}

.dojo-image-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(18%);
    transition: opacity 0.55s ease, transform 0.55s ease;
    pointer-events: none;
}

.dojo-image-item.is-before {
    transform: translateX(-18%);
}

.dojo-image-item.is-after {
    transform: translateX(18%);
}

.dojo-image-item.is-active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
    pointer-events: auto;
}

.dojo-image-item img,
.dojo-image-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dojo-image-label {
    position: absolute;
    bottom: 2.25rem;
    left: 2.25rem;
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.35rem;
    background: rgba(11, 10, 9, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 74, 0.40);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .dojo-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .dojo-text-panel {
        padding: 2rem;
        background: transparent;
    }
    
    .dojo-images-panel {
        min-height: 50vh;
    }
}

/* ========================================
   FEATURES SECTION - Card Grid
   ======================================== */

.features-content {
    width: 100%;
    max-width: 1100px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(20, 18, 15, 0.8);
    border: 1px solid rgba(212, 168, 74, 0.15);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(212, 168, 74, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(212, 168, 74, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 0.9rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    font-family: 'Oxanium', sans-serif;
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   STAFF SECTION - Team Grid (2 rows of 4)
   ======================================== */

.staff-content {
    width: 100%;
    max-width: 1200px;
}

.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.25rem;
    margin-top: 2rem;
}

.staff-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1rem;
    background: rgba(20, 18, 15, 0.7);
    border: 1px solid rgba(212, 168, 74, 0.1);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.staff-card:hover {
    border-color: rgba(212, 168, 74, 0.4);
    box-shadow: 0 10px 40px rgba(212, 168, 74, 0.1);
    transform: translateY(-5px);
}

.staff-card[data-role="owner"] {
    background: linear-gradient(180deg, rgba(212, 168, 74, 0.1) 0%, rgba(20, 18, 15, 0.7) 100%);
    border-color: rgba(212, 168, 74, 0.25);
}

.staff-card[data-role="owner"]:hover {
    border-color: var(--accent2);
    box-shadow: 0 15px 50px rgba(212, 168, 74, 0.2);
}

.staff-avatar {
    width: 70px;
    height: 70px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 168, 74, 0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.staff-card:hover .staff-avatar {
    transform: scale(1.1);
    border-color: var(--accent2);
}

.staff-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-info {
    text-align: center;
}

.staff-badge {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--accent2);
    letter-spacing: 0.2em;
    padding: 0.25rem 0.5rem;
    background: rgba(212, 168, 74, 0.1);
    border: 1px solid rgba(212, 168, 74, 0.2);
    margin-bottom: 0.75rem;
}

.staff-name {
    display: block;
    font-size: 1rem;
    color: var(--accent2);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.staff-role {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    line-height: 1.4;
}

@media (max-width: 1024px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .staff-card {
        padding: 1rem 0.5rem;
    }
    
    .staff-avatar {
        width: 60px;
        height: 60px;
    }
}

/* ===== RULES SPLIT LAYOUT ===== */
.rules-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem;
}

.rules-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    max-width: 1300px;
    width: 100%;
    align-items: center;
}

.rules-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rules-subtext {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 0.75rem;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.rules-cards-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1rem;
}

.rule-card {
    background: rgba(20, 18, 15, 0.85);
    border: 1px solid rgba(212, 168, 74, 0.15);
    padding: 1.25rem;
    position: relative;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.rule-card:hover {
    border-color: var(--accent2);
    transform: translateY(-5px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(212, 168, 74, 0.15);
}

.rule-icon {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: block;
}

.rule-card .rule-number {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    font-size: 0.6rem;
    color: var(--accent2);
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.5;
}

.rule-card h4 {
    font-size: 0.75rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.rule-card p {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Rules responsive */
@media (max-width: 1200px) {
    .rules-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rules-text-panel {
        text-align: center;
    }
    
    .rules-cards-panel {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .rules-cards-panel {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .rules-cards-panel {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .rule-card {
        padding: 0.75rem;
    }
    
    .rule-icon {
        font-size: 1.25rem;
    }
    
    .rule-card h4 {
        font-size: 0.65rem;
    }
    
    .rule-card p {
        font-size: 0.6rem;
    }
}

/* ===== ACTIVITY POLICY LAYOUT (Info left, Nav right) ===== */
.activity-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem;
}

.activity-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1300px;
    width: 100%;
    height: 80vh;
    max-height: 700px;
}

.activity-text-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 2;
}

.activity-detail-panel {
    order: 1;
}

.activity-header {
    margin-bottom: 2rem;
}

.activity-positive {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

.activity-topics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.activity-topic {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(20, 18, 15, 0.6);
    border: 1px solid rgba(212, 168, 74, 0.1);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.activity-topic::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.activity-topic.is-active::before {
    transform: scaleY(1);
}

.activity-topic.is-active {
    background: rgba(212, 168, 74, 0.1);
    border-color: var(--accent2);
}

.activity-topic:hover:not(.is-active) {
    background: rgba(212, 168, 74, 0.05);
    border-color: rgba(212, 168, 74, 0.3);
}

.activity-topic-icon {
    font-size: 1.25rem;
}

.activity-topic-title {
    font-size: 0.85rem;
    color: var(--text);
    letter-spacing: 0.03em;
}

.activity-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-progress {
    height: 3px;
    background: rgba(212, 168, 74, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.activity-progress-bar {
    height: 100%;
    background: var(--accent2);
    width: 25%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 10px rgba(212, 168, 74, 0.5);
}

.activity-hint {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    opacity: 0.6;
}

.activity-detail-panel {
    position: relative;
    overflow: hidden;
}

.activity-detail {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    background: rgba(20, 18, 15, 0.85);
    border: 1px solid rgba(212, 168, 74, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.activity-detail.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.activity-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.activity-detail-icon {
    font-size: 2rem;
}

.activity-detail-header h3 {
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.activity-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.activity-detail-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.activity-card {
    background: rgba(15, 13, 11, 0.7);
    border: 1px solid rgba(212, 168, 74, 0.1);
    padding: 1.25rem;
}

.activity-card h4,
.activity-card h5 {
    font-size: 0.75rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.activity-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.activity-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-card li {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 0.35rem 0;
    padding-left: 1rem;
    position: relative;
}

.activity-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent2);
}

.activity-main-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.activity-examples {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.activity-example {
    background: rgba(15, 13, 11, 0.7);
    padding: 1.25rem;
    border: 1px solid rgba(212, 168, 74, 0.1);
}

.activity-example h5 {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.activity-example-good h5 {
    color: #8be26b;
}

.activity-example-bad h5 {
    color: #ff6b6b;
}

.activity-example ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-example li {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 0.3rem 0;
}

.activity-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 13, 11, 0.7);
    border: 1px solid rgba(212, 168, 74, 0.1);
    font-size: 0.9rem;
    color: var(--text);
}

.activity-summary-emoji {
    font-size: 1.5rem;
}

.activity-summary-highlight {
    border-color: var(--accent2);
    background: rgba(212, 168, 74, 0.1);
}

/* Activity responsive */
@media (max-width: 1024px) {
    .activity-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
        max-height: none;
    }
    
    .activity-topics {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .activity-topic {
        flex: 1;
        min-width: 150px;
    }
    
    .activity-detail-panel {
        min-height: 400px;
    }
    
    .activity-detail {
        position: relative;
        display: none;
    }
    
    .activity-detail.is-active {
        display: flex;
    }
}

@media (max-width: 768px) {
    .activity-detail-grid,
    .activity-detail-grid-3,
    .activity-examples {
        grid-template-columns: 1fr;
    }
}

/* ===== SHOWCASE LAYOUT ===== */
.showcase-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 2rem;
}

.showcase-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    max-width: 1300px;
    width: 100%;
    height: 80vh;
    max-height: 600px;
}

.showcase-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-header {
    margin-bottom: 2rem;
}

.showcase-intro {
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.75rem;
}

.showcase-feature-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.showcase-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
    position: relative;
}

.showcase-feature-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.showcase-feature-item.is-active::after {
    transform: scaleY(1);
}

.showcase-feature-item.is-active {
    background: rgba(212, 168, 74, 0.1);
}

.showcase-feature-item:hover:not(.is-active) {
    background: rgba(212, 168, 74, 0.05);
}

.showcase-feature-num {
    font-size: 0.65rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.showcase-feature-name {
    font-size: 0.9rem;
    color: var(--text);
    letter-spacing: 0.02em;
}

.showcase-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.showcase-progress {
    height: 2px;
    background: rgba(212, 168, 74, 0.15);
    border-radius: 1px;
    overflow: hidden;
}

.showcase-progress-bar {
    height: 100%;
    background: var(--accent2);
    width: 25%;
    transition: width 0.5s ease-out;
    box-shadow: 0 0 8px rgba(212, 168, 74, 0.5);
}

.showcase-display-panel {
    position: relative;
    overflow: hidden;
}

.showcase-display {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    background: rgba(20, 18, 15, 0.9);
    border: 1px solid rgba(212, 168, 74, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.showcase-display.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.showcase-image-frame {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.showcase-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-display.is-active .showcase-image-frame img {
    transform: scale(1.02);
}

.showcase-image-frame::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, rgba(20, 18, 15, 0.95), transparent);
    pointer-events: none;
}

.showcase-display-content {
    padding: 1.5rem;
}

.showcase-display-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.showcase-display-content h3 {
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.showcase-display-content p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.showcase-tags span {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    background: rgba(212, 168, 74, 0.1);
    border: 1px solid rgba(212, 168, 74, 0.2);
    color: var(--accent2);
    letter-spacing: 0.05em;
}

/* Showcase responsive */
@media (max-width: 1024px) {
    .showcase-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        height: auto;
        max-height: none;
    }
    
    .showcase-feature-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .showcase-feature-item {
        flex: 1;
        min-width: 140px;
    }
    
    .showcase-display-panel {
        min-height: 450px;
    }
    
    .showcase-display {
        position: relative;
        display: none;
    }
    
    .showcase-display.is-active {
        display: flex;
    }
}

/* ===== FINALE SECTION (READY / JOIN) ===== */
.scrolljack-finale {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0908 100%);
}

.scrolljack-overlay-finale {
    background: rgba(11, 10, 9, 0.85);
}

.finale-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: relative;
}

.finale-inner {
    text-align: center;
    z-index: 2;
    max-width: 600px;
}

.finale-label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.3em;
}

.finale-heading {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.finale-text {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.finale-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent2);
    color: var(--text);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.finale-btn .discord-icon {
    width: 24px;
    height: 24px;
    z-index: 1;
}

.finale-btn span.headline {
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    z-index: 1;
}

.finale-btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent2);
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
    z-index: 0;
}

.finale-btn:hover .finale-btn-glow {
    width: 400px;
    height: 400px;
}

.finale-btn:hover {
    color: var(--bg-dark);
    border-color: var(--accent2);
}

.finale-btn:hover .discord-icon {
    filter: invert(1);
}

/* ========================================
   END UNIFIED SCROLL-JACKING
   ======================================== */

/* Parallax Sections - Full Viewport */
.parallax-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.3;
    transition: transform 0.1s linear;
}

.parallax-bg-fixed {
    background-attachment: fixed;
}

.parallax-section-dark {
    background: linear-gradient(180deg, #0b0a09 0%, #151310 50%, #0b0a09 100%);
}

.parallax-section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(11, 10, 9, 0.7) 0%, 
        rgba(11, 10, 9, 0.5) 50%,
        rgba(11, 10, 9, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.parallax-section-features {
    background: linear-gradient(180deg, #0f0d0a 0%, #1a1612 50%, #0f0d0a 100%);
}

.parallax-section-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(15, 13, 10, 0.8) 0%, 
        rgba(15, 13, 10, 0.6) 50%,
        rgba(15, 13, 10, 0.8) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.parallax-section-staff {
    background: linear-gradient(180deg, #0b0a09 0%, #1a1815 50%, #0b0a09 100%);
}

.parallax-section-timeline {
    background: #0b0a09;
}

.parallax-section-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(11, 10, 9, 0.85) 0%, 
        rgba(11, 10, 9, 0.7) 50%,
        rgba(11, 10, 9, 0.85) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.parallax-section-rules {
    background: linear-gradient(180deg, #151310 0%, #1f1a15 50%, #151310 100%);
    min-height: auto;
    padding: 8rem 2rem;
}

/* Parallax Content */
.parallax-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    padding: 6rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.parallax-content-center {
    align-items: center;
    text-align: center;
}

.parallax-text-block {
    max-width: 600px;
}

.parallax-label {
    display: block;
    font-size: 0.75rem;
    color: var(--accent2);
    letter-spacing: 0.3em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.parallax-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.parallax-heading-large {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}

.parallax-description {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    font-family: 'Oxanium', sans-serif;
}

/* Parallax Stats */
.parallax-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.parallax-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.parallax-stat.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-stat-value {
    display: block;
    font-size: 1.5rem;
    color: var(--accent2);
    margin-bottom: 0.25rem;
    letter-spacing: 0.1em;
}

.parallax-stat-label {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    font-family: 'Oxanium', sans-serif;
}

/* Dojo Scroll Section - Sticky Text with Scrolling Images */
.dojo-scroll-section {
    background: linear-gradient(180deg, #0b0a09 0%, #1a1612 50%, #0b0a09 100%);
}

.dojo-scroll-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.dojo-scroll-text {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem;
    background: linear-gradient(90deg, rgba(11, 10, 9, 1) 0%, rgba(11, 10, 9, 0.95) 80%, transparent 100%);
    z-index: 2;
}

.dojo-scroll-text-inner {
    max-width: 500px;
}

.dojo-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

.dojo-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
    font-family: 'Oxanium', sans-serif;
}

.dojo-check {
    color: #4ade80;
    font-weight: bold;
}

.dojo-scroll-images {
    display: flex;
    flex-direction: column;
}

.dojo-scroll-image {
    height: 100vh;
    position: relative;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.dojo-scroll-image.is-visible {
    opacity: 1;
    transform: scale(1);
}

.dojo-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dojo-scroll-image::after {
    content: attr(data-label);
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent2);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: rgba(11, 10, 9, 0.8);
    padding: 0.5rem 1rem;
}

/* Parallax Features Grid */
.parallax-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin-top: 2rem;
}

.parallax-feature-card {
    background: rgba(20, 18, 15, 0.6);
    border: 1px solid rgba(212, 168, 74, 0.1);
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.parallax-feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.parallax-feature-card:hover {
    border-color: rgba(212, 168, 74, 0.3);
    background: rgba(25, 22, 18, 0.8);
}

.parallax-feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-discord-icon {
    height: 28px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.parallax-feature-card h3 {
    font-size: 0.9rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.parallax-feature-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Staff Grid Parallax */
.staff-grid-parallax {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin-top: 2rem;
}

.staff-card-parallax {
    background: rgba(20, 18, 15, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.staff-card-parallax.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-card-parallax.staff-owner {
    border-color: rgba(212, 168, 74, 0.3);
    background: linear-gradient(180deg, rgba(212, 168, 74, 0.1) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-card-parallax.staff-admin {
    border-color: rgba(122, 31, 24, 0.3);
    background: linear-gradient(180deg, rgba(122, 31, 24, 0.1) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-card-parallax.staff-mod {
    border-color: rgba(88, 166, 255, 0.2);
    background: linear-gradient(180deg, rgba(88, 166, 255, 0.05) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-card-parallax .staff-role-badge {
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.staff-card-parallax .staff-name {
    font-size: 1.3rem;
    color: var(--text);
    letter-spacing: 0.05em;
}

.staff-card-parallax .staff-title {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.staff-card-parallax .staff-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-card-parallax .staff-members .staff-name {
    font-size: 1rem;
    font-family: 'Oxanium', sans-serif;
}

/* Timeline Parallax */
.timeline-parallax {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 1000px;
    margin-top: 2rem;
}

.timeline-item-parallax {
    position: relative;
    padding-left: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.timeline-item-parallax.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker-parallax {
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    background: var(--accent2);
    border-radius: 50%;
}

.timeline-item-parallax.timeline-current .timeline-marker-parallax {
    background: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.5);
}

.timeline-item-parallax .timeline-date {
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.timeline-item-parallax h4 {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-item-parallax p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Rules Grid Parallax */
.rules-grid-parallax {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 1100px;
    margin-top: 2rem;
}

.rule-card-parallax {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(20, 18, 15, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.rule-card-parallax.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.rule-card-parallax:hover {
    border-color: rgba(212, 168, 74, 0.2);
}

.rule-card-parallax .rule-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent2);
    color: #0b0a09;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Oxanium', sans-serif;
}

.rule-card-parallax .rule-text h4 {
    font-size: 0.8rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.rule-card-parallax .rule-text p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.5;
}

.rules-footer-parallax {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.05em;
}

/* Join Section Parallax */
.parallax-join {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-join-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(11, 10, 9, 0.85) 0%, 
        rgba(11, 10, 9, 0.7) 50%,
        rgba(11, 10, 9, 0.85) 100%
    );
    z-index: 1;
}

.parallax-join-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 4rem 2rem;
}

.parallax-join-text {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    font-family: 'Oxanium', sans-serif;
}

.btn-join-large {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--accent2) 0%, #b8923e 100%);
    color: #0b0a09;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border: none;
}

.btn-join-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(212, 168, 74, 0.4);
}

/* Parallax Responsive */
@media (max-width: 1024px) {
    .dojo-scroll-container {
        grid-template-columns: 1fr;
    }
    
    .dojo-scroll-text {
        position: relative;
        height: auto;
        padding: 4rem 2rem;
        background: linear-gradient(180deg, rgba(11, 10, 9, 1) 0%, rgba(26, 22, 18, 1) 100%);
    }
    
    .dojo-scroll-image {
        height: 60vh;
    }
    
    .parallax-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid-parallax {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .timeline-parallax {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .rules-grid-parallax {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .parallax-hero-title {
        font-size: 2.5rem;
    }
    
    .parallax-heading {
        font-size: 2rem;
    }
    
    .parallax-heading-large {
        font-size: 2.5rem;
    }
    
    .parallax-stats {
        gap: 2rem;
    }
    
    .parallax-features-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }
    
    .rules-grid-parallax {
        grid-template-columns: 1fr;
    }
    
    .parallax-section-rules {
        padding: 5rem 1.5rem;
    }
    
    .dojo-scroll-text {
        padding: 3rem 1.5rem;
    }
    
    .parallax-content {
        padding: 4rem 1.5rem;
    }
}

/* Sections */
.section {
    position: relative;
}

.section-title {
    font-size: 2rem;
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--accent2);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: 0.02em;
}

.section-subtitle {
    color: var(--muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.02em;
}

/* Discord feature icon */
.discord-feature-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/* ===================================
   Home Content Wrapper & Section Styles
   =================================== */
.home-content-wrapper {
    position: relative;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Scroll Animation - Initial State */
[data-scroll] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-scroll].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for grids */
.features-grid [data-scroll]:nth-child(1) { transition-delay: 0s; }
.features-grid [data-scroll]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-scroll]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-scroll]:nth-child(4) { transition-delay: 0.3s; }
.features-grid [data-scroll]:nth-child(5) { transition-delay: 0.4s; }
.features-grid [data-scroll]:nth-child(6) { transition-delay: 0.5s; }

.about-stats [data-scroll]:nth-child(1) { transition-delay: 0s; }
.about-stats [data-scroll]:nth-child(2) { transition-delay: 0.1s; }
.about-stats [data-scroll]:nth-child(3) { transition-delay: 0.2s; }
.about-stats [data-scroll]:nth-child(4) { transition-delay: 0.3s; }

.staff-grid [data-scroll]:nth-child(1) { transition-delay: 0s; }
.staff-grid [data-scroll]:nth-child(2) { transition-delay: 0.15s; }
.staff-grid [data-scroll]:nth-child(3) { transition-delay: 0.3s; }

.rules-grid [data-scroll]:nth-child(1) { transition-delay: 0s; }
.rules-grid [data-scroll]:nth-child(2) { transition-delay: 0.05s; }
.rules-grid [data-scroll]:nth-child(3) { transition-delay: 0.1s; }
.rules-grid [data-scroll]:nth-child(4) { transition-delay: 0.15s; }
.rules-grid [data-scroll]:nth-child(5) { transition-delay: 0.2s; }
.rules-grid [data-scroll]:nth-child(6) { transition-delay: 0.25s; }
.rules-grid [data-scroll]:nth-child(7) { transition-delay: 0.3s; }
.rules-grid [data-scroll]:nth-child(8) { transition-delay: 0.35s; }

/* Section About - Light warm background */
.section-about {
    background: linear-gradient(180deg, rgba(32, 28, 22, 1) 0%, rgba(38, 34, 26, 1) 50%, rgba(32, 28, 22, 1) 100%);
    padding: 6rem 0;
}

/* Section Features - Darker with accent glow */
.section-features {
    background: linear-gradient(180deg, rgba(18, 16, 13, 1) 0%, rgba(15, 13, 10, 1) 50%, rgba(18, 16, 13, 1) 100%);
    padding: 6rem 0;
    position: relative;
}

.section-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(212, 168, 74, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Section Dojo - Warm gradient */
.section-dojo {
    background: linear-gradient(180deg, rgba(38, 34, 26, 1) 0%, rgba(45, 38, 28, 1) 50%, rgba(38, 34, 26, 1) 100%);
    padding: 6rem 0;
}

/* Section Staff - Cool tint */
.section-staff {
    background: linear-gradient(180deg, rgba(22, 24, 28, 1) 0%, rgba(18, 20, 24, 1) 50%, rgba(22, 24, 28, 1) 100%);
    padding: 6rem 0;
    position: relative;
}

.section-staff::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 80% 50% at 80% 50%, rgba(88, 166, 255, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* Section History - Dark with gold accent */
.section-history {
    background: linear-gradient(180deg, rgba(15, 13, 10, 1) 0%, rgba(20, 18, 14, 1) 50%, rgba(15, 13, 10, 1) 100%);
    padding: 6rem 0;
    position: relative;
}

.section-history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse 60% 80% at 20% 50%, rgba(212, 168, 74, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Section Rules - Slightly warm */
.section-rules {
    background: linear-gradient(180deg, rgba(28, 25, 22, 1) 0%, rgba(35, 30, 25, 1) 50%, rgba(28, 25, 22, 1) 100%);
    padding: 6rem 0;
}

/* Section Join - Full width, no card */
.section-join {
    background: linear-gradient(180deg, 
        rgba(15, 13, 10, 1) 0%, 
        rgba(25, 20, 15, 1) 30%,
        rgba(35, 28, 20, 1) 50%,
        rgba(25, 20, 15, 1) 70%,
        rgba(15, 13, 10, 1) 100%
    );
    padding: 8rem 0;
    position: relative;
    text-align: center;
}

.section-join::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(212, 168, 74, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 30% 70%, rgba(122, 31, 24, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.join-content {
    position: relative;
    z-index: 1;
}

.join-text {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-family: 'Oxanium', sans-serif;
}

.btn-join {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent2) 0%, #b8923e 100%);
    color: #0f0d0a;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 168, 74, 0.3);
}

.btn-join:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 168, 74, 0.4);
}

.btn-join .discord-icon {
    width: 24px;
    height: 24px;
}

/* Font Classes */
.headline {
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
}

.mono-text {
    font-family: 'Share Tech Mono', monospace;
}

/* About Section - New Design */
.about-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.about-hero-text {
    text-align: center;
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text);
    font-family: 'Oxanium', sans-serif;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(42, 36, 28, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(212, 168, 74, 0.35);
    background: rgba(42, 36, 28, 0.7);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 0.25rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Staff Section */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.staff-card {
    background: rgba(42, 36, 28, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.12);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.staff-card:hover {
    border-color: rgba(212, 168, 74, 0.3);
    transform: translateY(-2px);
}

.staff-owner {
    border-color: rgba(212, 168, 74, 0.3);
    background: linear-gradient(145deg, rgba(212, 168, 74, 0.1) 0%, rgba(42, 36, 28, 0.5) 100%);
}

.staff-admin {
    border-color: rgba(122, 31, 24, 0.3);
    background: linear-gradient(145deg, rgba(122, 31, 24, 0.08) 0%, rgba(42, 36, 28, 0.5) 100%);
}

.staff-mod {
    border-color: rgba(88, 166, 255, 0.2);
    background: linear-gradient(145deg, rgba(88, 166, 255, 0.05) 0%, rgba(42, 36, 28, 0.5) 100%);
}

.staff-role-badge {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent2);
    margin-bottom: 1rem;
}

.staff-card .staff-name {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.staff-title {
    font-size: 0.85rem;
    color: var(--muted);
}

.staff-members {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.staff-members .staff-name {
    font-size: 1rem;
    color: var(--text);
    font-family: 'Oxanium', sans-serif;
}

/* Timeline */
.timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(212, 168, 74, 0.1) 0%, 
        rgba(212, 168, 74, 0.4) 50%, 
        rgba(212, 168, 74, 0.1) 100%
    );
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    background: var(--accent2);
    border-radius: 50%;
    border: 2px solid rgba(42, 36, 28, 1);
    transform: translateX(-4px);
}

.timeline-current::before {
    background: #4ade80;
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.5);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--accent2);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.6;
}


/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(28, 25, 22, 0.6);
    border: 1px solid rgba(212, 168, 74, 0.08);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 74, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(212, 168, 74, 0.2);
    transform: translateY(-4px);
    background: rgba(35, 30, 25, 0.7);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--accent2);
    margin-bottom: 0.75rem;
    font-family: 'Oxanium', sans-serif;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Dojo Showcase Section */
.dojo-showcase {
    max-width: 1100px;
    margin: 0 auto;
}

.dojo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.dojo-image {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 0.75rem;
    overflow: hidden;
    background: rgba(20, 18, 15, 0.8);
    border: 1px solid rgba(212, 168, 74, 0.12);
    transition: all 0.3s ease;
}

.dojo-image:hover {
    border-color: rgba(212, 168, 74, 0.35);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.dojo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dojo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2rem;
    opacity: 0.4;
}

.dojo-image .dojo-image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--text);
    font-size: 0.85rem;
    font-family: 'Oxanium', sans-serif;
}

.dojo-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.dojo-feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(28, 25, 22, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgba(212, 168, 74, 0.08);
}

.dojo-check {
    color: #4ade80;
    font-size: 1rem;
}

.dojo-feature-item span {
    color: var(--text);
    font-size: 0.9rem;
}

/* Rules Section */
.rules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto 2rem;
}

.rule-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(20, 18, 15, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.08);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.rule-card:hover {
    border-color: rgba(212, 168, 74, 0.2);
    background: rgba(28, 25, 22, 0.6);
}

.rule-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent2) 0%, #b8923e 100%);
    color: #0f0d0a;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    font-family: 'Oxanium', sans-serif;
}

.rule-text h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-family: 'Oxanium', sans-serif;
}

.rule-text p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
}

.rules-footer {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: rgba(122, 31, 24, 0.1);
    border: 1px solid rgba(122, 31, 24, 0.2);
    border-radius: 0.75rem;
}

.rules-footer p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.rules-footer strong {
    color: var(--accent2);
}

/* Section Headings - Consistent */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-family: 'Oxanium', sans-serif;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1100px) {
    .staff-grid,
    .staff-grid-parallax {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .staff-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dojo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dojo-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-inner {
        padding: 0 1.5rem;
    }
}

@media (max-width: 600px) {
    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dojo-gallery {
        grid-template-columns: 1fr;
    }
    
    .dojo-features {
        grid-template-columns: 1fr;
    }
    
    .section-about,
    .section-features,
    .section-dojo,
    .section-staff,
    .section-history,
    .section-rules,
    .section-join {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-join {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* Footer - Redesigned */
.site-footer {
    background: linear-gradient(180deg, rgba(15, 13, 10, 0.9) 0%, rgba(11, 10, 9, 1) 100%);
    border-top: 1px solid rgba(212, 168, 74, 0.12);
    padding: 3rem 2rem 1.5rem;
    color: var(--muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 168, 74, 0.08);
}

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

.footer-logo {
    font-size: 1rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link-label {
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
    opacity: 0.6;
}

.footer-link-group a {
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link-group a:hover {
    color: var(--accent2);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-copyright {
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-link-group {
        align-items: center;
    }
}

@media (max-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
}

/* ===== Member Page Custom Styles ===== */
body, .body-text, .cookie-notice, .discord-link, .user-info, .username, .mb-5, .text-muted {
    font-family: 'Share Tech Mono', monospace !important;
    font-size: 1.05rem;
}

.headline, h1, h2, h3, h4, h5, .btn-discord, .druids-logo-text {
    font-family: 'Oxanium', Arial, sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-discord {
    font-weight: 700;
    letter-spacing: 0.06em;
}

.member-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 4rem 0;
}

.member-hero-content {
    z-index: 2;
    position: relative;
    max-width: 700px;
    margin: auto;
}

.member-logo {
    margin-bottom: 1.5rem;
}

.member-welcome {
    font-size: 2.5rem;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

.member-subtitle {
    color: #b0b3b8;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.member-highlight {
    color: #fbbf24;
    margin-bottom: 1.2rem;
}

.member-muted {
    color: #b0b3b8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.member-logout-btn {
    background: #444;
    margin-top: 10px;
    display: inline-block;
    color: #fff;
    width: 100%;
    max-width: 320px;
    font-weight: 700;
    font-size: 1.1em;
    padding: 12px 0;
    border-radius: 8px;
    text-decoration: none;
    letter-spacing: 0.06em;
}

/* Clan Data Admin Form Styles */
.clan-form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(245,166,35,0.12);
}

.clan-form-section:last-of-type {
    border-bottom: none;
}

.clan-form-section-title {
    font-family: 'Oxanium', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent2);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(245,166,35,0.2);
}

.clan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .clan-form-grid {
        grid-template-columns: 1fr;
    }
}

.clan-form-group {
    display: flex;
    flex-direction: column;
    background: rgba(42,31,24,0.7);
    border-radius: 8px;
    padding: 1rem 1rem 0.7rem 1rem;
    border: 1px solid rgba(245,166,35,0.08);
    margin-bottom: 0.2rem;
}

.clan-form-label {
    font-weight: 700;
    color: var(--accent2);
    margin-bottom: 0.4rem;
    font-size: 1.01rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.clan-form-input, .clan-form-textarea {
    background: #18120e;
    color: var(--text);
    border: 1px solid rgba(245,166,35,0.13);
    border-radius: 6px;
    padding: 0.6em 0.8em;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    margin-bottom: 0.2rem;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.clan-form-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
}

select.clan-form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a84a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5em center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5em;
}

select.clan-form-input option {
    background: #18120e;
    color: var(--text);
}

.clan-form-input:focus, .clan-form-textarea:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.18);
}

.clan-form-input[readonly] {
    background: #222;
    color: #aaa;
    cursor: not-allowed;
}

.clan-form-submit {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 320px;
    display: block;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
}

.btn-backup, .btn-restore-dropdown {
    background: linear-gradient(135deg, #5a9e4b 0%, #3d6e34 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-backup:hover, .btn-restore-dropdown:hover {
    opacity: 0.9;
}

.btn-backup:active, .btn-restore-dropdown:active {
    transform: scale(0.98);
}

.btn-restore-dropdown {
    background: linear-gradient(135deg, #7289da 0%, #5a6fa0 100%);
    position: relative;
}

.btn-delete-all {
    background: linear-gradient(135deg, #c23030 0%, #8a1f1f 100%);
    color: white;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: opacity 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-delete-all:hover {
    opacity: 0.9;
}

.btn-delete-all:active {
    transform: scale(0.98);
}

.backup-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1410;
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1000;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    min-width: 280px;
}

.backup-dropdown-item {
    display: block;
}

.backup-option {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    background: none;
    border: none;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    border-bottom: 1px solid rgba(245,166,35,0.08);
    transition: background 0.2s;
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
}

.backup-option:last-child {
    border-bottom: none;
}

.backup-option:hover {
    background: rgba(245,166,35,0.1);
}

.backup-btn-restore, .backup-btn-delete {
    /* Ensure selected options in multi-select are visible */
    select.clan-form-input[multiple] option:checked {
        background-color: rgba(245,166,35,0.18);
        color: var(--bg-dark);
    }

    /* Improve focus outline for accessibility */
    select.clan-form-input:focus {
        outline: 2px solid rgba(245,166,35,0.25);
        outline-offset: 2px;
    }

    /* Selected role chips next to multi-select */
    .selected-role-list .role-chip {
        background: rgba(245,166,35,0.12);
        color: var(--text);
        padding: 0.25rem 0.5rem;
        border-radius: 8px;
        font-size: 0.9rem;
        display: inline-flex;
        align-items: center;
    }
    .selected-role-list .role-chip .role-chip-id {
        color: var(--muted);
        margin-left: 0.4rem;
        font-size: 0.78rem;
    }
    background: none;
    border: none;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: opacity 0.2s;
    color: white;
    font-weight: bold;
}

.backup-btn-restore {
    background: linear-gradient(135deg, #5a9e4b 0%, #3d6e34 100%);
    border-radius: 4px;
}

.backup-btn-delete {
    background: linear-gradient(135deg, #c23030 0%, #8a1f1f 100%);
    border-radius: 4px;
}

.backup-btn-restore:hover, .backup-btn-delete:hover {
    opacity: 0.8;
}

.backup-time {
    display: block;
    color: var(--accent2);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.backup-id-small {
    display: block;
    color: #999;
    font-size: 0.85rem;
}

.clan-form-role-wrapper {
    position: relative;
    margin-bottom: 0.2rem;
}

.clan-form-role-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #18120e;
    color: var(--text);
    border: 1px solid rgba(245,166,35,0.13);
    border-radius: 6px;
    padding: 0.6em 0.8em;
    font-size: 1rem;
    font-family: 'Share Tech Mono', monospace;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.clan-form-role-button:hover {
    border-color: rgba(245,166,35,0.2);
}

.clan-form-role-button:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px rgba(245,166,35,0.18);
}

.role-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: left;
}

.role-icon {
    height: 1.3em;
    width: 1.3em;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.role-placeholder {
    color: #999;
}

.role-dropdown-arrow {
    color: var(--accent2);
    font-size: 0.7em;
    margin-left: 0.5rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.clan-form-role-button.active .role-dropdown-arrow {
    transform: rotate(180deg);
}

.clan-form-role-dropdown {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    background: #18120e;
    border: 1px solid rgba(245,166,35,0.2);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
    min-width: 280px;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(245,166,35,0.08);
    transition: background 0.2s;
    color: var(--text);
}

.role-option:last-child {
    border-bottom: none;
}

.role-option:hover {
    background: rgba(245,166,35,0.1);
}

.role-name {
    font-weight: 600;
}

.role-id {
    color: #999;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Scrollbar Styling - Golden Theme (for content areas, not page) */
*:not(html)::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*:not(html)::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

*:not(html)::-webkit-scrollbar-thumb {
    background: var(--accent2, #d4a84a);
    border-radius: 4px;
}

*:not(html)::-webkit-scrollbar-thumb:hover {
    background: #ffe082;
}

/* Firefox scrollbar styling (for content areas) */
*:not(html) {
    scrollbar-color: var(--accent2, #d4a84a) rgba(0, 0, 0, 0.3);
    scrollbar-width: thin;
}

/* Member Portal Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0;
}

.quick-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s ease;
    cursor: pointer;
}

.quick-link:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.3);
}

.quick-link-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(245, 166, 35, 0.1));
    border-radius: 8px;
    flex-shrink: 0;
}

.quick-link-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent2);
}

.quick-link-content {
    flex: 1;
}

.quick-link-title {
    font-weight: 600;
    margin: 0;
    font-size: 0.95rem;
}

.quick-link-desc {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.25rem 0 0 0;
}

/* Back Link Styling */
.sidebar-back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    margin: 0.75rem 0.75rem 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.sidebar-back-link:hover {
    opacity: 1;
    color: var(--text);
    background: rgba(255,255,255,0.05);
}

.sidebar-back-link svg {
    width: 0.9rem;
    height: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
    }

    .quick-link {
        padding: 0.75rem;
    }

    .quick-link-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .quick-link-icon svg {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* WYSIWYG Editor List Styles */
.wysiwyg-editor ul,
.wysiwyg-editor ol,
ul, ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.wysiwyg-editor ul li,
.wysiwyg-editor ol li,
ul li, ol li {
    margin: 0.25em 0;
    line-height: 1.6;
}

.wysiwyg-editor ul,
ul {
    list-style-type: disc;
}

.wysiwyg-editor ol,
ol {
    list-style-type: decimal;
}

.wysiwyg-editor ul ul,
ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
}

.wysiwyg-editor ul ul ul,
ul ul ul {
    list-style-type: square;
}

/* Ensure contenteditable divs also show lists properly */
[contenteditable] ul,
[contenteditable] ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

[contenteditable] ul li,
[contenteditable] ol li {
    margin: 0.25em 0;
    line-height: 1.6;
}

/* ===================================
   Error Page Styles
   =================================== */
.error-page-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg-dark);
    position: relative;
    overflow: hidden;
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.error-page-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
}

.error-page-card {
    background: linear-gradient(145deg, rgba(26, 24, 20, 0.95) 0%, rgba(15, 13, 10, 0.98) 100%);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(245, 166, 35, 0.05) inset;
    backdrop-filter: blur(10px);
}

.error-logo-link {
    display: inline-block;
    margin-bottom: 1rem;
}

.error-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.error-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.error-code {
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent2);
    line-height: 1;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 30px rgba(245, 166, 35, 0.3);
}

.error-title {
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.75rem 0;
}

.error-message {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem 0;
}

.error-hint {
    background: rgba(245, 166, 35, 0.08);
    border: 1px solid rgba(245, 166, 35, 0.15);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text);
}

.error-hint strong {
    color: var(--accent2);
}

.error-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.error-btn svg {
    flex-shrink: 0;
}

.error-btn-primary {
    background: linear-gradient(135deg, var(--accent2) 0%, #b8923e 100%);
    color: #0f0d0a;
    border: none;
}

.error-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
}

.error-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(245, 166, 35, 0.25);
}

.error-btn-secondary:hover {
    background: rgba(245, 166, 35, 0.1);
    border-color: rgba(245, 166, 35, 0.4);
}

.error-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.error-footer p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.error-footer a {
    color: var(--accent2);
    text-decoration: none;
    transition: color 0.2s;
}

.error-footer a:hover {
    color: #ffe082;
    text-decoration: underline;
}

/* Background glow effect */
.error-bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150vmax;
    height: 150vmax;
    background: radial-gradient(
        ellipse at center,
        rgba(245, 166, 35, 0.08) 0%,
        rgba(245, 166, 35, 0.03) 25%,
        transparent 50%
    );
    pointer-events: none;
    z-index: 0;
}

/* Error page responsive */
@media (max-width: 480px) {
    .error-page-body {
        padding: 1rem;
    }
    
    .error-page-card {
        padding: 1.5rem;
    }
    
    .error-logo {
        width: 60px;
        height: 60px;
    }
    
    .error-icon {
        font-size: 3rem;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.25rem;
    }
}

/* ===================================
   ENHANCED HOMEPAGE STYLES
   =================================== */

/* Sticky Header on scroll */
.site-nav {
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.site-nav.nav-sticky {
    background: rgba(11, 10, 9, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Hero Section Enhancements */
.btn-hero,
.btn-hero-secondary,
.btn-hero-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.btn-hero {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3), rgba(88, 101, 242, 0.15));
    border: 1px solid rgba(88, 101, 242, 0.5);
    color: #fff;
}

.btn-hero:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), rgba(88, 101, 242, 0.3));
    border-color: rgba(88, 101, 242, 0.8);
    transform: translateY(-2px);
}

.btn-hero-secondary {
    background: transparent;
    border: 1px solid rgba(212, 168, 74, 0.4);
    color: var(--accent2);
}

.btn-hero-secondary:hover {
    background: rgba(212, 168, 74, 0.1);
    border-color: var(--accent2);
    transform: translateY(-2px);
}

.btn-hero-admin {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff6b6b;
}

.btn-hero-admin:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.35), rgba(255, 107, 107, 0.2));
    border-color: rgba(255, 107, 107, 0.8);
    transform: translateY(-2px);
}

.btn-icon {
    width: 18px;
    height: 18px;
}

.hero-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: var(--muted);
    margin-bottom: 1rem;
}

/* Animated Scroll Arrow */
.scroll-indicator-hero {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.scroll-indicator-hero span.mono-text {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    color: var(--accent2);
    opacity: 0.8;
}

.scroll-arrow-animated {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.scroll-arrow-animated span {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border: solid var(--accent2);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin: -4px 0;
    animation: scrollArrowBounce 2s infinite;
    opacity: 0;
}

.scroll-arrow-animated span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-arrow-animated span:nth-child(2) {
    animation-delay: 0.15s;
}

.scroll-arrow-animated span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes scrollArrowBounce {
    0%, 20% {
        opacity: 0;
        top: -6px;
    }
    50% {
        opacity: 1;
        top: 0;
    }
    80%, 100% {
        opacity: 0;
        top: 6px;
    }
}

/* Accent Names */
.accent-name {
    color: var(--accent2) !important;
}

/* Staff Avatar Grid */
.staff-section-group {
    margin-bottom: 3rem;
}

.staff-section-group:last-child {
    margin-bottom: 0;
}

.staff-section-title {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    color: var(--muted);
    margin-bottom: 1.5rem;
    text-align: center;
}

.staff-avatar-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.staff-avatar-grid-small {
    gap: 3rem;
}

.staff-avatar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: rgba(20, 18, 15, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.1);
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.staff-avatar-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.staff-avatar-card:hover {
    border-color: rgba(212, 168, 74, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.staff-avatar-card[data-role="owner"] {
    border-color: rgba(212, 168, 74, 0.25);
    background: linear-gradient(180deg, rgba(212, 168, 74, 0.08) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-avatar-card[data-role="developer"] {
    border-color: rgba(139, 226, 107, 0.2);
    background: linear-gradient(180deg, rgba(139, 226, 107, 0.05) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-avatar-card[data-role="admin"] {
    border-color: rgba(255, 107, 107, 0.15);
    background: linear-gradient(180deg, rgba(255, 107, 107, 0.05) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.staff-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 2px solid rgba(212, 168, 74, 0.3);
    transition: all 0.3s ease;
}

.staff-avatar-card:hover .staff-avatar-wrapper {
    border-color: var(--accent2);
    box-shadow: 0 0 20px rgba(212, 168, 74, 0.3);
}

.staff-avatar-card[data-role="owner"] .staff-avatar-wrapper {
    border-color: rgba(212, 168, 74, 0.5);
}

.staff-avatar-card[data-role="developer"] .staff-avatar-wrapper {
    border-color: rgba(139, 226, 107, 0.4);
}

.staff-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-avatar-name {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.staff-avatar-role {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--muted);
}

/* Enhanced Timeline Parallax */
.timeline-parallax {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 4rem;
    max-width: 1000px;
    margin-top: 2rem;
}

/* Vertical connecting line down center */
.timeline-parallax::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(212, 168, 74, 0.3) 10%,
        rgba(212, 168, 74, 0.3) 90%,
        transparent 100%
    );
    transform: translateX(-50%);
}

.timeline-item-parallax {
    position: relative;
    padding: 1.5rem;
    background: rgba(20, 18, 15, 0.4);
    border: 1px solid rgba(212, 168, 74, 0.1);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alternate left/right animation */
.timeline-item-parallax:nth-child(odd) {
    transform: translateX(-40px);
}

.timeline-item-parallax:nth-child(even) {
    transform: translateX(40px);
}

.timeline-item-parallax.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item-parallax:hover {
    border-color: rgba(212, 168, 74, 0.3);
    background: rgba(20, 18, 15, 0.6);
}

.timeline-marker-parallax {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent2);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 168, 74, 0.4);
}

.timeline-item-parallax:nth-child(odd) .timeline-marker-parallax {
    right: -2rem;
    top: 50%;
    transform: translateY(-50%) translateX(50%);
}

.timeline-item-parallax:nth-child(even) .timeline-marker-parallax {
    left: -2rem;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
}

.timeline-item-parallax.timeline-current {
    border-color: rgba(74, 222, 128, 0.3);
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.08) 0%, rgba(20, 18, 15, 0.5) 100%);
}

.timeline-item-parallax.timeline-current .timeline-marker-parallax {
    background: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.6);
}

.timeline-date {
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.timeline-item-parallax h4 {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-item-parallax p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Activity Policy Section */
.parallax-section-policy {
    background: var(--bg-dark);
}

.policy-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin-top: 2rem;
}

.policy-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(20, 18, 15, 0.5);
    border: 1px solid rgba(212, 168, 74, 0.1);
}

.policy-card:hover {
    border-color: rgba(212, 168, 74, 0.25);
}

.policy-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.policy-card h3 {
    font-size: 0.85rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.policy-card p {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 1024px) {
    .policy-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-parallax {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-left: 2rem;
    }
    
    .timeline-parallax::before {
        left: 0;
    }
    
    .timeline-item-parallax:nth-child(odd),
    .timeline-item-parallax:nth-child(even) {
        transform: translateX(30px);
    }
    
    .timeline-item-parallax.is-visible {
        transform: translateX(0);
    }
    
    .timeline-item-parallax:nth-child(odd) .timeline-marker-parallax,
    .timeline-item-parallax:nth-child(even) .timeline-marker-parallax {
        left: -2rem;
        right: auto;
        transform: translateY(-50%) translateX(-50%);
    }
}

@media (max-width: 768px) {
    .staff-avatar-grid {
        gap: 1rem;
    }
    
    .staff-avatar-card {
        padding: 1rem;
    }
    
    .staff-avatar-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .policy-content {
        grid-template-columns: 1fr;
    }
    
    .btn-hero,
    .btn-hero-secondary,
    .btn-hero-admin {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 600px) {
    .scroll-indicator-hero {
        bottom: 1.5rem;
    }
    
    .staff-section-group {
        margin-bottom: 2rem;
    }
}

/* ===================================
   HORIZONTAL TIMELINE SECTION
   =================================== */

.timeline-horizontal-section {
    position: relative;
    min-height: 250vh;
    background: var(--bg-dark);
    overflow: hidden;
}

.timeline-horizontal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.timeline-horizontal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11,10,9,0.7) 0%, rgba(11,10,9,0.9) 100%);
    z-index: 1;
    pointer-events: none;
}

.timeline-horizontal-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    z-index: 2;
}

.timeline-horizontal-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-horizontal-track {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 2rem 5vw;
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.timeline-horizontal-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent2) 10%, 
        var(--accent2) 90%, 
        transparent 100%
    );
    opacity: 0.3;
    transform: translateY(-50%);
}

.timeline-horizontal-items {
    display: flex;
    gap: 4rem;
    position: relative;
    padding: 0 2rem;
}

.timeline-h-item {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    padding: 2rem;
    background: rgba(20, 18, 15, 0.8);
    border: 1px solid rgba(212, 168, 74, 0.15);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-h-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-h-item:hover {
    border-color: var(--accent2);
    box-shadow: 0 0 30px rgba(212, 168, 74, 0.15);
}

.timeline-h-marker {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent2);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(212, 168, 74, 0.5);
}

.timeline-h-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 1px solid var(--accent2);
    border-radius: 50%;
    opacity: 0.5;
}

.timeline-h-current .timeline-h-marker {
    background: #4ade80;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

.timeline-h-current .timeline-h-marker::before {
    border-color: #4ade80;
}

.timeline-h-content {
    text-align: center;
}

.timeline-h-date {
    display: block;
    font-size: 0.7rem;
    color: var(--accent2);
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
}

.timeline-h-item h4 {
    font-size: 1rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.timeline-h-item p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.timeline-scroll-hint {
    text-align: center;
    margin-top: 2rem;
    color: var(--muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0.6;
}

.timeline-scroll-arrows {
    animation: scrollArrowPulse 1.5s ease-in-out infinite;
}

@keyframes scrollArrowPulse {
    0%, 100% { opacity: 0.4; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}

/* ===================================
   ACTIVITY POLICY SECTION
   =================================== */

.policy-section {
    position: relative;
    padding: 6rem 2rem;
    background: var(--bg-dark);
    overflow: hidden;
}

.policy-parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.policy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(11,10,9,0.95) 0%, 
        rgba(11,10,9,0.85) 50%,
        rgba(11,10,9,0.95) 100%
    );
    z-index: 1;
}

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

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
}

.policy-intro {
    font-size: 1rem;
    color: var(--muted);
    max-width: 700px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.policy-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.policy-panel {
    background: rgba(20, 18, 15, 0.6);
    border: 1px solid rgba(212, 168, 74, 0.1);
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.policy-panel.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.policy-panel:hover {
    border-color: rgba(212, 168, 74, 0.25);
}

.policy-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.policy-panel-icon {
    font-size: 1.5rem;
}

.policy-panel-header h3 {
    font-size: 1rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
}

.policy-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.policy-panel-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.policy-sub-card {
    background: rgba(11, 10, 9, 0.5);
    padding: 1.25rem;
    border-left: 2px solid var(--accent2);
}

.policy-sub-card h4 {
    font-size: 0.75rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    margin-bottom: 0.75rem;
}

.policy-sub-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-sub-card li {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.policy-sub-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent2);
}

.policy-sub-card li strong {
    color: var(--text);
}

.policy-panel-highlight {
    background: linear-gradient(135deg, rgba(212, 168, 74, 0.08) 0%, rgba(20, 18, 15, 0.6) 100%);
    border-color: rgba(212, 168, 74, 0.2);
}

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

.policy-definition strong {
    color: var(--accent2);
}

.policy-panel-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.policy-panel-duo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.policy-panel-small {
    padding: 1.5rem;
}

.policy-panel-small ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.policy-panel-small li {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.policy-panel-small li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent2);
}

.policy-panel-small p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.policy-panel-small p strong {
    color: var(--text);
}

.policy-panel-warning {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(20, 18, 15, 0.6) 100%);
    border-color: rgba(255, 107, 107, 0.2);
}

.policy-panel-warning .policy-panel-header h3 {
    color: var(--error-red);
}

.policy-summary {
    background: rgba(20, 18, 15, 0.8);
    border: 1px solid rgba(212, 168, 74, 0.2);
    padding: 2rem;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.policy-summary.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.policy-summary h3 {
    font-size: 0.9rem;
    color: var(--accent2);
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
}

.policy-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.policy-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(11, 10, 9, 0.5);
}

.policy-summary-icon {
    font-size: 1.5rem;
}

.policy-summary-item span:last-child {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.5;
}

.policy-summary-item strong {
    color: var(--text);
}

/* ===================================
   WEBSITE SHOWCASE SECTION
   =================================== */

.showcase-section {
    position: relative;
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(20, 18, 15, 1) 50%, var(--bg-dark) 100%);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 3rem;
}

.showcase-intro {
    font-size: 1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

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

.showcase-panel {
    position: relative;
    background: rgba(20, 18, 15, 0.8);
    border: 1px solid rgba(212, 168, 74, 0.1);
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.showcase-panel.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.showcase-panel:hover {
    border-color: var(--accent2);
    transform: translateY(-5px) scale(1.02);
}

.showcase-panel-large {
    grid-column: span 2;
    grid-row: span 2;
}

.showcase-panel-wide {
    grid-column: span 3;
}

.showcase-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.showcase-panel-large .showcase-image-wrapper {
    height: 300px;
}

.showcase-panel-wide .showcase-image-wrapper {
    height: 250px;
}

.showcase-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-panel:hover .showcase-image {
    transform: scale(1.1);
}

.showcase-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(11, 10, 9, 0.3) 50%,
        rgba(11, 10, 9, 0.9) 100%
    );
}

.showcase-panel-content {
    padding: 1.5rem;
}

.showcase-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.showcase-panel-content h3 {
    font-size: 0.9rem;
    color: var(--accent2);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.showcase-panel-content p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.showcase-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.showcase-tag {
    font-size: 0.7rem;
    font-family: 'Share Tech Mono', monospace;
    color: var(--muted);
    background: rgba(212, 168, 74, 0.1);
    border: 1px solid rgba(212, 168, 74, 0.2);
    padding: 0.25rem 0.5rem;
    letter-spacing: 0.05em;
}

/* ===================================
   RESPONSIVE - NEW SECTIONS
   =================================== */

@media (max-width: 1024px) {
    .timeline-h-item {
        width: 240px;
    }
    
    .policy-panel-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .policy-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-panels {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-panel-large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .showcase-panel-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .timeline-horizontal-section {
        min-height: 200vh;
    }
    
    .timeline-h-item {
        width: 220px;
        padding: 1.5rem;
    }
    
    .timeline-horizontal-items {
        gap: 2rem;
    }
    
    .policy-panel-grid,
    .policy-panel-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .policy-panel-duo {
        grid-template-columns: 1fr;
    }
    
    .policy-summary-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .showcase-panels {
        grid-template-columns: 1fr;
    }
    
    .showcase-panel-large,
    .showcase-panel-wide {
        grid-column: span 1;
    }
    
    .showcase-panel-large .showcase-image-wrapper,
    .showcase-panel-wide .showcase-image-wrapper {
        height: 200px;
    }
}

@media (max-width: 600px) {
    .timeline-horizontal-container {
        padding: 2rem 1rem;
    }
    
    .timeline-h-item {
        width: 200px;
        padding: 1.25rem;
    }
    
    .policy-section {
        padding: 4rem 1rem;
    }
    
    .policy-panel {
        padding: 1.5rem;
    }
    
    .policy-summary-grid {
        grid-template-columns: 1fr;
    }
    
    .showcase-section {
        padding: 4rem 1rem;
    }
}

/* ===================================
   STAFF FLOATING PARALLAX SECTION
   =================================== */

.staff-float-section {
    position: relative;
    padding: 8rem 2rem 10rem;
    background: var(--bg-dark);
    overflow: hidden;
    min-height: 100vh;
}

.staff-float-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    z-index: 0;
}

.staff-float-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--bg-dark) 0%, 
        rgba(11, 10, 9, 0.85) 30%,
        rgba(11, 10, 9, 0.85) 70%,
        var(--bg-dark) 100%
    );
    z-index: 1;
}

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

.staff-float-header {
    text-align: center;
    margin-bottom: 4rem;
}

.staff-float-group {
    margin-bottom: 5rem;
}

.staff-float-group:last-child {
    margin-bottom: 0;
}

.staff-float-title {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.3em;
    margin-bottom: 2.5rem;
    position: relative;
}

.staff-float-title::before,
.staff-float-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 74, 0.3));
}

.staff-float-title::before {
    right: calc(50% + 80px);
    background: linear-gradient(90deg, transparent, rgba(212, 168, 74, 0.3));
}

.staff-float-title::after {
    left: calc(50% + 80px);
    background: linear-gradient(270deg, transparent, rgba(212, 168, 74, 0.3));
}

.staff-float-grid {
    display: grid;
    gap: 2rem;
    justify-items: center;
}

.staff-float-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.staff-float-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    background: rgba(20, 18, 15, 0.6);
    border: 1px solid rgba(212, 168, 74, 0.1);
    width: 100%;
    max-width: 240px;
    opacity: 0;
    transform: translateY(100px);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    will-change: transform, opacity;
}

.staff-float-card:hover {
    border-color: rgba(212, 168, 74, 0.4);
    box-shadow: 0 10px 40px rgba(212, 168, 74, 0.1);
}

.staff-float-card[data-role="owner"] {
    border-color: rgba(212, 168, 74, 0.25);
    background: linear-gradient(180deg, rgba(212, 168, 74, 0.08) 0%, rgba(20, 18, 15, 0.6) 100%);
}

.staff-float-card[data-role="owner"]:hover {
    border-color: var(--accent2);
    box-shadow: 0 10px 50px rgba(212, 168, 74, 0.2);
}

.staff-float-image {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 168, 74, 0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.staff-float-card:hover .staff-float-image {
    transform: scale(1.05);
    border-color: var(--accent2);
}

.staff-float-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.staff-float-card:hover .staff-float-image img {
    transform: scale(1.1);
}

.staff-float-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.staff-float-info {
    text-align: center;
}

.staff-float-name {
    display: block;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.staff-float-name.accent-name {
    color: var(--accent2);
}

.staff-float-role {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.15em;
    line-height: 1.4;
}

/* Floating glow effect for owner */
.staff-float-card[data-role="owner"]::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, 
        rgba(212, 168, 74, 0.3) 0%, 
        transparent 50%, 
        rgba(212, 168, 74, 0.1) 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.staff-float-card[data-role="owner"]:hover::before {
    opacity: 1;
}

/* Staff Float Responsive */
@media (max-width: 1024px) {
    .staff-float-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .staff-float-card {
        max-width: 200px;
    }
}

@media (max-width: 600px) {
    .staff-float-section {
        padding: 5rem 1rem 6rem;
    }
    
    .staff-float-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .staff-float-card {
        padding: 1.25rem 1rem;
        max-width: none;
    }
    
    .staff-float-image {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .staff-float-name {
        font-size: 0.9rem;
    }
    
    .staff-float-role {
        font-size: 0.65rem;
    }
    
    .staff-float-title::before,
    .staff-float-title::after {
        display: none;
    }
}

/* ===================================
   STAFF STICKY SCROLL REVEAL
   =================================== */

/* Staff Sticky Scroll Section */
.staff-sticky-section {
    position: relative;
    min-height: 100vh;
    /* Height set dynamically via JS for scroll-driven animation */
    background: var(--bg-dark);
}

.staff-sticky-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.staff-sticky-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        var(--bg-dark) 0%, 
        rgba(11, 10, 9, 0.95) 10%,
        rgba(11, 10, 9, 0.95) 90%,
        var(--bg-dark) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.staff-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2;
}

.staff-sticky-header {
    text-align: center;
    margin-bottom: 3rem;
}

.staff-sticky-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
}

.staff-slide-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: rgba(20, 18, 15, 0.7);
    border: 1px solid rgba(212, 168, 74, 0.1);
    opacity: 0;
    transform: translateX(-150px);
    will-change: transform, opacity;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.staff-slide-card[data-side="right"] {
    transform: translateX(150px);
}

.staff-slide-card.is-visible {
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
}

.staff-slide-card:hover {
    border-color: rgba(212, 168, 74, 0.4);
    box-shadow: 0 10px 40px rgba(212, 168, 74, 0.1);
}

.staff-slide-card[data-role="owner"] {
    background: linear-gradient(180deg, rgba(212, 168, 74, 0.1) 0%, rgba(20, 18, 15, 0.7) 100%);
    border-color: rgba(212, 168, 74, 0.25);
}

.staff-slide-card[data-role="owner"]:hover {
    border-color: var(--accent2);
    box-shadow: 0 15px 50px rgba(212, 168, 74, 0.2);
}

.staff-slide-image {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(212, 168, 74, 0.2);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.staff-slide-card:hover .staff-slide-image {
    transform: scale(1.1);
    border-color: var(--accent2);
}

.staff-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-slide-info {
    text-align: center;
}

.staff-slide-badge {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--accent2);
    letter-spacing: 0.2em;
    padding: 0.25rem 0.5rem;
    background: rgba(212, 168, 74, 0.1);
    border: 1px solid rgba(212, 168, 74, 0.2);
    margin-bottom: 0.75rem;
}

.staff-slide-name {
    display: block;
    font-size: 1rem;
    color: var(--accent2);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.staff-slide-role {
    display: block;
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    line-height: 1.4;
}

/* Progress bar */
.staff-scroll-progress {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(212, 168, 74, 0.1);
    border-radius: 1px;
    overflow: hidden;
}

.staff-scroll-bar {
    height: 100%;
    width: 0%;
    background: var(--accent2);
    transition: width 0.1s ease-out;
}

/* Staff Sticky Responsive */
@media (max-width: 1024px) {
    .staff-sticky-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 500px;
    }
    
    .staff-slide-card {
        padding: 1.25rem 0.75rem;
    }
}

@media (max-width: 600px) {
    .staff-sticky-container {
        padding: 1rem;
    }
    
    .staff-sticky-header {
        margin-bottom: 2rem;
    }
    
    .staff-sticky-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .staff-slide-card {
        padding: 1rem 0.5rem;
    }
    
    .staff-slide-image {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    .staff-slide-badge {
        font-size: 0.5rem;
        padding: 0.2rem 0.4rem;
    }
    
    .staff-slide-name {
        font-size: 0.85rem;
    }
    
    .staff-slide-role {
        font-size: 0.55rem;
    }
    
    .staff-scroll-progress {
        bottom: 2rem;
        width: 150px;
    }
}