/* =========================================================================
   VIRELITH VICTURIOSA — Editorial Dark Theme
   ========================================================================= */

:root {
    --black:        #000000;
    --surface:      #0c0c0c;
    --surface-2:    #141414;
    --line:         #222222;
    --line-mid:     #333333;
    --white:        #ececec;
    --white-dim:    #b5b5b5;
    --muted:        #737373;
    --red:          #b91c1c;
    --red-dim:      rgba(185,28,28,0.12);

    --serif:        'Cinzel', serif;
    --body:         'Inter', sans-serif;
    --italic:       'IM Fell English', serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.dark-theme {
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    word-break: break-word;
}

.blood-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(185,28,28,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.live-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    opacity: 0.18;
    transition: background-image 2.5s ease;
}

/* =========================================================================
   LOADING SCREEN
   ========================================================================= */

.vls-loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.vls-loader.done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo image in loader */
.loader-logo-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 2rem;
    animation: loaderImgFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 14px rgba(185,28,28,0.45));
}

@keyframes loaderImgFloat {
    0%, 100% { 
        transform: translateY(0) scale(1); 
        filter: drop-shadow(0 0 14px rgba(185,28,28,0.45));
    }
    50% { 
        transform: translateY(-8px) scale(1.08); 
        filter: drop-shadow(0 0 30px rgba(185,28,28,1));
    }
}

/* "VLS" display text — each letter animates in */
.loader-vls {
    font-family: var(--serif);
    font-size: clamp(3.5rem, 14vw, 7rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.45em;
    margin-left: 0.45em; /* compensate trailing space */
    line-height: 1;
    margin-bottom: 0.6rem;
}

.loader-vls span {
    display: inline-block;
    opacity: 0;
    animation: letterDrop 0.5s cubic-bezier(0.2,0,0,1) forwards;
}

.loader-vls span:nth-child(1) { animation-delay: 0.2s; }
.loader-vls span:nth-child(2) { animation-delay: 0.38s; }
.loader-vls span:nth-child(3) { animation-delay: 0.56s; }

@keyframes letterDrop {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Decorative divider lines + name */
.loader-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: clamp(200px, 40vw, 320px);
    animation: fadeIn 0.8s 0.7s ease both;
}

.loader-divider span {
    height: 1px;
    background: var(--line-mid);
    flex: 1;
}

.loader-divider em {
    font-family: var(--serif);
    font-style: normal;
    font-size: clamp(0.48rem, 1.8vw, 0.6rem);
    letter-spacing: 0.45em;
    color: var(--muted);
    text-transform: uppercase;
    white-space: nowrap;
}

/* Progress bar */
.loader-track {
    width: clamp(160px, 30vw, 240px);
    height: 1px;
    background: var(--line);
    position: relative;
    overflow: visible;
    animation: fadeIn 0.6s 0.9s ease both;
}

.loader-track::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: dotMove var(--dot-dur, 1.5s) linear infinite;
}

.loader-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--red);
    transition: width 0.2s ease;
    box-shadow: 0 0 6px rgba(185,28,28,0.5);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.loader-status {
    margin-top: 1.2rem;
    font-family: var(--serif);
    font-size: 0.52rem;
    letter-spacing: 0.4em;
    color: var(--muted);
    text-transform: uppercase;
    animation: fadeIn 0.6s 1s ease both;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1.2;
}

p { color: var(--white-dim); }

a { color: inherit; text-decoration: none; transition: color 0.2s; }

/* =========================================================================
   LAYOUT
   ========================================================================= */

.content-wrapper {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 0 2.5rem 5rem;
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

/* =========================================================================
   PRE-HEADER
   ========================================================================= */

.pre-header {
    background: var(--red);
    height: 3px;
    width: 100%;
    position: relative;
    z-index: 101;
    flex-shrink: 0;
}

/* =========================================================================
   HEADER
   ========================================================================= */

.main-header {
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--line);
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(185,28,28,0.4));
}

.logo-container h1 a {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: var(--white);
    text-transform: uppercase;
    transition: color 0.2s;
}

.logo-container h1 a:hover { color: var(--red); }

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.main-nav ul li { position: relative; }

.main-nav a {
    font-family: var(--serif);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    color: var(--white-dim);
    text-transform: uppercase;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    white-space: nowrap;
}

.main-nav a:hover { color: var(--white); }

.main-nav ul li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 14px;
    width: 1px;
    background: var(--line-mid);
}

.btn-recruit-nav {
    margin-left: 0.5rem;
    border: 1px solid var(--red) !important;
    color: var(--white) !important;
    padding: 0 1rem !important;
    height: 30px !important;
    font-size: 0.64rem !important;
    letter-spacing: 0.2em !important;
    display: inline-flex !important;
    align-items: center !important;
    transition: background 0.2s !important;
}

.btn-recruit-nav:hover { background: var(--red) !important; }
.btn-recruit-nav::after { display: none !important; }

/* =========================================================================
   HAMBURGER
   ========================================================================= */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    cursor: pointer;
    z-index: 200;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:last-child { width: 70%; }

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); width: 100%; }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 140;
}
.nav-overlay.open { display: block; }

/* =========================================================================
   BUTTONS
   ========================================================================= */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--red);
    color: #fff;
    border: 1px solid var(--red);
    padding: 0.7rem 1.8rem;
    font-family: var(--serif);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.btn-primary:hover { background: transparent; color: var(--white); }

.btn-primary:disabled {
    background: var(--surface-2);
    border-color: var(--line-mid);
    color: var(--muted);
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--line-mid);
    padding: 0.7rem 1.8rem;
    font-family: var(--serif);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--white-dim); color: var(--white); }

.btn-recruit {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--white) !important;
    border: 1px solid var(--red);
    padding: 0.65rem 1.5rem;
    font-family: var(--serif);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-recruit:hover { background: var(--red); }
.btn-recruit::after { display: none !important; }

/* =========================================================================
   BANNER
   ========================================================================= */

.banner-section {
    position: relative;
    left: 50%;
    margin-left: -50vw;
    width: 100vw;
    margin-bottom: 4rem;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.banner-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

.homepage-banner {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) saturate(0.8);
}

/* =========================================================================
   HERO
   ========================================================================= */

.hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 3rem;
}

.hero-sigil { width: 80px; height: 80px; flex-shrink: 0; }

.homepage-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 12px rgba(185,28,28,0.3));
}

.hero-label {
    font-family: var(--serif);
    font-size: 0.62rem;
    letter-spacing: 0.35em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.hero h2 {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    letter-spacing: 0.08em;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 0.8rem;
}

.hero h2 em {
    font-style: italic;
    font-family: var(--italic);
    color: var(--red);
    font-size: 1.1em;
    text-transform: none;
    letter-spacing: 0;
}

.hero-sub {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.online-line {
    margin-top: 1.8rem;
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(34,197,94,0.6);
}

/* =========================================================================
   ABOUT BLOCK
   ========================================================================= */

.about-block {
    display: grid;
    grid-template-columns: 3px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 720px;
}

.about-rule { background: var(--red); min-height: 60px; }

.about-content .about-label {
    font-family: var(--serif);
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    display: block;
}

.about-content p {
    font-size: 0.92rem;
    line-height: 1.9;
    color: var(--white-dim);
}

/* =========================================================================
   SECTION LABELS
   ========================================================================= */

.section-label {
    font-family: var(--serif);
    font-size: 0.6rem;
    letter-spacing: 0.4em;
    color: var(--muted);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--red);
    flex-shrink: 0;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section-heading {
    font-family: var(--serif);
    font-size: 0.65rem;
    letter-spacing: 0.35em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* =========================================================================
   CARDS
   ========================================================================= */

.gothic-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-left: 2px solid var(--red);
    padding: 2rem 2rem 2rem 1.75rem;
    position: relative;
    transition: border-color 0.25s;
}

.gothic-card:hover { border-color: var(--line-mid); }

/* =========================================================================
   ANNOUNCEMENTS
   ========================================================================= */

.ann-item {
    border-top: 1px solid var(--line);
    padding: 2rem 0;
}

.ann-item:last-child { border-bottom: 1px solid var(--line); }

.ann-meta {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    font-family: var(--serif);
}

.ann-meta span { color: var(--red); margin-right: 0.5rem; }

.ann-title {
    font-family: var(--serif);
    font-size: 1rem;
    letter-spacing: 0.1em;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.ann-body {
    font-size: 0.88rem;
    color: var(--white-dim);
    line-height: 1.8;
    max-width: 680px;
    max-height: 260px;
    overflow-y: auto;
    padding-right: 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--line-mid) transparent;
}

.ann-body::-webkit-scrollbar { width: 3px; }
.ann-body::-webkit-scrollbar-track { background: transparent; }
.ann-body::-webkit-scrollbar-thumb { background: var(--line-mid); }

/* =========================================================================
   MEMBERS
   ========================================================================= */

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.member-card {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 1.5rem;
    transition: background 0.2s, border-color 0.2s;
}

.member-card:hover { 
    background: var(--surface-2); 
    border-color: var(--line-mid);
}

.member-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.member-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--line-mid);
    flex-shrink: 0;
    display: block;
}

/* CSS-only initials placeholder — no broken image box */
.avatar-initials {
    width: 44px;
    height: 44px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--muted);
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0;
}

.member-name {
    font-family: var(--serif);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 3px;
    display: block;
}

.member-role {
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--red);
    text-transform: uppercase;
    font-family: var(--serif);
}

.member-hh {
    font-family: var(--serif);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 3px;
    display: block;
}

.member-lvl {
    display: inline-block;
    border: 1px solid var(--line-mid);
    color: var(--muted);
    padding: 2px 7px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    font-family: var(--serif);
    text-transform: uppercase;
    float: right;
    margin-top: 2px;
}

.info-row {
    display: flex;
    gap: 0.75rem;
    font-size: 0.82rem;
    color: var(--white-dim);
    padding: 0.22rem 0;
}

.info-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--serif);
    min-width: 72px;
    padding-top: 2px;
    flex-shrink: 0;
}

.badge-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    font-family: var(--serif);
    text-transform: uppercase;
    margin: 2px 2px 2px 0;
    border: 1px solid currentColor;
    background: transparent;
}

/* =========================================================================
   GALLERY
   ========================================================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.gallery-item {
    background: var(--surface);
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s;
}

.gallery-item:hover {
    border-color: var(--line-mid);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: saturate(0.85) brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1) brightness(1);
}

.gallery-caption {
    padding: 0.6rem 0.9rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--serif);
    border-top: 1px solid var(--line);
    background: var(--surface);
}

/* =========================================================================
   LIGHTBOX
   ========================================================================= */

#lightboxModal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

#lightboxModal.active {
    display: flex;
}

#lightboxImg {
    max-width: min(80vw, 850px);
    max-height: 75vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--line);
    display: block;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}

#lightboxCaption {
    margin-top: 1rem;
    font-family: var(--serif);
    font-size: 0.66rem;
    letter-spacing: 0.3em;
    color: var(--white-dim);
    text-transform: uppercase;
    max-width: 80vw;
    text-align: center;
}

/* Close button — large tap target for mobile */
.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 52px;
    height: 52px;
    background: rgba(20,20,20,0.95);
    border: 1px solid var(--line-mid);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
    z-index: 10002;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:active {
    background: var(--red);
    border-color: var(--red);
}

/* =========================================================================
   FORMS
   ========================================================================= */

.form-group { margin-bottom: 1.5rem; }

.form-group label {
    display: block;
    font-family: var(--serif);
    font-size: 0.62rem;
    letter-spacing: 0.25em;
    color: var(--white-dim);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.78rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line-mid);
    color: var(--white);
    font-family: var(--body);
    font-size: 0.9rem;
    transition: border-color 0.2s;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
}

.form-control:focus { border-color: var(--red); }
.form-control::placeholder { color: var(--muted); }

/* =========================================================================
   FOOTER
   ========================================================================= */

.main-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 3rem 2.5rem 1.5rem;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
}

.main-footer .footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.main-footer .brand h2 {
    font-size: 0.75rem;
    letter-spacing: 0.35em;
    color: var(--white-dim);
    margin-bottom: 0.35rem;
}

.main-footer .brand p {
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    font-style: italic;
    font-family: var(--italic);
    text-transform: none;
}

.main-footer .socials { display: flex; gap: 1.5rem; }

.main-footer .socials a {
    font-size: 1rem;
    color: var(--muted);
    transition: color 0.2s;
}

.main-footer .socials a:hover { color: var(--white); }

.bottom-bar {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-size: 0.65rem;
    color: var(--muted);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* =========================================================================
   UTILITIES
   ========================================================================= */

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.float-right { float: right; }

/* =========================================================================
   RESPONSIVE — TABLET (768px)
   ========================================================================= */

@media (max-width: 768px) {

    .main-header { padding: 0 1.25rem; }
    .hamburger { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 300px;
        height: 100vh;
        background: rgba(4,4,4,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 150;
    }

    .main-nav.open { right: 0; }

    .main-nav ul { flex-direction: column; align-items: center; width: 100%; }
    .main-nav ul li::after { display: none; }

    .main-nav a {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
        height: auto;
        padding: 1.1rem 2rem;
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid var(--line);
    }

    .btn-recruit-nav {
        margin: 0.75rem auto 0 !important;
        height: auto !important;
        padding: 0.8rem 2rem !important;
        border-bottom: none !important;
    }

    .content-wrapper { padding: 0 1.25rem 3.5rem; }

    .banner-section {
        left: 0;
        margin-left: -1.25rem;
        width: calc(100% + 2.5rem);
        margin-bottom: 2rem;
    }

    .homepage-banner { max-height: 220px; }

    .hero {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem 0 1.25rem;
    }

    .hero-sigil { display: none; }
    .hero h2 { font-size: 1.65rem; }
    .hero-actions { flex-direction: column; gap: 0.6rem; }
    .hero-actions .btn-primary,
    .hero-actions .btn-outline { width: 100%; justify-content: center; }

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

    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

    .main-footer { padding: 2rem 1.25rem 1.25rem; }
    .main-footer .footer-content { flex-direction: column; gap: 1.5rem; }
    .bottom-bar { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

    .ann-body { max-height: 200px; }
}

/* =========================================================================
   RESPONSIVE — MOBILE (480px)
   ========================================================================= */

@media (max-width: 480px) {

    .main-header { height: 56px; padding: 0 1rem; }

    .logo-container h1 a { font-size: 0.95rem; letter-spacing: 0.25em; }

    .content-wrapper { padding: 0 1rem 3rem; }

    .banner-section {
        margin-left: -1rem;
        width: calc(100% + 2rem);
    }

    .homepage-banner { max-height: 170px; }

    .hero h2 { font-size: 1.3rem; letter-spacing: 0.06em; }

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

    .gothic-card { padding: 1.25rem 1rem; }

    h1, h2, h3, h4, h5, h6 { letter-spacing: 0.08em; }

    .ann-body { max-height: 160px; }

    /* Lightbox full screen on mobile */
    #lightboxImg {
        max-width: 96vw;
        max-height: 70vh;
    }

    /* Wrap flex containers that exceed screen width */
    .profile-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.25rem;
    }
    .profile-pic, .profile-pic-placeholder {
        width: 120px;
        height: 120px;
    }
    .member-card { padding: 1.25rem 1rem; }
    .form-row.split { flex-direction: column; gap: 1rem !important; }
}
