:root {
    --ink: #1f2933;
    --muted: #52606d;
    --bg: #f6f8fb;
    --panel: #ffffff;
    --line: #d9e2ec;
    --brand: #b33a3a;
    --brand-2: #f57c45;
    --accent: #154c79;
    --radius: 18px;
    --shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 10% 20%, #fff4ec 0, transparent 32%),
                radial-gradient(circle at 90% 10%, #e6f2ff 0, transparent 28%),
                var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Fraunces", Georgia, serif;
    line-height: 1.15;
    margin: 0 0 12px;
}

a {
    color: var(--accent);
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(820px, 92%);
}

#about .container.narrow {
    width: min(1120px, 94%);
}

#about p {
    text-align: justify;
}

#about .container.narrow p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 0.7em;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(42px);
    opacity: 0.26;
    z-index: -1;
}

.orb-a {
    width: 220px;
    height: 220px;
    background: #ffb088;
    left: -80px;
    top: 90px;
}

.orb-b {
    width: 300px;
    height: 300px;
    background: #87b8ff;
    right: -120px;
    top: 200px;
}

.site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    background: rgba(246, 248, 251, 0.82);
    border-bottom: 1px solid rgba(217, 226, 236, 0.7);
    z-index: 20;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: .04em;
}

.brand img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 999px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--brand);
}

.btn-small {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 999px;
    padding: 8px 12px;
}

.lang-switch {
    display: inline-flex;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.lang-btn {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
}

.lang-btn.active {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
}

.hero {
    padding: 68px 0 42px;
}

.hero-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ffe5d4;
    color: #8f2f2f;
    font-weight: 700;
    letter-spacing: .04em;
    font-size: .78rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead {
    color: var(--muted);
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.btn-primary, .btn-ghost {
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand), var(--brand-2));
    color: #fff;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fff;
}

.funding {
    font-size: .82rem;
    color: #5f6c79;
}

.hero-card {
    background: linear-gradient(180deg, #fff, #fff5ef);
    border: 1px solid #ffd8c2;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    animation: floatCard 4.8s ease-in-out infinite;
}

.hero-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
}

/* ── Stats bar ── */
.stats-bar {
    background: linear-gradient(120deg, #1a1a2e, #2d1f3d);
    padding: 28px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #ffb088, #f57c45);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #c4b5d1;
    margin-top: 4px;
}

/* ── Visual break ── */
.visual-break {
    position: relative;
    height: 340px;
    overflow: hidden;
}

.visual-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    filter: brightness(0.82);
    transition: filter .6s ease;
}

.visual-break:hover img {
    filter: brightness(0.95);
}

.visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
}

.visual-overlay p {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.7rem);
    color: #fff;
    text-align: center;
    max-width: 700px;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
    margin: 0;
}

.section {
    padding: 62px 0;
}

.alt {
    background: linear-gradient(180deg, #eef5fb 0%, #f8fbff 100%);
    border-top: 1px solid #dde7f1;
    border-bottom: 1px solid #dde7f1;
}

.section h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 14px;
}

.section-intro {
    color: var(--muted);
    margin-top: 0;
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.card h3,
.card ul {
    padding: 0 16px;
}

.card h3 {
    margin-top: 14px;
}

.card ul {
    margin: 0 0 16px 18px;
}

.sub {
    margin-top: 28px;
    font-size: 1.45rem;
}

.partner-feature,
.partner-item {
    display: grid;
    grid-template-columns: 1fr 130px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 12px;
}

.partner-feature img,
.partner-item img {
    width: 100%;
    max-width: 120px;
    object-fit: contain;
    justify-self: end;
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.library-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    max-height: 370px;
    overflow: auto;
}

.docs {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 9px 12px;
    text-decoration: none;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.event-card {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.event-date {
    text-align: center;
    border: 1px solid #ffd8c2;
    background: #fff5ef;
    border-radius: 12px;
    padding: 8px;
}

.event-date span {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1;
}

.news-embed {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.contact-grid iframe {
    width: 100%;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 16px 0;
}

.footer-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity .9s ease, transform 1.05s cubic-bezier(.18,.68,.1,.99);
}

.js .reveal {
    opacity: 0;
    transform: translateY(44px) scale(0.985);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.empty-note {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 12px;
    background: #fff;
    color: var(--muted);
}

.hero h1 {
    background: linear-gradient(120deg, #1f2933, #b33a3a, #f57c45);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 180% 180%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatCard {
    0% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
    100% { transform: translateY(0); }
}

@media (max-width: 980px) {
    .hero-grid,
    .cards-3,
    .library-grid,
    .events-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .event-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .event-date {
        width: 110px;
    }

    .partner-feature,
    .partner-item {
        grid-template-columns: 1fr;
    }

    .partner-feature img,
    .partner-item img {
        justify-self: start;
    }

    .stats-grid {
        gap: 20px;
    }

    .stat-item {
        flex: 0 0 28%;
    }

    .visual-break {
        height: 220px;
    }

    .menu-btn {
        display: inline-block;
    }

    .lang-switch {
        order: 3;
    }

    .site-nav {
        position: absolute;
        left: 4%;
        right: 4%;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
    }

    .site-nav.open {
        display: flex;
    }
}
