@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #24324a;
    --gold: #d7a441;
    --terracotta: #c1502e;
    --paper: #f5efe4;
    --green: #3f5b3a;
    --charcoal: #242018;
    --line: rgba(36, 50, 74, 0.16);
    --shadow: 0 22px 50px rgba(29, 24, 18, 0.12);
    --shadow-strong: 0 30px 70px rgba(29, 24, 18, 0.18);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(60, 95, 55, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 164, 65, 0.1), transparent 22%),
        linear-gradient(180deg, #f3f6ef 0%, #e8efe1 100%);
    color: var(--charcoal);
    font-family: 'Inter', Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(36, 50, 74, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(36, 50, 74, 0.035) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 75%);
    z-index: 0;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
    position: relative;
    z-index: 1;
}

.home-shell {
    width: 100%;
    padding: 0;
    position: relative;
    z-index: 1;
}

.home-shell > :not(.home-hero) {
    width: min(1120px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.site-header, .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(242, 241, 231, 0.72);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 8px 30px rgba(29, 24, 18, 0.05);
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark, .passport-stamp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 2px dashed var(--ink);
    border-radius: 50%;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.65)),
        linear-gradient(145deg, rgba(215, 164, 65, 0.25), rgba(63, 91, 58, 0.12));
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.32), 0 12px 24px rgba(36, 50, 74, 0.12);
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.01em;
}

.brand-subtitle, .muted {
    font-size: 0.92rem;
    color: rgba(38, 36, 31, 0.7);
}

/* ---- Mobile nav toggle ----
   Drop this button markup into your header template, right before <nav
   class="site-nav">, and give that <nav> the id="siteNav" attribute:

   <button type="button" class="nav-toggle" data-nav-toggle
           aria-expanded="false" aria-controls="siteNav">
       <span></span><span></span><span></span>
   </button>
*/
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a:focus-visible {
    border-color: var(--line);
    background: rgba(36, 50, 74, 0.07);
    outline: none;
    transform: translateY(-1px);
}

.nav-cta {
    background: rgba(45, 95, 61, 0.96) !important;
    color: #fff !important;
    padding-inline: 18px !important;
    box-shadow: 0 12px 24px rgba(45, 95, 61, 0.22);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: rgba(35, 78, 48, 1) !important;
}

.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74));
    border: 1px solid rgba(36, 50, 74, 0.12);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    backdrop-filter: blur(8px);
}

.narrow {
    max-width: 520px;
    margin: 0 auto;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero h1, h1, h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    color: var(--ink);
    margin-top: 0;
    line-height: 0.98;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}

.hero-grid, .split, .grid-3, .detail-grid {
    display: grid;
    gap: 20px;
}

.hero-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: center;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.45fr 0.78fr;
    gap: 20px;
    align-items: stretch;
    margin: 0 0 28px;
    padding: clamp(24px, 4vw, 48px);
    min-height: calc(100svh - 92px);
    border-radius: 0;
    overflow: hidden;
    position: relative;
    background:
        linear-gradient(90deg, rgba(14, 34, 18, 0.82), rgba(14, 34, 18, 0.54) 52%, rgba(14, 34, 18, 0.34)),
        linear-gradient(180deg, rgba(46, 86, 49, 0.18), rgba(46, 86, 49, 0.42)),
        url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1800&q=80') center/cover;
    box-shadow: var(--shadow-strong);
}

.hero-copy {
    max-width: 56ch;
    font-size: 1.04rem;
    line-height: 1.7;
}

.hero-panel {
    position: relative;
    min-height: 560px;
    padding: clamp(22px, 3vw, 40px);
    overflow: hidden;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(180deg, rgba(9, 23, 12, 0.14), rgba(9, 23, 12, 0.04));
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(180deg, rgba(10, 22, 12, 0.08) 0%, rgba(245, 239, 228, 0.08) 88%, rgba(245, 239, 228, 0.52) 100%);
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel h1 {
    max-width: 12ch;
    font-size: clamp(3.25rem, 8vw, 7rem);
    color: #fff;
    margin: 18px 0 16px;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(245, 239, 228, 0.92);
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 800;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-tag {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-side-card {
    padding: 28px;
    border-radius: 28px;
    background: rgba(18, 44, 24, 0.56);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-strong);
    align-self: end;
}

.hero-side-card h3 {
    margin: 0 0 14px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
}

.hero-side-card ul {
    margin: 0;
    padding-left: 18px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

.hero-side-link {
    display: inline-flex;
    margin-top: 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.hero-side-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(245, 239, 228, 0.84);
    border: 1px solid rgba(36, 50, 74, 0.08);
    box-shadow: var(--shadow);
}

.hero-side-strip strong {
    display: block;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.35rem;
    color: var(--ink);
}

.hero-side-strip span {
    font-size: 0.8rem;
    color: rgba(36, 32, 24, 0.7);
}

/* ---- Stat badges, restyled as passport-stamp medallions so the homepage
   stats reuse the brand's one signature visual element instead of plain
   rectangle tiles ---- */
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 26px 0 10px;
}

.metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 108px;
    height: 108px;
    padding: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(36, 50, 74, 0.32);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6)),
        linear-gradient(145deg, rgba(215, 164, 65, 0.16), rgba(63, 91, 58, 0.08));
    box-shadow: 0 14px 26px rgba(36, 50, 74, 0.14);
}

.metric strong {
    display: block;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 1.1;
    font-family: 'Fraunces', Georgia, serif;
}

.metric span {
    color: rgba(36, 32, 24, 0.72);
    font-size: 0.78rem;
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.passport-card {
    justify-self: end;
    width: min(320px, 100%);
    padding: 24px;
    border: 1px dashed rgba(36, 50, 74, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at top, rgba(215, 164, 65, 0.16), transparent 38%),
        linear-gradient(160deg, rgba(215, 164, 65, 0.16), rgba(63, 91, 58, 0.1));
    text-align: center;
    box-shadow: var(--shadow-strong);
}

.passport-label, .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: rgba(38, 36, 31, 0.66);
}

.passport-number {
    margin: 14px 0;
    font: 700 1.7rem/1.1 'Courier New', monospace;
    letter-spacing: 0.06em;
}

.passport-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.passport-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(36, 50, 74, 0.08);
    border: 1px solid rgba(36, 50, 74, 0.12);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
}

.passport-number-wrap {
    padding: 18px 0 6px;
    border-top: 1px solid rgba(36, 50, 74, 0.08);
    border-bottom: 1px solid rgba(36, 50, 74, 0.08);
}

.passport-note {
    color: rgba(36, 32, 24, 0.72);
    line-height: 1.65;
}

.passport-stamp.large {
    width: 92px;
    height: 92px;
    margin: 20px auto 0;
    font-size: 0.95rem;
    background: rgba(215, 164, 65, 0.15);
}

.stats-strip {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    align-items: center;
    gap: 18px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.stat-tile {
    padding: 16px;
    border-radius: 20px;
    background: rgba(245, 239, 228, 0.78);
    border: 1px solid rgba(36, 50, 74, 0.08);
}

.stat-tile strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 1.3rem;
    font-family: 'Fraunces', Georgia, serif;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr 0.8fr;
    gap: 20px;
    margin-bottom: 20px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h2 {
    margin-bottom: 4px;
}

/* ---- Host map: a real, pannable Leaflet map with stamp-style pins,
   wrapped in a perspective card that tilts toward the cursor and can be
   "flattened" with one click/tap for comfortable panning & clicking ---- */
.map-stage {
    position: relative;
    min-height: 420px;
    display: grid;
    place-items: center;
    padding: 12px;
    perspective: 1500px;
}

.map-toggle-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font: 600 0.82rem/1 'Inter', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(36, 50, 74, 0.14);
}

.toggle-icon {
    display: inline-block;
}

.map-3d-card {
    width: 100%;
    transform: rotateX(8deg) rotateY(0deg);
    transform-style: preserve-3d;
    transition: transform 220ms ease;
    will-change: transform;
}

.map-3d-card.is-flat {
    transform: none !important;
}

.map-frame {
    width: 100%;
    height: 380px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(36, 50, 74, 0.12);
    background: #dfe7ea;
    box-shadow: var(--shadow-strong);
}

.map-legend {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(36, 50, 74, 0.12);
    font-size: 0.82rem;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(36, 50, 74, 0.1);
}

.legend-chip strong {
    font-family: 'Fraunces', Georgia, serif;
    color: var(--gold);
}

/* Custom Leaflet marker: a passport-stamp pin with a soft pulse ring */
.leaflet-div-icon.stamp-marker {
    background: transparent;
    border: none;
}

.stamp-pin {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px dashed rgba(36, 50, 74, 0.85);
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)),
        linear-gradient(145deg, rgba(215, 164, 65, 0.95), rgba(193, 80, 46, 0.85));
    color: var(--ink);
    font: 700 11px/1 'Inter', sans-serif;
    box-shadow: 0 8px 16px rgba(36, 50, 74, 0.32);
}

.stamp-pin::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(215, 164, 65, 0.55);
    animation: stampPulse 2.4s ease-out infinite;
}

@keyframes stampPulse {
    0% { transform: scale(0.7); opacity: 0.9; }
    80% { transform: scale(1.7); opacity: 0; }
    100% { opacity: 0; }
}

.leaflet-popup-content-wrapper {
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    box-shadow: var(--shadow-strong);
}

.leaflet-popup-content {
    margin: 12px 14px;
}

.map-popup strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'Fraunces', Georgia, serif;
    color: var(--ink);
}

.media-card, .social-card {
    display: flex;
    flex-direction: column;
}

.video-frame {
    flex: 1;
    border-radius: 28px;
    overflow: hidden;
    background: #111822;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 16 / 10;
}

.video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.media-frame {
    flex: 1;
    min-height: 320px;
    border-radius: 28px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(160deg, rgba(36, 50, 74, 0.94), rgba(63, 91, 58, 0.9)),
        radial-gradient(circle at top, rgba(215, 164, 65, 0.22), transparent 36%);
    color: #fff;
    box-shadow: var(--shadow-strong);
}

.media-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
        radial-gradient(circle at 82% 26%, rgba(215, 164, 65, 0.18), transparent 20%),
        linear-gradient(135deg, transparent 34%, rgba(255, 255, 255, 0.08) 35%, transparent 36%);
    pointer-events: none;
}

.media-play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    font-size: 2rem;
    margin-top: 132px;
    transition: transform 200ms ease;
}

.media-frame:hover .media-play {
    transform: scale(1.08);
}

.media-caption {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 4px;
    margin-top: 18px;
}

.social-card {
    gap: 14px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--ink);
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(245, 239, 228, 0.7);
    border: 1px solid rgba(36, 50, 74, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(36, 50, 74, 0.1);
}

.social-link::after {
    content: '↗';
    color: var(--gold);
    font-weight: 700;
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.split-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.split-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.split-copy {
    position: relative;
    z-index: 1;
}

.feature-list {
    margin: 18px 0 24px;
    padding-left: 18px;
    line-height: 1.8;
}

.feature-list li + li {
    margin-top: 6px;
}

.split-art {
    position: relative;
    min-height: 320px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.5), transparent 28%),
        radial-gradient(circle at 75% 72%, rgba(36, 50, 74, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(215, 164, 65, 0.2), rgba(63, 91, 58, 0.12));
}

.split-art::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px dashed rgba(36, 50, 74, 0.16);
}

.split-ring {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 16px solid rgba(255, 255, 255, 0.46);
    box-shadow: inset 0 0 0 18px rgba(255, 255, 255, 0.1);
}

.split-art-volunteer {
    background:
        radial-gradient(circle at 50% 45%, rgba(63, 91, 58, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(245, 239, 228, 0.35), rgba(215, 164, 65, 0.14));
}

.split-art-host {
    background:
        radial-gradient(circle at 50% 45%, rgba(36, 50, 74, 0.18), transparent 18%),
        linear-gradient(180deg, rgba(215, 164, 65, 0.14), rgba(63, 91, 58, 0.16));
}

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ink), #1c273a);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 12px 24px rgba(36, 50, 74, 0.18);
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.button.secondary {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.button:hover, button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(36, 50, 74, 0.22);
    filter: brightness(1.02);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid label {
    display: grid;
    gap: 7px;
    font-size: 0.95rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(36, 50, 74, 0.14);
    background: rgba(255, 255, 255, 0.96);
    font: inherit;
    color: var(--charcoal);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
    outline: 3px solid rgba(215, 164, 65, 0.35);
    outline-offset: 2px;
}

.checkbox {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
}

.checkbox input {
    width: auto;
    margin-top: 4px;
}

.alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
}

.alert.success {
    background: rgba(63, 91, 58, 0.12);
    border: 1px solid rgba(63, 91, 58, 0.28);
}

.alert.error {
    background: rgba(193, 80, 46, 0.12);
    border: 1px solid rgba(193, 80, 46, 0.28);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.82rem;
    white-space: nowrap;
}

.badge-success { background: rgba(63, 91, 58, 0.12); color: var(--green); border-color: rgba(63, 91, 58, 0.22); }
.badge-warning { background: rgba(215, 164, 65, 0.16); color: #865c07; border-color: rgba(215, 164, 65, 0.32); }
.badge-danger { background: rgba(193, 80, 46, 0.12); color: var(--terracotta); border-color: rgba(193, 80, 46, 0.24); }
.badge-neutral { background: rgba(36, 50, 74, 0.08); color: var(--ink); border-color: rgba(36, 50, 74, 0.16); }

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 220px 120px;
    gap: 12px;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--line);
}

.detail-key {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(38, 36, 31, 0.65);
    margin-bottom: 6px;
}

.detail-value {
    white-space: pre-wrap;
}

.faq-list details {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

.site-footer {
    padding: 24px;
    text-align: center;
    color: rgba(38, 36, 31, 0.7);
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.admin-body {
    background: #f7f4ed;
}

.admin-container {
    padding-top: 28px;
}

.status-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.status-form select {
    min-width: 240px;
}

/* ---- Scroll-reveal: add class="reveal" to any card; app.js adds
   "is-visible" the first time it scrolls into view ---- */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 480ms ease, transform 480ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .hero-grid, .grid-3, .detail-grid, .form-grid, .filters, .home-hero, .stats-strip, .showcase-grid, .join-grid {
        grid-template-columns: 1fr;
    }

    .site-header, .admin-header {
        flex-direction: row;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 4px;
        order: 3;
    }

    .site-nav.is-open {
        display: flex;
    }

    .split-card {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: 460px;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 20px, 100%);
        padding-top: 16px;
    }

    .card {
        padding: 18px;
        border-radius: 18px;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-panel {
        padding: 24px;
        min-height: 430px;
        border-radius: 24px;
    }

    .hero-panel h1 {
        font-size: clamp(2.5rem, 14vw, 4rem);
    }

    .hero-side-card {
        padding: 22px;
    }

    .hero-side-strip {
        grid-template-columns: 1fr;
    }

    .hero-metrics {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .map-stage {
        min-height: 320px;
        perspective: none;
    }

    .map-3d-card {
        transform: none !important;
    }

    .map-toggle-btn {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .map-3d-card {
        transform: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Production UI refresh */
:root {
    --ink: #1f2d3f;
    --green: #2f5f3d;
    --green-deep: #183820;
    --gold: #c8912f;
    --terracotta: #b65033;
    --paper: #f6f3eb;
    --surface: #ffffff;
    --muted: #687386;
    --charcoal: #1f241f;
    --line: rgba(31, 45, 63, 0.14);
    --shadow: 0 14px 34px rgba(31, 45, 63, 0.09);
    --shadow-strong: 0 20px 48px rgba(31, 45, 63, 0.16);
    --radius: 8px;
}

html,
body {
    background: linear-gradient(180deg, #f7f6f0 0%, #eef4ea 46%, #f7f6f0 100%);
    color: var(--charcoal);
    scroll-behavior: smooth;
}

body::before {
    display: none;
}

a {
    color: var(--green);
}

.container {
    width: min(1180px, calc(100% - 32px));
    padding: 32px 0 56px;
}

.home-shell > :not(.home-hero) {
    width: min(1180px, calc(100% - 32px));
}

.site-header,
.admin-header {
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 28px rgba(31, 45, 63, 0.06);
}

.brand-mark,
.passport-stamp {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    border: 1px solid rgba(47, 95, 61, 0.28);
    background: #eef5e9;
    color: var(--green);
    box-shadow: none;
}

.brand-name {
    color: var(--ink);
    letter-spacing: 0;
}

.brand-subtitle,
.muted,
.lead {
    color: var(--muted);
}

.lead {
    max-width: 68ch;
    font-size: 1.03rem;
    line-height: 1.75;
}

.site-nav {
    align-items: center;
    gap: 6px;
}

.site-nav a {
    border-radius: var(--radius);
    padding: 10px 12px;
    font-weight: 650;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a:focus-visible {
    background: #eef5e9;
    border-color: rgba(47, 95, 61, 0.2);
    color: var(--green-deep);
    transform: none;
}

.nav-cta {
    background: var(--green) !important;
    border-color: var(--green) !important;
    box-shadow: 0 10px 18px rgba(47, 95, 61, 0.18);
}

.nav-toggle {
    border-radius: var(--radius);
}

.card {
    border-radius: var(--radius);
    padding: clamp(20px, 2.6vw, 32px);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: none;
}

.hero.card {
    display: grid;
    gap: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8f1 100%);
}

.hero h1,
h1,
h2 {
    letter-spacing: 0;
    line-height: 1.08;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 4rem);
    margin-bottom: 0;
}

.eyebrow,
.passport-label {
    color: var(--green);
    font-weight: 800;
    letter-spacing: 0.11em;
}

.home-hero {
    min-height: min(760px, calc(100svh - 78px));
    gap: clamp(16px, 2vw, 28px);
    padding: clamp(20px, 4vw, 52px);
    background:
        linear-gradient(90deg, rgba(20, 44, 25, 0.88), rgba(20, 44, 25, 0.6) 54%, rgba(20, 44, 25, 0.32)),
        url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&w=1800&q=82') center/cover;
    box-shadow: none;
}

.home-hero::before {
    display: none;
}

.hero-panel,
.hero-side-card,
.hero-side-strip {
    border-radius: var(--radius);
}

.hero-panel {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 48px);
    background: rgba(10, 24, 13, 0.24);
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-panel h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 7vw, 6.8rem);
    letter-spacing: 0;
}

.hero-kicker,
.hero-chip,
.hero-tag,
.legend-chip,
.badge,
.button,
button.button,
.map-toggle-btn,
.passport-chip {
    border-radius: var(--radius);
}

.hero-kicker {
    letter-spacing: 0.14em;
}

.hero-side-card {
    background: rgba(12, 32, 17, 0.74);
}

.hero-side-strip {
    background: rgba(255, 255, 255, 0.9);
}

.showcase-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr) minmax(240px, 0.7fr);
}

.map-stage {
    min-height: 390px;
    padding: 0;
}

.map-frame,
.video-frame,
.split-art {
    border-radius: var(--radius);
}

.map-frame {
    height: 370px;
}

.map-toggle-btn {
    top: 12px;
    right: 12px;
}

.map-popup {
    display: grid;
    gap: 3px;
}

.media-caption {
    padding-top: 12px;
}

.social-card {
    gap: 10px;
}

.social-link {
    border-radius: var(--radius);
    background: #f5f8f1;
    font-weight: 750;
}

.social-link::after {
    content: '->';
    color: var(--green);
}

.split-card {
    grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.75fr);
    min-height: 390px;
}

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

.split-art::before,
.split-ring {
    display: none;
}

.split-art-volunteer {
    background:
        linear-gradient(180deg, rgba(47, 95, 61, 0.08), rgba(47, 95, 61, 0.18)),
        url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=900&q=80') center/cover;
}

.split-art-host {
    background:
        linear-gradient(180deg, rgba(31, 45, 63, 0.08), rgba(31, 45, 63, 0.18)),
        url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=900&q=80') center/cover;
}

.button,
button.button {
    min-height: 46px;
    padding: 0 18px;
    background: var(--green);
    font-weight: 750;
    box-shadow: 0 10px 18px rgba(47, 95, 61, 0.18);
}

.button.secondary {
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.button.secondary.on-dark {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.32);
}

.button:hover,
button.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(47, 95, 61, 0.22);
}

.form-card {
    max-width: 980px;
}

.form-grid {
    gap: 16px;
}

.form-grid label {
    color: var(--ink);
    font-weight: 700;
}

input,
select,
textarea {
    border-radius: var(--radius);
    border-color: rgba(31, 45, 63, 0.18);
    background: #ffffff;
}

input:hover,
select:hover,
textarea:hover {
    border-color: rgba(47, 95, 61, 0.42);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(200, 145, 47, 0.32);
}

.alert {
    border-radius: var(--radius);
}

.badge-success {
    background: #e9f5ec;
}

.badge-warning {
    background: #fff4dc;
}

.badge-danger {
    background: #fae9e3;
}

.badge-neutral {
    background: #eef2f6;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

table {
    min-width: 760px;
}

th {
    background: #f4f7f1;
    color: var(--ink);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

tbody tr:hover {
    background: #fbfcf8;
}

.filters {
    align-items: end;
}

.detail-item {
    border-radius: var(--radius);
}

.faq-list details {
    padding: 18px 0;
}

.site-footer {
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.admin-body {
    background: #f5f7f2;
}

.admin-container .grid-3 .card h2 {
    margin: 8px 0 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    color: var(--green);
}

@media (max-width: 1100px) {
    .showcase-grid,
    .join-grid {
        grid-template-columns: 1fr;
    }

    .split-card {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

@media (max-width: 900px) {
    .site-header,
    .admin-header {
        align-items: center;
    }

    .site-nav a {
        width: 100%;
    }

    .home-hero {
        min-height: auto;
    }

    .hero-panel {
        min-height: 460px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

    .split-card {
        grid-template-columns: 1fr;
    }

    .split-art {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    .container,
    .home-shell > :not(.home-hero) {
        width: min(100% - 24px, 100%);
    }

    .site-header,
    .admin-header {
        padding: 12px 14px;
    }

    .brand-subtitle {
        display: none;
    }

    .home-hero {
        padding: 18px 12px 24px;
    }

    .hero-panel {
        min-height: 420px;
        padding: 24px;
    }

    .hero-panel h1 {
        max-width: 10ch;
        font-size: clamp(2.7rem, 15vw, 4.1rem);
    }

    .hero-kicker {
        letter-spacing: 0.08em;
    }

    .button-row,
    .button-row .button {
        width: 100%;
    }

    .form-grid,
    .detail-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .map-frame {
        height: 330px;
    }
}

.chatbot-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    display: grid;
    justify-items: end;
    gap: 12px;
    pointer-events: none;
}

.chatbot-launcher,
.chatbot-panel {
    pointer-events: auto;
}

.chatbot-launcher {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: var(--radius);
    background: var(--green);
    color: #fff;
    font: 800 0.95rem/1 'Inter', Arial, sans-serif;
    box-shadow: 0 16px 36px rgba(24, 56, 32, 0.28);
    cursor: pointer;
}

.chatbot-launcher-icon {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.chatbot-panel {
    display: none;
    width: min(420px, calc(100vw - 28px));
    max-height: min(680px, calc(100vh - 104px));
    overflow: hidden;
    border: 1px solid rgba(31, 45, 63, 0.14);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 45, 63, 0.24);
}

.chatbot-widget.is-open .chatbot-panel {
    display: grid;
    grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
}

.chatbot-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    background:
        linear-gradient(135deg, rgba(47, 95, 61, 0.94), rgba(24, 56, 32, 0.96)),
        url('https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=700&q=70') center/cover;
    color: #fff;
}

.chatbot-header .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.chatbot-header h2 {
    margin: 5px 0 0;
    color: #fff;
    font-size: 1.28rem;
    line-height: 1.15;
}

.chatbot-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font: 800 1rem/1 'Inter', Arial, sans-serif;
    cursor: pointer;
}

.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 18px 18px;
    overflow-y: auto;
    background: #f7faf4;
}

.chatbot-message {
    max-width: 90%;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.chatbot-message.bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid rgba(31, 45, 63, 0.1);
    color: var(--charcoal);
}

.chatbot-message.user {
    align-self: flex-end;
    background: var(--green);
    color: #ffffff;
}

.chatbot-message.is-loading {
    color: var(--muted);
}

.chatbot-source {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 750;
}

.chatbot-prompts {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    overflow-x: auto;
    background: #ffffff;
    border-top: 1px solid rgba(31, 45, 63, 0.08);
    scrollbar-width: thin;
}

.chatbot-prompt {
    flex: 0 0 auto;
    padding: 9px 11px;
    border: 1px solid rgba(47, 95, 61, 0.22);
    border-radius: var(--radius);
    background: #eef5e9;
    color: var(--green-deep);
    font: 750 0.82rem/1.2 'Inter', Arial, sans-serif;
    cursor: pointer;
}

.chatbot-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 10px;
    padding: 0 14px 10px;
    background: #ffffff;
    align-items: center;
}

.chatbot-form input {
    min-height: 48px;
    font-size: 0.95rem;
}

.chatbot-form .button {
    min-height: 48px;
    width: 100%;
    padding: 0 12px;
}

.chatbot-note {
    margin: 0;
    padding: 0 14px 14px;
    color: var(--muted);
    font-size: 0.76rem;
    background: #ffffff;
}

@media (max-width: 640px) {
    .chatbot-widget {
        right: 12px;
        bottom: 12px;
    }

    .chatbot-launcher {
        min-height: 46px;
        padding: 0 13px;
    }

    .chatbot-widget.is-open {
        left: 12px;
    }

    .chatbot-panel {
        width: 100%;
        max-height: calc(100vh - 88px);
    }

    .chatbot-header {
        padding: 14px 16px;
    }

    .chatbot-header h2 {
        font-size: 1.15rem;
    }

    .chatbot-messages {
        padding: 16px 12px;
    }

    .chatbot-message {
        max-width: 94%;
        font-size: 0.9rem;
    }

    .chatbot-form {
        grid-template-columns: minmax(0, 1fr) 76px;
        gap: 8px;
        padding-inline: 10px;
    }

    .chatbot-form input,
    .chatbot-form .button {
        min-height: 44px;
    }
}
