/* ==========================================================================
   Ave Europa — site stylesheet
   Palette:  Navy #14182F / #1E2449 / #293163 · Gold #FFCC00 (deep #D9AE00)
             Paper #FCFBF9 / #F4F2EC · Ink #1A202C / #5C6478 · Line #E6E2D8
   Type:     Marcellus (display) · Archivo (UI/labels) · Source Serif 4 (body)
   ========================================================================== */

:root {
    --navy-950: #14182F;
    --navy-900: #1E2449;
    --navy-800: #293163;
    --gold: #FFCC00;
    --gold-deep: #D9AE00;
    --white: #FFFFFF;
    --paper-50: #FCFBF9;
    --paper-100: #F4F2EC;
    --ink-900: #1A202C;
    --ink-600: #5C6478;
    --line: #E6E2D8;

    --font-display: "Marcellus", Georgia, serif;
    --font-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Serif 4", Georgia, serif;

    --container: 1220px;
    --space-section: 5.5rem;
    --space-block: 2.75rem;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-900);
    background: var(--paper-50);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    color: var(--navy-900);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

a { color: inherit; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}

/* --------------------------------------------------------------------------
   Labels & buttons
   -------------------------------------------------------------------------- */

.kicker {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 0.85rem;
}

.on-dark .kicker { color: var(--gold); }

.rule {
    width: 64px;
    height: 3px;
    background: var(--gold);
    margin: 0 0 1rem;
}

.btn {
    display: inline-block;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.95rem 1.9rem;
    border: 1.5px solid transparent;
    border-radius: 26px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

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

.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-deep); }

.btn--outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}
.btn--outline:hover { background: var(--white); color: var(--navy-950); border-color: var(--white); }

.btn--outline-navy { border-color: var(--navy-900); color: var(--navy-900); }
.btn--outline-navy:hover { background: var(--navy-900); color: var(--white); }

/* --------------------------------------------------------------------------
   Header — one sticky navy bar
   -------------------------------------------------------------------------- */

.site-header {
    background: var(--navy-950);
    position: sticky;
    top: 0;
    z-index: 250;
    box-shadow: 0 2px 14px rgba(20, 24, 47, 0.35);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 80px;
    flex-wrap: wrap;
    padding-top: 10px;
    padding-bottom: 10px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo__mark { height: 44px; width: auto; }

.site-logo__text {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav a {
    font-family: var(--font-ui);
    font-size: 0.81rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #D6D8E4;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--white); border-bottom-color: var(--gold); }

.nav-mail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
    padding: 0 !important;
}

.nav-mail svg { width: 15px; height: 15px; fill: #D6D8E4; }
.nav-mail:hover { border-color: var(--gold) !important; }
.nav-mail:hover svg { fill: var(--gold); }

/* --------------------------------------------------------------------------
   Sticky side rail — Donate / Join
   -------------------------------------------------------------------------- */

.side-cta {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-cta a {
    writing-mode: vertical-rl;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 20px 13px;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 4px 16px rgba(20, 24, 47, 0.25);
    transition: background 0.15s ease;
}

.side-cta .donate { background: var(--gold); color: var(--navy-950); }
.side-cta .donate:hover { background: var(--gold-deep); }

.side-cta .join {
    background: var(--navy-900);
    color: var(--white);
    border: 1px solid rgba(255, 204, 0, 0.55);
    border-right: none;
}
.side-cta .join:hover { background: var(--navy-800); }

/* --------------------------------------------------------------------------
   Hero carousel
   -------------------------------------------------------------------------- */

.hero-carousel {
    position: relative;
    overflow: hidden;
    background: var(--navy-950);
    display: grid;
}

.hero-slide {
    grid-area: 1 / 1;
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-slide__bg { position: absolute; inset: 0; z-index: 0; }

.hero-slide__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.92);
    transform: scale(1.03);
}

.hero-slide__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 24, 47, 0.48), rgba(20, 24, 47, 0.82));
}

.hero-emblem {
    position: absolute;
    left: 5%;
    bottom: -46px;
    z-index: 1;
    width: 330px;
    opacity: 0.18;
    pointer-events: none;
}

.hero-slide__content { position: relative; z-index: 2; width: 100%; }
.hero-slide__content .container { display: flex; justify-content: flex-end; }

.hero-slide__text {
    max-width: 560px;
    padding: 3.5rem 0 6rem;
}

.hero-slide__kicker {
    font-family: var(--font-ui);
    color: #C9CCDA;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.hero-slide__title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.25rem);
    line-height: 1.08;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.25rem;
}

.hero-slide__title .accent { color: var(--gold); }

.hero-slide__lede {
    color: #C9CCDA;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.9rem;
    max-width: 30rem;
}

.hero-slide__ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
}

.hero-arrow:hover { background: var(--gold); color: var(--navy-950); }
.hero-arrow--prev { left: 26px; }
.hero-arrow--next { right: 26px; }

.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
}

.hero-dots button.is-on { background: var(--gold); transform: scale(1.25); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--space-section) 0; }
.section--tint { background: var(--paper-100); }

/* Collapse the doubled gap between consecutive blocks on the same background */
main > .section:not(.section--tint) + .section:not(.section--tint),
main > .section--tint + .section--tint,
main > .section:not(.section--tint) + .pullquote,
main > .pullquote + .section:not(.section--tint),
main > .section:not(.section--tint) + .longform,
main > .longform + .section:not(.section--tint),
main > .longform + .longform {
    padding-top: 0;
}

.section__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.section__grid--noimg { grid-template-columns: minmax(0, 46rem); }

.section h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }

.section__media img { border-radius: 6px; }

.section__text p { color: var(--ink-600); }

/* Section heads */

.section-head { max-width: 42rem; margin-bottom: var(--space-block); }
.section-head p { color: var(--ink-600); margin: 0; }

/* --------------------------------------------------------------------------
   Long-form prose (charter, statutes, legal)
   -------------------------------------------------------------------------- */

.longform { max-width: 50rem; margin: 0 auto; padding: var(--space-block) 32px; }
.longform p { margin: 0 0 1.4em; }
.longform h2 { font-size: 2.2rem; margin: 3.5rem 0 1rem; }
.longform h2:first-child { margin-top: 0; }
.longform h3 { font-size: 1.6rem; margin: 3rem 0 0.85rem; }
.longform h2, .longform h3 { scroll-margin-top: 100px; }
.longform li { margin-bottom: 0.6rem; }

.longform .lf-kicker {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 3.25rem 0 0.6rem;
}

.longform .lf-kicker + h2,
.longform .lf-kicker + h3 { margin-top: 0; }
.longform .lf-kicker + .lf-chapter { margin-top: 0.5rem; }

.longform h2.lf-chapter {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.longform > p:has(> em:only-child) {
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    color: var(--navy-900);
    max-width: 38rem;
    margin: 2.5rem auto;
}

/* Tables */

.longform table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0 2rem;
}

.longform th, .longform td {
    text-align: left;
    padding: 0.6rem 0.85rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.longform th {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--navy-900);
    border-bottom: 2px solid var(--gold);
}

.longform blockquote {
    font-style: italic;
    font-size: 1.15rem;
    border-left: 3px solid var(--gold);
    margin: 2rem 0;
    padding-left: 1.5rem;
    color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Pillars grid (cards)
   -------------------------------------------------------------------------- */

.pillars__head { max-width: 44rem; margin-bottom: var(--space-block); }
.pillars__head p { color: var(--ink-600); }

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.pillar {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    padding: 1.75rem;
}

.pillar h3 {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.pillar p { margin: 0; font-size: 0.92rem; line-height: 1.7; color: var(--ink-600); }

/* Charter pillars — numbered list with epigraphs */

.charter-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3.5rem;
    border-top: 1px solid var(--line);
    counter-reset: pillar;
    list-style: none;
    margin: 0;
    padding: 0;
}

.charter-pillars li {
    counter-increment: pillar;
    display: flex;
    gap: 1.1rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.charter-pillars li::before {
    content: counter(pillar, upper-roman);
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-deep);
    min-width: 2.4rem;
}

.charter-pillars .name {
    display: block;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--navy-900);
    margin-bottom: 0.3rem;
}

.charter-pillars .epigraph {
    font-style: italic;
    color: var(--ink-600);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Values list — compact two-column numbered strip */

.values-intro { max-width: 44rem; color: var(--ink-600); }

.values-grid {
    list-style: none;
    counter-reset: value;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 3.5rem;
    margin: 2rem 0 0;
    padding: 0;
    max-width: 62rem;
}

.values-grid li {
    counter-increment: value;
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}

.values-grid li::before {
    content: counter(value, upper-roman);
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--gold-deep);
    min-width: 2.4rem;
}

.values-grid li span {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--navy-900);
}

.values-cta { margin: 2.25rem 0 0; }

/* --------------------------------------------------------------------------
   Stats band (slim)
   -------------------------------------------------------------------------- */

.stats { background: var(--navy-900); color: var(--white); }

.stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 1.6rem 0;
}

.stat {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 1rem;
}

.stat:first-child { border-left: none; }

.stat__value {
    font-family: var(--font-ui);
    font-variant-numeric: tabular-nums;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}

.stat__label {
    font-family: var(--font-ui);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #B9BCCB;
    margin-top: 0.2rem;
}

/* --------------------------------------------------------------------------
   Pull quote
   -------------------------------------------------------------------------- */

.pullquote { padding: var(--space-block) 0; text-align: center; }

.pullquote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--navy-900);
    max-width: 50rem;
    margin: 0 auto;
    line-height: 1.35;
}

.pullquote cite {
    display: block;
    font-family: var(--font-ui);
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-600);
    margin-top: 1.25rem;
}

/* --------------------------------------------------------------------------
   Partners — cards
   -------------------------------------------------------------------------- */

.partners__row {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 2.25rem;
}

.partner-card {
    flex: 1;
    min-width: 230px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.75rem 1.5rem;
    background: var(--white);
    text-align: center;
    text-decoration: none;
    display: block;
}

.partner-card img {
    height: 84px;
    width: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

.partner-card .pname {
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy-900);
    margin-bottom: 0.5rem;
}

.partner-card .ptext { font-size: 0.87rem; color: var(--ink-600); line-height: 1.6; }

a.partner-card:hover { border-color: var(--gold); }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */

.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-block);
}

.team-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.75rem;
}

.team-card img {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.team-card h3 { font-size: 1.25rem; margin-bottom: 0.15rem; }

.team-card__role {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 0.75rem;
}

.team-card p { font-size: 0.9rem; line-height: 1.65; margin: 0; color: var(--ink-600); }

.team-card__links {
    margin-top: 0.75rem !important;
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.team-card__links a { margin-right: 1rem; color: var(--navy-900); }

/* --------------------------------------------------------------------------
   Link cards
   -------------------------------------------------------------------------- */

.link-cards__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: var(--space-block);
}

.link-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    padding: 1.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section--tint .link-card { background: var(--white); }

.link-card h3 { font-size: 1.25rem; margin: 0; }
.link-card p { margin: 0; font-size: 0.9rem; color: var(--ink-600); }
.link-card .btn { align-self: flex-start; margin-top: auto; }

.link-card--image { padding-top: 0; }

.link-card__cover {
    margin: 0 -1.9rem 1rem;
    width: calc(100% + 3.8rem);
    max-width: calc(100% + 3.8rem);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top;
}

.link-card__icon { width: 48px; height: 48px; }
.link-card__icon svg { width: 24px; height: 24px; }

/* --------------------------------------------------------------------------
   CTA band / newsletter / socials
   -------------------------------------------------------------------------- */

.cta-band {
    background: var(--navy-950);
    color: var(--white);
    text-align: center;
    padding: var(--space-section) 0;
}

.cta-band h2 { color: var(--white); font-size: clamp(1.9rem, 4.5vw, 2.6rem); }
.cta-band p { color: #B9BCCB; max-width: 38rem; margin: 0 auto 2rem; }

.newsletter-form {
    display: flex;
    justify-content: center;
    max-width: 26rem;
    margin: 0 auto;
}

.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.1rem;
    border: 1px solid #3A3F5C;
    background: var(--navy-900);
    color: var(--white);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    border-radius: 24px 0 0 24px;
}

.newsletter-form input::placeholder { color: #8B8FA5; }

.newsletter-form button {
    background: var(--gold);
    color: var(--navy-950);
    font-family: var(--font-ui);
    font-weight: 700;
    padding: 0 1.6rem;
    border: none;
    border-radius: 0 24px 24px 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    cursor: pointer;
}

.newsletter-form button:hover { background: var(--gold-deep); }

.newsletter--light .newsletter-form input[type="email"] {
    background: var(--white);
    border-color: var(--line);
    color: var(--ink-900);
}

/* Follow + newsletter band (two columns) */

.follow-band { background: var(--navy-950); color: var(--white); }

.follow-band__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    padding: 3.75rem 0;
}

.follow-band h2 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.75rem; }
.follow-band p { color: #B9BCCB; font-size: 0.92rem; line-height: 1.65; margin: 0 0 1.25rem; max-width: 25rem; }
.follow-band .newsletter-form { margin: 0; }

.socials__text { max-width: 44rem; color: var(--ink-600); }

.socials__row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   Social icons
   -------------------------------------------------------------------------- */

:root {
    --brand-x: #000000;
    --brand-instagram: #E4405F;
    --brand-linkedin: #0A66C2;
    --brand-facebook: #1877F2;
    --brand-bluesky: #0285FF;
    --brand-discord: #5865F2;
    --brand-whatsapp: #25D366;
    --brand-mail: #1E2449;
    --brand-tiktok: #000000;
    --brand-threads: #000000;
    --brand-mastodon: #6364FF;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink-600);
    transition: transform 0.15s ease;
}

.social-icon svg { width: 20px; height: 20px; fill: var(--white); }
.social-icon:hover { transform: translateY(-2px); }

.social-icon--x { background: var(--brand-x); }
.social-icon--instagram { background: var(--brand-instagram); }
.social-icon--linkedin { background: var(--brand-linkedin); }
.social-icon--facebook { background: var(--brand-facebook); }
.social-icon--bluesky { background: var(--brand-bluesky); }
.social-icon--discord { background: var(--brand-discord); }
.social-icon--whatsapp { background: var(--brand-whatsapp); }
.social-icon--mail { background: var(--brand-mail); }
.social-icon--tiktok { background: var(--brand-tiktok); }
.social-icon--threads { background: var(--brand-threads); }
.social-icon--mastodon { background: var(--brand-mastodon); }

.social-icon--lg { width: 52px; height: 52px; }
.social-icon--lg svg { width: 26px; height: 26px; }
.social-icon--sm { width: 26px; height: 26px; }
.social-icon--sm svg { width: 14px; height: 14px; }

.social-icons { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Outline circles on dark bands */

.social-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #3A3F5C;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-ring svg { width: 18px; height: 18px; fill: #C9CCDA; }
.social-ring:hover { background: var(--gold); border-color: var(--gold); }
.social-ring:hover svg { fill: var(--navy-950); }

/* Pill buttons with icon + name */

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.15rem 0.5rem 0.6rem;
    border-radius: 999px;
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--ink-600);
    transition: transform 0.15s ease;
}

.social-pill:hover { transform: translateY(-2px); }
.social-pill__icon { width: 22px; height: 22px; fill: var(--white); }

.social-pill--x { background: var(--brand-x); }
.social-pill--instagram { background: var(--brand-instagram); }
.social-pill--linkedin { background: var(--brand-linkedin); }
.social-pill--facebook { background: var(--brand-facebook); }
.social-pill--bluesky { background: var(--brand-bluesky); }
.social-pill--discord { background: var(--brand-discord); }
.social-pill--whatsapp { background: var(--brand-whatsapp); }
.social-pill--tiktok { background: var(--brand-tiktok); }
.social-pill--threads { background: var(--brand-threads); }
.social-pill--mastodon { background: var(--brand-mastodon); }

/* --------------------------------------------------------------------------
   Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-header {
    background: var(--navy-950);
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.page-header__image { position: absolute; inset: 0; }
.page-header__image img { width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.page-header__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 24, 47, 0.75), rgba(20, 24, 47, 0.25));
}
.page-header .container { position: relative; }

.page-header h1 {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

.page-header__intro {
    font-size: 1.05rem;
    color: #C9CCDA;
    max-width: 44rem;
    margin: 1rem 0 0;
}

/* --------------------------------------------------------------------------
   Events
   -------------------------------------------------------------------------- */

.events__era { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 1.75rem; }

.chapter-group { margin-bottom: 3rem; }

.chapter-group h3 {
    font-family: var(--font-ui);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.event-row {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    gap: 1.5rem;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.event-row__date {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.event-row--past .event-row__date { color: var(--ink-600); }

.event-row__title { font-family: var(--font-display); font-size: 1.2rem; color: var(--navy-900); }
.event-row__location { font-size: 0.87rem; color: var(--ink-600); }

.event-detail__meta {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.post-list { display: grid; gap: 2rem; max-width: 52rem; margin: 0 auto; }

.post-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.75rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: 6px;
    padding: 1.75rem;
}

.post-card__cover { border-radius: 4px; }
.post-card__body h2 { font-size: 1.45rem; margin-bottom: 0.25rem; }
.post-card__body h2 a { text-decoration: none; }
.post-card__body p { color: var(--ink-600); }

.post-card__date {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-600);
}

.post-card__more {
    font-family: var(--font-ui);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   Slides & PDF viewer
   -------------------------------------------------------------------------- */

.slides, .pdfjs-doc {
    display: grid;
    gap: 1.5rem;
    max-width: 62rem;
    margin: 0 auto;
}

.slides__page, .pdfjs-page {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(26, 32, 44, 0.12);
}

.pdfjs-page { position: relative; overflow: hidden; }
.pdfjs-link { position: absolute; display: block; }

.slides__download { text-align: center; margin: 2.5rem 0 0; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--navy-900);
    color: #C9CCDA;
    font-family: var(--font-body);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding: 3.75rem 0 2.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 0.9rem; }
.site-footer__logo { height: 44px; width: auto; }

.site-footer__brandname {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
}

.site-footer__motto {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--gold);
    margin: 0;
    max-width: 15rem;
}

.site-footer__heading {
    font-family: var(--font-ui);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0 0 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer a { color: #B9BCCB; text-decoration: none; font-size: 0.9rem; }
.site-footer a:hover { color: var(--gold); }

.footer-social { display: inline-flex; align-items: center; gap: 0.6rem; }

.site-footer__email { margin: 1rem 0 0; }

.site-footer__legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.25rem 0;
    margin: 0;
    font-family: var(--font-ui);
    font-size: 0.76rem;
    color: #8B8FA5;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
    html { scroll-behavior: auto; }
}

@media (max-width: 980px) {
    .section__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .section__grid .section__media { order: -1; }
    .follow-band__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .charter-pillars { grid-template-columns: 1fr; }
    .hero-arrow { display: none; }
    .hero-emblem { display: none; }
    .hero-slide__content .container { justify-content: flex-start; }
    .event-row { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 760px) {
    .container { padding: 0 20px; }
    .site-header__inner { justify-content: center; }
    .site-nav { gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
    .hero-slide__text { padding: 2.5rem 0 4.5rem; }
    .stats__grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .stat { border-left: none; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1rem; }
    .stat:first-child { border-top: none; padding-top: 0; }
    .values-grid { grid-template-columns: 1fr; }
    .post-card { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .side-cta a { padding: 14px 10px; font-size: 0.68rem; letter-spacing: 0.12em; }
}
