@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    --bg: #11100f;
    --surface: rgba(34, 32, 29, 0.5);
    --surface-strong: rgba(25, 23, 21, 0.82);
    --outline: rgba(255, 255, 255, 0.21);
    --text: #f5f1e8;
    --muted: #c8c0b3;
    --primary: #f1ebe0;
    --primary-strong: #fff8ed;
    --accent: #e6dac6;
    --shadow: 0 24px 50px rgba(5, 5, 4, 0.46);
    --radius-lg: 18px;
    --radius-md: 12px;
}

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

body {
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

ul {
    list-style: none;
}

.bg-fixed {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 11, 10, 0.38), rgba(12, 11, 10, 0.8));
    z-index: 0;
}

nav.site-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 332px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.6rem 1.25rem;
    z-index: 100;
    background: rgba(20, 18, 16, 0.78);
    backdrop-filter: blur(14px);
    border-right: 1px solid var(--outline);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.22);
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.sidebar-tag {
    margin-top: 0.35rem;
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.logo {
    letter-spacing: 0.08em;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 1.5rem;
}

.nav-links a,
.nav-group-label {
    color: var(--muted);
    font-weight: 500;
}

.nav-links > li > a,
.nav-group-label {
    display: block;
    width: 100%;
    padding: 0.78rem 0.88rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-group-label {
    cursor: default;
}

.nav-links a:hover,
.nav-group-label:hover,
.active-link {
    color: var(--primary);
}

.nav-links > li > a.active-link,
.nav-group-label.active-link,
.dropdown-content a.active-link {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text);
}

.dropdown {
    position: relative;
}

.dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown-content {
    display: block;
    position: static;
    margin-top: 0.35rem;
    padding-left: 0.3rem;
    min-width: 0;
    border-radius: var(--radius-md);
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.dropdown-content a {
    display: block;
    padding: 0.58rem 0.75rem;
    margin-left: 1.05rem;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.13);
    color: var(--text);
}

.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: block;
}

.hamburger {
    display: none;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.09);
    cursor: pointer;
}

.mobile-nav-close {
    display: none;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    margin-left: 332px;
    width: calc(100% - 332px);
    min-height: 100vh;
    padding: 2rem 1.25rem 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: filter 0.28s ease, transform 0.28s ease;
}

.glass-card {
    width: min(1120px, 94%);
    margin-bottom: 2rem;
    padding: 2.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--outline);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    animation: riseIn 0.45s ease-out both;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 45%, transparent 65%),
        radial-gradient(circle at 110% -10%, rgba(255, 255, 255, 0.11), transparent 40%);
    pointer-events: none;
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

.glass-card h1,
.glass-card h2,
.glass-card h3 {
    line-height: 1.2;
    margin-bottom: 0.9rem;
}

.glass-card h1 {
    font-size: clamp(2rem, 3.9vw, 3.3rem);
}

.glass-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--primary);
}

.member-card h3 {
    font-size: 1.1rem;
    margin: 0.8rem 0 0.5rem 0;
    background: linear-gradient(135deg, #fff8f0, #f2e9dd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.glass-card p {
    line-height: 1.72;
    font-size: 1.04rem;
    color: #efe8dc;
    margin-bottom: 1rem;
}

.glass-hero {
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 55px rgba(4, 14, 32, 0.5);
}

.hero-title {
    background: linear-gradient(95deg, #fff9ef, #f2e8dc 46%, #e4d7c3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 660px;
    margin-left: auto;
    margin-right: auto;
}

.hero-pill-row {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.2rem 0 1.5rem;
}

.hero-pill {
    padding: 0.46rem 0.86rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #e8dfd2;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn {
    display: inline-block;
    padding: 0.62rem 1.2rem;
    border-radius: 999px;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #201b16;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-text {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--muted);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

.highlight-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
}

.highlight-list li:last-child {
    border-bottom: 0;
}

.scroll-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

.scroll-list::-webkit-scrollbar {
    width: 8px;
}

.scroll-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.scroll-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.35);
    border-radius: 8px;
}

.load-more-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.84rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: rgba(255, 255, 255, 0.12);
    color: #f6eee1;
    font-weight: 600;
    cursor: pointer;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.event-card {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
}

.top-tier-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.1rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.18);
}

.top-tier-grid .member-card {
    padding: 1.2rem 1rem;
    width: 220px;
    max-width: 220px;
}

.top-tier-grid .member-img {
    width: 104px;
    height: 104px;
}

.top-tier-grid .member-role {
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.top-tier-grid h3 {
    font-size: 1.08rem;
}

.member-card {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 200px;
    max-width: 200px;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.46);
    box-shadow: 0 20px 40px rgba(6, 5, 4, 0.55), 0 0 30px rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
}

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

.member-card:hover .member-img {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
}

.member-img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    margin-bottom: 0.75rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.19);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-role {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
    font-weight: 600;
}

.members-list-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 0.8rem;
}

.compact-item {
    border-radius: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.75rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    transition: all 0.25s ease;
}

.compact-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0%, transparent 100%);
    border-color: rgba(255, 255, 255, 0.26);
}

.compact-item span {
    display: block;
    color: var(--muted);
    font-size: 0.84rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0%, transparent 80%);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    transition: all 0.25s ease;
}

.timeline-item:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0%, transparent 80%);
    border-color: rgba(255, 255, 255, 0.29);
    transform: translateX(4px);
}

.timeline-year {
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

.info-chip {
    border-radius: var(--radius-md);
    border: 1px solid var(--outline);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
    padding: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.info-chip:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.4);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
}

.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    color: #f1e8db;
}

.chip-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.quiet-admin-entry {
    width: min(1000px, 92%);
    text-align: right;
    margin-top: -0.6rem;
}

.quiet-admin-entry a {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.quiet-admin-entry a:hover {
    color: rgba(255, 255, 255, 0.52);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.kpi-item {
    padding: 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.kpi-item strong {
    display: block;
    font-size: 1.3rem;
    color: #fff5e7;
}

.kpi-item span {
    color: var(--muted);
    font-size: 0.84rem;
}

.placeholder-card {
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-tile {
    min-height: 180px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(236, 224, 204, 0.09)),
        rgba(255, 255, 255, 0.04);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 32px rgba(2, 8, 20, 0.18);
}

.gallery-tile h3 {
    margin-bottom: 0.35rem;
}

.gallery-tile p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

@keyframes riseIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body.nav-open {
        overflow: hidden;
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(5, 10, 18, 0.62);
        z-index: 120;
    }

    body.nav-open .content-wrapper {
        filter: brightness(0.72);
        transform: scale(0.992);
    }

    .hamburger {
        display: block;
    }

    nav.site-sidebar {
        inset: 0 0 auto 0;
        width: 100%;
        min-height: 62px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 0.9rem 1rem;
        border-right: 0;
        border-bottom: 1px solid var(--outline);
        z-index: 140;
        backdrop-filter: blur(12px);
    }

    .sidebar-brand {
        align-items: center;
        flex: 1;
        justify-content: flex-start;
    }

    .sidebar-brand .hamburger {
        order: -1;
        margin-right: 0.7rem;
    }

    .mobile-nav-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid rgba(255, 255, 255, 0.25);
        background: rgba(255, 255, 255, 0.08);
        color: var(--text);
        font-size: 1.15rem;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-nav-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .mobile-nav-close-item {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 0.55rem;
    }

    .sidebar-tag {
        display: none;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 292px;
        max-width: calc(100vw - 84px);
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 5.2rem 0.85rem 1rem;
        margin: 0;
        border-radius: 0 18px 18px 0;
        background: rgba(18, 17, 15, 0.95);
        border-right: 1px solid var(--outline);
        box-shadow: 14px 0 35px rgba(0, 0, 0, 0.46);
        transform: translateX(-105%);
        transition: transform 0.28s ease;
        z-index: 160;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links,
    .nav-links li,
    .nav-links > li > a,
    .nav-group-label,
    .dropdown-content,
    .dropdown-content a {
        width: 100%;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 0;
        border: 0;
    }

    .nav-links > li > a,
    .nav-group-label {
        display: block;
        width: 100%;
        padding: 0.68rem 0.72rem;
        border-radius: 10px;
        background: rgba(255, 243, 229, 0.04);
        color: var(--text);
    }

    .nav-links > li > a:hover,
    .nav-group-label:hover {
        background: rgba(255, 255, 255, 0.14);
    }

    .dropdown::after {
        display: none;
    }

    .dropdown-content,
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: block;
        position: relative;
        top: 0;
        margin-top: 0.35rem;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        border-color: rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.07);
    }

    .dropdown-content a {
        margin-left: 0.95rem;
        border-left: 1px solid rgba(255, 255, 255, 0.22);
        padding: 0.62rem 0.72rem;
    }

    .glass-card {
        width: 95%;
        padding: 1.5rem;
    }

    .content-wrapper {
        margin-left: 0;
        width: 100%;
        padding: 118px 1rem 56px;
    }

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

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

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

    .members-grid {
        gap: 0.75rem;
    }

    .members-grid .member-card {
        width: 176px;
        max-width: 176px;
    }

    .top-tier-grid {
        gap: 0.8rem;
        padding-bottom: 1rem;
    }

    .member-card {
        padding: 0.8rem 0.7rem;
        width: 176px;
        max-width: 176px;
    }

    .top-tier-grid .member-card {
        width: 188px;
        max-width: 188px;
    }

    .member-img {
        width: 70px;
        height: 70px;
        margin-bottom: 0.6rem;
    }

    .top-tier-grid .member-img {
        width: 78px;
        height: 78px;
    }

    .member-role {
        font-size: 0.66rem;
    }

    .top-tier-grid h3,
    .member-card h3 {
        font-size: 0.98rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .members-grid .member-card {
        width: min(82vw, 200px);
        max-width: min(82vw, 200px);
    }

    .top-tier-grid .member-card {
        width: min(86vw, 220px);
        max-width: min(86vw, 220px);
    }
}