/* =========================================
   TOKENS (shared brand language with admin)
   ========================================= */
:root {
    --navy: #0B2545;
    --navy-light: #13315C;
    --gold: #C9A227;
    --gold-soft: #F6EFD8;
    --ivory: #FAF9F6;
    --white: #FFFFFF;
    --ink: #1F2937;
    --muted: #5B6472;
    --border: #E5E7EB;
    --success: #1E7E45;
    --success-soft: #E6F4EA;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 3px rgba(11, 37, 69, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 37, 69, 0.08);
    --shadow-lg: 0 20px 48px rgba(11, 37, 69, 0.14);

    --font-display: 'Fraunces', serif;
    --font-body: 'Inter', sans-serif;

    --navy-deep: #071932;
    --gold-bright: #E8C766;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; text-wrap: balance; }

.eyebrow {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
    margin-bottom: 12px;
}

.section { padding: 90px 24px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header h2 { font-size: 36px; font-weight: 600; }
.section-header p { color: var(--muted); font-size: 16px; margin-top: 14px; }

@media (max-width: 768px) {
    .section { padding: 56px 20px; }
    .section-header h2 { font-size: 28px; }
}

/* =========================================
   NAVIGATION
   ========================================= */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 500;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
    padding: 20px 0;
}
.site-nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    position: relative;
    display: inline-block;
    height: 100px;
    width: 320px;
}

.nav-logo-lockup {
    position: absolute;
    top: 50%;
    left: 0;
    height: 100px;
    width: auto;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

.nav-logo-light { opacity: 1; }
.nav-logo-dark { opacity: 0; }

.site-nav.scrolled .nav-logo-light { opacity: 0; }
.site-nav.scrolled .nav-logo-dark { opacity: 1; }

@media (max-width: 900px) {
    .nav-brand { height: 72px; width: 230px; }
    .nav-logo-lockup { height: 72px; }
}


.nav-brand-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
    color: rgba(255,255,255,0.85); font-size: 14.5px; font-weight: 500;
    transition: color 0.3s ease; padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav.scrolled .nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--gold); }
.site-nav.scrolled .nav-links a:hover, .site-nav.scrolled .nav-links a.active { color: var(--navy); }

.nav-lang-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.7); }
.site-nav.scrolled .nav-lang-switch { color: var(--muted); }

.nav-lang-switch a {
    border-bottom: none !important;
    padding: 0 !important;
    color: inherit;
    position: relative;
}
.nav-lang-switch a.active {
    color: var(--gold);
    font-weight: 700;
}
.nav-lang-switch a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); transition: background 0.3s ease; }
.site-nav.scrolled .nav-toggle span { background: var(--navy); }

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: 280px;
        background: var(--white); flex-direction: column; align-items: flex-start;
        padding: 100px 30px 30px; gap: 22px; box-shadow: var(--shadow-lg);
        transform: translateX(100%); transition: transform 0.3s ease;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { color: var(--ink) !important; font-size: 16px; }
    .nav-lang-switch { color: var(--muted) !important; }
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 50% 12%, rgba(11,37,69,0.15), rgba(11,37,69,0.7) 65%, rgba(7,25,50,0.92) 100%),
        linear-gradient(180deg, rgba(11,37,69,0.5), rgba(11,37,69,0.86)),
        url('/assets/images/hero-placeholder.jpg') center/cover no-repeat;
    background-color: var(--navy);
}
.hero-content { position: relative; z-index: 3; max-width: 760px; margin: 0 auto; padding: 150px 24px 100px; text-align: center; color: var(--white); }
.hero-seal {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,162,39,0.15); border: 1px solid rgba(201,162,39,0.4);
    color: var(--gold-soft); padding: 8px 18px; border-radius: 30px;
    font-size: 12.5px; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 26px;
}
.hero-seal svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 600; color: var(--white); letter-spacing: -0.02em; text-shadow: 0 4px 30px rgba(0,0,0,0.25); }
.hero p.hero-sub { font-size: 18px; color: rgba(255,255,255,0.88); margin-top: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; justify-content: center; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

@media (max-width: 768px) {
    .hero-content { padding: 120px 20px 60px; }
    .hero h1 { font-size: 34px; }
    .hero p.hero-sub { font-size: 15.5px; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 28px; border-radius: 30px; font-weight: 600; font-size: 14.5px; cursor: pointer; border: none; transition: all 0.2s ease; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #b8931f; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }

/* =========================================
   STATS
   ========================================= */
.stats-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 15% 0%, var(--navy-light), var(--navy) 55%, var(--navy-deep) 100%);
    padding: 88px 24px;
}
.stats-grid-public { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px; text-align: center; }
.stat-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,162,39,0.18);
    border-radius: var(--radius-md);
    padding: 30px 18px 26px;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s ease, border-color 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(201,162,39,0.4);
}
.stat-item-icon {
    width: 40px; height: 40px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(201,162,39,0.12);
    color: var(--gold);
}
.stat-item-icon svg { width: 20px; height: 20px; }
.stat-item h3 { color: var(--gold); font-size: 42px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-item p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin-top: 6px; font-weight: 500; }

@media (max-width: 600px) {
    .stat-item h3 { font-size: 30px; }
    .stat-item { padding: 24px 14px 20px; }
}

/* =========================================
   ABOUT SNIPPET
   ========================================= */
.about-snippet { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.about-snippet .eyebrow { position: relative; }
.about-snippet .eyebrow::after {
    content: '';
    display: block;
    width: 46px; height: 2px;
    background: var(--gold);
    margin: 14px auto 0;
}
.about-snippet h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.about-snippet p { color: var(--muted); font-size: 17px; line-height: 1.75; }

/* =========================================
   PROJECT CARDS  ★ signature seal lives here
   ========================================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.project-card {
    background: var(--white); border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
    display: flex; flex-direction: column;
    border-top: 3px solid transparent;
}
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-top-color: var(--gold); }
.project-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ivory); }
.project-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out-expo); }
.project-card:hover .project-card-image img { transform: scale(1.06); }

.project-card-badges {
    position: absolute; top: 14px; left: 14px; right: 14px;
    display: flex; align-items: flex-start; flex-wrap: wrap; gap: 8px;
}

.project-card-category {
    margin-left: auto;
    background: rgba(255,255,255,0.92); color: var(--navy);
    padding: 5px 12px; border-radius: 30px; font-size: 11px; font-weight: 700;
    text-align: right;
}

.project-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.project-card-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.funded-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold-soft); color: var(--navy);
    padding: 3px 11px; border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.02em;
    white-space: nowrap;
}
.funded-tag svg { width: 12px; height: 12px; color: var(--gold); flex-shrink: 0; }
.project-card-body h3 { font-size: 19px; font-weight: 600; }
.project-card-body p { color: var(--muted); font-size: 14px; flex: 1; }

.project-card-meta { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 14px; }
.project-card-meta span { display: flex; align-items: center; gap: 5px; }
.project-card-meta svg { width: 14px; height: 14px; }

.status-pill { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.status-planned { background: #FFF4E0; color: #A5680A; }
.status-ongoing { background: #E0EEFD; color: #1565C0; }
.status-completed { background: var(--success-soft); color: var(--success); }

.section-cta-center { text-align: center; margin-top: 46px; }

/* =========================================
   FOUNDER SECTION
   ========================================= */
.founder-section { background: var(--ivory); }
.founder-grid { display: grid; grid-template-columns: 380px 1fr; gap: 70px; align-items: center; }
.founder-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/5; background: var(--navy-soft, #E8EDF5); }
.founder-image img { width: 100%; height: 100%; object-fit: cover; }
.founder-image::after {
    content: '';
    position: absolute;
    top: 16px; left: 16px;
    width: 70px; height: 70px;
    border-top: 3px solid var(--gold);
    border-left: 3px solid var(--gold);
    pointer-events: none;
}
.founder-content { position: relative; }
.founder-content h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 18px; }
.founder-content p { color: var(--ink); font-size: 16px; margin-bottom: 16px; }
.founder-quote {
    position: relative;
    border-left: 3px solid var(--gold); padding-left: 24px; margin-top: 28px;
    font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--navy);
    line-height: 1.55;
}
.founder-quote::before {
    content: '\201C';
    position: absolute;
    top: -0.5em; left: 14px;
    font-family: var(--font-display);
    font-size: 90px;
    font-style: normal;
    font-weight: 600;
    color: var(--gold);
    opacity: 0.18;
    line-height: 1;
    z-index: 0;
}
.founder-signature { position: relative; margin-top: 16px; font-weight: 600; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
    .founder-grid { grid-template-columns: 1fr; gap: 34px; }
    .founder-image { max-width: 320px; margin: 0 auto; }
}

/* =========================================
   FEATURED VIDEO (Plyr-powered, self-hosted)
   ========================================= */
.featured-video-section h2 { margin: 8px 0 26px; }
.featured-video-player {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--navy);
}
.featured-video-caption { margin-top: 18px; color: var(--muted); font-size: 15px; }

/* Reskin Plyr to the site's navy/gold palette instead of its default blue */
.featured-video-player {
    --plyr-color-main: var(--gold);
    --plyr-video-background: var(--navy);
    --plyr-video-control-color: var(--white);
    --plyr-video-control-color-hover: var(--navy);
    --plyr-video-control-background-hover: var(--gold);
    --plyr-menu-background: var(--navy-light);
    --plyr-menu-color: var(--white);
    --plyr-tooltip-background: var(--navy);
    --plyr-tooltip-color: var(--white);
    --plyr-control-radius: 6px;
    --plyr-range-thumb-height: 14px;
}

/* =========================================
   GALLERY PREVIEW
   ========================================= */
.gallery-preview-public { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 12px; }
.gallery-preview-public a,
.gallery-preview-public .gallery-preview-photo-tile { position: relative; border-radius: var(--radius-sm); overflow: hidden; display: block; cursor: pointer; }
.gallery-preview-public img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease-out-expo); }
.gallery-preview-public a::after,
.gallery-preview-public .gallery-preview-photo-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(11,37,69,0.55));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-preview-public a:hover img,
.gallery-preview-public .gallery-preview-photo-tile:hover img { transform: scale(1.08); }
.gallery-preview-public a:hover::after,
.gallery-preview-public .gallery-preview-photo-tile:hover::after { opacity: 1; }
.gallery-preview-public a:nth-child(3n+1),
.gallery-preview-public .gallery-preview-photo-tile:nth-child(3n+1) { grid-row: span 2; }

@media (max-width: 768px) {
    .gallery-preview-public { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; }
}

/* =========================================
   NEWS CARDS
   ========================================= */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-card { background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo); }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card-image { aspect-ratio: 16/10; background: var(--ivory); overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out-expo); }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.news-card-body { padding: 20px; }
.news-card-date { font-size: 12.5px; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.news-card-body h3 { font-size: 17px; margin-top: 8px; font-weight: 600; }
.news-card-body p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(201,162,39,0.16), transparent 70%),
        radial-gradient(120% 140% at 85% 100%, var(--navy-light), var(--navy) 55%, var(--navy-deep) 100%);
}
.final-cta h2 { position: relative; z-index: 2; color: var(--white); font-size: clamp(28px, 4vw, 38px); }
.final-cta p { position: relative; z-index: 2; color: rgba(255,255,255,0.8); margin-top: 14px; font-size: 16px; }
.final-cta .btn { position: relative; z-index: 2; margin-top: 30px; }

/* =========================================
   GHOST MARK — decorative brand texture
   ========================================= */
.ghost-mark {
    position: absolute;
    opacity: 0.06;
    color: var(--gold);
    pointer-events: none;
    z-index: 1;
}
.stats-section .ghost-mark { top: -18%; left: -10%; width: 460px; height: 460px; }
.final-cta .ghost-mark { bottom: -22%; right: -8%; width: 520px; height: 520px; }

/* =========================================
   SCROLL PROGRESS BAR
   ========================================= */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-deep, #a3821f), var(--gold), var(--gold-bright));
    z-index: 6000;
    transition: width 0.1s linear;
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress { transition: none; }
}

/* =========================================
   STAGGERED SCROLL REVEAL (for grids)
   ========================================= */
.reveal-stagger.reveal-on-scroll { opacity: 1; transform: none; transition: none; }
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}
.reveal-stagger.revealed > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.21s; }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.35s; }
.reveal-stagger.revealed > *:nth-child(n+7) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer { background: #071932; color: rgba(255,255,255,0.85); padding: 60px 24px 0; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand-title { font-family: var(--font-display); font-size: 20px; color: var(--white); font-weight: 600; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.65); max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); transition: background 0.2s ease, color 0.2s ease; }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-social svg { width: 17px; height: 17px; }
.footer-links h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; font-family: var(--font-body); }
.footer-links a { display: block; color: rgba(255,255,255,0.65); font-size: 14px; margin-bottom: 10px; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); text-align: center; padding: 22px 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-credit { margin-left: 6px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }
.footer-credit a { color: var(--gold); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* =========================================
   BACK TO TOP
   ========================================= */
.back-to-top {
    position: fixed; bottom: 28px; right: 28px; z-index: 400;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--navy); color: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { background: var(--gold); color: var(--navy); }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-page-hero { background: var(--navy); padding: 160px 24px 70px; text-align: center; color: var(--white); }
.contact-page-hero h1 { color: var(--white); font-size: 40px; }
.contact-page-hero p { color: rgba(255,255,255,0.8); margin-top: 12px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; }
.contact-info-card { background: var(--ivory); border-radius: var(--radius-md); padding: 34px; height: fit-content; min-width: 0; }
.contact-info-card h3 { font-size: 20px; margin-bottom: 16px; }
.contact-info-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.contact-email-badge { display: flex; align-items: center; gap: 10px; background: var(--white); padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm); overflow-wrap: anywhere; }
.contact-email-badge svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.contact-form-card { background: var(--white); border-radius: var(--radius-md); padding: 34px; box-shadow: var(--shadow-sm); min-width: 0; }
.contact-form-card .form-group { margin-bottom: 18px; }
.contact-form-card label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.contact-form-card input, .contact-form-card textarea {
    width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14.5px;
}
.contact-form-card input:focus, .contact-form-card textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11,37,69,0.08); }
.contact-form-card textarea { resize: vertical; min-height: 140px; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-page-hero { padding: 130px 20px 50px; }
    .contact-page-hero h1 { font-size: 30px; }
}

@media (max-width: 480px) {
    .contact-form-card, .contact-info-card { padding: 24px 20px; }
    /* Google's reCAPTCHA checkbox widget has a fixed 304px width that doesn't
       shrink on its own, so it overflows narrow phone screens without this. */
    .g-recaptcha { transform: scale(0.78); transform-origin: 0 0; }
}


.reveal-on-scroll { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}


/* =========================================
   PROJECTS LISTING PAGE
   ========================================= */
.page-hero {
    background: var(--navy);
    padding: 150px 24px 60px;
    text-align: center;
    color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: 40px; }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

.filter-bar {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}
.filter-bar form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }

.filter-field { flex: 1; min-width: 150px; }
.filter-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 7px; }
.filter-field select, .filter-field input[type="text"] {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--ink);
}
.filter-field select:focus, .filter-field input:focus { outline: none; border-color: var(--navy); }

.filter-search { flex: 2; min-width: 220px; position: relative; }
.filter-search svg { position: absolute; left: 14px; bottom: 14px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.filter-search input[type="text"] { padding-left: 40px; }

.filter-actions { display: flex; gap: 10px; }
.filter-toggle-mobile { display: none; }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.active-filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--ivory); color: var(--navy);
    padding: 6px 12px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
}
.active-filter-chip a { color: var(--muted); font-weight: 700; }

.results-meta { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 24px; flex-wrap: wrap; gap: 12px; }
.results-count { color: var(--muted); font-size: 14.5px; }
.results-count strong { color: var(--navy); }

.pagination-public { display: flex; justify-content: center; margin-top: 50px; }
.pagination-public nav { display: flex; gap: 6px; }

@media (max-width: 900px) {
    .filter-bar form { flex-direction: column; align-items: stretch; }
    .filter-field, .filter-search { min-width: 100%; }
    .page-hero { padding: 120px 20px 50px; }
    .page-hero h1 { font-size: 30px; }
}


.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; color: var(--navy);
    background: var(--white); border: 1px solid var(--border);
}
.pagination-btn:hover:not(.pagination-active):not(.pagination-disabled) { border-color: var(--navy); }
.pagination-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pagination-disabled { color: var(--border); cursor: default; }


/* =========================================
   SINGLE PROJECT PAGE
   ========================================= */
.project-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    background-color: var(--navy);
    background-size: cover;
    background-position: center;
    padding: 160px 24px 60px;
    color: var(--white);
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,37,69,0.3), rgba(11,37,69,0.85));
}
.project-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; width: 100%; }
.project-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.project-hero h1 { color: var(--white); font-size: 42px; margin-bottom: 14px; }
.project-hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,0.85); }
.project-hero-meta span { display: flex; align-items: center; gap: 6px; }
.project-hero-meta svg { width: 16px; height: 16px; color: var(--gold); }

.project-body-layout { display: grid; grid-template-columns: 1fr 320px; gap: 50px; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.project-content-block { margin-bottom: 42px; }
.project-content-block h2 { font-size: 24px; margin-bottom: 14px; }
.project-content-block p { color: var(--ink); font-size: 16px; white-space: pre-line; line-height: 1.75; }

.project-sidebar-card {
    background: var(--ivory); border-radius: var(--radius-md); padding: 26px; margin-bottom: 22px;
}
.project-sidebar-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 16px; }
.sidebar-fact { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-fact:last-child { border-bottom: none; }
.sidebar-fact-label { color: var(--muted); }
.sidebar-fact-value { color: var(--navy); font-weight: 600; text-align: right; }

.impact-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.impact-stat-box { background: var(--white); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.impact-stat-box h3 { color: var(--navy); font-size: 24px; font-weight: 700; }
.impact-stat-box p { color: var(--muted); font-size: 11.5px; margin-top: 4px; }

.funded-badge-sidebar {
    display: flex; align-items: center; gap: 10px;
    background: var(--navy); color: var(--gold-soft);
    padding: 14px 18px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600;
}
.funded-badge-sidebar svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

.share-buttons { display: flex; gap: 10px; }
.share-btn {
    width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); transition: all 0.2s ease;
}
.share-btn:hover { background: var(--navy); color: var(--white); }
.share-btn svg { width: 18px; height: 18px; }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item::before {
    content: ''; position: absolute; left: -28px; top: 3px; width: 16px; height: 16px;
    border-radius: 50%; background: var(--gold); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
}
.timeline-item h4 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.timeline-item p { color: var(--muted); font-size: 13.5px; }

/* Masonry Gallery */
.masonry-gallery { columns: 3 220px; column-gap: 14px; }
.masonry-gallery img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 14px; cursor: zoom-in; break-inside: avoid; transition: opacity 0.2s ease; }
.masonry-gallery img:hover { opacity: 0.9; }

@media (max-width: 768px) {
    .masonry-gallery { columns: 2 160px; }
}

/* Video embed */
.video-embed-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-md); }
.video-embed-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Downloads */
.download-item {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 14px 18px; margin-bottom: 10px; transition: border-color 0.2s ease;
}
.download-item:hover { border-color: var(--navy); }
.download-item svg { width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }
.download-item span { font-weight: 600; color: var(--navy); font-size: 14px; }

/* Lightbox */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(11,37,69,0.92); z-index: 3000;
    display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
    position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(11,37,69,0.55); color: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; background: rgba(11,37,69,0.55);
    color: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 600px) {
    /* Keep nav/close buttons at a proper touch-target size on phones (44px
       meets Apple/Material's minimum recommended tap target) and pull them
       closer to the screen edge so they stay reachable without shrinking
       the image or overlay. */
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-close { top: 10px; right: 10px; width: 40px; height: 40px; }
}
.lightbox-spinner {
    display: none; position: absolute; width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25); border-top-color: var(--gold);
    animation: lightbox-spin 0.8s linear infinite;
}
.lightbox-overlay.loading .lightbox-spinner { display: block; }
.lightbox-overlay.loading img { opacity: 0; }
@keyframes lightbox-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .lightbox-spinner { animation: none; border-top-color: rgba(255,255,255,0.25); }
}

/* Related projects strip */
.related-projects-section { background: var(--ivory); }

@media (max-width: 992px) {
    .project-body-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .project-hero { padding: 130px 20px 40px; min-height: 45vh; }
    .project-hero h1 { font-size: 28px; }
    .masonry-gallery { columns: 2 140px; }
}

/* =========================================
   GALLERY PAGE
   ========================================= */
.gallery-tabs { display: flex; gap: 6px; background: var(--ivory); padding: 5px; border-radius: 30px; width: fit-content; margin: 0 auto 40px; }
.gallery-tab-link {
    padding: 11px 26px; border-radius: 24px; font-size: 14px; font-weight: 600; color: var(--muted);
}
.gallery-tab-link.active { background: var(--navy); color: var(--white); }

.gallery-filter-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.gallery-filter-row select, .gallery-filter-row input {
    padding: 11px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 14px; min-width: 200px;
}

.masonry-grid-public { columns: 4 240px; column-gap: 16px; }
.masonry-grid-public .masonry-tile { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.masonry-grid-public img { width: 100%; display: block; transition: transform 0.3s ease; cursor: zoom-in; }
.masonry-grid-public .masonry-tile:hover img { transform: scale(1.04); }

.video-grid-public { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-card-public { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--white); }
.video-card-public-thumb { position: relative; aspect-ratio: 16/9; background: var(--navy); cursor: pointer; }
.video-card-public-thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card-public-thumb .play-icon {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.video-card-public-thumb .play-icon svg {
    width: 56px; height: 56px; color: var(--white); filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.video-card-public-body { padding: 16px 18px; }
.video-card-public-body h4 { font-size: 15px; color: var(--navy); font-weight: 600; }
.video-card-public-body p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.video-modal-overlay {
    position: fixed; inset: 0; background: rgba(11,37,69,0.92); z-index: 3000;
    display: none; align-items: center; justify-content: center; padding: 30px;
}
.video-modal-overlay.open { display: flex; }
.video-modal-inner { width: 100%; max-width: 900px; }
.video-modal-close {
    position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(11,37,69,0.55); color: var(--white); border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
    .masonry-grid-public { columns: 2 160px; }
}
@media (max-width: 600px) {
    .gallery-filter-row select, .gallery-filter-row input { min-width: 100%; }
}

/* =========================================
   NEWS LISTING & SINGLE ARTICLE
   ========================================= */
.news-article-body { max-width: 760px; margin: 0 auto; }
.news-article-hero-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.news-article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.news-article-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; font-size: 13.5px; color: var(--muted); }
.news-article-meta .news-card-date { font-size: 12.5px; }
.news-article-content { font-size: 17px; line-height: 1.8; color: var(--ink); white-space: pre-line; }
.news-article-content p { margin-bottom: 20px; }

.related-news-strip { border-top: 1px solid var(--border); margin-top: 60px; padding-top: 50px; }

/* =========================================
   ACCESSIBILITY: SKIP LINK & FOCUS STATES
   ========================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    z-index: 5000;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* =========================================
   LEGAL PAGES
   ========================================= */
.legal-page-body { max-width: 780px; margin: 0 auto; }
.legal-page-body h2 { font-size: 22px; margin: 36px 0 14px; }
.legal-page-body h2:first-child { margin-top: 0; }
.legal-page-body p { color: var(--ink); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.legal-page-body ul { margin: 0 0 16px 22px; color: var(--ink); font-size: 15.5px; line-height: 1.75; }
.legal-page-body li { margin-bottom: 6px; }
.legal-updated { color: var(--muted); font-size: 13.5px; margin-bottom: 40px; }



/* =========================================
   HERO SLIDER  ★ world-class version
   ========================================= */
.hero-slider {
    position: relative;
    min-height: 92vh;
    overflow: hidden;
    background: var(--navy);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease;
    display: flex;
    align-items: center;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-bg {
    position: absolute; inset: -40px;
    background-size: cover;
    background-position: center;
    animation: kenBurns 9s ease-in-out infinite alternate;
    will-change: transform;
}
.hero-slide.active .hero-slide-bg { animation-play-state: running; }
.hero-slide-bg::after {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 50% 12%, rgba(11,37,69,0.15), rgba(11,37,69,0.7) 65%, rgba(7,25,50,0.92) 100%),
        linear-gradient(180deg, rgba(11,37,69,0.5), rgba(11,37,69,0.86));
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.12); }
}

.hero-slide-content {
    position: relative; z-index: 3;
    max-width: 760px; margin: 0 auto; padding: 150px 24px 120px;
    text-align: center; color: var(--white);
}
.hero-slide-content h1,
.hero-slide-content .hero-slide-title {
    color: var(--white);
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.25);
    font-family: var(--font-display);
    line-height: 1.15;
    text-wrap: balance;
}
.hero-slide-content p.hero-sub { font-size: 18px; color: rgba(255,255,255,0.88); margin-top: 20px; max-width: 560px; margin-left: auto; margin-right: auto; }

.hero-scroll-cue {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    z-index: 5;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.55);
    animation: scrollCueBob 2.2s ease-in-out infinite;
}
.hero-scroll-cue span {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}
.hero-scroll-cue svg { width: 16px; height: 16px; }

@keyframes scrollCueBob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.55; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 0.9; }
}

.hero-slide-content h1,
.hero-slide-content .hero-slide-title,
.hero-slide-content p.hero-sub,
.hero-slide-content .hero-cta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.hero-slide.active .hero-slide-content h1,
.hero-slide.active .hero-slide-content .hero-slide-title { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.hero-slide.active .hero-slide-content p.hero-sub { transition-delay: 0.45s; opacity: 1; transform: translateY(0); }
.hero-slide.active .hero-slide-content .hero-cta { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Nav arrows */
.hero-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(6px);
    color: var(--white); border: 1px solid rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: background 0.2s ease;
}
.hero-slider-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-slider-arrow svg { width: 20px; height: 20px; }
.hero-slider-prev { left: 24px; }
.hero-slider-next { right: 24px; }

/* Progress-bar dot indicators */
.hero-slider-dots {
    position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 5;
    display: flex; gap: 10px;
}
.hero-slider-dot {
    width: 40px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,0.3); cursor: pointer; overflow: hidden; position: relative;
}
.hero-slider-dot-fill {
    position: absolute; top: 0; left: 0; height: 100%; width: 0%;
    background: var(--gold);
}
.hero-slider-dot.active .hero-slider-dot-fill { animation: dotFill linear forwards; }

@keyframes dotFill {
    from { width: 0%; }
    to { width: 100%; }
}

@media (max-width: 768px) {
    .hero-slider { min-height: 80vh; }
    .hero-slide-content { padding: 120px 20px 70px; }
    .hero-slide-content h1, .hero-slide-content .hero-slide-title { font-size: 32px; }
    .hero-slider-arrow { width: 40px; height: 40px; }
    .hero-slider-prev { left: 12px; }
    .hero-slider-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide-bg { animation: none; }
    .hero-slide-content h1, .hero-slide-content .hero-slide-title, .hero-slide-content p.hero-sub, .hero-slide-content .hero-cta {
        transition: none; opacity: 1; transform: none;
    }
    .hero-scroll-cue { animation: none; }
}

/* =========================================
   HOMEPAGE GALLERY PREVIEW — VIDEO TILES
   ========================================= */
.gallery-preview-video-tile {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    background: var(--navy);
}
.gallery-preview-video-tile img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-preview-video-tile:hover img { transform: scale(1.06); }

.gallery-preview-play-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11,37,69,0.25);
}
.gallery-preview-play-icon svg {
    width: 44px; height: 44px; color: var(--white);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
    transition: transform 0.2s ease;
}
.gallery-preview-video-tile:hover .gallery-preview-play-icon svg { transform: scale(1.12); }



/* =========================================
   MOBILE NAV: HAMBURGER → X ANIMATION
   ========================================= */
.nav-toggle span {
    transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================
   MOBILE NAV: DRAWER CLOSE BUTTON
   ========================================= */
.nav-drawer-close {
    display: none;
    background: var(--ivory);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    cursor: pointer;
    position: absolute;
    top: 24px;
    right: 24px;
}
.nav-drawer-close svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
    .nav-drawer-close { display: flex; }
    .nav-links { position: fixed; } /* already set, kept here for context */
}

/* Hide the hamburger toggle while the mobile drawer is open —
   the dedicated close button inside the drawer takes over */
@media (max-width: 900px) {
    .nav-toggle.is-open {
        opacity: 0;
        pointer-events: none;
    }
}



/* =========================================
   LAZY IMAGE LOADING SHIMMER
   ========================================= */
img[loading="lazy"]:not(.img-loaded) {
    background: linear-gradient(100deg, var(--border) 30%, var(--ivory) 45%, var(--border) 60%);
    background-size: 200% 100%;
    animation: img-shimmer 1.4s ease-in-out infinite;
}
/* These grids use CSS multi-column masonry, so an unloaded <img> with no
   intrinsic size collapses to 0 height and the shimmer never shows — give
   it a minimum height until it loads and takes on its real dimensions. */
.masonry-gallery img:not(.img-loaded),
.masonry-grid-public img:not(.img-loaded) {
    min-height: 140px;
}
@keyframes img-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
    img[loading="lazy"]:not(.img-loaded) { animation: none; background: var(--border); }
}

/* =========================================
   PRELOADER
   ========================================= */
.site-preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(11, 37, 69, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.6s ease;
}
.site-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    backdrop-filter: blur(0px);
}
.site-preloader.is-hidden .preloader-inner {
    transform: scale(1.06);
}

.preloader-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Soft pulsing glow behind the mark */
.preloader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201,162,39,0.35) 0%, rgba(201,162,39,0) 70%);
    animation: preloaderGlowPulse 2.4s ease-in-out infinite;
    z-index: 0;
}

@keyframes preloaderGlowPulse {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.9); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Mark: steady icon, rotating arc around it */
.preloader-mark {
    position: relative;
    z-index: 1;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 6px 20px rgba(0,0,0,0.25));
}

.preloader-arc-spin {
    transform-origin: 100px 100px;
    animation: preloaderArcSpin 1.3s linear infinite;
}

@keyframes preloaderArcSpin {
    to { transform: rotate(360deg); }
}

/* Brand text: staggered fade-up reveal */
.preloader-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.preloader-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    opacity: 0;
    transform: translateY(8px);
    animation: preloaderTextIn 0.6s ease forwards;
    animation-delay: 0.35s;
}

.preloader-tagline {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 6px;
    opacity: 0;
    transform: translateY(8px);
    animation: preloaderTextIn 0.6s ease forwards;
    animation-delay: 0.6s;
}

@keyframes preloaderTextIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Indeterminate progress bar */
.preloader-bar {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 3px;
    border-radius: 3px;
    background: rgba(11,37,69,0.55);
    overflow: hidden;
}
.preloader-bar-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 40%;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    animation: preloaderBarSlide 1.3s ease-in-out infinite;
}

@keyframes preloaderBarSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .preloader-arc-spin,
    .preloader-glow,
    .preloader-bar-fill { animation: none; }
    .preloader-name,
    .preloader-tagline { animation: none; opacity: 1; transform: none; }
    .site-preloader,
    .preloader-inner { transition: opacity 0.3s ease; transform: none; }
}

@media (max-width: 900px) {
    .section-inner.mission-vision-grid{
        grid-template-columns: none !important;
    }
}