/* ==========================================================================
   Pokuaa Balm of Gilead Foundation: site styles
   Palette drawn from the logo: royal blue, signal red, on a warm cream base.
   ========================================================================== */

:root {
    --blue: #2130c2;
    --blue-600: #1a27a3;
    --blue-800: #121a6e;
    --blue-50: #eef0fd;
    --red: #e3161d;
    --red-600: #c11017;
    --red-50: #fdeeee;
    --navy: #0d1236;
    --ink: #161a33;
    --muted: #5d6178;
    --cream: #faf6ef;
    --sand: #f3ecdf;
    --line: #e7e0d3;
    --white: #ffffff;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(13, 18, 54, .06), 0 2px 8px rgba(13, 18, 54, .05);
    --shadow: 0 10px 30px -10px rgba(13, 18, 54, .18), 0 4px 10px -4px rgba(13, 18, 54, .08);
    --shadow-lg: 0 30px 60px -20px rgba(13, 18, 54, .30);

    --gutter: clamp(16px, 4vw, 32px);
    --section: clamp(64px, 9vw, 120px);
    --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.015em;
    color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }

em.accent, h1 em, h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--blue);
}

p { color: var(--muted); }

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: var(--blue); color: var(--white); }

.container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--sand { background: var(--sand); }
.section--white { background: var(--white); }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 18px;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    line-height: 1.7;
    max-width: 58ch;
}

.section-head {
    display: grid;
    gap: 18px;
    max-width: 720px;
    margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split {
    max-width: none;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 24px;
}
.section-head .eyebrow { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn i { font-size: .95em; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px -10px rgba(33, 48, 194, .7); }
.btn-primary:hover { background: var(--blue-600); }

.btn-accent { background: var(--red); color: var(--white); box-shadow: 0 10px 24px -10px rgba(227, 22, 29, .7); }
.btn-accent:hover { background: var(--red-600); }

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

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--cream); }

.btn-ghost-light { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--blue);
}
.link-arrow i { transition: transform .25s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }

/* ---------- Top bar ---------- */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
    font-size: .84rem;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
}
.topbar-links { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
.topbar a:hover { color: var(--white); }
.topbar i { color: #ff6b70; }
.topbar-social { display: flex; gap: 14px; }
.topbar-social i { color: inherit; font-size: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 239, .88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .94);
    border-color: var(--line);
    box-shadow: 0 6px 24px -14px rgba(13, 18, 54, .25);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 82px;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img {
    height: 56px;
    width: auto;
    border-radius: 8px;
    mix-blend-mode: multiply;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; gap: 6px; list-style: none; padding: 0; }
.nav-links a {
    position: relative;
    display: block;
    padding: 10px 14px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    border-radius: 999px;
    transition: color .2s, background-color .2s;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-50); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 5px;
    height: 5px;
    margin-left: -2.5px;
    border-radius: 50%;
    background: var(--red);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    margin-left: -10px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(6px); }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: rotate(45deg); }
.nav-open .nav-toggle span::after { transform: rotate(-45deg); }

@media (max-width: 1180px) {
    .nav-toggle { display: block; }
    .nav {
        position: fixed;
        inset: 82px 0 auto 0;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px var(--gutter) 28px;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .25s, transform .3s var(--ease), visibility .25s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav-links { flex-direction: column; gap: 2px; }
    .nav-links a { padding: 14px 16px; border-radius: 12px; font-size: 1.05rem; }
    .nav-links a[aria-current="page"] { background: var(--blue-50); }
    .nav-links a[aria-current="page"]::after { display: none; }
    .nav .btn { width: 100%; }
}

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px);
    overflow: hidden;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    pointer-events: none;
}
.hero::before { width: 520px; height: 520px; background: #c9cff8; top: -180px; right: -120px; }
.hero::after { width: 380px; height: 380px; background: #f8c9cb; bottom: -160px; left: -140px; }

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero h1 .typed-cursor { font-weight: 300; color: var(--blue); }
.hero .lead { margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    max-width: 520px;
}
.hero-trust strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    line-height: 1;
    color: var(--navy);
}
.hero-trust p { font-size: .92rem; line-height: 1.45; }

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1.05;
    max-width: 560px;
    width: 100%;
    justify-self: end;
}
.hero-visual .frame {
    position: absolute;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual [data-slideshow] img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-visual [data-slideshow] img.is-active { opacity: 1; }
.hero-visual .frame-main {
    inset: 0 0 10% 16%;
    border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
}
.hero-visual .frame-sub {
    width: 42%;
    aspect-ratio: 1;
    left: 0;
    bottom: 0;
    border-radius: 50%;
    border: 8px solid var(--cream);
}
.hero-visual .swoosh {
    position: absolute;
    top: 6%;
    left: 4%;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 14px solid var(--red);
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-20deg);
}
.hero-badge {
    position: absolute;
    right: -4%;
    bottom: 18%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}
.hero-badge .badge-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--red-50);
    color: var(--red);
    font-size: 1.2rem;
}
.hero-badge strong { display: block; font-family: var(--font-display); font-size: 1.35rem; color: var(--navy); line-height: 1.1; }
.hero-badge span { font-size: .82rem; color: var(--muted); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { justify-self: center; max-width: 480px; }
}
@media (max-width: 520px) {
    .hero-badge { right: 0; bottom: 6%; padding: 10px 14px 10px 10px; }
    .hero-badge .badge-icon { width: 40px; height: 40px; }
    .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(72px, 10vw, 136px) clamp(56px, 7vw, 96px);
    background: var(--navy);
    color: var(--white);
    overflow: hidden;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .38;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, var(--navy) 18%, rgba(13, 18, 54, .75) 55%, rgba(18, 26, 110, .45)),
        radial-gradient(600px 300px at 90% 110%, rgba(227, 22, 29, .35), transparent 70%);
}
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero h1 em { color: #aeb6ff; }
.page-hero .lead { color: rgba(255, 255, 255, .78); margin-top: 20px; }
.page-hero .eyebrow { color: #ff8a8e; }

.breadcrumb {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-bottom: 26px;
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
}
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Stats band ---------- */
.stats {
    background: var(--navy);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.stats::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    border: 40px solid rgba(227, 22, 29, .18);
    pointer-events: none;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-block: clamp(48px, 6vw, 72px);
}
.stat { padding: 8px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-weight: 500;
    line-height: 1;
    color: var(--white);
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}
.stat-value .suffix { color: #ff6b70; }
.stat p { color: rgba(255, 255, 255, .7); font-size: .95rem; line-height: 1.5; max-width: 22ch; }

@media (max-width: 860px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 420px) {
    .stat { padding-inline: 16px; }
}

/* ---------- Objectives (bento) ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bento-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: var(--blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.bento-intro::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 26px solid var(--red);
    border-left-color: transparent;
    border-top-color: transparent;
    opacity: .9;
}
.bento-intro h3 { color: var(--white); font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
.bento-intro p { color: rgba(255, 255, 255, .8); }
.bento-intro .link-arrow { color: var(--white); position: relative; z-index: 1; }

.card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

.objective-card { display: flex; flex-direction: column; gap: 16px; position: relative; }
.objective-card .num {
    position: absolute;
    top: 26px;
    right: 30px;
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    color: var(--sand);
    transition: color .3s;
}
.objective-card:hover .num { color: var(--red-50); }

.icon-badge {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--blue-50);
    color: var(--blue);
    font-size: 1.35rem;
    transition: background-color .3s, color .3s, transform .35s var(--ease);
}
.card:hover .icon-badge { background: var(--blue); color: var(--white); transform: rotate(-6deg); }
.icon-badge--red { background: var(--red-50); color: var(--red); }
.card:hover .icon-badge--red { background: var(--red); color: var(--white); }

.objective-card p { font-size: .98rem; }

@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .bento { grid-template-columns: 1fr; }
    .card, .bento-intro { padding: 26px; }
}

/* ---------- Founder ---------- */
.founder {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}
.founder-photo { position: relative; max-width: 480px; }
.founder-photo img {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.founder-photo::before {
    content: "";
    position: absolute;
    inset: 24px -24px -24px 24px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--blue);
}
.founder-tag {
    position: absolute;
    z-index: 2;
    left: -20px;
    bottom: 32px;
    padding: 14px 22px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.founder-tag strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.founder-tag span { font-size: .82rem; opacity: .85; }

.quote {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1.45;
    color: var(--navy);
    padding-left: 28px;
    border-left: 3px solid var(--red);
    margin: 28px 0;
}
.founder-body p + p { margin-top: 16px; }
.founder-body .btn { margin-top: 32px; }

@media (max-width: 900px) {
    .founder { grid-template-columns: 1fr; }
    .founder-photo { margin-inline: auto 24px; }
    .founder-tag { left: 12px; }
}

/* ---------- Profile (about page) ---------- */
.profile {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}
.profile-aside { position: sticky; top: 110px; }
.profile-aside img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 20%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.profile-card {
    margin-top: -48px;
    margin-inline: 20px;
    position: relative;
    padding: 22px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.profile-card strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.profile-card span { font-size: .9rem; color: var(--muted); }
.profile-roles { list-style: none; padding: 0; margin-top: 16px; display: grid; gap: 10px; font-size: .9rem; }
.profile-roles li { display: flex; gap: 10px; color: var(--ink); line-height: 1.45; }
.profile-roles i { color: var(--red); margin-top: 4px; }

.prose { max-width: 68ch; }
.prose p { font-size: 1.05rem; line-height: 1.8; }
.prose p + p { margin-top: 20px; }
.prose h2 { margin-bottom: 24px; }
.prose .quote { margin-block: 36px; }

@media (max-width: 900px) {
    .profile { grid-template-columns: 1fr; }
    .profile-aside { position: static; max-width: 420px; }
}

/* ---------- Mission / vision / values ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { display: flex; flex-direction: column; gap: 16px; }
.pillar h3 { font-size: 1.5rem; }
.pillar--featured { background: var(--navy); border-color: var(--navy); }
.pillar--featured h3 { color: var(--white); }
.pillar--featured p { color: rgba(255, 255, 255, .75); }
.pillar--featured .icon-badge { background: rgba(255, 255, 255, .1); color: var(--white); }

@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- Services (detail rows) ---------- */
.service-rows { display: grid; gap: 20px; }
.service-row {
    display: grid;
    grid-template-columns: 96px 1fr 1.2fr;
    gap: 32px;
    align-items: start;
    padding: 36px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.service-row:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.service-row .num {
    font-family: var(--font-display);
    font-size: 3.4rem;
    line-height: .9;
    font-weight: 500;
    color: var(--blue);
}
.service-row:nth-child(even) .num { color: var(--red); }
.service-row .tagline {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}
.service-row h3 { font-size: 1.55rem; }

@media (max-width: 860px) {
    .service-row { grid-template-columns: 1fr; gap: 14px; padding: 28px; }
    .service-row .num { font-size: 2.6rem; }
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature h3 { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.feature p { font-size: .95rem; line-height: 1.6; }
.feature .icon-badge { flex-shrink: 0; }

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Events ---------- */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.event-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
}
.event-card:hover .event-media img { transform: scale(1.06); }
.event-chip {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
}
.event-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.event-body h3 { font-size: 1.3rem; }
.event-text {
    font-size: .96rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.event-card.is-expanded .event-text { -webkit-line-clamp: unset; display: block; }
.event-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 700;
    font-size: .92rem;
    color: var(--blue);
    cursor: pointer;
}
.event-more:hover { color: var(--red); }

.empty-state {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 64px 24px;
    text-align: center;
    background: var(--white);
    border: 2px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty-state i { font-size: 2rem; color: var(--blue); }

@media (max-width: 960px) { .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
    .event-grid { grid-template-columns: 1fr; }
    .section-head--split { grid-template-columns: 1fr; }
}

/* ---------- Gallery strip ---------- */
.gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
.gallery img:first-child { grid-row: span 2; }
@media (max-width: 760px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 160px 160px; }
    .gallery img:first-child { grid-column: span 2; grid-row: auto; }
}

/* ---------- CTA band ---------- */
.cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr auto;
    gap: 32px;
    align-items: center;
    padding: clamp(40px, 6vw, 72px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(500px 280px at 100% 0%, rgba(227, 22, 29, .55), transparent 70%),
        linear-gradient(120deg, var(--blue-800), var(--blue));
    color: var(--white);
}
.cta::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -140px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .06);
}
.cta h2 { color: var(--white); max-width: 18ch; }
.cta h2 em { color: #ffb3b6; }
.cta p { color: rgba(255, 255, 255, .8); margin-top: 14px; max-width: 52ch; }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
    .cta { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 14px; }
.contact-card h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }
.contact-card a, .contact-card address {
    font-style: normal;
    font-weight: 600;
    color: var(--navy);
    word-break: break-word;
    transition: color .2s;
}
.contact-card a:hover { color: var(--blue); }
.contact-card ul { list-style: none; padding: 0; display: grid; gap: 6px; }

@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
}
.contact-intro p + p { margin-top: 16px; }
.contact-points { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 18px; }
.contact-points li { display: flex; gap: 14px; align-items: flex-start; }
.contact-points .icon-badge { width: 44px; height: 44px; border-radius: 12px; font-size: 1rem; flex-shrink: 0; }
.contact-points strong { display: block; color: var(--navy); }
.contact-points span { font-size: .94rem; color: var(--muted); }

.form-card {
    padding: clamp(28px, 4vw, 44px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 700; color: var(--navy); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    font-size: 1rem;
    transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(33, 48, 194, .12);
}
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { font-size: .94rem; font-weight: 600; }
.form-status.is-success { color: #12804a; }
.form-status.is-error { color: var(--red-600); }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-footer .btn { width: 100%; }
}

.map {
    width: 100%;
    height: 420px;
    border: 0;
    border-radius: var(--radius-lg);
    filter: saturate(.85);
    display: block;
}

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.support-grid .card { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding-top: clamp(64px, 8vw, 96px);
    font-size: .95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 56px;
}
.footer-brand img {
    width: 170px;
    padding: 10px 14px;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin-bottom: 22px;
}
.footer-brand p { color: rgba(255, 255, 255, .65); max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .2);
    color: var(--white);
    transition: background-color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); }

.footer-col h3 {
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 20px;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.footer-col a { transition: color .2s; display: inline-flex; gap: 10px; align-items: baseline; }
.footer-col a:hover { color: var(--white); }
.footer-col i { color: #ff6b70; width: 16px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .86rem;
    color: rgba(255, 255, 255, .5);
}
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (max-width: 600px) {
    .topbar-links a + a { display: none; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip {
    padding: 9px 18px;
    border: 1.5px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    transition: border-color .2s, color .2s, background-color .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: var(--white); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card:hover .post-media img, .post-featured:hover .post-media img { transform: scale(1.05); }
.post-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.post-body h3 { font-size: 1.3rem; }
.post-body h3 a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.post-body h3 a:hover { background-size: 100% 2px; }
.post-body p { font-size: .96rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .84rem; color: var(--muted); }
.post-cat {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
}
.post-cat:hover { color: var(--blue); }
.post-read { margin-top: auto; padding-top: 6px; font-size: .84rem; font-weight: 600; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.badge-latest {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--blue);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-featured {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 32px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.post-featured .post-media { position: relative; aspect-ratio: auto; min-height: 400px; }
.post-featured .post-media img { position: absolute; inset: 0; }
.post-featured .post-body { padding: clamp(28px, 4vw, 52px); justify-content: center; gap: 18px; }
.post-featured h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.post-featured .btn { align-self: flex-start; margin-top: 8px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--white);
    font-weight: 700;
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }
.pagination a[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

@media (max-width: 960px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .post-featured { grid-template-columns: 1fr; }
    .post-featured .post-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-hero { padding-top: clamp(40px, 6vw, 72px); }
.article-narrow { max-width: 860px; }
.article-hero .breadcrumb { color: var(--muted); }
.article-hero .breadcrumb a:hover { color: var(--blue); }
.article-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.article-hero .lead { margin-bottom: 28px; }
.article-meta { display: flex; align-items: center; gap: 14px; }
.article-meta img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 4px;
}
.article-meta strong { display: block; color: var(--navy); font-size: .95rem; }
.article-meta span { font-size: .88rem; color: var(--muted); }
.article-cover { margin: clamp(32px, 5vw, 56px) 0 0; }
.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.article-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    justify-content: center;
    gap: clamp(32px, 6vw, 80px);
    padding-block: clamp(48px, 7vw, 88px);
}
.article-aside { position: sticky; top: 110px; align-self: start; display: grid; gap: 32px; }
.toc-title {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--navy);
    margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--line); }
.toc a {
    display: block;
    padding: 6px 0 6px 16px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    font-size: .92rem;
    line-height: 1.4;
    color: var(--muted);
    transition: color .2s, border-color .2s;
}
.toc a:hover { color: var(--blue); border-color: var(--blue); }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.share-links a:hover, .share-links button:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
.share-links button.is-copied { background: #12804a; border-color: #12804a; color: var(--white); }

.article-body h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 48px 0 16px; scroll-margin-top: 110px; }
.article-body h3 { font-size: 1.35rem; margin: 32px 0 12px; scroll-margin-top: 110px; }
.article-body > p:first-child { font-size: 1.2rem; color: var(--ink); }
.article-body ul { margin: 20px 0; padding-left: 0; list-style: none; display: grid; gap: 12px; }
.article-body ul li { position: relative; padding-left: 30px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.article-body ul li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
}
.article-body strong { color: var(--ink); }
.article-body a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article-body a:hover { color: var(--red); }
.article-body blockquote {
    margin: 36px 0;
    padding: 24px 28px;
    border-left: 4px solid var(--red);
    background: var(--white);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--navy);
}

.author-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 56px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex-shrink: 0; }
.author-box strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--navy); margin-bottom: 6px; }
.author-box p { font-size: .95rem !important; margin-bottom: 10px; }
.author-box .link-arrow { text-decoration: none; }

@media (max-width: 960px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); }
    .article-aside { position: static; order: 2; }
    .toc { display: none; }
}
@media (max-width: 560px) {
    .author-box { flex-direction: column; }
    .article-cover img { aspect-ratio: 4 / 3; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; display: grid; justify-items: center; gap: 20px; padding-block: 40px; }
.notfound-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: 1;
    font-weight: 600;
    background: linear-gradient(120deg, var(--blue), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.chip span { margin-left: 6px; opacity: .6; font-weight: 700; }
button.chip { cursor: pointer; font-family: inherit; }

.masonry { columns: 3 300px; column-gap: 20px; }
.masonry-item {
    break-inside: avoid;
    margin: 0 0 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.masonry-item[hidden] { display: none; }
.masonry-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--sand);
    cursor: zoom-in;
    overflow: hidden;
}
.masonry-btn img, .masonry-btn video {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s var(--ease), filter .3s;
}
.masonry-btn video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--navy); }
.masonry-btn:hover img, .masonry-btn:hover video { transform: scale(1.04); filter: brightness(.9); }
.masonry-item figcaption { padding: 14px 16px; font-size: .92rem; font-weight: 600; color: var(--ink); line-height: 1.45; }

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(227, 22, 29, .92);
    color: var(--white);
    font-size: 1.3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transition: transform .3s var(--ease);
}
.play-badge i { margin-left: 4px; }
.masonry-btn:hover .play-badge { transform: scale(1.1); }
[data-kind="video"] .masonry-btn { cursor: pointer; }
.empty-filter { text-align: center; padding: 40px 0; }

/* Lightbox */
.lb-open { overflow: hidden; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    grid-template-rows: 1fr auto;
    align-items: center;
    padding: 56px 16px 20px;
    background: rgba(8, 11, 33, .94);
    backdrop-filter: blur(6px);
}
.lightbox[hidden] { display: none; }
.lb-stage { grid-column: 2; display: grid; place-items: center; height: 100%; min-height: 0; }
.lb-stage img, .lb-stage video {
    max-width: 100%;
    max-height: calc(100vh - 140px);
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lb-stage iframe {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - 140px);
    border: 0;
    border-radius: 12px;
    background: #000;
}
.lb-caption { grid-column: 1 / -1; text-align: center; color: rgba(255, 255, 255, .85); padding-top: 14px; min-height: 1.6em; }
.lb-close, .lb-nav {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close { position: absolute; top: 12px; right: 16px; }
.lb-prev { grid-column: 1; justify-self: center; }
.lb-next { grid-column: 3; justify-self: center; }
.lb-nav[hidden] { visibility: hidden; display: grid; }

@media (max-width: 640px) {
    .lightbox { grid-template-columns: 1fr; padding-inline: 8px; }
    .lb-stage { grid-column: 1; }
    .lb-nav { position: absolute; bottom: 16px; }
    .lb-prev { left: 16px; }
    .lb-next { right: 16px; }
    .lb-caption { padding-inline: 72px; }
}
