:root {
    --bg: #060203;
    --bg-deep: #020102;
    --white: #fff8f2;
    --muted: #c6b6b0;
    --dim: #aa9790;
    --fire: #ff4d0a;
    --ember: #ff8a1f;
    --gold: #ffd18a;
    --discord: #5865f2;
    --line: rgba(255,209,138,0.22);
    --line-soft: rgba(255,255,255,0.1);
    --shadow-deep: 0 26px 88px rgba(0,0,0,0.62);
    --display: "Cinzel", Georgia, serif;
    --body: "Montserrat", Arial, sans-serif;
    --header-height: 84px;
    --container: 1460px;
}

*, ::after, ::before {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    overflow-x: hidden;
    color: var(--white);
    background: var(--bg-deep);
    font-family: var(--body);
    line-height: 1.5;
}

body.menu-open, 
body.modal-open {
    overflow: hidden;
}

.site-footer, .site-header, main {
    position: relative;
    z-index: 1;
}

img {
    display: block;
    max-width: 100%;
}

a, button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

button {
    color: inherit;
    font: inherit;
}

a:focus-visible, 
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

::selection {
    color: #1c0601;
    background: var(--ember);
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: -100px;
    left: 18px;
    padding: 12px 17px;
    color: #180400;
    background: var(--ember);
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: top .2s ease;
}

.skip-link:focus {
    top: 18px;
}


#bg-video, .site-background, .video-glow, .video-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
}

.site-background {
    z-index: -2;
    overflow: hidden;
    background: #090304;
}

#bg-video {
    z-index: -3;
    object-fit: cover;
    object-position: center;
    filter: brightness(.56) saturate(.96) contrast(1.06);
}

.video-overlay {
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(3,1,2,.27), rgba(4,1,3,.51) 45%, rgba(2,1,2,.91)), radial-gradient(circle at 50% 25%, rgba(255,74,9,.1), transparent 41%);
}

.video-glow {
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(4,1,3,.46), transparent 43%, rgba(4,1,3,.3));
}


.site-header {
    z-index: 100;
}

.navbar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--header-height);
    padding: 0 clamp(18px,5vw,84px);
    border-bottom: 1px solid transparent;
    transition: height .25s ease, background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}

.navbar.scrolled {
    height: 68px;
    border-color: var(--line-soft);
    background: rgba(7,2,5,.9);
    backdrop-filter: blur(18px);
}

.brand {
    position: relative;
    z-index: 103;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid rgba(255,171,84,.56);
    background: rgba(7,2,4,.45);
    box-shadow: 0 0 28px rgba(255,77,10,.31), inset 0 0 13px rgba(255,112,20,.12);
    place-items: center;
}

.brand-symbol img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-name {
    display: flex;
    flex-direction: column;
    font-family: var(--display);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: .16em;
    text-shadow: 0 0 15px rgba(255,255,255,.15);
}

.brand-name strong {
    color: var(--ember);
    font-weight: 800;
    text-shadow: 0 0 16px rgba(255,111,18,.43);
}

.nav-actions, .nav-links, .nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu {
    gap: clamp(14px,1.5vw,24px);
}

.nav-links {
    gap: clamp(24px,2.1vw,36px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-actions {
    gap: 12px;
    padding-left: 0;
}

.nav-apply-button, .nav-contact-button, .nav-links a, .social-dropdown-trigger {
    border: 0;
    color: var(--white);
    background: 0 0;
    cursor: pointer;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-links a {
    position: relative;
    display: inline-block;
    padding: 9px 0;
}

.nav-links a::after {
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    content: "";
    background: var(--ember);
    box-shadow: 0 0 10px var(--fire);
    transition: width .24s ease;
}

.nav-links a:focus-visible::after, 
.nav-links a:hover::after {
    width: 100%;
}

.nav-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 39px;
    padding: 0 13px;
    border: 1px solid rgba(88,101,242,.82);
    color: #d9ddff;
    background: rgba(88,101,242,.08);
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-contact-button:focus-visible, 
.nav-contact-button:hover {
    border-color: #8d96ff;
    color: #fff;
    background: var(--discord);
    box-shadow: 0 0 22px rgba(88,101,242,.35);
    transform: translateY(-2px);
}

.discord-icon {
    color: var(--discord);
    font-size: 1.05em;
    filter: drop-shadow(0 0 5px rgba(88,101,242,.38));
}

.nav-contact-button:focus-visible .discord-icon, 
.nav-contact-button:hover .discord-icon {
    color: #fff;
}

.social-dropdown {
    position: relative;
}

.social-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
}

.social-dropdown-trigger i {
    font-size: .61rem;
    transition: transform .22s ease;
}

.social-dropdown.open .social-dropdown-trigger i, 
.social-dropdown:focus-within .social-dropdown-trigger i, 
.social-dropdown:hover .social-dropdown-trigger i {
    transform: rotate(180deg);
}

.social-dropdown-menu {
    position: absolute;
    top: calc(100% + 13px);
    right: -14px;
    display: grid;
    width: 205px;
    padding: 7px;
    border: 1px solid rgba(255,209,138,.32);
    opacity: 0;
    visibility: hidden;
    background: rgba(12,4,8,.98);
    box-shadow: var(--shadow-deep);
    transform: translateY(-8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.social-dropdown.open .social-dropdown-menu, 
.social-dropdown:focus-within .social-dropdown-menu, 
.social-dropdown:hover .social-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.social-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px;
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.social-dropdown-menu a i {
    width: 17px;
    text-align: center;
    font-size: .95rem;
}

.social-dropdown-menu a:focus-visible, 
.social-dropdown-menu a:hover {
    color: #fff;
    transform: translateX(3px);
}

.dropdown-twitch:focus-visible, .dropdown-twitch:hover { background: #7f40d7; }
.dropdown-tiktok:focus-visible, .dropdown-tiktok:hover { background: linear-gradient(90deg, #00e5e5 0 4%, #ef2b59 4%); }
.dropdown-instagram:focus-visible, .dropdown-instagram:hover { background: linear-gradient(115deg, #feda75, #fa7e1e 25%, #d62976 52%, #962fbf 75%, #4f5bd5); }
.dropdown-youtube:focus-visible, .dropdown-youtube:hover { background: #d91616; }
.dropdown-x:focus-visible, .dropdown-x:hover { background: #202020; }

.menu-toggle {
    position: relative;
    z-index: 103;
    display: none;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--line);
    background: rgba(9,3,6,.72);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    margin: 5px auto;
    background: var(--white);
    transition: transform .22s ease, opacity .22s ease;
}

.menu-toggle.active span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }


.content-section {
    position: relative;
    padding: clamp(80px,10vw,145px) 0;
}

.application-section {
    padding-top: clamp(60px, 6vw, 90px);
    padding-bottom: clamp(60px, 6vw, 90px);
    background: radial-gradient(circle at 80% 10%, rgba(255,77,10,.13), transparent 33%), rgba(7,2,5,.97);
}

.section-scroll-anchor {
    position: absolute;
    top: clamp(80px,10vw,145px);
    left: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.section-scroll-anchor-form {
    top: 60px; 
}

.section-scroll-anchor-gallery {
    top: clamp(80px,10vw,145px);
}

.section-container {
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
}

.section-number {
    margin: 0 0 clamp(43px,6vw,80px);
    color: var(--ember);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .21em;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--gold);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--ember);
    box-shadow: 0 0 9px var(--fire);
}

.section-heading h2, .gallery-heading h2 {
    margin: 12px 0 0;
    font-family: var(--display);
    font-size: clamp(2.25rem,5vw,5.2rem);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
}

.section-heading h2 em, .gallery-heading h2 em {
    color: var(--ember);
    font-style: normal;
    text-shadow: 0 0 12px rgba(255,111,18,.37), 0 0 30px rgba(255,77,10,.2);
}


.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.button:focus-visible, 
.button:hover {
    transform: translateY(-3px);
}

.button-fire {
    border-color: var(--ember);
    color: #190500;
    background: linear-gradient(115deg, var(--fire), var(--ember));
    box-shadow: 0 10px 28px rgba(255,70,7,.18);
}

.button-fire:focus-visible, 
.button-fire:hover {
    box-shadow: 0 14px 40px rgba(255,70,7,.4);
}

.button-dark {
    border-color: rgba(255,255,255,.32);
    color: var(--white);
    background: rgba(7,2,4,.42);
}

.button-dark:focus-visible, 
.button-dark:hover {
    border-color: var(--ember);
    color: var(--ember);
    background: rgba(255,77,10,.12);
}


.hero-section {
    position: relative;
    display: grid;
    min-height: 100svh;
    padding: calc(var(--header-height) + 25px) 20px 72px;
    overflow: hidden;
    isolation: isolate;
    place-items: center;
}

.hero-ambient {
    position: absolute;
    z-index: -1;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    opacity: .34;
    filter: blur(28px);
    pointer-events: none;
}

.hero-ambient-left {
    top: 10%;
    left: -150px;
    background: radial-gradient(circle, rgba(255,68,7,.28), transparent 67%);
}

.hero-ambient-right {
    right: -150px;
    bottom: 7%;
    background: radial-gradient(circle, rgba(255,134,24,.18), transparent 67%);
}

.hero-content {
    width: min(100%, 1040px);
    text-align: center;
}

.hero-eyebrow {
    justify-content: center;
}

.hero-content h1 {
    margin: 20px 0 19px;
    font-family: var(--display);
    font-size: clamp(2.85rem,7.6vw,6.85rem);
    font-weight: 800;
    line-height: .91;
    letter-spacing: -.055em;
}

.hero-content h1 span {
    display: block;
}

.hero-title-light {
    color: var(--white);
    text-shadow: 0 2px 1px rgba(0,0,0,.3), 0 0 18px rgba(255,255,255,.11);
}

.hero-title-fire {
    color: var(--ember);
    text-shadow: 0 0 10px rgba(255,136,31,.5), 0 0 26px rgba(255,78,8,.38), 0 0 54px rgba(255,53,5,.2);
}

.hero-description {
    max-width: 555px;
    margin: 0 auto;
    color: #e3d7d2;
    font-size: clamp(.9rem,1.5vw,1.07rem);
    line-height: 1.8;
}


.lore-section {
    background: linear-gradient(125deg, rgba(29,7,12,.94), rgba(8,3,6,.96) 56%, rgba(19,4,7,.94));
}

.lore-layout {
    display: grid;
    grid-template-columns: 0.84fr 0.95fr 1.1fr;
    align-items: center;
    gap: clamp(28px,5vw,76px);
}

.lore-text {
    color: var(--muted);
    font-size: .96rem;
    line-height: 1.86;
}

.lore-text p { margin: 0 0 18px; }
.lore-text .lead { color: var(--white); font-size: 1.12rem; line-height: 1.7; }
.lore-text strong { color: var(--ember); }

.lore-image {
    position: relative;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255,209,138,.34);
    background: rgba(7,2,4,.35);
    box-shadow: inset 0 0 14px rgba(255,138,31,.1), 0 0 10px rgba(255,209,138,.16), 0 0 26px rgba(255,138,31,.16), 0 0 46px rgba(255,77,10,.1);
}

.lore-image::before {
    position: absolute;
    inset: 10px;
    z-index: 1;
    content: "";
    background: linear-gradient(135deg, rgba(255,77,10,.18), transparent 45%, rgba(0,0,0,.3));
    pointer-events: none;
}

.lore-image img {
    width: 100%;
    min-height: 380px;
    max-height: 610px;
    object-fit: cover;
}

.lore-image figcaption {
    margin-top: 10px;
    color: var(--dim);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .18em;
}


.gallery-section {
    background: rgba(7,2,5,.97);
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 48px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: 255px 255px;
    gap: 16px;
}

.gallery-card {
    position: relative;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: var(--white);
    outline: 1px solid rgba(255,209,138,.12);
    outline-offset: -1px;
    background: #12070b;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    cursor: pointer;
    text-align: left;
    transition: outline-color .25s ease, box-shadow .25s ease;
}

.gallery-card-featured {
    grid-row: span 2;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.72) saturate(.9);
    transition: transform .6s ease, filter .35s ease;
}

.gallery-card:nth-child(2) img {
    padding: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: 0 0;
}

.gallery-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(to top, rgba(3,1,2,.88), transparent 61%);
    pointer-events: none;
}

.gallery-card span {
    position: absolute;
    z-index: 1;
    bottom: 17px;
    left: 18px;
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .17em;
}

.gallery-card > i {
    position: absolute;
    z-index: 1;
    right: 17px;
    bottom: 16px;
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.35);
    opacity: 0;
    background: rgba(3,1,2,.52);
    font-size: .72rem;
    place-items: center;
    transform: translateY(7px);
    transition: opacity .22s ease, transform .22s ease, background .22s ease;
}

.gallery-card:focus-visible, 
.gallery-card:hover {
    outline-color: rgba(255,138,31,.72);
    box-shadow: 0 24px 52px rgba(0,0,0,.38);
}

.gallery-card:focus-visible img, 
.gallery-card:hover img {
    filter: brightness(.98) saturate(1.08);
    transform: scale(1.06);
}

.gallery-card:focus-visible > i, 
.gallery-card:hover > i {
    opacity: 1;
    background: var(--fire);
    transform: translateY(0);
}


.application-container {
    display: grid;
    grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr);
    gap: clamp(24px, 5vw, 80px);
    align-items: start;
}

.application-heading {
    
    align-self: start;
}

.application-heading .eyebrow {
    margin-bottom: 20px;
}

.application-heading h2 {
    margin: 0 0 16px;
    font-family: var(--display);
    font-size: clamp(2.25rem,4.7vw,4.8rem);
    line-height: .98;
}

.application-heading h2 em, .form-step-label {
    color: var(--ember);
    font-style: normal;
}

.application-description, .form-step-description {
    color: var(--muted);
    line-height: 1.6;
}

.application-form {
    padding: clamp(20px, 3vw, 35px);
    border: 1px solid rgba(255,209,138,.28);
    background: linear-gradient(145deg, rgba(28,9,16,.95), rgba(9,3,5,.97));
    box-shadow: var(--shadow-deep);
    overflow: hidden;
}


.form-banner-container {
    margin: calc(clamp(20px, 3vw, 35px) * -1) calc(clamp(20px, 3vw, 35px) * -1) 22px;
    width: calc(100% + (clamp(20px, 3vw, 35px) * 2));
    height: clamp(90px, 12vw, 130px);
    border-bottom: 1px solid rgba(255,209,138,.28);
    background-color: #050505;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate; 
    z-index: 1; 
}

.form-banner-container::before {
    content: "";
    position: absolute;
    top: -30px; left: -30px; right: -30px; bottom: -30px; 
    background-image: var(--bg-banner, url('../banner1.webp'));
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.9); 
    opacity: 0.65;
    z-index: 2; 
    pointer-events: none;
}

.form-banner-container img {
    width: auto;
    max-width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 3; 
    display: block;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 25%, black 75%, transparent 100%);
}


.form-progress {
    margin-bottom: 20px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.form-progress > span, .form-step-label {
    display: block;
    margin: 0 0 6px;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.form-progress-track {
    height: 3px;
    background: rgba(255,255,255,.13);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

#formProgressBar {
    display: block;
    width: 25%;
    height: 100%;
    background: var(--ember);
    box-shadow: 0 0 10px var(--fire);
    transition: width .25s ease;
    max-width: 100%;
    box-sizing: border-box;
}

.form-steps-container {
    min-height: 315px;
    display: flex;
    flex-direction: column;
}

.form-step {
    flex-grow: 1;
}

.form-step h3 {
    margin: 0 0 6px;
    font-family: var(--display);
    font-size: 1.45rem;
}

.form-step-description {
    margin: 0 0 16px;
    font-size: .84rem;
}

.required-indicator {
    display: inline-block;
    margin-top: 2px;
    font-size: 0.7rem;
    color: var(--ember);
    font-style: italic;
    opacity: 0.9;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}

.form-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field > label, .form-field legend {
    display: block;
    margin: 0 0 6px;
    padding: 0;
    color: var(--white);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.form-field span {
    color: var(--ember);
}

.field-help, .form-privacy {
    margin: 0 0 6px;
    color: var(--dim);
    font-size: .7rem;
    line-height: 1.4;
}

.application-form input:not([type=radio]), 
.application-form select, 
.application-form textarea {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.17);
    color: var(--white);
    background: rgba(0,0,0,.27);
    font: inherit;
}

.application-form select option {
    background: #16060b;
}

.application-form textarea {
    resize: vertical;
}

.application-form input:focus, 
.application-form select:focus, 
.application-form textarea:focus {
    outline: 0;
    border-color: var(--ember);
    box-shadow: 0 0 0 3px rgba(255,138,31,.13);
}

.radio-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.17);
    cursor: pointer;
}

.radio-option input {
    accent-color: var(--ember);
}

.form-navigation {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin-top: 22px;
}

.form-navigation .button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
}

.form-navigation .button[hidden] {
    display: none !important;
}

.form-back, .form-next {
    border-color: rgba(255,255,255,.22) !important;
    color: var(--muted) !important;
    background: rgba(255,255,255,.035) !important;
    box-shadow: none !important;
}

.form-back {
    max-width: 150px;
}

.form-back:hover, .form-back:focus-visible, 
.form-next:hover, .form-next:focus-visible {
    border-color: rgba(255,209,138,.62) !important;
    color: var(--gold) !important;
    background: rgba(255,209,138,.08) !important;
    box-shadow: none !important;
}

.form-back:hover, .form-back:focus-visible {
    transform: translateX(-2px);
}

.form-next:hover, .form-next:focus-visible {
    transform: translateX(2px);
}

.form-next { grid-column: 2; grid-row: 1; }

.form-submit {
    grid-column: 2;
    grid-row: 1;
    border-color: #ffd18a !important;
    color: #210700 !important;
    background: linear-gradient(115deg, #ff4d0a, #ffb13b) !important;
    box-shadow: 0 12px 32px rgba(255,77,10,.36), 0 0 0 1px rgba(255,209,138,.28) !important;
}

.form-submit:hover, .form-submit:focus-visible {
    box-shadow: 0 16px 42px rgba(255,77,10,.52), 0 0 20px rgba(255,209,138,.22) !important;
    filter: brightness(1.07);
}

.form-status {
    min-height: 24px;
    margin: 12px 0 0;
    text-align: center;
    font-size: .8rem;
}

.form-status.error { color: #ff9d9d; }
.form-status.success { color: #99e2ad; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


.site-footer {
    border-top: 1px solid var(--line-soft);
    background: #040102;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 32px 0;
    color: var(--dim);
    font-size: .68rem;
    line-height: 1.7;
}

.footer-content p { margin: 0; }

.footer-dev-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: 5px;
    padding: 7px 10px;
    border: 1px solid rgba(255,138,31,.58);
    color: var(--gold);
    background: rgba(255,77,10,.08);
    box-shadow: 0 0 14px rgba(255,77,10,.17);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    letter-spacing: .04em;
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.footer-dev-button:focus-visible, 
.footer-dev-button:hover {
    border-color: var(--ember);
    color: var(--white);
    background: rgba(255,77,10,.18);
    box-shadow: 0 0 22px rgba(255,77,10,.32), 0 0 8px rgba(255,209,138,.14);
    transform: translateY(-2px);
}

.footer-dev-button .discord-icon { font-size: 1rem; }


.modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    padding: 18px;
    place-items: center;
}

.modal.open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3,1,2,.88);
    backdrop-filter: blur(13px);
}

.modal-content, .gallery-modal-content {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255,150,42,.68);
    background: linear-gradient(145deg, #1c0910, #090305);
    box-shadow: 0 30px 100px rgba(0,0,0,.8), 0 0 34px rgba(255,77,10,.28), 0 0 72px rgba(255,138,31,.13);
    animation: modal-in .22s ease both;
}

.modal-content {
    width: min(100%, 510px);
    max-height: min(90vh, 760px);
    padding: 58px 28px 31px;
    overflow: auto;
    text-align: center;
}

.gallery-modal-content {
    width: min(100%, 1440px);
    max-height: 94vh;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: grid;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 1px solid var(--line);
    color: var(--white);
    background: rgba(0,0,0,.28);
    cursor: pointer;
    place-items: center;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.modal-close:focus-visible, 
.modal-close:hover {
    border-color: var(--ember);
    color: var(--ember);
    background: rgba(255,77,10,.1);
}

.modal-label {
    margin: 0;
    color: var(--ember);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .2em;
}

.modal-content h2 {
    margin: 10px 0 22px;
    color: var(--gold);
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
}

.modal-content h2 .discord-icon { margin-right: 5px; }

.discord-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px;
    border: 1px solid rgba(88,101,242,.3);
    background: rgba(88,101,242,.07);
    text-align: left;
}

.discord-card img {
    width: 60px;
    height: 60px;
    border: 1px solid var(--ember);
    border-radius: 50%;
    box-shadow: 0 0 17px rgba(255,77,10,.2);
    object-fit: cover;
}

.discord-card h3, .discord-card p { margin: 0; }
.discord-card h3 { color: var(--white); font-size: .93rem; }

.discord-card .discord-user {
    margin-top: 5px;
    color: #dce0ff;
    font-size: .83rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-shadow: 0 0 9px rgba(88,101,242,.28);
}

.modal-description {
    margin: 19px 0 0;
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.72;
}


.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 65px 0 20px;
    border-bottom: 1px solid var(--line);
}

.modal-header p {
    margin: 0;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .15em;
}

.modal-header span {
    margin-left: 8px;
    color: var(--ember);
}

.gallery-viewer {
    position: relative;
    display: grid;
    min-height: min(76vh, 880px);
    padding: 60px 96px;
    background: radial-gradient(circle at center, rgba(255,77,10,.2), transparent 62%), rgba(3,1,2,.35);
    place-items: center;
}

.gallery-viewer img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(68vh, 790px);
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,.5));
    transition: opacity .16s ease, transform .16s ease;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line);
    color: var(--white);
    background: rgba(5,2,4,.78);
    cursor: pointer;
    place-items: center;
    transform: translateY(-50%);
    transition: color .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.gallery-arrow:focus-visible, 
.gallery-arrow:hover {
    border-color: var(--ember);
    color: #1b0500;
    background: var(--ember);
    box-shadow: 0 0 20px rgba(255,77,10,.35);
}

.gallery-arrow.previous { left: 20px; }
.gallery-arrow.next { right: 20px; }

.gallery-help {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: .68rem;
    text-align: center;
}


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(15px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}


@media (max-width: 1120px) {
    .navbar { padding: 0 32px; }
    .nav-menu { gap: 12px; }
    .nav-links { gap: 16px; }
    .nav-actions { gap: 9px; }
    .nav-apply-button, .nav-contact-button, .nav-links a, .social-dropdown-trigger { font-size: .55rem; letter-spacing: .07em; }
    .nav-apply-button, .nav-contact-button { padding: 0 9px; }
    .lore-layout { grid-template-columns: 1fr 1fr; }
    .section-heading { grid-column: 1 / -1; }
    .lore-image { max-width: 760px; }
    .gallery-modal-content { width: min(100%, 1100px); }
    .gallery-viewer { min-height: min(72vh, 760px); }
    .gallery-viewer img { max-height: min(64vh, 680px); }
}

@media (max-width: 820px) {
    :root { --header-height: 70px; }
    .navbar { padding: 0 18px; }
    .navbar.scrolled { height: 64px; }
    .brand-symbol { width: 42px; height: 42px; }
    .brand-name { display: none; }
    .menu-toggle { display: block; }
    
    .nav-menu {
        position: fixed;
        z-index: 102;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 22px;
        min-height: 100dvh;
        padding: 100px 24px 36px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        background: linear-gradient(135deg, rgba(16,4,8,.99), rgba(5,1,3,.99));
        pointer-events: none;
        transition: opacity .22s ease, visibility .22s ease;
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-actions, .nav-links { display: flex; flex-direction: column; flex-shrink: 0; }
    .nav-links { width: 100%; gap: 17px; margin: 0; text-align: center; }
    .nav-links li { display: block; width: 100%; }
    .nav-links a { display: inline-block; padding: 11px 12px; font-size: .8rem; }
    .nav-actions { width: min(100%, 300px); gap: 13px; margin: 3px auto 0; padding-left: 0; }
    .social-dropdown { width: 100%; text-align: center; }
    .social-dropdown-trigger { justify-content: center; width: 100%; min-height: 42px; font-size: .78rem; }
    .nav-apply-button, .nav-contact-button { display: inline-flex; width: 100%; min-height: 44px; padding: 0 16px; font-size: .78rem; }
    
    .social-dropdown-menu, .social-dropdown:hover .social-dropdown-menu {
        position: static;
        display: none;
        width: min(250px, 82vw);
        margin: 11px auto 0;
        opacity: 1;
        visibility: visible;
        text-align: left;
        transform: none;
    }
    
    .social-dropdown.open .social-dropdown-menu { display: grid; }
    .hero-section { padding: 94px 20px 55px; }
    .hero-content h1 { font-size: clamp(2.5rem,13vw,4.5rem); line-height: .94; }
    .hero-description { font-size: .91rem; }
    
    .application-section { padding-top: clamp(60px, 6vw, 90px); padding-bottom: clamp(60px, 6vw, 90px); }
    .content-section { padding: 74px 0; }
    .section-scroll-anchor { top: 74px; }
    
    .section-scroll-anchor-form { top: 15px; } 
    .section-scroll-anchor-gallery { top: 74px; }
    
    .section-container { width: min(calc(100% - 40px), var(--container)); }
    .section-number { margin-bottom: 39px; }
    .section-heading h2, .gallery-heading h2 { font-size: clamp(2.2rem,11vw,3.8rem); }
    .lore-layout { display: block; }
    .lore-text, .section-heading { margin-bottom: 34px; }
    .lore-image img { min-height: 285px; }
    
    .gallery-heading { display: block; margin-bottom: 29px; }
    .gallery-heading .button { margin-top: 23px; }
    .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 330px 195px 195px; }
    .gallery-card-featured { grid-row: auto; }
    
    .application-container { display: block; }
    .application-heading { position: static; margin-bottom: 28px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-field-full { grid-column: auto; }
    .application-form { padding: 20px 16px; } 
    .radio-group { display: grid; grid-template-columns: 1fr; }
    
    .form-banner-container { 
        margin: -20px -16px 20px; 
        width: calc(100% + 32px); 
        height: 90px;
    }
    
    .form-steps-container { min-height: 480px; } 
    
    .form-navigation { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
    .form-back, .form-next, .form-submit { grid-column: 1; grid-row: auto; max-width: none; }
    .form-navigation .button { min-height: 52px; }
    
    .footer-content { flex-direction: column; align-items: flex-start; padding: 28px 0; }
    .footer-dev-button { margin-top: 7px; margin-left: 0; }
    .modal { padding: 10px; }
    .modal-content { width: 100%; padding: 55px 21px 26px; }
    
    .gallery-modal-content { width: 100%; max-height: 96vh; }
    .modal-header { min-height: 58px; padding: 0 56px 0 14px; }
    .gallery-viewer { min-height: 66vh; padding: 48px; }
    .gallery-viewer img { max-height: 59vh; }
    .gallery-arrow { width: 42px; height: 42px; }
    .gallery-arrow.previous { left: 6px; }
    .gallery-arrow.next { right: 6px; }
    .gallery-help { padding: 12px 14px; font-size: .62rem; }
}

@media (max-width: 380px) {
    .section-container { width: min(calc(100% - 32px), var(--container)); }
    .nav-menu { gap: 17px; padding: 88px 18px 28px; }
    .nav-links { gap: 11px; }
    .nav-links a { font-size: .72rem; }
    .hero-content h1 { font-size: 2.42rem; }
    .eyebrow { gap: 7px; font-size: .53rem; letter-spacing: .16em; }
    .eyebrow span { width: 17px; }
    .discord-card { gap: 10px; padding: 12px; }
    .discord-card img { width: 52px; height: 52px; }
    .gallery-grid { grid-template-rows: 275px 170px 170px; }
    .modal-header p { font-size: .54rem; letter-spacing: .1em; }
    .gallery-viewer { min-height: 62vh; padding: 42px 39px; }
    .gallery-viewer img { max-height: 55vh; }
}

@media (prefers-reduced-motion: reduce) {
    *, ::after, ::before {
        scroll-behavior: auto !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}