:root {
    --bg: #090909;
    --bg-elevated: #141114;
    --panel: rgba(22, 16, 20, 0.88);
    --ink: #ece2d0;
    --muted: #b7a994;
    --accent: #8d1f2d;
    --accent-soft: #c97866;
    --line: rgba(236, 226, 208, 0.14);
    --shadow: rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    --header-duration: 700ms;
    --header-delay: 0ms;
    --hero-duration: 880ms;
    --hero-delay: 180ms;
    --section-duration: 780ms;
    --section-delay: 260ms;
    --card-step: 100ms;
    --nav-step: 60ms;
    --glow-duration: 9s;
    --glow-scale: 1.06;
    --hover-lift: -6px;
    color: var(--ink);
    font-family: "Cormorant Garamond", Georgia, serif;
    background:
        radial-gradient(circle at top, rgba(141, 31, 45, 0.16), transparent 34%),
        linear-gradient(180deg, #040404 0%, #0f0a0d 48%, #050505 100%);
}

body.page-home {
    --hero-duration: 980ms;
    --hero-delay: 160ms;
    --section-delay: 300ms;
    --glow-duration: 11s;
    --hover-lift: -7px;
}

body.page-halls {
    --header-duration: 620ms;
    --hero-duration: 820ms;
    --hero-delay: 120ms;
    --section-duration: 700ms;
    --section-delay: 180ms;
    --card-step: 70ms;
    --nav-step: 45ms;
    --glow-duration: 8s;
}

body.page-lore {
    --header-duration: 820ms;
    --header-delay: 60ms;
    --hero-duration: 1020ms;
    --hero-delay: 240ms;
    --section-duration: 860ms;
    --section-delay: 320ms;
    --glow-duration: 12s;
}

body.page-gallery {
    --header-duration: 640ms;
    --hero-duration: 760ms;
    --hero-delay: 100ms;
    --section-duration: 640ms;
    --section-delay: 180ms;
    --card-step: 80ms;
    --nav-step: 40ms;
    --glow-duration: 7s;
    --glow-scale: 1.1;
    --hover-lift: -8px;
}

body.page-chronicles {
    --header-duration: 760ms;
    --header-delay: 40ms;
    --hero-duration: 940ms;
    --hero-delay: 220ms;
    --section-duration: 820ms;
    --section-delay: 280ms;
    --glow-duration: 10s;
}

body.page-rituals {
    --header-duration: 720ms;
    --hero-duration: 900ms;
    --hero-delay: 150ms;
    --section-duration: 760ms;
    --section-delay: 240ms;
    --glow-duration: 8.5s;
    --glow-scale: 1.08;
}

body.page-contact {
    --header-duration: 680ms;
    --hero-duration: 780ms;
    --hero-delay: 120ms;
    --section-duration: 700ms;
    --section-delay: 200ms;
    --card-step: 85ms;
    --nav-step: 50ms;
    --glow-duration: 8s;
    --hover-lift: -5px;
}

body.page-cause {
    --header-duration: 740ms;
    --header-delay: 30ms;
    --hero-duration: 920ms;
    --hero-delay: 170ms;
    --section-duration: 800ms;
    --section-delay: 250ms;
    --card-step: 90ms;
    --nav-step: 48ms;
    --glow-duration: 9.5s;
    --glow-scale: 1.07;
    --hover-lift: -6px;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drift-glow {
    0%,
    100% {
        transform: scale(1) translate3d(0, 0, 0);
        opacity: 0.55;
    }

    50% {
        transform: scale(var(--glow-scale)) translate3d(-8px, -10px, 0);
        opacity: 0.85;
    }
}

@keyframes nav-fade {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

a {
    color: inherit;
}

.page-shell {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    padding: 1.5rem 0 0.5rem;
    animation: rise-in var(--header-duration) ease-out var(--header-delay) both;
}

.crest {
    display: inline-block;
    margin: 0;
    color: var(--accent-soft);
    font-family: "UnifrakturCook", serif;
    font-size: clamp(2.3rem, 6vw, 4.3rem);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-shadow: 0 0 18px rgba(141, 31, 45, 0.28);
}

.tagline {
    margin: 0.15rem 0 1rem;
    color: var(--muted);
    font-size: 1.08rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(12, 10, 12, 0.74);
    box-shadow: 0 18px 50px var(--shadow);
    backdrop-filter: blur(8px);
}

.main-nav a {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    animation: nav-fade 500ms ease-out both;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.main-nav a:nth-child(1) {
    animation-delay: calc(120ms + var(--header-delay));
}

.main-nav a:nth-child(2) {
    animation-delay: calc(120ms + var(--header-delay) + var(--nav-step));
}

.main-nav a:nth-child(3) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 2));
}

.main-nav a:nth-child(4) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 3));
}

.main-nav a:nth-child(5) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 4));
}

.main-nav a:nth-child(6) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 5));
}

.main-nav a:nth-child(7) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 6));
}

.main-nav a:nth-child(8) {
    animation-delay: calc(120ms + var(--header-delay) + (var(--nav-step) * 7));
}

.main-nav a:hover,
.main-nav a.active {
    background: rgba(141, 31, 45, 0.18);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(141, 31, 45, 0.14);
}

.hero,
.content-card,
.two-column,
.timeline,
.contact-grid {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--panel);
    box-shadow: 0 25px 60px var(--shadow);
    backdrop-filter: blur(4px);
}

.hero {
    margin: 1.6rem 0;
    padding: clamp(1.5rem, 4vw, 3rem);
    overflow: hidden;
    position: relative;
    animation: rise-in var(--hero-duration) ease-out var(--hero-delay) both;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -30% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 120, 102, 0.18), transparent 70%);
    pointer-events: none;
    animation: drift-glow var(--glow-duration) ease-in-out infinite;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--accent-soft);
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 600;
    line-height: 0.95;
}

h1 {
    font-size: clamp(2.8rem, 8vw, 6rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    color: var(--accent-soft);
}

h3 {
    font-size: 1.55rem;
    color: var(--ink);
}

p {
    margin: 0;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.7;
}

.hero-copy {
    max-width: 42rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.15rem;
    border: 1px solid rgba(201, 120, 102, 0.25);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(141, 31, 45, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.button.secondary {
    background: transparent;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(141, 31, 45, 0.2);
    border-color: rgba(201, 120, 102, 0.42);
}

main {
    padding-bottom: 2rem;
}

.grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-card {
    padding: 1.4rem;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.content-card p,
.timeline p {
    margin-top: 0.8rem;
}

.content-card ul,
.panel ul,
.panel ol,
.timeline ul,
.timeline ol {
    margin: 0.9rem 0 0;
    padding-left: 1.3rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.content-card li + li,
.panel li + li,
.timeline li + li {
    margin-top: 0.35rem;
}

.handbook-stack > * + * {
    margin-top: 1rem;
}

.rank-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 1rem;
}

.rank-grid .content-card {
    animation: rise-in var(--section-duration) ease-out both;
}

.rank-grid .content-card:nth-child(1) {
    animation-delay: var(--section-delay);
}

.rank-grid .content-card:nth-child(2) {
    animation-delay: calc(var(--section-delay) + var(--card-step));
}

.rank-grid .content-card:nth-child(3) {
    animation-delay: calc(var(--section-delay) + (var(--card-step) * 2));
}

.rank-grid .content-card:nth-child(4) {
    animation-delay: calc(var(--section-delay) + (var(--card-step) * 3));
}

.rank-grid .content-card:nth-child(5) {
    animation-delay: calc(var(--section-delay) + (var(--card-step) * 4));
}

.rank-grid .content-card:nth-child(6) {
    animation-delay: calc(var(--section-delay) + (var(--card-step) * 5));
}

.grid .content-card {
    animation: rise-in var(--section-duration) ease-out both;
}

.grid .content-card:nth-child(1) {
    animation-delay: var(--section-delay);
}

.grid .content-card:nth-child(2) {
    animation-delay: calc(var(--section-delay) + var(--card-step));
}

.grid .content-card:nth-child(3) {
    animation-delay: calc(var(--section-delay) + (var(--card-step) * 2));
}

.content-card:hover {
    transform: translateY(var(--hover-lift));
    border-color: rgba(201, 120, 102, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.two-column,
.contact-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    padding: 1.25rem;
    margin-top: 1rem;
}

.mission-callout {
    margin-top: 1rem;
    padding: clamp(1.4rem, 3.6vw, 2.2rem);
    border: 1px solid rgba(201, 120, 102, 0.35);
    border-radius: 26px;
    background:
        linear-gradient(120deg, rgba(141, 31, 45, 0.2), rgba(14, 12, 14, 0.9)),
        var(--panel);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    animation: rise-in var(--section-duration) ease-out calc(var(--section-delay) + 110ms) both;
}

.mission-callout h2 {
    margin-top: 0.55rem;
    margin-bottom: 0.95rem;
}

.mission-callout p + p {
    margin-top: 0.85rem;
}

.mission-emphasis {
    color: var(--ink);
    font-size: 1.2rem;
    font-style: italic;
}

.signup-context {
    margin: 0.8rem 0 1.3rem;
    padding: 1rem;
    border: 1px solid rgba(201, 120, 102, 0.28);
    border-radius: 0.45rem;
    background: rgba(141, 31, 45, 0.1);
}

.signup-context h3 {
    margin: 0 0 0.45rem;
    color: var(--accent-soft);
    font-size: 1.2rem;
}

.signup-context p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
}

.signup-context p + p {
    margin-top: 0.6rem;
}

.panel {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.42);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.panel:hover {
    transform: translateY(calc(var(--hover-lift) + 2px));
    border-color: rgba(201, 120, 102, 0.26);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.timeline {
    margin-top: 1rem;
    padding: 1.2rem;
    animation: rise-in var(--section-duration) ease-out var(--section-delay) both;
}

.timeline-item + .timeline-item {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.quote {
    padding: 1rem 1.2rem;
    border-left: 3px solid var(--accent-soft);
    background: rgba(255, 255, 255, 0.02);
    color: var(--ink);
    font-size: 1.2rem;
    font-style: italic;
}

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

.symbol-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 1rem;
}

.symbol-card {
    padding: 1.2rem;
}

.symbol-mark {
    min-height: 260px;
    display: grid;
    place-items: center;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(201, 120, 102, 0.12), transparent 45%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    position: relative;
}

.symbol-mark::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(236, 226, 208, 0.08);
    border-radius: 18px;
}

.symbol-mark span {
    position: relative;
    z-index: 1;
    color: var(--ink);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.symbol-mark .mark-title {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.symbol-mark .mark-glyph {
    display: block;
    margin-top: 0.7rem;
    font-size: clamp(2.4rem, 7vw, 4.8rem);
    line-height: 1;
    color: var(--accent-soft);
    text-shadow: 0 0 22px rgba(141, 31, 45, 0.22);
}

.symbol-mark .mark-image {
    display: block;
    width: min(320px, 72vw);
    max-width: 100%;
    margin: 0.7rem auto 0;
    height: auto;
}

.symbol-mark.sovereignty .mark-glyph,
.symbol-mark.resolve .mark-glyph {
    color: #8fa6ff;
}

.symbol-mark.guard .mark-glyph,
.symbol-mark.knight-emblem .mark-glyph {
    color: #f0ece2;
}

.symbol-mark.knight-sigil .mark-glyph {
    font-family: "UnifrakturCook", serif;
}

.symbol-card p + p,
.symbol-card p + h3,
.symbol-card h3 + p,
.symbol-card p + h4,
.symbol-card h4 + p {
    margin-top: 0.8rem;
}

.symbol-card h4 {
    margin: 1rem 0 0;
    color: var(--accent-soft);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
}

.gallery-tile {
    min-height: 220px;
    padding: 1rem;
    display: flex;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.62);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.gallery-tile:hover {
    transform: translateY(var(--hover-lift)) scale(1.01);
    border-color: rgba(201, 120, 102, 0.3);
    box-shadow: inset 0 -80px 90px rgba(0, 0, 0, 0.62), 0 24px 48px rgba(0, 0, 0, 0.4);
}

.gallery-tile.one {
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)), radial-gradient(circle at top, rgba(141, 31, 45, 0.24), transparent 55%), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=900&q=80");
}

.gallery-tile.two {
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)), radial-gradient(circle at top, rgba(201, 120, 102, 0.22), transparent 55%), url("https://images.unsplash.com/photo-1519608487953-e999c86e7455?auto=format&fit=crop&w=900&q=80");
}

.gallery-tile.three {
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)), radial-gradient(circle at top, rgba(141, 31, 45, 0.18), transparent 55%), url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=900&q=80");
}

.gallery-tile.four {
    background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8)), radial-gradient(circle at top, rgba(201, 120, 102, 0.18), transparent 55%), url("https://images.unsplash.com/photo-1470770841072-f978cf4d019e?auto=format&fit=crop&w=900&q=80");
}

.site-footer {
    padding: 1rem 0 2rem;
    color: var(--muted);
    text-align: center;
}

.site-footer p + p {
    margin-top: 0.35rem;
}

.two-column,
.contact-grid,
.gallery-grid,
.rank-grid {
    animation: rise-in var(--section-duration) ease-out var(--section-delay) both;
}

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

@media (max-width: 640px) {
    .page-shell {
        width: min(100% - 1rem, 1120px);
    }

    .main-nav {
        border-radius: 28px;
    }

    .main-nav a {
        width: 100%;
        text-align: center;
    }
}

/* Sitewide Artwork Layer */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 16%, rgba(141, 31, 45, 0.28), transparent 32%),
        radial-gradient(circle at 89% 12%, rgba(201, 120, 102, 0.2), transparent 30%),
        radial-gradient(circle at 84% 84%, rgba(201, 120, 102, 0.13), transparent 28%),
        radial-gradient(circle at 15% 86%, rgba(141, 31, 45, 0.15), transparent 26%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(236, 226, 208, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(236, 226, 208, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

.site-header::after {
    content: "";
    display: block;
    width: min(560px, 84%);
    height: 1px;
    margin: 1.1rem auto 0;
    background: linear-gradient(90deg, transparent, rgba(201, 120, 102, 0.56), transparent);
    box-shadow: 0 0 18px rgba(201, 120, 102, 0.2);
}

.hero,
.content-card,
.panel,
.timeline,
.symbol-card {
    position: relative;
    overflow: hidden;
}

.hero::before,
.content-card::before,
.panel::before,
.timeline::before,
.symbol-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    left: -105px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 120, 102, 0.16), transparent 70%);
    pointer-events: none;
}