/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-soft: #38bdf8;

    --bg: #020617;
    --panel: #0b1220;

    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
}

body {
    background:
        radial-gradient(1100px 620px at 50% -10%,
            rgba(14, 165, 233, 0.18),
            transparent 70%),

        radial-gradient(900px 520px at 15% 20%,
            rgba(99, 102, 241, 0.14),
            transparent 65%),

        linear-gradient(to bottom,
            #020617 0%,
            #02040a 100%);

    background-repeat: no-repeat;
    background-attachment: fixed;

    position: relative;
    color: var(--text-main);
    font-family: Inter, sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background: linear-gradient(to bottom,
            rgba(56, 189, 248, 0.08),
            rgba(56, 189, 248, 0.04) 35%,
            transparent 65%);
}

.nav,
.hero,
.legacy,
.ce-section,
.leadership-section,
.raid,
.recruitment,
.footer {
    position: relative;
    z-index: 1;
}

html {
    scroll-behavior: smooth;
}

/* =========================
   TYPOGRAPHY
========================= */
h1,
h2,
h3 {
    font-family: Cinzel, serif;
    letter-spacing: 0.05em;
}

.subtitle {
    color: var(--text-muted);
}

/* =========================
   NAVIGATION 
========================= */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    padding: 0 60px;

    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 10;
    overflow: visible;
}

/* LOGO AREA */
.logo {
    display: flex;
    align-items: center;
    height: 64px;
    flex-shrink: 0;

    text-decoration: none;
    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;

    color: rgba(229, 231, 235, 0.88);

    transition: color 650ms ease;
}

.nav-brand-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-logo-stack {
    position: relative;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    transform: translateY(1%);
}

.nav-logo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 650ms ease;
    /* <-- the actual fade */
}

.nav-logo--white {
    opacity: 0.88;
}

.nav-logo--blue {
    opacity: 0;
}

.logo.is-blue .nav-logo--blue {
    opacity: 1;
}

.nav-brand {
    display: inline-block;

    font-family: "Saira", sans-serif;
    font-weight: 700;
    text-transform: uppercase;

    font-size: 1.45rem;
    letter-spacing: 0.18rem;
    line-height: 1;

    color: inherit;
    text-shadow: none;

    transform: translateY(1px);

    transition: none;
}

/* ========================================
   NAV LOGO 
======================================== */

@media (hover: hover) and (pointer: fine) {
    .logo:hover .nav-brand {
        color: rgba(56, 189, 248, 0.88);
        transition-duration: 0ms;
    }

    .logo:hover .nav-logo {
        opacity: 1;
        transition-duration: 0ms;
    }
}

.nav-brand {
    transition: color 650ms ease;
}

.nav-logo {
    transition: filter 900ms ease, opacity 900ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .logo:hover .nav-brand {
        color: rgba(56, 189, 248, 0.88);
        text-shadow: none;

        transition-duration: 0ms;
    }

    .logo:hover .nav-logo {
        filter: none;
        opacity: 1;
        transition-duration: 0ms;
    }
}

/* NAV LINKS */
.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 44px;
}

.nav-links>li {
    display: flex;
    align-items: center;
}

.nav-links a,
.nav-dropbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--text-muted);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;

    padding: 12px 4px;

    transition: color 0.18s ease;
    white-space: nowrap;
}

.nav-links>li>a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 5px;

    width: 100%;
    height: 3px;
    border-radius: 999px;

    background: rgba(56, 189, 248, 0.75);

    transform: scaleX(0);
    transform-origin: center;
    opacity: 0.85;

    transition: transform 0.22s ease;
}

.nav-links>li>a:hover::after,
.nav-links>li>a:focus-visible::after {
    transform: scaleX(1);
}

.nav-links>li>a:hover,
.nav-links>li>a:focus-visible {
    color: var(--text-main);
}

/* DROPDOWN */
.nav-dropdown {
    position: relative;
    display: block;
}

.nav-dropbtn {
    font-family: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    line-height: 1;
}

.nav-dropbtn::after {
    content: none !important;
}

.nav-dropdown:hover .nav-dropbtn,
.nav-dropbtn:focus-visible {
    color: var(--primary);
}

.nav-dropbtn .nav-arrow {
    display: inline-flex;
    width: 14px;
    justify-content: center;
    align-items: center;

    font-size: 14px;
    line-height: 1;

    transform: translateY(0) rotate(90deg);
    transition: transform 0.16s ease, opacity 0.16s ease;
    opacity: 0.85;

    will-change: transform;
}

.nav-dropdown:hover .nav-dropbtn .nav-arrow,
.nav-dropbtn:focus-visible .nav-arrow {
    transform: translateY(3px) rotate(90deg);
    opacity: 1;
}

.nav-dropbtn:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.35);
    outline-offset: 6px;
    border-radius: 10px;
}

/* Dropdown menu panel */
.nav-dropdown-menu {
    position: fixed;
    top: calc(64px + 8px);
    right: 20px;

    width: max-content;
    max-width: calc(100vw - 24px);
    padding: 8px 10px;
    margin: 0;
    list-style: none;

    background: rgba(2, 6, 23, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: 180ms ease;
    z-index: 999;
}

.nav-dropdown-menu>li {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;

    color: var(--text-muted);
    text-decoration: none;

    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    transition: color 0.18s ease, background 0.18s ease;
}

.nav-dropdown-menu a:hover {
    color: var(--primary);
    background: rgba(56, 189, 248, 0.10);
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a::after {
    content: none;
}

.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -14px;
    height: 14px;
    background: transparent;
}

@media (hover: hover) and (pointer: fine) {

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-dropbtn {
        pointer-events: none;
    }
}

/* HAMBURGER BUTTON */
.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;

    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(10px);
    border-radius: 14px;

    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 0;
}

.nav-toggle span {
    width: 22px;
    height: 2.5px;
    background: rgba(229, 231, 235, 0.9);
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    width: 24px;
}

.nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    width: 24px;
}

/* RESPONSIVE NAV */
@media (max-width: 900px) {
    .nav {
        padding: 0 24px;
    }

    .nav-links {
        gap: 26px;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 0 14px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px 18px;
    }

    .nav-links a,
    .nav-dropbtn {
        padding: 10px 4px;
    }
}

/* MOBILE NAV */
@media (max-width: 768px) {
    .nav {
        padding: 0 14px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(64px + 10px);

        display: grid;
        gap: 6px;

        padding: 10px;
        margin: 0;

        background: rgba(2, 6, 23, 0.92);
        border: 1px solid rgba(56, 189, 248, 0.18);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: 200ms ease;

        flex-wrap: nowrap;
        z-index: 20;
    }

    .nav.is-open .nav-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links>li {
        width: 100%;
    }

    .nav-links>li>a,
    .nav-dropbtn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 12px;
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.35);
        border: 1px solid rgba(56, 189, 248, 0.10);
    }

    .nav-links>li>a::after {
        content: none;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;

        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        transition: 180ms ease;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =========================
   HERO (BASE)
========================= */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/hero/heroimage.png") center / cover no-repeat;
    z-index: 0;
    filter: brightness(1.1) contrast(1.05);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.35), rgba(2, 6, 23, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 24px;
    gap: 12px;

    transform: translateY(-45px);
}

.hero-logo {
    width: 250px;
    max-width: 75vw;
    margin-bottom: -20px;
    animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
    0% {
        transform: translateY(0);
        filter: brightness(0.85) drop-shadow(0 0 14px rgba(14, 165, 233, 0.25));
        opacity: 0.85;
    }

    50% {
        transform: translateY(-12px) scale(1.03);
        filter: brightness(1.05) drop-shadow(0 0 34px rgba(83, 178, 223, 0.85));
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        filter: brightness(0.85) drop-shadow(0 0 14px rgba(14, 165, 233, 0.25));
        opacity: 0.85;
    }
}

.hero-title-img {
    width: 520px;
    max-width: 90vw;
    margin: 6px 0 2px;
    display: block;
    filter: drop-shadow(0 6px 10px rgba(2, 6, 23, 0.733));
    transition: transform 0.6s ease;
}

.hero-meta {
    margin-top: -4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hero-server {
    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #d1d5db;
    margin-top: -15px;
}

.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* Mobile hero */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding-top: 0;
    }

    .hero-content {
        transform: translateY(-24px);
        padding: 0 16px;
        gap: 10px;
    }

    .hero-logo {
        width: 200px;
        margin-bottom: -16px;
    }

    .hero-title-img {
        width: min(460px, 92vw);
    }

    .hero-server {
        font-size: 1.05rem;
        letter-spacing: 0.18em;
        margin-top: -12px;
    }

    .hero-buttons {
        margin-top: 18px;
    }

    .btn-image {
        width: min(450px, 92vw);
        height: 60px;
    }

    .btn-image .btn-label {
        font-size: 0.82rem;
        letter-spacing: 0.24rem;
    }

    .scroll-indicator {
        bottom: 18px;
    }
}

@media (max-width: 420px) {
    .hero-content {
        transform: translateY(-34px);
    }

    .hero-logo {
        width: 180px;
    }

    .btn-image {
        height: 56px;
    }

    .btn-image:hover {
        transform: scale(1.03);
    }
}

/* BUTTON */
.hero-buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.btn {
    position: relative;
    border: none;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-image {
    position: relative;

    width: 450px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: url("assets/hero/button.png") center / contain no-repeat;
    border-radius: 16px;

    font-family: "Saira", sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: #e5e7eb;
    text-decoration: none;

    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);

    transform: translateZ(0) scale(1);
    will-change: transform;
    transition:
        transform 650ms cubic-bezier(.16, 1, .3, 1);
}

.btn-image:hover::after {
    animation: perimeterRun 700ms cubic-bezier(.16, 1, .3, 1) forwards;
    opacity: 1;
}

.btn-image:hover {
    transform: scale(1.07);
}

.btn-image:active {
    transform: scale(0.975);
    transition-duration: 90ms;
    transition-timing-function: cubic-bezier(.2, .9, .2, 1);
}

.btn-image:active::before {
    opacity: 0.22;
    transition-duration: 90ms;
}

.btn-image:focus-visible {
    outline: none;
}

.btn-image {
    position: relative;
}

.btn-image .btn-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-family: "Saira", sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.32rem;
    text-transform: uppercase;

    color: rgb(229, 231, 235, 0.88);
    text-shadow:
        0 1px 0 rgba(2, 6, 23, 0.9),
        0 -1px 0 rgba(255, 255, 255, 0.16);

    filter: saturate(0.9) contrast(1.1);
    pointer-events: none;
    user-select: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .rune-glow {
        animation: none;
        opacity: 0.25;
    }
}

@media (max-width: 768px) {
    .hero-runes {
        display: none;
    }
}

/* ---------- CHEVRON ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 29px;
    left: 50%;
    transform: translateX(-51%);
    cursor: pointer;
    z-index: 2;
}

.chevron {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: bounceArrow 1.1s ease-out infinite;
    filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.5));
}

/* Chevron bounce animation */
@keyframes bounceArrow {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(0);
    }

    55% {
        transform: translateY(6px);
    }

    70% {
        transform: translateY(2px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================================
   ABOUT
========================================================= */

:root {
    --blue: 80, 167, 221;
    --ui-pad: 18px;
}

.legacy {
    position: relative;
    padding: 110px 10%;
    background: transparent;
    overflow: visible;

    --about-title: "Saira", sans-serif;
    --about-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    --outline: rgba(var(--blue), 0.18);
    --outline-strong: rgba(var(--blue), 0.28);
    --glow: rgba(var(--blue), 0.14);
}

.legacy::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(1000px 460px at 50% -12%,
            rgba(var(--blue), 0.10),
            transparent 70%),
        radial-gradient(900px 520px at 50% 120%,
            rgba(0, 0, 0, 0.32),
            transparent 65%),
        linear-gradient(180deg,
            rgba(2, 6, 23, 0.10),
            rgba(2, 6, 23, 0.02));
}

.legacy>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   TITLE
========================================================= */
.legacy .about-section-title {
    position: relative;
    text-align: center;
    margin: 0 0 44px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.70);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.legacy .about-section-title::after {
    content: "";
    display: block;
    margin: 18px auto 0;

    width: min(1120px, 100%);
    height: 1px;

    background: linear-gradient(90deg,
            rgba(var(--blue), 0.00) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0.00) 100%);
}

/* =========================================================
   LAYOUT
========================================================= */
.legacy .about-ref {
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 38px;
    align-items: stretch;
}

.legacy .about-ref-text {
    max-width: 60ch;
    margin: 0 0 32px;

    font-family: var(--about-body);
    font-size: 1.02rem;
    line-height: 1.85;

    color: rgba(226, 235, 248, 0.84);
}

.legacy .about-ref-text p {
    margin: 0 0 25px;
}

.legacy .about-ref-text p:last-child {
    margin-bottom: 0;
}

.legacy .about-ref-text .kw {
    color: rgba(var(--blue), 0.98);
    font-weight: 650;
    text-shadow: 0 0 16px rgba(var(--blue), 0.10);
}

/* =========================================================
   PILLS
========================================================= */
.legacy .about-ref-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 40px;
}

.legacy .about-ref-pill {
    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px var(--ui-pad);
    border-radius: 999px;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.92);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 0 6px rgba(var(--blue), 0.08);

    background:
        linear-gradient(to bottom,
            rgba(14, 24, 44, 0.78),
            rgba(2, 6, 23, 0.62));

    border: 1px solid rgba(var(--blue), 0.14);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -8px 18px rgba(0, 0, 0, 0.35);

    transition:
        color 0.3s ease,
        text-shadow 0.4s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

.legacy .about-ref-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.20),
            rgba(var(--blue), 0.08),
            rgba(var(--blue), 0.00));

    opacity: 0.9;
    transition: opacity 0.35s ease;
}

/* =========================================================
   CARDS
========================================================= */
.legacy .about-ref-right {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.legacy .about-ref-card {
    position: relative;
    overflow: hidden;

    border-radius: 16px;
    padding: var(--ui-pad);
    min-height: 170px;

    background: rgba(2, 6, 23, 0.40);
    border: 1px solid rgba(var(--blue), 0.16);

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    transition:
        border-color 0.35s ease,
        box-shadow 0.45s ease;
}

.legacy .about-ref-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.24),
            rgba(var(--blue), 0.09),
            rgba(var(--blue), 0.00));

    opacity: 0.9;
    transition: opacity 0.4s ease;
}

.legacy .about-ref-card>* {
    position: relative;
    z-index: 1;
}

.legacy .about-ref-icon {
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    transform: translateY(1px);
}

.legacy .about-ref-icon img {
    width: 52px;
    height: 52px;
    opacity: 0.95;

    filter:
        drop-shadow(0 0 14px rgba(var(--blue), 0.12)) drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));

    transition: filter 0.4s ease;
}

/* Card label */
.legacy .about-ref-card h3 {
    margin: 0 0 8px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: 0.90rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(var(--blue), 0.70);

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}

/* Card value */
.legacy .about-ref-card p {
    margin: 0;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 1.06rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.92);
    text-shadow: 0 0 10px rgba(var(--blue), 0.08);

    transition: text-shadow 0.35s ease;
}

/* =========================================================
   HOVER (pointer devices only) — NO ambient halo, NO movement
========================================================= */
@media (hover: hover) and (pointer: fine) {
    .legacy .about-ref-pill:hover {
        color: rgba(var(--blue), 1);
        border-color: rgba(var(--blue), 0.34);

        text-shadow:
            0 1px 0 rgba(0, 0, 0, 0.65),
            0 0 14px rgba(var(--blue), 0.35);

        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            inset 0 -14px 30px rgba(0, 0, 0, 0.42);
    }

    .legacy .about-ref-pill:hover::after {
        opacity: 1;
    }

    .legacy .about-ref-card:hover {
        border-color: rgba(var(--blue), 0.32);

        box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .legacy .about-ref-card:hover::after {
        opacity: 1;
    }

    .legacy .about-ref-card:hover .about-ref-icon img {
        filter:
            drop-shadow(0 0 22px rgba(var(--blue), 0.24)) drop-shadow(0 12px 22px rgba(0, 0, 0, 0.38));
    }

    .legacy .about-ref-card:hover h3 {
        color: rgba(var(--blue), 0.92);
        text-shadow: 0 0 14px rgba(var(--blue), 0.20);
    }

    .legacy .about-ref-card:hover p {
        text-shadow:
            0 0 18px rgba(var(--blue), 0.16),
            0 1px 0 rgba(0, 0, 0, 0.55);
    }
}

/* =========================================================
   ACCESSIBILITY
========================================================= */
.legacy :focus-visible {
    outline: 1px solid rgba(var(--blue), 0.45);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .legacy * {
        transition: none !important;
    }
}

/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 901px) {

    .legacy .about-ref {
        align-items: start;
    }

    .legacy .about-ref-right {
        align-content: start;
        grid-auto-rows: auto;
    }

    .legacy .about-ref-card {
        height: auto;
        min-height: 173px;
    }
}

/* =========================================================
   MOBILE SAFETY
========================================================= */
@media (max-width: 900px) {
    .legacy {
        padding: 92px 7%;
    }

    .legacy .about-ref {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .legacy .about-ref-pills,
    .legacy .about-ref-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 520px) {

    .legacy .about-ref-pills,
    .legacy .about-ref-right {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CE SECTION
========================================================= */

.ce-section {
    position: relative;
    padding: 85px 10% 110px;
    background: transparent;
    overflow: hidden;

    --blue: 80, 167, 221;

    --ce-title: "Cinzel", serif;
    --ce-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --ce-ui: "Saira", sans-serif;
}

.ce-section>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   CONTAINER + TITLE
========================================================= */

.ce-gallery {
    max-width: 1120px;
    margin: 0 auto;
}

.ce-gallery-head {
    display: grid;
    justify-items: center;
    margin: 0;
    position: relative;
}

.ce-gallery-head h3 {
    position: relative;
    text-align: center;
    margin: 0 0 44px;

    font-family: var(--ce-title);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.70);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.ce-gallery-head h3::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    height: 1px;

    width: min(1120px, calc(100vw - 20%));

    position: relative;
    left: 50%;
    transform: translateX(-50%);

    background: linear-gradient(90deg,
            rgba(var(--blue), 0.00) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0.00) 100%);
}

.ce-section {
    scroll-margin-top: 25px;
}

/* =========================================================
   SLIDES
========================================================= */

.ce-item {
    position: absolute;
    top: 0;
    left: 50%;

    width: min(680px, 88vw);
    height: 100%;

    transform:
        translateX(calc(-50% + var(--x, 0px))) scale(var(--s, 1)) rotateY(var(--ry, 0deg));

    opacity: var(--o, 1);
    z-index: var(--z, 1);

    padding: 0;
    border-radius: 22px;
    overflow: hidden;

    background: rgba(2, 6, 23, 0.22);
    border: 1px solid rgba(var(--blue), 0.10);
    border-top-color: transparent;

    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);

    cursor: pointer;
    text-align: left;

    transition:
        transform 420ms cubic-bezier(.2, .9, .2, 1),
        opacity 320ms ease,
        filter 320ms ease,
        box-shadow 260ms ease,
        border-color 260ms ease;
}

.ce-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transform: scale(1.02);
    transition: transform 320ms ease, filter 320ms ease;
}

.ce-cap {
    display: none;
}

.ce-item:not(.is-active) {
    border-color: rgba(var(--blue), 0.10);
    box-shadow: 0 22px 46px rgba(0, 0, 0, 0.26);
}

.ce-item:not(.is-active) img {
    filter:
        saturate(0.86) brightness(0.93) contrast(1.02) hue-rotate(-4deg);
}

.ce-item.is-active img {
    filter: saturate(1.06) contrast(1.04);
}

.ce-item:not(.is-active):hover {
    border-color: rgba(var(--blue), 0.10);
    filter: none;
}

/* =========================================================
   ACTIVE / HOVER / ACCESSIBILITY
========================================================= */

.ce-item.is-active {
    border-color: rgba(var(--blue), 0.22);
    box-shadow:
        0 34px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ce-item.is-active img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.04);
}

.ce-item:hover {
    border-color: rgba(var(--blue), 0.10);
    filter: none;
}

@media (hover: hover) and (pointer: fine) {
    .ce-item.is-active:hover {
        border-color: rgba(var(--blue), 0.32);
        box-shadow:
            0 34px 90px rgba(0, 0, 0, 0.48),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }
}

.ce-item.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.ce-item:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(var(--blue), 0.22),
        0 26px 60px rgba(0, 0, 0, 0.34);
}

.ce-item.is-hidden {
    pointer-events: none;
    opacity: 0;
}

.ce-item:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(var(--blue), 0.22),
        0 26px 60px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   CONTROLS 
========================================================= */

.ce-rail {
    position: relative;
    height: clamp(240px, 34vw, 340px);
    margin: 0 auto;

    perspective: 1000px;
    overflow: visible;
    outline: none;

    isolation: isolate;
}

.ce-gallery-controls {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 clamp(10px, 2vw, 34px);

    pointer-events: none;
    z-index: 9999;

    transform: translateZ(120px);
}

.ce-gallery-controls .ce-nav {
    pointer-events: auto;
}

.ce-nav {
    position: relative;
}

/* arrows */
.ce-nav {
    width: 42px;
    height: 42px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    background: linear-gradient(to bottom,
            rgba(14, 24, 44, 0.78),
            rgba(2, 6, 23, 0.62));

    border: 1px solid rgba(var(--blue), 0.14);
    color: rgba(245, 250, 255, 0.92);
    cursor: pointer;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -8px 18px rgba(0, 0, 0, 0.35);

    transition:
        color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

/* blue wash overlay */
.ce-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.20),
            rgba(var(--blue), 0.08),
            rgba(var(--blue), 0.00));

    opacity: 0.9;
    transition: opacity 0.35s ease;
}

.ce-nav svg {
    width: 20px;
    height: 20px;
    position: relative;
    z-index: 1;
}

/* hover */
@media (hover: hover) and (pointer: fine) {
    .ce-nav:hover {
        color: rgba(var(--blue), 1);
        border-color: rgba(var(--blue), 0.34);
        box-shadow:
            0 10px 26px rgba(0, 0, 0, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.06),
            inset 0 -14px 30px rgba(0, 0, 0, 0.42);
    }

    .ce-nav:hover::after {
        opacity: 1;
    }
}

.ce-nav:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(var(--blue), 0.22),
        0 10px 26px rgba(0, 0, 0, 0.45);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {
    .ce-rail {
        height: 260px;
        perspective: 800px;
    }

    .ce-item {
        width: 92vw;
        border-radius: 20px;
    }

    .ce-mid-caption {
        width: 92vw;
        font-size: 0.78rem;
        letter-spacing: 0.16em;
        min-height: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .ce-item,
    .ce-item img,
    .ce-nav {
        transition: none !important;
    }
}

/* =========================================================
   CE LIGHTBOX
========================================================= */

.ce-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    place-items: center;
    padding: 18px;
}

.ce-lightbox.is-open {
    display: grid;
}

.ce-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.78);
    backdrop-filter: blur(6px);
}

.ce-lightbox-panel {
    position: relative;
    z-index: 1;

    width: fit-content;
    height: fit-content;

    max-width: min(1100px, 92vw);
    max-height: 86vh;

    border-radius: 20px;
    overflow: hidden;
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(var(--blue), 0.16);

    display: grid;
    place-items: center;

    box-shadow:
        0 40px 120px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(var(--blue), 0.08);
}

.ce-lightbox-img {
    display: block;
    width: auto;
    height: auto;

    max-width: min(1100px, 92vw);
    max-height: 86vh;

    object-fit: contain;
    background: rgba(2, 6, 23, 0.55);
}

.ce-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    width: 42px;
    height: 42px;
    border-radius: 999px;

    display: grid;
    place-items: center;

    background: rgba(11, 18, 32, 0.55);
    border: 1px solid rgba(var(--blue), 0.20);
    color: rgba(232, 240, 255, 0.92);

    cursor: pointer;

    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.ce-lightbox-close svg {
    width: 20px;
    height: 20px;
}

.ce-lightbox-close:hover {
    border-color: rgba(var(--blue), 0.34);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.26),
        0 0 0 1px rgba(var(--blue), 0.10),
        0 0 18px rgba(var(--blue), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.ce-lightbox-close:active {
    transform: translateY(0);
}

.ce-lightbox-close:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(var(--blue), 0.22),
        0 10px 24px rgba(0, 0, 0, 0.24);
}

@media (prefers-reduced-motion: reduce) {
    .ce-lightbox-close {
        transition: none !important;
    }
}

/* =========================================================
   RAIDING
========================================================= */
.legacy::before,
.raid::before {
    content: none !important;
}

.raid {
    position: relative;
    padding: 110px 10%;
    background: transparent;

    --blue: 80, 167, 221;
    --ui-pad: 18px;

    --outline: rgba(var(--blue), 0.18);
    --outline-strong: rgba(var(--blue), 0.28);
    margin-top: -1px;
    padding-top: calc(110px + 1px);
}

.raid::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(1000px 460px at 50% -12%,
            rgba(var(--blue), 0.10),
            transparent 70%),
        radial-gradient(900px 520px at 50% 120%,
            rgba(0, 0, 0, 0.32),
            transparent 65%),
        linear-gradient(180deg,
            rgba(2, 6, 23, 0.10),
            rgba(2, 6, 23, 0.02));
}

.raid>* {
    position: relative;
    z-index: 1;
}

.raid-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.raid b,
.raid strong {
    color: rgba(var(--blue), 0.92);
    font-weight: 600;
}

/* Title */
.raid-title {
    position: relative;
    text-align: center;
    margin: 0 0 44px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.70);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.raid-title::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    width: min(1120px, 100%);
    height: 1px;

    background: linear-gradient(90deg,
            rgba(var(--blue), 0.00) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0.00) 100%);
}

/* Pills */
.raid-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 26px auto 26px;
}

.raid-pill {
    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px var(--ui-pad);
    border-radius: 999px;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.92);

    background: linear-gradient(to bottom,
            rgba(14, 24, 44, 0.78),
            rgba(2, 6, 23, 0.62));

    border: 1px solid rgba(var(--blue), 0.14);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -8px 18px rgba(0, 0, 0, 0.35);
}

.raid-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(var(--blue), 0.20),
            rgba(var(--blue), 0.08),
            rgba(var(--blue), 0.00));
    opacity: 0.9;
}

.raid-grid {
    --raid-card-w: 548px;

    display: grid;
    gap: 18px;
    margin-top: 10px;
    align-items: start;

    grid-template-columns: repeat(auto-fit,
            minmax(min(100%, var(--raid-card-w)), var(--raid-card-w)));

    justify-content: center;
}

/* Cards */
.raid-card {
    position: relative;
    overflow: hidden;

    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(226, 235, 248, 0.84);

    height: auto;
    display: flex;
    flex-direction: column;

    border-radius: 16px;
    padding: var(--ui-pad);

    background: rgba(2, 6, 23, 0.40);
    border: 1px solid rgba(var(--blue), 0.16);

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.raid-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 56%;
    pointer-events: none;
    background: linear-gradient(to top,
            rgba(var(--blue), 0.20),
            rgba(var(--blue), 0.08),
            rgba(var(--blue), 0.00));
    opacity: 0.9;
}

.raid-card>* {
    position: relative;
    z-index: 1;
}

.raid-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.raid-card h3 {
    margin: 0 0 8px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    font-size: 0.90rem;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(var(--blue), 0.70);

    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}

.raid-badge {
    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.90);
    padding: 8px 10px;
    border-radius: 999px;

    border: 1px solid rgba(var(--blue), 0.14);
    background: rgba(2, 6, 23, 0.35);
}

/* =========================================================
   COLUMNS
========================================================= */
@media (min-width: 901px) {
    .raid-grid {
        grid-template-columns: repeat(2, var(--raid-card-w));
        grid-auto-flow: column;
        grid-template-rows: repeat(3, auto);
    }

    .raid-card[aria-label="Expectations overview"] {
        grid-row: span 2;
    }

    .raid-card[aria-label="Trials and bench policy"] {
        grid-row: span 1;
    }
}

/* Schedule rows */
.raid-schedule {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.raid-schedule-row {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 10px;
    align-items: center;

    padding: 10px 12px;
    border-radius: 999px;

    border: 1px solid rgba(var(--blue), 0.14);
    background: rgba(2, 6, 23, 0.28);
}

.raid-schedule-row .d {
    font-family: "Saira", sans-serif;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: rgba(245, 250, 255, 0.92);
    padding-left: 5px;
}

.raid .raid-schedule-row .d,
.raid .raid-schedule-row .t {
    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 0 6px rgba(var(--blue), 0.08);

    transition:
        color 0.3s ease,
        text-shadow 0.4s ease;
}

.raid-schedule-row .t {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: rgba(245, 250, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: right;
    padding-right: 10px;
}

/* Body list text */
.raid-list {
    margin: 0;
    padding-left: 18px;

    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: inherit;
    font-size: inherit;

}

.raid-list li+li {
    margin-top: 0px;
}

/* Trials */
.raid-card[aria-label="Trials and bench policy"] .raid-list {
    padding-top: 8px;
}

.raid-card[aria-label="Loot system"] .raid-list li {
    line-height: 2.12;
}

.raid-card[aria-label="Trials and bench policy"] .raid-list li::marker {
    color: rgba(var(--blue), 0.9);
}

.raid-card[aria-label="Expectations overview"] .raid-list li+li {
    margin-top: 17px;
}

.raid-card[aria-label="Loot system"] .raid-list,
.raid-card[aria-label="Expectations overview"] .raid-list {
    list-style: none;
    padding-left: 0;
}

.raid-card[aria-label="Loot system"] .raid-list li,
.raid-card[aria-label="Expectations overview"] .raid-list li {
    padding-left: 0;
}

/* Mini text */
.raid-mini p {
    margin: 0 0 10px;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: inherit;
    color: inherit;
    font-size: inherit;
}

.raid-mini p:last-child {
    margin-bottom: 0;
}

/* Note */
.raid-note {
    margin: 10px 0 0;
    padding: 12px 12px;

    border-radius: 14px;
    border: 1px solid rgba(var(--blue), 0.14);
    background: rgba(var(--blue), 0.06);

    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: rgba(245, 250, 255, 0.86);
    line-height: 1.65;
}

/* Addon pills */
.raid-addon-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.raid-addon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 12px;
    border-radius: 999px;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.88);

    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(var(--blue), 0.14);
}

/* Details */
.raid-details {
    margin-top: 12px;
    border-radius: 14px;
    border: 1px solid rgba(var(--blue), 0.14);
    background: rgba(2, 6, 23, 0.26);
    overflow: hidden;
}

.raid-details summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 12px;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.88);

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.raid-details summary::-webkit-details-marker {
    display: none;
}

.raid-details summary::after {
    content: "＋";
    color: rgba(var(--blue), 0.90);
    font-size: 0.95rem;
    line-height: 1;
}

.raid-details[open] summary::after {
    content: "−";
}

.raid-details-body {
    padding: 0 12px 12px;
}

/* Actions */
.raid-actions {
    margin-top: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.raid-actions p {
    margin: 0;
    font-family: "Cinzel", serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.92rem;
    color: rgba(245, 250, 255, 0.88);
}

/* =========================================================
   CARD ANIMATIONS
========================================================= */

.raid .raid-card {
    transition:
        border-color 0.35s ease,
        box-shadow 0.45s ease;
}

.raid .raid-card::after {
    transition: opacity 0.4s ease;
}

.raid .raid-card h3 {
    transition:
        color 0.35s ease,
        text-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .raid .raid-card:hover {
        border-color: rgba(var(--blue), 0.32);

        box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .raid .raid-card:hover::after {
        opacity: 1;
    }

    .raid .raid-card:hover h3 {
        color: rgba(var(--blue), 0.92);
        text-shadow: 0 0 14px rgba(var(--blue), 0.20);
    }

    .raid .raid-card:hover p {
        text-shadow:
            0 0 18px rgba(var(--blue), 0.16),
            0 1px 0 rgba(0, 0, 0, 0.55);
        transition: text-shadow 0.35s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    .raid * {
        transition: none !important;
    }
}

/* =========================================================
   ADDON PILL HOVER
========================================================= */

.raid .raid-addon-pill {
    transition:
        color 0.3s ease,
        text-shadow 0.4s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .raid .raid-addon-pill:hover {
        color: rgba(var(--blue), 1);
        border-color: rgba(var(--blue), 0.34);

        text-shadow:
            0 1px 0 rgba(0, 0, 0, 0.65),
            0 0 14px rgba(var(--blue), 0.35);
    }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .raid .raid-addon-pill {
        transition: none !important;
    }
}

/* =========================================================
   SCHEDULE PILL HOVER
========================================================= */

.raid .raid-schedule-row {
    transition:
        color 0.3s ease,
        text-shadow 0.4s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .raid .raid-schedule-row:hover {
        border-color: rgba(var(--blue), 0.34);
    }

    .raid .raid-schedule-row:hover .d,
    .raid .raid-schedule-row:hover .t {
        color: rgba(var(--blue), 1);

        text-shadow:
            0 1px 0 rgba(0, 0, 0, 0.65),
            0 0 14px rgba(var(--blue), 0.35);
    }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .raid .raid-schedule-row {
        transition: none !important;
    }
}

/* Responsive */
@media (max-width: 900px) {
    .raid {
        padding: 92px 7%;
    }

    .raid-pills {
        grid-template-columns: 1fr 1fr;
    }

    .raid-grid {
        grid-template-columns: 1fr;
        grid-auto-flow: row;
    }
}

@media (max-width: 520px) {
    .raid-pills {
        grid-template-columns: 1fr;
    }

    .raid-addon-pills {
        grid-template-columns: 1fr;
    }
}

/* =========================
   LEADERSHIP 
========================= */

.leadership-section {
    padding: 110px 10% 90px;
    position: relative;
    background: transparent;

    --title-font: "Cinzel", serif;
    --lead-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    --lead-accent: "Saira", sans-serif;

    --gap: 18px;
    --ui-pad: 18px;
}

/* =========================
   TITLE
========================= */

.leadership-section h2 {
    margin: 0 0 44px;
    text-align: center;

    font-family: var(--title-font);
    font-weight: 500;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);
    letter-spacing: 0.22em;
    text-transform: uppercase;

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.7);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.leadership-section h2::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    width: min(1120px, 100%);
    height: 1px;

    background: linear-gradient(90deg,
            rgba(var(--blue), 0) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0) 100%);
}

/* =========================
   GRID
========================= */

.leadership-section .leader-grid {
    max-width: 1120px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
}

.leadership-section .leader-card {
    grid-column: span 2;
}

/* Top row centered: 2 cards */
.leadership-section .leader-card:nth-child(1) {
    grid-column: 2 / span 2;
}

.leadership-section .leader-card:nth-child(2) {
    grid-column: 4 / span 2;
}

/* =========================
   CARD
========================= */

.leadership-section .leader-card {
    position: relative;
    overflow: hidden;

    padding: calc(var(--ui-pad) + 6px);
    border-radius: 16px;

    background: rgba(2, 6, 23, 0.4);
    border: 1px solid rgba(var(--blue), 0.16);

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);

    display: flex;
    flex-direction: column;
    text-align: center;
}

.leadership-section .leader-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62%;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.24),
            rgba(var(--blue), 0.09),
            rgba(var(--blue), 0));

    opacity: 0.9;
}

.leadership-section .leader-card>* {
    position: relative;
    z-index: 1;
}

/* =========================
   SUMMARY
========================= */

.leadership-section .leader-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 6px;
}

.leadership-section .leader-toggle {
    display: none;
}

/* =========================
   CROWN 
========================= */

.leadership-section .crown-icon {
    width: 18px;
    height: 18px;
    display: inline-block;

    transition: transform 0.25s ease;

    filter:
        drop-shadow(0 0 8px rgba(var(--blue), 0.14)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}

.leadership-section .crown-icon--top {
    margin: 0 0 10px;
    transform: none;
}

/* =========================
   AVATAR
========================= */

.leadership-section .avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 12px;

    border-radius: 50%;
    overflow: hidden;

    background: #020617;

    border: 2px solid rgba(var(--blue), 0.32);
    box-shadow: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.35s ease;
}

.leadership-section .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    display: block;
    transform-origin: 50% 50%;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);

    transition: transform 0.35s ease;
}

/* =========================
   NAME
========================= */

.leadership-section .leader-card h4 {
    margin: 4px 0 2px;

    font-family: var(--lead-accent);
    font-weight: 500;
    font-size: 1.06rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.92);
    text-shadow: 0 0 10px rgba(var(--blue), 0.08);
}

/* =========================
   ROLE
========================= */

.leadership-section .leader-card span {
    margin: 0 0 8px;

    font-family: var(--title-font);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(var(--blue), 0.7);
}

/* =========================
   BIO 
========================= */

.leadership-section .leader-details {
    padding-top: 6px;
    background: transparent;
}

.leadership-section .leader-bio {
    margin: 0;

    font-family: var(--lead-body);
    font-size: 0.98rem;
    line-height: 1.75;

    color: rgba(226, 235, 248, 0.84);
}

/* =========================
   HOVER 
========================= */

@media (hover: hover) and (pointer: fine) {
    .leadership-section .leader-card:hover {
        border-color: rgba(var(--blue), 0.32);
        box-shadow:
            0 18px 46px rgba(0, 0, 0, 0.42),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .leadership-section .leader-card:hover::after {
        opacity: 1;
    }

    .leadership-section .leader-card:hover .avatar {
        border-width: 2px;
        border-color: rgba(var(--blue), 0.40);
        box-shadow: none;
    }

    .leadership-section .leader-card:hover .crown-icon {
        transform: scale(1.12);
    }
}

@media (hover: hover) and (pointer: fine) {
    .leadership-section .leader-card:hover .avatar img {
        transform: translateZ(0) scale(1.06);
    }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .leadership-section .avatar {
        transition: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leadership-section .avatar img {
        transition: none !important;
        transform: none !important;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .leadership-section {
        padding: 92px 7%;
    }

    .leadership-section .leader-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .leadership-section .leader-card,
    .leadership-section .leader-card:nth-child(1),
    .leadership-section .leader-card:nth-child(2) {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .leadership-section .leader-grid {
        grid-template-columns: 1fr;
    }

    .leadership-section .leader-card,
    .leadership-section .leader-card:nth-child(1),
    .leadership-section .leader-card:nth-child(2) {
        grid-column: auto;
    }
}

/* =========================================================
   APPLICATION
========================================================= */

.apply-page {
    position: relative;
    padding: 110px 10%;
    background: transparent;

    --blue: 80, 167, 221;
    --ui-pad: 18px;

    --body-color: rgba(226, 235, 248, 0.84);

    --hdr-size: 1.02rem;
    --hdr-line: 1.85;
}

.apply-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(1000px 460px at 50% -12%,
            rgba(var(--blue), 0.10),
            transparent 70%),
        radial-gradient(900px 520px at 50% 120%,
            rgba(0, 0, 0, 0.32),
            transparent 65%),
        linear-gradient(180deg,
            rgba(2, 6, 23, 0.10),
            rgba(2, 6, 23, 0.02));
}

.apply-page>* {
    position: relative;
    z-index: 1;
}

.apply-wrap {
    position: relative;
    overflow: hidden;

    max-width: 900px;
    margin: 0 auto;

    border-radius: 16px;
    padding: var(--ui-pad);

    background: rgba(2, 6, 23, 0.40);
    border: 1px solid rgba(var(--blue), 0.16);

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.apply-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 22%;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.14),
            rgba(var(--blue), 0.06),
            rgba(var(--blue), 0.00));

    opacity: 0.85;
}

.apply-wrap>* {
    position: relative;
    z-index: 1;
}

/* =========================================================
   SECTION TITLE
========================================================= */

.apply-section-title {
    position: relative;
    text-align: center;
    margin: 0 auto 44px;
    max-width: 900px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: clamp(1.8rem, 2.5vw, 2.25rem);

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.70);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.apply-section-title::after {
    content: "";
    display: block;
    margin: 18px auto 0;
    width: 100%;
    height: 1px;

    background: linear-gradient(90deg,
            rgba(var(--blue), 0.00) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0.00) 100%);
}

/* =========================================================
   FORM BASE
========================================================= */

.apply-form {
    display: grid;
    gap: 18px;

    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--body-color);
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* =========================================================
   LABELS / LEGENDS
========================================================= */

.apply-field {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.apply-label,
.apply-field>span,
.apply-legend {
    display: block;
    margin: 0;

    font-family: inherit;
    font-weight: 500;
    font-size: var(--hdr-size);
    line-height: var(--hdr-line);

    color: var(--body-color);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* =========================================================
   INPUTS
========================================================= */

.apply-field input,
.apply-field textarea,
.apply-field select {
    width: 100%;
    min-width: 0;

    background: rgba(2, 6, 23, 0.28);
    border: 1px solid rgba(var(--blue), 0.14);
    border-radius: 14px;

    padding: 12px 14px;

    color: rgba(80, 167, 221, 0.92);
    font: inherit;
    line-height: 1.6;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.4s ease,
        color 0.3s ease,
        text-shadow 0.4s ease;
}

.apply-field textarea {
    resize: vertical;
    min-height: 140px;
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
    color: rgba(245, 250, 255, 0.46);
}

.apply-field--full {
    grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {

    .apply-field input:hover,
    .apply-field textarea:hover,
    .apply-field select:hover {
        border-color: rgba(var(--blue), 0.34);
    }
}

.apply-field input:focus,
.apply-field textarea:focus,
.apply-field select:focus {
    border-color: rgba(var(--blue), 0.34);
    box-shadow: none;
    text-shadow: none;
}

/* =========================================================
   FIELDSETS / BOXES
========================================================= */

.apply-fieldset {
    grid-column: 1 / -1;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;

    display: grid;
    gap: 10px;
}

.apply-box {
    border: 1px solid rgba(var(--blue), 0.14);
    border-radius: 16px;
    padding: var(--ui-pad);
    background: rgba(2, 6, 23, 0.35);

    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    display: grid;
    gap: 12px;

    transition:
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .apply-box:hover {
        border-color: rgba(var(--blue), 0.34);
    }
}

/* =========================================================
   CHECKBOXES / RADIOS
========================================================= */

.apply-checkgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.apply-checkrow,
.apply-radiorow {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.apply-check,
.apply-radio {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;

    font-family: inherit;
    font-size: 1.02rem;
    line-height: 1.85;
    color: rgba(245, 250, 255, 0.92);

    transition: color 0.2s ease, text-shadow 0.3s ease;
}

.apply-check input,
.apply-radio input {
    width: 16px;
    height: 16px;
    accent-color: rgba(var(--blue), 1);
}

.apply-check:has(input:checked),
.apply-radio:has(input:checked) {
    color: rgba(var(--blue), 1);
    text-shadow: 0 0 12px rgba(var(--blue), 0.30);
}

/* =========================================================
   SUBMIT
========================================================= */

.apply-actions {
    display: flex;
    justify-content: center;
}

.apply-submit {
    position: relative;
    overflow: hidden;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px var(--ui-pad);
    border-radius: 999px;

    font-family: "Saira", sans-serif;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;

    color: rgba(245, 250, 255, 0.92);

    background: linear-gradient(to bottom,
            rgba(14, 24, 44, 0.78),
            rgba(2, 6, 23, 0.62));

    border: 1px solid rgba(var(--blue), 0.14);

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -8px 18px rgba(0, 0, 0, 0.35);

    cursor: pointer;

    transition:
        color 0.3s ease,
        text-shadow 0.4s ease,
        border-color 0.3s ease,
        box-shadow 0.4s ease;
}

.apply-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background: linear-gradient(to top,
            rgba(var(--blue), 0.20),
            rgba(var(--blue), 0.08),
            rgba(var(--blue), 0.00));

    opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
    .apply-submit:hover {
        color: rgba(var(--blue), 1);
        border-color: rgba(var(--blue), 0.34);

        text-shadow:
            0 1px 0 rgba(0, 0, 0, 0.65),
            0 0 14px rgba(var(--blue), 0.35);
    }
}

.apply-submit:active {
    border-color: rgba(var(--blue), 0.34);
}

.apply-submit:focus-visible {
    outline: none;
    border-color: rgba(var(--blue), 0.34);
    text-shadow: none;
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .apply-page * {
        transition: none !important;
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {
    .apply-page {
        padding: 92px 7%;
    }
}

@media (max-width: 768px) {
    .apply-wrap {
        padding: 16px;
    }

    .apply-grid {
        grid-template-columns: 1fr;
    }

    .apply-checkgrid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   THANK YOU PAGE
========================= */
.apply-thanks .apply-thanks-title {
    position: relative;
    text-align: center;
    margin: 0 0 44px;

    font-family: "Cinzel", serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);

    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--blue), 0.70);

    text-shadow:
        0 1px 0 rgba(0, 0, 0, 0.65),
        0 0 8px rgba(var(--blue), 0.08);
}

.apply-thanks .apply-thanks-title::after {
    content: "";
    display: block;
    margin: 18px auto 0;

    width: min(1120px, 100%);
    height: 1px;

    background: linear-gradient(90deg,
            rgba(var(--blue), 0.00) 0%,
            rgba(var(--blue), 0.18) 14%,
            rgba(var(--blue), 0.18) 86%,
            rgba(var(--blue), 0.00) 100%);
}

.apply-thanks {
    min-height: calc(100vh - 220px);
    padding-bottom: 90px;
}

.apply-page.apply-thanks {
    padding: 140px 30% 90px;
}

.apply-wrap--thanks {
    max-width: 860px;
}

.apply-thanks-lead {
    margin-top: 14px;
    line-height: 1.65;
    color: rgba(229, 231, 235, 0.78);
    text-align: center;
}

.apply-thanks-actions {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;

    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 600;

    border: 1px solid rgba(80, 167, 221, 0.28);
    color: rgba(229, 231, 235, 0.86);
    background: rgba(2, 6, 23, 0.35);

    transition: transform 0.18s ease, border-color 0.18s ease;
}

.apply-btn--primary {
    border-color: rgba(80, 167, 221, 0.45);
    background: rgba(80, 167, 221, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .apply-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(80, 167, 221, 0.55);
    }
}

.apply-thanks-note {
    margin-top: 18px;
    line-height: 1.65;
    color: rgba(229, 231, 235, 0.7);
}

/* =========================================================
   THANK YOU 
========================================================= */

.apply-page.apply-thanks .apply-wrap.apply-wrap--thanks {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

.apply-page.apply-thanks .apply-wrap.apply-wrap--thanks::after {
    content: none;
    display: none;
}

/* =========================
   FOOTER STAGE + THUMBS UP
========================= */

.footer-stage {
    position: relative;
}

.footer-stage .footer.footer--ref {
    position: relative;
    z-index: 2;
}

.footer-stage .thumbsup-pop {
    position: absolute;
    left: 50%;
    bottom: 91%;
    transform: translate(-50%, -12%);
    width: clamp(120px, 16vw, 190px);

    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;

    z-index: 1;
    pointer-events: auto;

    opacity: 0;
    transition: opacity 900ms ease;
    will-change: opacity;
}

.footer-stage .thumbsup-pop img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

/* Visible */
.footer-stage .thumbsup-pop.is-up {
    opacity: 1;
}

/* Vanish */
.footer-stage .thumbsup-pop.is-dipping {
    opacity: 0;
    transition-duration: 140ms;
}

@media (max-width: 768px) {
    .footer-stage .thumbsup-pop {
        width: 120px;
    }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

    .apply-page.apply-thanks {
        padding-left: 7% !important;
        padding-right: 7% !important;
    }

    .apply-thanks .apply-thanks-title {
        text-align: center;
        margin-bottom: 44px;
        font-size: clamp(1.55rem, 6vw, 2.05rem);
    }

    .apply-wrap--thanks {
        max-width: 100%;
    }

    .footer-stage .thumbsup-pop {
        width: 120px;
        bottom: 100%;
        transform: translate(-50%);
    }
}

/* =========================
   FOOTER 
========================= */

.footer.footer--ref {
    position: relative;
    z-index: 1;
    overflow: hidden;

    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

    background: transparent;
    border-top: 1px solid rgba(56, 189, 248, 0.15);

    color: rgba(229, 231, 235, 0.72);
    padding: 64px 0 40px;
}

.footer--ref .footer-inner {
    width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}

@media (max-width: 900px) {
    .footer--ref .footer-inner {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .footer--ref .footer-inner {
        padding: 0 14px;
    }
}

/* =========================
   TOP LAYOUT
========================= */

.footer--ref .footer-top {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

/* =========================
   3-COLUMN GRID (Discord / Menu / Links)
========================= */

.footer--ref .footer-right {
    min-width: 0;

    display: grid;
    grid-template-columns: minmax(0, 0.7fr) minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: start;

    justify-items: start;
}

/* Column common */
.footer--ref .footer-col {
    min-width: 0;
}

/* =========================
   HEADERS
========================= */

.footer--ref .footer-heading {
    margin: 0;
    padding: 0;
    margin-top: 12px;

    font-family: "Saira", sans-serif;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;

    font-size: 0.95rem;
    line-height: 1.2;

    color: rgba(229, 231, 235, 0.86);
}

.footer--ref .footer-rule {
    display: none !important;
}

/* =========================
   LISTS
========================= */

.footer--ref .footer-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;

    display: grid;
    gap: 0;
}

.footer--ref .footer-link,
.footer--ref .footer-handle {
    display: inline-block;
    font-size: 0.96rem;
    letter-spacing: 0.01em;
    line-height: 1.6;

    color: rgba(229, 231, 235, 0.58);
    text-decoration: none;

    transition: color 0.18s ease, transform 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {

    .footer--ref .footer-link:hover,
    .footer--ref .footer-handle:hover {
        color: rgba(56, 189, 248, 0.92);
        transform: translateX(2px);
    }
}

/* Menu: 3 rows per column */
.footer--ref .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    column-gap: 12px;
    row-gap: 0;
}

/* =========================
   LINKS ICON ROW
========================= */

.footer--ref .footer-icons--row {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: nowrap;
}

/* =========================
   ICONS
========================= */

.footer--ref .footer-icon-link {
    position: relative;
    width: 48px;
    height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;

    transform: translateZ(0);
    transition: transform 0.2s ease;
}

.footer--ref .footer-icon-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;

    opacity: 0;
    background: rgba(56, 189, 248, 0.10);
    transition: opacity 0.18s ease;
}

/* Stack both images */
.footer--ref .footer-icon-link img {
    position: absolute;
    width: 26px;
    height: 26px;
    object-fit: contain;

    opacity: 0;
    transform: translateZ(0);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Default state */
.footer--ref .footer-icon-link .icon-grey {
    opacity: 0.58;
}

/* Hover state */
@media (hover: hover) and (pointer: fine) {
    .footer--ref .footer-icon-link:hover {
        transform: translateY(-2px);
    }

    .footer--ref .footer-icon-link:hover::before {
        opacity: 1;
    }

    .footer--ref .footer-icon-link:hover .icon-grey {
        opacity: 0;
    }

    .footer--ref .footer-icon-link:hover .icon-blue {
        opacity: 1;
        transform: scale(1.05);
    }
}

.footer--ref .footer-icon-link:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.22);
}

.footer--ref .footer-icon-link:focus-visible::before {
    opacity: 1;
}

.footer--ref .footer-icon-link:focus-visible .icon-grey {
    opacity: 0;
}

.footer--ref .footer-icon-link:focus-visible .icon-blue {
    opacity: 1;
    transform: scale(1.05);
}

/* Tooltip */
.footer--ref .footer-icon-link::after {
    content: attr(aria-label);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%);

    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;

    color: rgba(56, 189, 248, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer--ref .footer-icon-link:hover::after,
.footer--ref .footer-icon-link:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(2px);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .footer.footer--ref {
        padding: 46px 0 34px;
    }

    .footer--ref .footer-top {
        justify-content: flex-start;
    }

    /* Stack columns */
    .footer--ref .footer-right {
        grid-template-columns: 1fr;
        gap: 22px;
        justify-items: start;
    }

    /* HIDE MENU ON MOBILE */
    .footer--ref .footer-right>.footer-col:nth-child(2) {
        display: none;
    }

    .footer--ref .footer-list {
        display: grid;
        grid-template-columns: repeat(3, max-content);
        grid-auto-flow: row;
        column-gap: 1.2ch;
        row-gap: 0.4em;
        align-items: start;
    }

    /* Text safety */
    .footer--ref .footer-link,
    .footer--ref .footer-handle {
        white-space: nowrap;
    }

    /* ICONS */
    .footer--ref .footer-icons--row {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .footer--ref .footer-icon-link {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .footer--ref .footer-icon-link img {
        width: 24px;
        height: 24px;
    }

    /* No tooltip on mobile */
    .footer--ref .footer-icon-link::after {
        content: none !important;
        display: none !important;
    }

    /* Prevent accidental horizontal scroll */
    .footer.footer--ref,
    .footer--ref .footer-inner,
    .footer--ref .footer-top,
    .footer--ref .footer-right {
        max-width: 100%;
    }
}

/* =========================================================
   MOBILE NAV
========================================================= */

@media (max-width: 768px) {

    .logo {
        position: relative;
        z-index: 50;
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(64px + 10px);

        display: block;
        padding: 10px;
        margin: 0;
        list-style: none;

        background: rgba(2, 6, 23, 0.92);
        border: 1px solid rgba(56, 189, 248, 0.18);
        border-radius: 16px;
        backdrop-filter: blur(10px);
        box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: 200ms ease;

        z-index: 20;
    }

    .nav.is-open .nav-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links>li:not(.nav-dropdown) {
        display: none !important;
    }

    .nav-links>.nav-dropdown {
        display: block !important;
        width: 100%;
    }

    .nav-dropbtn {
        display: none !important;
    }

    .nav-dropdown-menu {
        position: static !important;
        display: none;
        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;

        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;

        z-index: auto !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: none;
    }

    .nav.is-open .nav-dropdown-menu {
        display: grid;
        gap: 6px;
        pointer-events: auto;
    }

    .nav-dropdown-menu a {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;

        width: 100%;
        padding: 12px;
        border-radius: 12px;

        background: rgba(2, 6, 23, 0.35);
        border: 1px solid rgba(56, 189, 248, 0.10);

        color: var(--text-muted);
        text-decoration: none;

        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.02em;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus-visible {
        color: var(--primary);
        background: rgba(56, 189, 248, 0.10);
        border-color: rgba(56, 189, 248, 0.18);
        outline: none;
    }

    .nav-dropdown-menu a::after {
        content: none !important;
    }

    .nav.is-open .nav-toggle span:nth-child(2) {
        opacity: 0;
        width: 0;
        transform: scaleX(0);
    }
}

@media (hover: none) and (pointer: coarse) {
    .logo:hover .nav-brand {
        letter-spacing: 0.18em;
        color: rgba(229, 231, 235, 0.88);
        text-shadow: 0 0 0 rgba(56, 189, 248, 0);
    }
}

@media (max-width: 768px) {
    .hero::before {
        background-image: url("assets/hero/heroimagemobile.png");
        background-position: center top;
        background-size: cover;
    }
}

/* =========================================================
   MOBILE PASS
========================================================= */

@media (max-width: 900px) {
    .legacy {
        padding: 82px 6%;
    }

    .legacy .about-section-title {
        margin: 0 0 32px;
        letter-spacing: 0.20em;
        font-size: clamp(1.45rem, 5vw, 1.9rem);
        -webkit-text-stroke: 1px rgba(var(--blue), 0.68);
    }

    .legacy .about-section-title::after {
        margin-top: 14px;
    }

    .legacy .about-ref {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .legacy .about-ref-text {
        max-width: 68ch;
        margin: 0;
        font-size: 0.98rem;
        line-height: 1.75;
    }

    .legacy .about-ref-text p {
        margin: 0 0 18px;
    }

    .legacy .about-ref-pills {
        margin-top: 26px;
        gap: 12px;
    }

    .legacy .about-ref-pill {
        padding: 11px 14px;
        font-size: 0.74rem;
        letter-spacing: 0.16em;
    }

    .legacy .about-ref-right {
        gap: 12px;
        align-content: start;
    }

    .legacy .about-ref-card {
        min-height: 152px;
        padding: 16px;
    }

    .legacy .about-ref-icon img {
        width: 48px;
        height: 48px;
    }

    .legacy .about-ref-card h3 {
        font-size: 0.86rem;
        letter-spacing: 0.16em;
        margin-bottom: 6px;
    }

    .legacy .about-ref-card p {
        font-size: 1.0rem;
        letter-spacing: 0.07em;
        text-wrap: balance;
    }
}

@media (max-width: 900px) {

    /* Pills stay 2x2 */
    .legacy .about-ref-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .legacy .about-ref-pill {
        width: 100%;
    }

    /* Cards stay 2x2 */
    .legacy .about-ref-right {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        align-content: start;
    }

    .legacy .about-ref-card {
        min-height: 140px;
    }
}

@media (max-width: 380px) {
    .legacy .about-ref-pills {
        gap: 10px;
    }

    .legacy .about-ref-right {
        gap: 10px;
    }

    .legacy .about-ref-card {
        min-height: 132px;
        padding: 14px;
    }

    .legacy .about-ref-card h3 {
        font-size: 0.82rem;
    }

    .legacy .about-ref-card p {
        font-size: 0.95rem;
    }
}

@media (max-width: 380px) {
    .legacy .about-ref-text {
        font-size: 0.95rem;
    }

    .legacy .about-ref-pill {
        font-size: 0.72rem;
        letter-spacing: 0.15em;
    }

    .legacy .about-ref-card p {
        font-size: 0.98rem;
    }
}

@media (min-width: 901px) {
    .legacy .schedule-lines {
        display: inline;
    }

    .legacy .schedule-lines span {
        display: inline;
    }

    .legacy .schedule-lines .time::before {
        content: " ";
    }
}

@media (max-width: 900px) {
    .legacy .schedule-lines {
        display: flex;
        flex-direction: column;
        gap: 4px;
        line-height: 1.2;
    }

    .legacy .schedule-lines span {
        font-size: inherit;
        /* same size as normal card text */
        letter-spacing: inherit;
        /* keep consistency */
        opacity: 1;
    }
}

/* =========================================================
   CE GALLERY
========================================================= */

@media (max-width: 700px) {
    .ce-section {
        padding: 72px 6% 92px;
        overflow: visible;
    }

    .ce-gallery-head h3 {
        margin-bottom: 30px;
        font-size: clamp(1.45rem, 5.5vw, 1.9rem);
        letter-spacing: 0.20em;
    }

    .ce-gallery-head h3::after {
        margin-top: 14px;
    }

    .ce-rail {
        height: clamp(200px, 52vw, 255px);
        perspective: 950px;
        overflow: visible;
        outline: none;
        touch-action: pan-y;
    }

    /* Hide arrows on mobile */
    .ce-gallery-controls {
        display: none !important;
    }

    .ce-item {
        width: min(440px, 74vw);
        border-radius: 18px;
        box-shadow: 0 22px 56px rgba(0, 0, 0, 0.32);
    }

    .ce-item img {
        transform: scale(1.01);
    }

    .ce-mid-caption {
        width: min(440px, 74vw);
        font-size: 0.78rem;
        letter-spacing: 0.16em;
        min-height: 42px;
    }

    /* Side cards */
    .ce-item:not(.is-active) {
        border-color: rgba(var(--blue), 0.10);
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    }

    .ce-item:not(.is-active) img {
        filter: saturate(0.92) brightness(0.92) contrast(1.02);
    }

    .ce-item.is-active {
        border-color: rgba(var(--blue), 0.22);
        box-shadow:
            0 30px 86px rgba(0, 0, 0, 0.50),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    /* Lightbox full-screen on mobile */
    .ce-lightbox {
        padding: 0 !important;
    }

    .ce-lightbox-panel {
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .ce-lightbox-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        object-fit: contain;
    }

    .ce-lightbox-close {
        top: 14px;
        right: 14px;
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 420px) {
    .ce-rail {
        height: clamp(190px, 58vw, 235px);
    }

    .ce-item,
    .ce-mid-caption {
        width: 70vw;
    }
}

@media (max-width: 700px) {

    .ce-item img,
    .ce-item.is-active img {
        transform: scale(1) !important;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {

    .logo .nav-brand,
    .logo:active .nav-brand,
    .logo:focus .nav-brand,
    .logo:focus-visible .nav-brand {
        letter-spacing: 0.18rem !important;
        font-size: 1.45rem !important;
        font-weight: 700 !important;
        transition: none !important;
        transform: translateY(1px) !important;
    }

    .logo,
    .logo * {
        transition: none !important;
        animation: none !important;
    }

    .logo {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .logo:focus,
    .logo:focus-visible {
        outline: none !important;
    }
}