/* The Oracle Foundation — shared styles for the index, contact and gallery pages */

:root {
    --brand: #b4470e;
    --brand-dark: #7a2706;
    --brand-light: #e57335;
    --brand-rgb: 180, 71, 14;
    --on-dark-accent: #ffb07a;
    --ink: #111827;
    --muted: #4b5563;
    --subtle: #5b6472;
    --bg: #f8f9fa;
    --bg-alt: #f1f3f5;
    --surface: #ffffff;
    --line: rgba(17, 24, 39, .1);
    --radius: 1.5rem;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --nav-h: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px)
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    line-height: 1.6
}

h1,
h2,
h3 {
    text-wrap: balance
}

img,
video {
    max-width: 100%;
    display: block
}

a {
    color: var(--brand)
}

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 3000;
    background: var(--surface);
    color: var(--ink);
    padding: .75rem 1rem;
    border-radius: .5rem;
    font-weight: 600
}

.skip-link:focus {
    top: 1rem
}

.container {
    max-width: 1200px;
    margin: 0 auto
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    padding: 0 1.25rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 24px rgba(0, 0, 0, .06)
}

.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none
}

.logo-img {
    height: 48px;
    width: auto
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2.25rem;
    list-style: none
}

.nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    position: relative;
    padding: .5rem 0;
    transition: color .3s
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    transition: width .3s
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--brand)
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    width: 100%
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: .75rem
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s
}

.btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0
}

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 18px rgba(var(--brand-rgb), .3)
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--brand-rgb), .4)
}

.btn-outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand)
}

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px)
}

.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .85)
}

.btn-light:hover {
    background: #fff;
    color: var(--ink);
    transform: translateY(-2px)
}

.btn-lg {
    padding: 1rem 2.1rem;
    font-size: 1.05rem
}

.btn-block {
    width: 100%;
    border-radius: 1rem
}

.mobile-toggle,
.mobile-close {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: .5rem;
    display: flex
}

.mobile-toggle svg,
.mobile-close svg {
    width: 28px;
    height: 28px
}

/* MOBILE MENU */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible
}

.mobile-menu a:not(.btn) {
    color: var(--ink);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700
}

.mobile-menu a:not(.btn):hover {
    color: var(--brand)
}

.mobile-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem
}

/* HERO */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 2rem) 0 7rem;
    background: #1c120c
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    /* taller than the hero so the caption strip at the bottom of the clip is cropped off */
    height: 122%;
    object-fit: cover;
    object-position: center 30%
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 8, .6) 0%, rgba(20, 12, 8, .68) 60%, rgba(20, 12, 8, .94) 100%)
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 880px
}

.hero h1 {
    font-size: clamp(2.5rem, 6.5vw, 4.75rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    letter-spacing: -.02em
}

.hero h1 .accent {
    color: var(--on-dark-accent)
}

.hero-lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, .92);
    max-width: 640px;
    margin: 0 auto 2.25rem;
    line-height: 1.7
}

.hero-lead strong {
    color: #fff;
    font-weight: 700
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem
}

.motto {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: .02em
}

.hero .motto {
    color: var(--on-dark-accent)
}

/* STATS */
.stats-section {
    position: relative;
    z-index: 20;
    margin-top: -4rem;
    padding: 0 1.25rem
}

.stats-bar {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.25rem;
    border: 1px solid var(--line);
    box-shadow: 0 25px 60px -20px rgba(0, 0, 0, .18);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
    text-align: center
}

.stat-number {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    font-variant-numeric: tabular-nums
}

.stat-label {
    font-size: .95rem;
    color: var(--muted);
    margin-top: .5rem;
    font-weight: 500
}

/* SECTIONS */
.section {
    padding: 4.5rem 1.25rem
}

.section-alt {
    background: var(--bg-alt)
}

.section-header {
    text-align: center;
    margin-bottom: 2.75rem
}

.section-tag {
    display: inline-block;
    color: var(--brand);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: .75rem
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.12;
    letter-spacing: -.02em
}

.section-title .accent,
.about-content h2 .accent {
    color: var(--brand)
}

.section-intro {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 1rem auto 0
}

/* PILLARS */
.pillars-grid {
    display: grid;
    gap: 1.25rem
}

.pillar-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    padding: 2.25rem 2rem;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    box-shadow: 0 20px 45px -20px rgba(var(--brand-rgb), .6)
}

.pillar-number {
    position: absolute;
    top: .5rem;
    right: 1.25rem;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, .12)
}

.pillar-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem
}

.pillar-icon svg {
    width: 28px;
    height: 28px
}

.pillar-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .6rem
}

.pillar-card p {
    color: rgba(255, 255, 255, .92);
    line-height: 1.7;
    font-size: 1rem
}

/* ABOUT */
.about-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center
}

.about-image {
    position: relative;
    max-width: 460px;
    width: 100%;
    margin: 0 auto
}

.about-image .frame {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(var(--brand-rgb), .35);
    border-radius: var(--radius)
}

.about-image img {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4)
}

.about-badge {
    position: absolute;
    bottom: -1.25rem;
    right: 1rem;
    background: var(--brand);
    color: #fff;
    border-radius: 1.1rem;
    padding: 1rem 1.4rem;
    box-shadow: 0 16px 36px rgba(var(--brand-rgb), .4)
}

.about-badge .label {
    font-size: .8rem;
    font-weight: 600;
    opacity: .92
}

.about-badge .value {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2
}

.about-content .section-tag {
    display: block
}

.about-content h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em
}

.about-content p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.25rem
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
    list-style: none
}

.about-feature {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: rgba(var(--brand-rgb), .07);
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: .9rem;
    padding: .75rem 1.1rem;
    font-weight: 600;
    font-size: .95rem
}

.about-feature svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex-shrink: 0
}

/* PROGRAMS */
.programs-grid {
    display: grid;
    gap: 1.25rem
}

.program-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s
}

.program-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--brand-rgb), .35);
    box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .14)
}

.program-icon {
    width: 54px;
    height: 54px;
    background: rgba(var(--brand-rgb), .1);
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem
}

.program-icon svg {
    width: 26px;
    height: 26px;
    color: var(--brand)
}

.program-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.program-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem
}

/* GALLERY */
.gallery-grid {
    display: grid;
    gap: 1.25rem
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #1c120c
}

.gallery-item.wide {
    aspect-ratio: 4 / 3
}

.gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease)
}

.gallery-item:hover img {
    transform: scale(1.05)
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 3.5rem 1.5rem 1.25rem;
    background: linear-gradient(180deg, transparent, rgba(20, 12, 8, .88));
    color: #fff
}

.gallery-item figcaption strong {
    display: block;
    font-weight: 700;
    font-size: 1.1rem
}

.gallery-item figcaption span {
    font-size: .95rem;
    color: rgba(255, 255, 255, .9)
}

.gallery-more {
    text-align: center;
    margin-top: 2.5rem
}

/* Plain text link under the home page gallery */
.view-more {
    text-align: center;
    margin-top: 2.25rem
}

.view-more-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .25rem;
    color: var(--brand);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: underline;
    text-decoration-color: rgba(var(--brand-rgb), .35);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: color .3s, text-decoration-color .3s
}

.view-more-link svg {
    width: 20px;
    height: 20px;
    transition: transform .3s var(--ease)
}

.view-more-link:hover {
    color: var(--brand-dark);
    text-decoration-color: currentColor
}

.view-more-link:hover svg {
    transform: translateX(4px)
}

/* GALLERY PAGE */
.media-section {
    max-width: 1000px;
    margin: -3rem auto 5rem;
    padding: 0 1.25rem;
    position: relative;
    z-index: 20
}

.media-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .18);
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem
}

.media-group-header {
    margin-bottom: 1.25rem;
    padding: 0 .25rem
}

.media-group-header h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: .25rem
}

.media-group-header p {
    color: var(--muted)
}

/* Two columns on every screen size */
.media-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem
}

.media-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    background: #1c120c;
    font-family: inherit
}

.media-item[data-type="photo"] {
    cursor: zoom-in
}

.media-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease)
}

.media-item:hover img {
    transform: scale(1.04)
}

.media-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem .9rem .8rem;
    background: linear-gradient(180deg, transparent, rgba(20, 12, 8, .88));
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.3;
    text-align: left
}

.play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-radius: 50%;
    background: rgba(var(--brand-rgb), .92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    transition: transform .3s var(--ease)
}

.play-badge svg {
    width: 26px;
    height: 26px;
    margin-left: 4px
}

.media-item:hover .play-badge {
    transform: scale(1.1)
}

.media-length {
    position: absolute;
    top: .6rem;
    right: .6rem;
    padding: .15rem .5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(10, 6, 4, .95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem .75rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s
}

.lightbox.active {
    opacity: 1;
    visibility: visible
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    max-width: 100%
}

.lightbox-figure img,
.lightbox-figure video {
    max-width: min(92vw, 1100px);
    max-height: calc(100vh - 10rem);
    width: auto;
    height: auto;
    border-radius: .75rem;
    background: #000
}

.lightbox-figure [hidden] {
    display: none
}

.lightbox-figure figcaption {
    color: #fff;
    font-weight: 600;
    text-align: center
}

.lightbox-count {
    color: rgba(255, 255, 255, .7);
    font-weight: 500;
    margin-left: .5rem
}

.lightbox-btn {
    position: absolute;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s
}

.lightbox-btn:hover {
    background: var(--brand)
}

.lightbox-btn svg {
    width: 24px;
    height: 24px
}

.lightbox-close {
    top: 1rem;
    right: 1rem
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%)
}

.lightbox-prev {
    left: .75rem
}

.lightbox-next {
    right: .75rem
}

@media (max-width: 599px) {
    .media-group {
        padding: 1.25rem .75rem
    }

    .media-grid {
        gap: .5rem
    }

    .media-caption {
        font-size: .85rem;
        padding: 2rem .65rem .6rem
    }

    .play-badge {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px
    }

    .play-badge svg {
        width: 22px;
        height: 22px
    }

    /* On phones the arrows sit under the photo or video so they never cover it */
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 1rem;
        transform: none
    }

    .lightbox-prev {
        left: calc(50% - 60px)
    }

    .lightbox-next {
        right: calc(50% - 60px)
    }
}

@media (min-width: 600px) {
    .media-group {
        padding: 2rem
    }

    .media-grid {
        gap: 1rem
    }
}

/* CTA */
.cta-section {
    position: relative;
    padding: 6rem 1.25rem;
    overflow: hidden;
    background: #1c120c
}

.cta-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122, 39, 6, .88), rgba(20, 12, 8, .86))
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 760px;
    margin: 0 auto;
    text-align: center
}

.cta-content .section-tag {
    color: var(--on-dark-accent)
}

.cta-content h2 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -.02em
}

.cta-content p {
    color: rgba(255, 255, 255, .92);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto 2.25rem
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center
}

.cta-content .btn-primary {
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .3)
}

.cta-content .btn-primary:hover {
    background: #fff3ea
}

/* FOOTER */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 4rem 1.25rem 2rem
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    margin-bottom: 3rem
}

.footer-brand p {
    color: var(--muted);
    max-width: 340px;
    margin: 1rem 0;
    font-size: .98rem;
    line-height: 1.7
}

.footer-brand .motto {
    color: var(--brand)
}

.footer h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem
}

.footer-links,
.footer-contact {
    list-style: none
}

.footer-links li {
    margin-bottom: .6rem
}

.footer-links a,
.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    font-size: .98rem;
    transition: color .3s
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--brand);
    text-decoration: underline
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .9rem;
    font-size: .98rem;
    color: var(--muted);
    overflow-wrap: anywhere
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 3px
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.75rem;
    text-align: center
}

.footer-bottom p {
    color: var(--subtle);
    font-size: .9rem
}

.social-links {
    display: flex;
    gap: .75rem
}

.social-links a {
    width: 44px;
    height: 44px;
    color: var(--brand);
    background: rgba(var(--brand-rgb), .08);
    border: 1px solid rgba(var(--brand-rgb), .18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s, color .3s, transform .3s
}

.social-links a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-3px)
}

.social-links svg {
    width: 20px;
    height: 20px
}

/* SUB-PAGE HEADER (contact) */
.page-hero {
    padding: calc(var(--nav-h) + 4rem) 1.25rem 6rem;
    background: linear-gradient(150deg, var(--brand) 0%, var(--brand-dark) 100%);
    text-align: center;
    color: #fff
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -.02em;
    line-height: 1.12
}

.page-hero p {
    color: rgba(255, 255, 255, .92);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto
}

/* CONTACT */
.contact-wrapper {
    max-width: 1100px;
    margin: -3rem auto 5rem;
    position: relative;
    z-index: 20;
    display: grid;
    gap: 1.5rem;
    padding: 0 1.25rem
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .18);
    border: 1px solid var(--line)
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: .5rem
}

.card>p {
    color: var(--muted);
    margin-bottom: 1.75rem
}

.info-list {
    list-style: none
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 1.02rem;
    font-weight: 500;
    overflow-wrap: anywhere
}

.info-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand)
}

.info-item a {
    color: var(--ink);
    text-decoration: none
}

.info-item a:hover {
    color: var(--brand);
    text-decoration: underline
}

.info-item small {
    display: block;
    color: var(--subtle);
    font-size: .85rem;
    font-weight: 500
}

.form-group {
    margin-bottom: 1.25rem
}

.form-group label {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .45rem
}

.form-control {
    width: 100%;
    padding: .9rem 1.1rem;
    background: #f9fafb;
    border: 1px solid #c9ced6;
    border-radius: .9rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .3s, box-shadow .3s, background .3s
}

.form-control::placeholder {
    color: #6b7280
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .15)
}

textarea.form-control {
    resize: vertical;
    min-height: 150px
}

.form-row {
    display: grid;
    gap: 0 1.25rem
}

.form-status {
    margin-top: 1rem;
    padding: .9rem 1.1rem;
    border-radius: .9rem;
    background: rgba(var(--brand-rgb), .08);
    border: 1px solid rgba(var(--brand-rgb), .2);
    color: var(--ink);
    font-size: .95rem
}

.form-group .optional {
    color: var(--subtle);
    font-weight: 500
}

.form-status[hidden] {
    display: none
}

.form-note {
    margin-top: .9rem;
    color: var(--subtle);
    font-size: .9rem;
    text-align: center
}

/* VIDEO MODAL */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, .92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s
}

.video-modal.active {
    opacity: 1;
    visibility: visible
}

.video-modal video {
    max-width: min(92vw, 1000px);
    max-height: 86vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    background: #000
}

.video-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .3s
}

.video-close:hover {
    background: var(--brand)
}

/* SCROLL REVEAL — content is only hidden when JavaScript is running */
.js .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .8s var(--ease), transform .8s var(--ease)
}

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

/* RESPONSIVE */
@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr
    }

    .gallery-grid,
    .programs-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .gallery-item.wide {
        grid-column: span 2;
        aspect-ratio: 16 / 9;
        order: 1
    }

    .gallery-item.after-wide {
        order: 2
    }

    .card {
        padding: 2.5rem
    }
}

@media (min-width: 900px) {
    .nav-links {
        display: flex
    }

    .mobile-toggle {
        display: none
    }

    .section {
        padding: 7rem 1.5rem
    }

    .section-header {
        margin-bottom: 3.5rem
    }

    .stats-bar {
        grid-template-columns: repeat(4, 1fr);
        padding: 2.5rem
    }

    .pillars-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .about-grid {
        grid-template-columns: 1fr 1fr
    }

    .cta-section {
        padding: 8rem 1.5rem
    }

    .footer-grid {
        grid-template-columns: minmax(0, 1.6fr) 1fr 1fr max-content
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1.5fr;
        gap: 2rem;
        align-items: start
    }
}

@media (min-width: 1024px) {

    .gallery-grid,
    .programs-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .gallery-item.wide {
        aspect-ratio: auto;
        order: 0
    }

    .gallery-item.after-wide {
        order: 0
    }
}

@media (max-width: 899px) {
    .nav-actions .btn {
        padding: .55rem 1.1rem;
        font-size: .9rem
    }
}

/* Phones: tighter cards so the page is not an endless scroll */
@media (max-width: 599px) {
    .program-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        align-items: start;
        padding: 1.25rem
    }

    .program-icon {
        grid-row: span 2;
        width: 48px;
        height: 48px;
        margin-bottom: 0
    }

    .program-card h3 {
        font-size: 1.1rem;
        margin-bottom: .25rem
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .75rem
    }

    .gallery-item {
        border-radius: 1rem
    }

    .gallery-item.wide {
        grid-column: span 2;
        aspect-ratio: 16 / 10;
        order: 1
    }

    .gallery-item.after-wide {
        order: 2
    }

    .gallery-item figcaption {
        padding: 2.5rem .9rem .8rem
    }

    .gallery-item figcaption strong {
        font-size: 1rem
    }

    .gallery-item:not(.wide) figcaption span {
        display: none
    }

    .pillar-card {
        padding: 1.75rem 1.5rem
    }

    .info-item {
        font-size: .93rem;
        gap: .75rem
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

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