:root {
    --crimson: #8f1d2c;
    --deep-crimson: #430b15;
    --oxblood: #26070c;
    --gold: #c7a04b;
    --gold-soft: #ead8a4;
    --jade: #315f52;
    --pine: #123f38;
    --blue-ink: #1c3148;
    --warm-clay: #b86745;
    --ivory: #f7f0e2;
    --porcelain: #fffaf0;
    --paper: #fbf6ea;
    --ink: #171514;
    --charcoal: #282321;
    --stone: #a99c8c;
    --line: rgba(67, 11, 21, 0.16);
    --white-line: rgba(255, 250, 240, 0.18);
    --shadow: 0 24px 80px rgba(38, 7, 12, 0.18);
    --radius: 8px;
    --header-h: 78px;
}

:root[data-theme="dark"] {
    --ivory: #110a0c;
    --porcelain: #fffaf0;
    --paper: #1a0f12;
    --ink: #fffaf0;
    --charcoal: #fbf6ea;
    --line: rgba(255, 250, 240, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    background: var(--ivory);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", system-ui, sans-serif;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    color: var(--deep-crimson);
    font-size: 0.92em;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 2px;
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(199, 160, 75, 0.14), transparent 18%),
        linear-gradient(135deg, #fffaf0, #ead8c0 58%, #f7f0e2);
    will-change: transform;
}

:root[data-theme="dark"] .preloader {
    background:
        radial-gradient(circle at 50% 50%, rgba(199, 160, 75, 0.1), transparent 18%),
        linear-gradient(135deg, var(--oxblood), #100306 58%, var(--deep-crimson));
}

.preloader::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.preloader::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(199, 160, 75, 0.1) 0 7%, rgba(255, 250, 240, 0.06) 28%, rgba(247, 240, 226, 0.42) 72%);
}

:root[data-theme="dark"] .preloader::after {
    background:
        radial-gradient(circle at 50% 50%, rgba(199, 160, 75, 0.08) 0 7%, rgba(38, 7, 12, 0.18) 28%, rgba(38, 7, 12, 0.82) 72%);
}

.preloader .brand__mark {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
    opacity: 0;
    will-change: transform, opacity;
}

.brand__mark.is-landing-target {
    opacity: 0;
}

.grain {
    position: fixed;
    inset: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0.15;
    background-image: radial-gradient(rgba(23, 21, 20, 0.18) 0.6px, transparent 0.6px);
    background-size: 4px 4px;
    mix-blend-mode: multiply;
    will-change: transform;
    transform: translateZ(0);
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: 3px;
    background: rgba(38, 7, 12, 0.1);
}

.progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--crimson), var(--gold));
}

.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    max-width: calc(100% - 28px);
    min-height: 68px;
    padding: 10px 12px;
    border: 1px solid rgba(234, 216, 164, 0.28);
    border-radius: 999px;
    color: var(--porcelain);
    background:
        linear-gradient(135deg, rgba(50, 10, 18, 0.92), rgba(22, 7, 10, 0.86)),
        rgba(38, 7, 12, 0.78);
    box-shadow: 0 18px 50px rgba(38, 7, 12, 0.28);
    backdrop-filter: blur(24px) saturate(130%);
    transform: translateX(-50%);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 50%;
    color: var(--porcelain);
    background: transparent;
    transition: background 0.25s ease, transform 0.25s ease;
}

.theme-toggle:hover {
    background: rgba(255, 250, 240, 0.1);
    transform: translateY(-1px);
}

.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

:root[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    flex: 0 0 auto;
    padding-right: 12px;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(234, 216, 164, 0.52);
    border-radius: 50%;
    color: var(--gold-soft);
    font-family: "Cinzel", serif;
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(145deg, rgba(143, 29, 44, 0.92), rgba(49, 95, 82, 0.62));
    box-shadow: inset 0 0 18px rgba(234, 216, 164, 0.12);
    overflow: hidden;
}

.brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand strong,
.brand small {
    display: block;
    line-height: 1;
}

.brand strong {
    font-family: "Cinzel", serif;
    letter-spacing: 0.04em;
}

.brand small {
    margin-top: 5px;
    color: rgba(255, 250, 240, 0.68);
    font-size: 0.72rem;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 5px;
    max-width: none;
    min-width: 0;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.07);
}

.site-nav a {
    flex: 0 0 auto;
    position: relative;
    padding: 10px 12px;
    border-radius: 999px;
    color: rgba(255, 250, 240, 0.76);
    font-size: clamp(0.68rem, 0.72vw, 0.82rem);
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--oxblood);
    background: linear-gradient(135deg, var(--gold-soft), #d6b866);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 50%;
    background: transparent;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--porcelain);
}

.section {
    position: relative;
    min-height: 100vh;
    padding: 130px max(24px, calc((100vw - 1180px) / 2)) 96px;
}

.intro,
.calendar,
.gallery {
    background:
        radial-gradient(circle at 88% 18%, rgba(199, 160, 75, 0.16), transparent 30%),
        linear-gradient(180deg, var(--paper), #f2e7d4);
}

:root[data-theme="dark"] .intro,
:root[data-theme="dark"] .calendar,
:root[data-theme="dark"] .gallery {
    background:
        radial-gradient(circle at 88% 18%, rgba(199, 160, 75, 0.08), transparent 30%),
        linear-gradient(180deg, var(--paper), var(--ivory));
}

.news {
    background:
        radial-gradient(circle at 12% 20%, rgba(49, 95, 82, 0.16), transparent 28%),
        linear-gradient(180deg, #f8f0df, #efe1c9);
}

:root[data-theme="dark"] .news {
    background:
        radial-gradient(circle at 12% 20%, rgba(49, 95, 82, 0.16), transparent 28%),
        linear-gradient(180deg, var(--paper), var(--oxblood));
}

.history {
    background:
        linear-gradient(90deg, rgba(67, 11, 21, 0.07) 1px, transparent 1px) 0 0 / 88px 88px,
        linear-gradient(180deg, #fbf6ea, #efe3d1);
}

:root[data-theme="dark"] .history {
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.03) 1px, transparent 1px) 0 0 / 88px 88px,
        linear-gradient(180deg, var(--paper), var(--ivory));
}

.organizations {
    background:
        radial-gradient(circle at 80% 18%, rgba(184, 103, 69, 0.16), transparent 28%),
        linear-gradient(180deg, #f5ead9, #faf4e9);
}

:root[data-theme="dark"] .organizations {
    background:
        radial-gradient(circle at 80% 18%, rgba(184, 103, 69, 0.16), transparent 28%),
        linear-gradient(180deg, var(--paper), var(--ivory));
}

.facilities {
    background:
        radial-gradient(circle at 16% 22%, rgba(28, 49, 72, 0.17), transparent 28%),
        linear-gradient(180deg, #f8f2e6, #e9dcc8);
    min-height: auto;
    overflow: hidden;
}

:root[data-theme="dark"] .facilities {
    background:
        radial-gradient(circle at 16% 22%, rgba(28, 49, 72, 0.17), transparent 28%),
        linear-gradient(180deg, var(--paper), var(--ivory));
}

.hero {
    display: grid;
    align-items: end;
    min-height: 100vh;
    color: var(--deep-crimson);
    overflow: hidden;
    isolation: isolate;
}

:root[data-theme="dark"] .hero {
    color: var(--porcelain);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    width: 100%;
    padding-bottom: 170px;
}

.hero__media,
.hero__shade {
    position: absolute;
    inset: 0;
}

.hero__media {
    z-index: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(199, 160, 75, 0.24), transparent 24%),
        radial-gradient(circle at 18% 78%, rgba(49, 95, 82, 0.18), transparent 30%),
        linear-gradient(120deg, #fbf6ea 0%, #ead8c0 48%, #d9e2d8 100%);
    will-change: transform;
    transform: translateZ(0);
}

:root[data-theme="dark"] .hero__media {
    background:
        radial-gradient(circle at 78% 18%, rgba(199, 160, 75, 0.22), transparent 24%),
        radial-gradient(circle at 18% 78%, rgba(49, 95, 82, 0.25), transparent 30%),
        linear-gradient(120deg, #27070d 0%, #5e1221 42%, #111c1a 100%);
}

.hero__media::before,
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero__media::before {
    opacity: 0.5;
    background:
        linear-gradient(90deg, rgba(67, 11, 21, 0.08) 1px, transparent 1px) 0 0 / 84px 84px,
        linear-gradient(0deg, rgba(67, 11, 21, 0.06) 1px, transparent 1px) 0 0 / 84px 84px;
}

:root[data-theme="dark"] .hero__media::before {
    opacity: 0.24;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.12) 1px, transparent 1px) 0 0 / 84px 84px,
        linear-gradient(0deg, rgba(255, 250, 240, 0.08) 1px, transparent 1px) 0 0 / 84px 84px;
}

.hero__media::after {
    left: auto;
    width: min(44vw, 560px);
    background:
        linear-gradient(135deg, transparent 0 21%, rgba(143, 29, 44, 0.12) 21% 22%, transparent 22% 42%, rgba(49, 95, 82, 0.1) 42% 43%, transparent 43%),
        radial-gradient(circle at 45% 48%, rgba(255, 250, 240, 0.5), transparent 44%);
    mask-image: linear-gradient(90deg, transparent, #000 16%, #000 82%, transparent);
}

:root[data-theme="dark"] .hero__media::after {
    background:
        linear-gradient(135deg, transparent 0 21%, rgba(234, 216, 164, 0.12) 21% 22%, transparent 22% 42%, rgba(255, 250, 240, 0.08) 42% 43%, transparent 43%),
        radial-gradient(circle at 45% 48%, rgba(255, 250, 240, 0.08), transparent 44%);
}

.hero__shade {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 250, 240, 0.92), rgba(255, 250, 240, 0.62), rgba(255, 250, 240, 0.84)),
        linear-gradient(0deg, rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.12) 56%, rgba(255, 250, 240, 0.58));
}

:root[data-theme="dark"] .hero__shade {
    background:
        linear-gradient(90deg, rgba(38, 7, 12, 0.9), rgba(38, 7, 12, 0.56), rgba(38, 7, 12, 0.88)),
        linear-gradient(0deg, rgba(38, 7, 12, 0.92), rgba(38, 7, 12, 0.08) 56%, rgba(38, 7, 12, 0.58));
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1 1 50%;
    min-width: 0;
}

.hero__image {
    position: relative;
    flex: 1 1 45%;
    min-width: 0;
    max-width: 520px;
}

.hero__image-placeholder {
    min-height: 380px;
    border: 0;
    border-radius: var(--radius);
}

.hero__image-placeholder::after {
    display: none;
}

.eyebrow,
.section__label,
.card-kicker {
    margin: 0 0 16px;
    color: var(--crimson);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .section__label {
    color: var(--gold-soft);
}

.hero__title,
.section-title,
.mission__panel h2 {
    margin: 0;
    font-family: "Cinzel", serif;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: 0;
}

.hero__title {
    max-width: 700px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
}

:root[data-theme="dark"] .hero__title {
    color: var(--porcelain);
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.hero__lead {
    max-width: 650px;
    margin: 28px 0 0;
    color: rgba(23, 21, 20, 0.76);
    font-size: clamp(1.04rem, 1.6vw, 1.3rem);
    line-height: 1.7;
}

:root[data-theme="dark"] .hero__lead {
    color: rgba(255, 250, 240, 0.82);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.83rem;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.button:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.button--gold {
    color: var(--oxblood);
    background: var(--gold-soft);
}

.button--ghost {
    color: var(--deep-crimson);
    border-color: rgba(67, 11, 21, 0.22);
    background: rgba(255, 250, 240, 0.5);
}

:root[data-theme="dark"] .button--ghost {
    color: var(--porcelain);
    border-color: rgba(255, 250, 240, 0.32);
    background: rgba(255, 250, 240, 0.08);
}

.hero__stats {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    left: max(24px, calc((100vw - 1180px) / 2));
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid rgba(67, 11, 21, 0.14);
    background: rgba(67, 11, 21, 0.08);
}

.hero__stats article {
    padding: 22px;
    background: rgba(255, 250, 240, 0.66);
}

.hero__stats span {
    display: block;
    color: var(--crimson);
    font-family: "Cinzel", serif;
    font-size: 1.7rem;
}

.hero__stats p {
    margin: 8px 0 0;
    color: rgba(23, 21, 20, 0.68);
    font-size: 0.88rem;
    line-height: 1.5;
}

:root[data-theme="dark"] .hero__stats {
    border-color: rgba(255, 250, 240, 0.2);
    background: rgba(255, 250, 240, 0.12);
}

:root[data-theme="dark"] .hero__stats article {
    background: rgba(38, 7, 12, 0.48);
}

:root[data-theme="dark"] .hero__stats span {
    color: var(--gold-soft);
}

:root[data-theme="dark"] .hero__stats p {
    color: rgba(255, 250, 240, 0.72);
}

.placeholder {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(199, 160, 75, 0.36);
    border-radius: var(--radius);
    color: rgba(255, 250, 240, 0.72);
    background:
        linear-gradient(135deg, rgba(143, 29, 44, 0.96), rgba(67, 11, 21, 0.94) 45%, rgba(23, 21, 20, 0.92)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 250, 240, 0.08) 14px 15px);
}

.placeholder.has-image {
    background-position: center;
    background-size: cover;
}


.placeholder::before {
    content: attr(data-image-name);
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    max-width: calc(100% - 36px);
    color: var(--gold-soft);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.placeholder::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 250, 240, 0.16);
}

.placeholder > span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: rgba(255, 250, 240, 0.72);
    font-family: "Cinzel", serif;
    font-size: clamp(1.25rem, 3vw, 2.6rem);
}

.placeholder.has-image::before,
.placeholder.has-image > span {
    opacity: 0;
}

.section-heading,
.intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: clamp(32px, 7vw, 96px);
    align-items: end;
    margin-bottom: 54px;
}

.section-title {
    max-width: 900px;
    color: var(--deep-crimson);
    font-size: clamp(2.3rem, 6vw, 5.7rem);
}

:root[data-theme="dark"] .section-title {
    color: var(--porcelain);
}

.news .section-title {
    color: var(--pine);
}

.history .section-title,
.calendar .section-title {
    color: var(--deep-crimson);
}

.organizations .section-title {
    color: #71351f;
}

.facilities .section-title {
    color: var(--blue-ink);
    font-size: clamp(2.35rem, 5.2vw, 5rem);
}

:root[data-theme="dark"] .facilities .section-title,
:root[data-theme="dark"] .news .section-title,
:root[data-theme="dark"] .history .section-title,
:root[data-theme="dark"] .calendar .section-title,
:root[data-theme="dark"] .organizations .section-title {
    color: var(--porcelain);
}

.facilities .section-heading {
    margin-bottom: 34px;
}

.section-copy,
.intro__copy {
    color: rgba(23, 21, 20, 0.72);
    font-size: 1rem;
    line-height: 1.8;
}

:root[data-theme="dark"] .section-copy,
:root[data-theme="dark"] .intro__copy {
    color: rgba(255, 250, 240, 0.72);
}

.intro {
    min-height: 72vh;
}

.intro__copy p {
    margin: 0 0 18px;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.news-card,
.calendar-card,
.org-card,
.requirements article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.78);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

:root[data-theme="dark"] .news-card,
:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .org-card,
:root[data-theme="dark"] .requirements article {
    background: rgba(38, 7, 12, 0.68);
    border-color: rgba(255, 250, 240, 0.12);
}

.news-card:hover,
.calendar-card:hover,
.org-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 32px 90px rgba(38, 7, 12, 0.24) !important;
}

.news-card {
    display: grid;
    gap: clamp(24px, 4vw, 54px);
    padding: clamp(18px, 2.4vw, 32px);
}

.news-card--featured {
    grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 1fr);
    align-items: center;
}

.news-card__media {
    display: grid;
    place-items: center;
    min-height: clamp(260px, 34vw, 430px);
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(199, 160, 75, 0.28);
    border-radius: calc(var(--radius) - 6px);
    background: rgba(38, 7, 12, 0.42);
}

.news-card__media img {
    width: 100%;
    height: auto;
    max-height: clamp(260px, 34vw, 430px);
    display: block;
    object-fit: contain;
}

.news-card__content {
    max-width: 620px;
    padding: clamp(4px, 1vw, 12px) 0;
}

.news-card h3,
.timeline__item h3,
.calendar-card h3,
.org-card h3,
.facility-card h3,
.requirements h3,
.mission__cards h3 {
    margin: 0;
    color: var(--deep-crimson);
    font-family: "Cinzel", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

.news-card h3 {
    font-size: clamp(1.9rem, 3.4vw, 3.6rem);
}

.news-card p,
.timeline__item p,
.calendar-card p,
.org-card p,
.requirements li,
.mission__cards p {
    color: rgba(23, 21, 20, 0.7);
    line-height: 1.65;
}

:root[data-theme="dark"] .news-card h3,
:root[data-theme="dark"] .timeline__item h3,
:root[data-theme="dark"] .calendar-card h3,
:root[data-theme="dark"] .org-card h3,
:root[data-theme="dark"] .requirements h3 {
    color: var(--porcelain);
}

:root[data-theme="dark"] .news-card p,
:root[data-theme="dark"] .timeline__item p,
:root[data-theme="dark"] .calendar-card p,
:root[data-theme="dark"] .org-card p,
:root[data-theme="dark"] .requirements li {
    color: rgba(255, 250, 240, 0.72);
}

.card-kicker {
    margin-bottom: 8px;
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(67, 11, 21, 0.18);
    border: 1px solid var(--line);
    padding-top: 4px;
}

.timeline-progress-track {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(67, 11, 21, 0.1);
    z-index: 5;
}

.timeline-progress-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    transform-origin: left center;
    transform: scaleX(0);
    will-change: transform;
}

.timeline__item {
    min-height: 410px;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(247, 240, 226, 0.82));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    will-change: transform;
}

:root[data-theme="dark"] .timeline__item {
    background:
        linear-gradient(180deg, rgba(38, 7, 12, 0.92), rgba(22, 7, 10, 0.82));
}

.timeline__item:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 24px 60px rgba(67, 11, 21, 0.15) !important;
    z-index: 10;
    position: relative;
}

.timeline__item span,
.calendar-card span,
.org-card span {
    display: inline-block;
    margin-bottom: 76px;
    color: var(--crimson);
    font-family: "Cinzel", serif;
    font-size: 2.2rem;
}

:root[data-theme="dark"] .timeline__item span,
:root[data-theme="dark"] .calendar-card span,
:root[data-theme="dark"] .org-card span {
    color: var(--gold-soft);
}

.mission {
    display: grid;
    align-items: center;
    color: var(--ink);
    background:
        radial-gradient(circle at 82% 18%, rgba(199, 160, 75, 0.16), transparent 28%),
        linear-gradient(135deg, #f7f0e2, #eadcc6);
    overflow: hidden;
}

:root[data-theme="dark"] .mission {
    color: var(--porcelain);
    background: var(--oxblood);
}

.mission__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    opacity: 0.2;
}

:root[data-theme="dark"] .mission__backdrop {
    opacity: 0.45;
}

.mission::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 250, 240, 0.94), rgba(255, 250, 240, 0.84), rgba(255, 250, 240, 0.58));
}

:root[data-theme="dark"] .mission::after {
    background: linear-gradient(90deg, rgba(38, 7, 12, 0.92), rgba(38, 7, 12, 0.82), rgba(38, 7, 12, 0.45));
}

.mission__panel {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.7);
    backdrop-filter: blur(16px);
}

.mission__panel h2 {
    max-width: 850px;
    color: var(--deep-crimson);
    font-size: clamp(2rem, 5vw, 4.8rem);
}

:root[data-theme="dark"] .mission__panel {
    border-color: var(--white-line);
    background: rgba(38, 7, 12, 0.54);
}

:root[data-theme="dark"] .mission__panel h2 {
    color: var(--porcelain);
}

.mission__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 38px;
    background: var(--white-line);
}

.mission__cards article {
    padding: 22px;
    background: rgba(255, 250, 240, 0.92);
}

:root[data-theme="dark"] .mission__cards article {
    background: rgba(38, 7, 12, 0.72);
}

:root[data-theme="dark"] .mission__cards h3 {
    color: var(--gold-soft);
}

:root[data-theme="dark"] .mission__cards p {
    color: rgba(255, 250, 240, 0.72);
}

.calendar-grid,
.org-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.calendar-card,
.org-card {
    min-height: 270px;
    padding: 24px;
}

.calendar-card:nth-child(3n + 1) {
    border-color: rgba(143, 29, 44, 0.22);
}

.calendar-card:nth-child(3n + 2) {
    border-color: rgba(49, 95, 82, 0.24);
}

.calendar-card:nth-child(3n) {
    border-color: rgba(199, 160, 75, 0.34);
}

.org-card {
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.84), rgba(248, 235, 218, 0.76));
}

:root[data-theme="dark"] .org-card {
    background:
        linear-gradient(180deg, rgba(38, 7, 12, 0.84), rgba(22, 7, 10, 0.76));
}

.org-card:nth-child(2),
.org-card:nth-child(4) {
    border-color: rgba(184, 103, 69, 0.28);
}

.calendar-card span,
.org-card span {
    margin-bottom: 54px;
    font-size: 1.35rem;
}

.facility-carousel {
    position: relative;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--blue-ink);
    font-weight: 900;
}

.carousel-controls span {
    min-width: 58px;
    text-align: center;
    font-size: 0.82rem;
}

.carousel-btn {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(28, 49, 72, 0.22);
    border-radius: 50%;
    color: var(--porcelain);
    background: linear-gradient(135deg, var(--blue-ink), var(--deep-crimson));
    box-shadow: 0 12px 30px rgba(28, 49, 72, 0.18);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.carousel-btn:hover {
    transform: translateY(-2px);
}

.carousel-btn:disabled {
    cursor: default;
    opacity: 0.42;
    transform: none;
}

.facility-viewport {
    overflow: hidden;
    width: min(980px, 100%);
    margin-inline: auto;
}

.facility-track {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding: 0 0 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.facility-track::-webkit-scrollbar {
    display: none;
}

.facility-card {
    position: relative;
    flex: 0 0 100%;
    height: clamp(430px, 58vh, 640px);
    overflow: hidden;
    border-radius: var(--radius);
    scroll-snap-align: start;
    box-shadow: 0 18px 50px rgba(28, 49, 72, 0.18);
    background: rgba(14, 17, 22, 0.7);
}

.facility-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.facility-card::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(14, 17, 22, 0.86), transparent);
}

.facility-card h3 {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: var(--porcelain);
    font-size: clamp(1.85rem, 3.4vw, 4rem);
    line-height: 1;
    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.38);
}

.facility-card .placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
}

.facility-card .placeholder > span {
    right: 20px;
    bottom: 82px;
    max-width: calc(100% - 40px);
    color: rgba(255, 250, 240, 0.24);
    font-size: clamp(3rem, 8vw, 7.2rem);
    line-height: 0.9;
    overflow-wrap: anywhere;
}

.facility-dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
}

.facility-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(28, 49, 72, 0.28);
    border-radius: 999px;
    background: rgba(28, 49, 72, 0.18);
    transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.facility-dot.is-active {
    width: 30px;
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--blue-ink), var(--deep-crimson));
}

.enrollment {
    min-height: auto;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 15%, rgba(199, 160, 75, 0.22), transparent 28%),
        linear-gradient(135deg, #fbf6ea, #ead8c0);
}

.enrollment .section-title,
.enrollment .section-copy {
    color: var(--deep-crimson);
}

.enrollment .section-copy {
    color: rgba(23, 21, 20, 0.72);
}

:root[data-theme="dark"] .enrollment {
    color: var(--porcelain);
    background:
        radial-gradient(circle at 20% 15%, rgba(199, 160, 75, 0.25), transparent 28%),
        linear-gradient(135deg, var(--oxblood), var(--deep-crimson));
}

:root[data-theme="dark"] .enrollment .section-title,
:root[data-theme="dark"] .enrollment .section-copy {
    color: var(--porcelain);
}

.contact {
    background:
        radial-gradient(circle at 18% 78%, rgba(49, 95, 82, 0.12), transparent 30%),
        linear-gradient(180deg, var(--paper), var(--ivory));
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 1.3fr);
    gap: 32px;
    align-items: stretch;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 250, 240, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    justify-content: center;
}

:root[data-theme="dark"] .contact-info-wrapper {
    background: rgba(38, 7, 12, 0.54);
    border-color: rgba(255, 250, 240, 0.12);
}

.contact-info-item h3 {
    margin: 0 0 8px;
    color: var(--deep-crimson);
    font-family: "Cinzel", serif;
    font-size: 1.45rem;
    line-height: 1.15;
}

:root[data-theme="dark"] .contact-info-item h3 {
    color: var(--porcelain);
}

.contact-info-item p {
    margin: 0;
    color: rgba(23, 21, 20, 0.7);
    line-height: 1.65;
}

:root[data-theme="dark"] .contact-info-item p {
    color: rgba(255, 250, 240, 0.7);
}

.contact-info-item strong {
    color: var(--ink);
}

:root[data-theme="dark"] .contact-info-item strong {
    color: var(--porcelain);
}

.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    min-height: 400px;
    box-shadow: var(--shadow);
}

:root[data-theme="dark"] .contact-map {
    border-color: rgba(255, 250, 240, 0.12);
}

.contact-map iframe {
    filter: grayscale(80%) sepia(20%) hue-rotate(330deg) contrast(1.1) brightness(0.9);
}

:root[data-theme="dark"] .contact-map iframe {
    filter: invert(90%) grayscale(60%) sepia(30%) hue-rotate(300deg) contrast(1.2) brightness(0.8);
}

.requirements {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 46px;
}

.requirements article {
    padding: 28px;
    background: rgba(255, 250, 240, 0.94);
}

.requirements ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-btn {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--deep-crimson);
    font-weight: 800;
    background: rgba(255, 250, 240, 0.68);
}

.filter-btn.is-active {
    color: var(--porcelain);
    background: var(--deep-crimson);
}

.gallery-marquees {
    display: grid;
    gap: 18px;
    overflow: hidden;
    margin-inline: calc(max(24px, (100vw - 1180px) / 2) * -1);
    padding-block: 6px 18px;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gallery-marquee {
    overflow: hidden;
}

.gallery-marquee__track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: gallery-marquee 34s linear infinite;
}

.gallery-marquee--reverse .gallery-marquee__track {
    animation-name: gallery-marquee-reverse;
    animation-duration: 38s;
}

.gallery-marquee:hover .gallery-marquee__track {
    animation-play-state: paused;
}

.gallery-item {
    flex: 0 0 clamp(240px, 24vw, 360px);
    display: block;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
}

.gallery-item .placeholder {
    min-height: clamp(210px, 24vw, 300px);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item:nth-child(3n + 1) .placeholder {
    background:
        linear-gradient(135deg, rgba(143, 29, 44, 0.96), rgba(67, 11, 21, 0.94) 45%, rgba(23, 21, 20, 0.92)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 250, 240, 0.08) 14px 15px);
}

.gallery-item:nth-child(3n + 2) .placeholder {
    background:
        linear-gradient(135deg, rgba(18, 63, 56, 0.96), rgba(28, 49, 72, 0.92)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 250, 240, 0.08) 14px 15px);
}

.gallery-item:nth-child(3n) .placeholder {
    background:
        linear-gradient(135deg, rgba(113, 53, 31, 0.94), rgba(67, 11, 21, 0.94)),
        repeating-linear-gradient(45deg, transparent 0 14px, rgba(255, 250, 240, 0.08) 14px 15px);
}

.gallery-item:hover .placeholder {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.gallery-item.is-hidden {
    display: none;
}

@keyframes gallery-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 9px));
    }
}

@keyframes gallery-marquee-reverse {
    from {
        transform: translateX(calc(-50% - 9px));
    }

    to {
        transform: translateX(0);
    }
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 48px max(24px, calc((100vw - 1180px) / 2));
    color: var(--porcelain);
    background: var(--oxblood);
}

.footer strong {
    font-family: "Cinzel", serif;
}

.footer p {
    margin: 8px 0 0;
    color: rgba(255, 250, 240, 0.68);
}

.back-to-top {
    position: fixed;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 50%;
    color: var(--gold-soft);
    background: rgba(38, 7, 12, 0.86);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.25s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--crimson);
    color: var(--porcelain);
}

.lightbox {
    width: min(760px, calc(100% - 32px));
    padding: 16px;
    border: 1px solid rgba(255, 250, 240, 0.25);
    border-radius: var(--radius);
    color: var(--porcelain);
    background: rgba(38, 7, 12, 0.94);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
    background: rgba(23, 21, 20, 0.72);
    backdrop-filter: blur(8px);
}

.lightbox > button:first-of-type {
    display: grid;
    width: 42px;
    height: 42px;
    margin-left: auto;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 50%;
    color: var(--porcelain);
    background: transparent;
    font-size: 1.6rem;
}

.lightbox .placeholder {
    min-height: 420px;
    margin-top: 12px;
}

.lightbox h3 {
    margin: 16px 0 4px;
    font-family: "Cinzel", serif;
    font-size: 1.8rem;
}

.enrollment-modal {
    max-width: 520px;
    padding: 32px;
}

.reveal {
    will-change: transform, opacity;
}

@media (max-width: 1180px) {
    .site-header {
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: calc(var(--header-h) + 32px);
        right: 16px;
        left: 16px;
        display: none;
        max-width: none;
        padding: 16px;
        border: 1px solid rgba(255, 250, 240, 0.2);
        border-radius: var(--radius);
        background: rgba(38, 7, 12, 0.96);
    }

    body.menu-open .site-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading,
    .intro__grid,
    .news-grid,
    .news-card--featured,
    .mission__cards,
    .requirements,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .calendar-grid,
    .org-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__image {
        max-width: 380px;
        align-self: center;
    }

}

@media (max-width: 1020px) {
    .facility-viewport {
        width: 100%;
    }

    .facility-track {
        overflow-x: auto;
        padding-bottom: 12px;
        scroll-snap-type: x mandatory;
    }

    .facility-card {
        scroll-snap-align: start;
    }
}

@media (max-width: 680px) {
    :root {
        --header-h: 66px;
    }

    .site-header {
        top: 10px;
        width: calc(100% - 20px);
        min-height: var(--header-h);
        padding: 10px;
    }

    .brand__mark {
        width: 38px;
        height: 38px;
    }

    .section {
        min-height: auto;
        padding: 112px 18px 72px;
    }

    .hero {
        min-height: 100vh;
    }

    .hero__content {
        padding-bottom: 0;
    }

    .hero__inner {
        padding-bottom: 120px;
    }

    .hero__image {
        display: none;
    }

    .hero__stats {
        bottom: 18px;
        right: 18px;
        left: 18px;
    }

    .hero__stats article {
        padding: 12px 10px;
    }

    .hero__stats span {
        font-size: 1.25rem;
    }

    .hero__stats p {
        font-size: 0.75rem;
        margin-top: 4px;
    }

    .calendar-grid,
    .org-grid,
    .timeline {
        grid-template-columns: 1fr;
    }

    .timeline__item {
        min-height: auto;
    }

    .timeline__item span {
        margin-bottom: 36px;
    }

    .search-row,
    .footer {
        flex-direction: column;
    }

    .gallery-item .placeholder,
    .lightbox .placeholder {
        min-height: 280px;
    }

    .facility-card {
        height: min(68vh, 420px);
    }

    .facility-card h3 {
        font-size: 1.65rem;
    }

    .facility-card .placeholder > span {
        font-size: 3rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }

    .gallery-marquee__track {
        animation: none !important;
    }
}
