:root {
    --page: #101426;
    --surface: #171e32;
    --text: #ece3d0;
    --muted: #aaaeb8;
    --gold: #d5ad67;
    --line: rgba(236, 227, 208, .11);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
    scrollbar-color: #ece3d0 #101426;
    scrollbar-width: thin;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: "Onest Variable", "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #101426; }
::-webkit-scrollbar-thumb {
    border: 2px solid #101426;
    border-radius: 10px;
    background: #ece3d0;
}
::-webkit-scrollbar-thumb:hover { background: #fff8e9; }
a { color: inherit; text-decoration: none; }
.public-container { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.public-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 86px;
    border-bottom: 1px solid transparent;
    background: transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.public-header.is-scrolled {
    border-bottom-color: var(--line);
    background: rgba(9, 13, 27, .86);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.header-inner { height: 86px; display: flex; align-items: center; justify-content: space-between; }
.public-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Old Standard TT", "Times New Roman", serif;
    font-size: 20px;
    letter-spacing: .04em;
}
.public-brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-emblem {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid rgba(236,227,208,.35);
    border-radius: 50%;
    color: #d9b56f;
    font-size: 12px;
}
.public-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.public-nav a { color: var(--muted); transition: color .2s; }
.public-nav a:hover, .public-nav a.active { color: var(--text); }
.public-nav .nav-discord { color: #aeb9ff; }
.public-nav .nav-discord:hover { color: #d3d9ff; }
.menu-toggle { display: none; }

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background: linear-gradient(135deg, #090f24 0%, #1d2d52 55%, #11182a 100%);
}
.hero-slide {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease;
    object-fit: cover;
    object-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-fallback { background: linear-gradient(135deg, #090f24 0%, #1d2d52 55%, #11182a 100%); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7,11,27,.88) 0%, rgba(11,17,38,.68) 48%, rgba(12,19,40,.35) 100%),
        linear-gradient(0deg, rgba(16,20,38,.4), transparent);
}
.hero-inner {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr);
    gap: 48px;
    align-items: center;
}
.hero-copy { max-width: 700px; padding-top: 54px; }
.hero-visual { display: grid; place-items: center; }
.hero-logo { display: block; width: min(100%, 320px); height: auto; object-fit: contain; filter: drop-shadow(0 18px 35px rgba(0, 0, 0, .35)); }
.hero-visual { animation: logo-drift 7s ease-in-out infinite; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.hero h1 {
    margin: 0;
    font-family: "Old Standard TT", "Times New Roman", serif;
    font-size: clamp(58px, 7.5vw, 94px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: .02em;
    white-space: nowrap;
}
.hero h2 {
    margin: 18px 0 12px;
    color: #c4a565;
    font-family: "Old Standard TT", "Times New Roman", serif;
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 400;
}
.hero-description { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.8; font-size: 15px; }
.hero-actions, .connect-actions { display: flex; gap: 12px; margin-top: 28px; }
.button-gold, .button-plain, .button-discord {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    padding: 0 22px;
    font-size: 14px;
}
.button-gold { color: #171b29; background: #d3b16f; font-weight: 700; }
.button-plain { color: var(--text); background: rgba(255,255,255,.08); }
.button-discord { color: #f3f5ff; background: #4656c8; font-weight: 700; }
.project-section, .leadership-section, .honors-section, .materials-section,
.gallery-section, .connect-section, .public-footer {
    padding: 88px 0;
    background: var(--page);
    border-top: 1px solid var(--line);
}
.public-footer { border-top: 1px solid var(--line); }
.section-kicker { margin: 0 0 12px; color: #c4a565; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.section-title { margin: 0; font-family: "Old Standard TT", "Times New Roman", serif; font-weight: 400; font-size: clamp(38px, 5vw, 58px); }
.section-heading { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-intro { max-width: 680px; margin: 18px 0 0; color: var(--muted); line-height: 1.8; }
.section-heading .section-intro { margin-right: auto; margin-left: auto; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 42px; margin-top: 38px; }
.feature-grid article {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: center;
    min-height: 64px;
    border-bottom: 1px solid var(--line);
}
.feature-grid span { color: #71809e; font-family: "Old Standard TT", serif; }
.feature-grid p { margin: 0; color: #d1cfca; }

.people-grid { display: grid; gap: 18px; }
.leadership-grid { max-width: 780px; margin: 0 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.honors-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.person-card {
    padding: 28px 24px;
    border: 1px solid rgba(146, 165, 203, .18);
    border-radius: 12px;
    background: transparent;
    text-align: center;
}
.person-role {
    display: inline-block;
    padding: 6px 11px;
    border: 1px solid rgba(212, 87, 100, .35);
    border-radius: 30px;
    color: #e48c91;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.person-card h3 { margin: 18px 0 10px; font-family: "Old Standard TT", "Times New Roman", serif; font-size: 23px; font-weight: 400; }
.person-card p { min-height: 48px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.person-contact { display: block; margin-top: 18px; color: #c9ab72; font-size: 12px; }
.honor-card { padding: 24px 18px; }
.honor-card h3 { font-size: 20px; }
.honor-card p { min-height: 70px; }

.gallery-section { padding: 82px 0 95px; }
.gallery-shell {
    position: relative;
    width: min(1800px, calc(100% - 64px));
    max-width: 1800px;
}
.gallery-heading { margin-bottom: 34px; }
.gallery-track {
    position: relative;
    height: clamp(330px, 42vw, 560px);
    overflow: hidden;
    touch-action: pan-y;
}
.gallery-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(52%, 900px);
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) scale(.78);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .9s cubic-bezier(.22, 1, .36, 1),
        visibility .8s ease;
    pointer-events: none;
}
.gallery-card.is-active {
    z-index: 3;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}
.gallery-card.is-prev, .gallery-card.is-next {
    z-index: 2;
    opacity: .48;
    visibility: visible;
}
.gallery-card.is-prev, .gallery-card.is-next { filter: saturate(.72); }
.gallery-card.is-prev { transform: translateX(calc(-50% - 25vw)) scale(.78); }
.gallery-card.is-next { transform: translateX(calc(-50% + 25vw)) scale(.78); }
.gallery-card img, .gallery-placeholder {
    width: 100%;
    height: calc(100% - 32px);
    display: block;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #252d48, #141a2e);
}
.gallery-placeholder { display: grid; place-items: center; color: #7e8494; border: 1px solid var(--line); }
.gallery-caption { display: flex; justify-content: space-between; height: 32px; padding-top: 10px; color: #c4a565; font-size: 13px; }
.gallery-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    margin-top: -24px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(13, 18, 30, .8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    font: inherit;
    font-size: 25px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.gallery-arrow:hover { border-color: rgba(236, 227, 208, .42); color: #fff; background: rgba(13, 18, 30, .96); }
.gallery-arrow:active { transform: scale(.94); }
.gallery-arrow:focus-visible { outline: 2px solid #ece3d0; outline-offset: 3px; }
.gallery-prev { left: 0; }
.gallery-next { right: 0; }

.connect-section { padding: 90px 0; }
.connect-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: center; }
.muted-copy { max-width: 430px; color: var(--muted); line-height: 1.8; }
.server-card { padding: 24px; border: 1px solid rgba(213,173,103,.22); border-radius: 12px; background: transparent; }
.server-label { display: block; margin-bottom: 10px; color: #a7aec0; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.server-address { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 70px; border-radius: 8px; background: #0f1527; }
.server-address code { padding: 0 18px; color: #ece3d0; font-size: clamp(14px, 2vw, 19px); }
.server-address button { margin-right: 10px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.server-card > p { color: var(--muted); font-size: 13px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #65b78a; }
.button-discord { background: #5865f2; color: white; }
.resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.resource-card {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 12px;
    align-items: center;
    min-height: 110px;
    padding: 18px;
    border: 1px solid rgba(146, 165, 203, .18);
    border-radius: 10px;
    background: transparent;
}
.resource-index, .resource-arrow { color: #c9ab72; }
.resource-arrow { font-size: 10px; text-transform: uppercase; }
.resource-card h3 { margin: 0 0 7px; font-size: 14px; }
.resource-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.discord-resource { color: inherit; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.discord-resource:hover { border-color: rgba(110, 128, 255, .6); transform: translateY(-2px); }
.history-notice { display: flex; gap: 14px; margin-top: 48px; padding: 20px; border: 1px solid rgba(212,87,100,.25); border-left: 3px solid #c85b68; border-radius: 8px; background: transparent; }
.history-notice p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.history-notice strong { color: var(--text); }
.notice-mark { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 7px; color: #e48c91; background: rgba(212,87,100,.12); }

.public-footer { padding: 48px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.footer-inner p { font-size: 12px; }
.footer-admin-link { color: #8d96aa; font-size: 12px; }
.media-row { display:grid; grid-template-columns:130px 1fr auto; gap:16px; align-items:center; margin:12px 0; }
.media-row img { width:130px; height:82px; object-fit:cover; border-radius:6px; }

@keyframes logo-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

@keyframes hero-arrive {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

body.motion-ready .hero-copy {
    animation: hero-arrive .9s cubic-bezier(.22, 1, .36, 1) both;
}
body.motion-ready .hero-visual {
    animation: hero-arrive 1s .12s cubic-bezier(.22, 1, .36, 1) both, logo-drift 7s 1.2s ease-in-out infinite;
}
body.motion-ready .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .75s ease, transform .8s cubic-bezier(.22, 1, .36, 1);
}
body.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
body.motion-ready .reveal-stagger { transition-delay: var(--reveal-delay, 0ms); }
.person-card, .resource-card { transition: border-color .3s ease, transform .35s ease; }
.person-card:hover, .resource-card:hover { border-color: rgba(213, 173, 103, .42); transform: translateY(-4px); }

@media (max-width: 800px) {
    .public-container { width: min(100% - 32px, 1100px); }
    .public-header, .header-inner { height: 72px; }
    .menu-toggle { display:block; border:0; color:var(--text); background:transparent; }
    .public-nav {
        display:none;
        position:absolute;
        top:72px;
        left:16px;
        right:16px;
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        padding:10px;
        border:1px solid var(--line);
        border-radius:8px;
        background:#101426;
    }
    .public-nav.is-open { display:flex; }
    .public-nav a { width:100%; padding:12px; }
    .hero, .hero-inner { min-height:100vh; min-height:100svh; }
    .hero-inner { grid-template-columns:minmax(0, 1fr) minmax(140px, .55fr); gap:16px; }
    .hero-copy { width:100%; }
    .feature-grid, .connect-grid { grid-template-columns:1fr; }
    .honors-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .resource-grid { grid-template-columns:1fr; }
    .section-heading { text-align:left; }
    .section-heading .section-intro { margin-left:0; }
    .gallery-track { height: clamp(280px, 58vw, 420px); }
    .gallery-card { width:74%; }
    .gallery-card.is-prev { transform: translateX(calc(-50% - 27vw)) scale(.78); }
    .gallery-card.is-next { transform: translateX(calc(-50% + 27vw)) scale(.78); }
    .gallery-prev { left:0; }
    .gallery-next { right:0; }
    .server-address { grid-template-columns:1fr; gap:8px; padding:12px 0; }
    .server-address button { margin:0 18px; text-align:left; }
    .footer-inner { flex-direction:column; align-items:flex-start; gap:12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
@media (max-width: 520px) {
    .leadership-grid, .honors-grid { grid-template-columns:1fr; }
    .hero-inner { grid-template-columns:minmax(0, 1fr) 96px; gap:8px; }
    .hero h1 { font-size: clamp(36px, 11vw, 58px); }
    .hero-actions, .connect-actions { flex-wrap:wrap; }
    .server-address code { overflow-wrap:anywhere; }
    .person-card p, .honor-card p { min-height:0; }
    .gallery-shell { width:calc(100% - 24px); }
    .gallery-card { width:84%; }
    .gallery-card.is-prev { transform: translateX(calc(-50% - 30vw)) scale(.78); }
    .gallery-card.is-next { transform: translateX(calc(-50% + 30vw)) scale(.78); }
    .gallery-prev { left:0; }
    .gallery-next { right:0; }
    .gallery-arrow { width:40px; height:40px; }
}
