/* Main styles following Figma design */
:root {
    /* Colors from Figma */
    --color-brown: #753D20;
    --color-beige: #F2E7DC;
    --color-beige-rgb: 242, 231, 220;
    --color-light-brown: #A3967C;
    --color-lilac: #DCCEE6;
    --color-olive: #A7B65C;
    --color-background: #F9F7F4;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-card-border: #E2D6C6;
    
    /* Typography */
    --font-primary: 'Work Sans', sans-serif;
    --font-script: 'Cedarville Cursive', cursive;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 var(--spacing-md); */
}

/* Header */
.header {
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-background);
    transition: transform 0.4s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 2.5rem;
}

.nav-menu ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.nav-link {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link.active {
    color: var(--color-brown);
    background-color: rgba(var(--color-beige-rgb), 0.95);
}


/* Hero Section */
.hero-media {
    width: min(1200px, 100%);
    margin: 0 auto;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: min(1080px, 100vh);
}

.hero-content {
    width: min(1200px, 100%);
    margin: 0 auto 0;
    /* background-color: #fff; */
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 0 0 18px 18px;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    color: var(--color-brown);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

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

.home-section {
    padding: 0 0;
    display: flex;
    flex-direction: column;
}

/* About Hero */
.about-hero {
    background-color: rgba(var(--color-beige-rgb), 0.55);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 36px;
    display: flex;
    align-items: flex-end;
    gap: clamp(2rem, 6vw, 5rem);
}

.source-showcase-section {
    background-color: var(--color-background);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    position: relative;
    overflow: hidden;
    margin-top: -3px; /* subtle overlap to mask seam without creating heavy gradient */
}

/* Avoid revealing a seam when this block fades in */
.source-showcase-section [data-animate="fade-up"] {
    transform: none;
}

.about-hero-panel {
    flex: 1;
    min-height: clamp(220px, 40vw, 420px);
    border-radius: 32px;
    background-color: #fff;
    box-shadow: 0 32px 80px rgba(117, 61, 32, 0.08);
}

.about-hero-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(220px, 32vw, 360px);
    gap: var(--spacing-sm);
}

.about-hero-title {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    color: var(--color-brown);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.typewriter {
    position: relative;
    min-height: 1.2em;
}

.typewriter::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 4px;
    background-color: currentColor;
    opacity: 0;
    animation: typewriter-caret 1s steps(2, start) infinite;
}

.typewriter.is-typing::after {
    opacity: 1;
}

.typewriter.has-typed::after {
    opacity: 0;
}

.about-hero-description {
    font-size: 1.05rem;
    color: var(--color-text-light);
    max-width: 36ch;
}

.source-showcase {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
    align-items: center;
    text-align: center;
}

.source-showcase-heading {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    justify-content: center;
    justify-items: center;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 500;
    color: var(--color-text);
    text-align: center;
    width: auto;
    margin: 0 auto;
}

.source-showcase-label {
    color: #4b4b4b;
    white-space: nowrap;
}

.source-showcase-rotator {
    display: inline-block;
    position: relative;
    isolation: isolate; /* keep the fade masks scoped to the word rotator only */
    min-width: 170px;
    height: 1.4em;
    font-weight: 600;
    text-transform: lowercase;
    color: inherit;
    overflow: hidden;
    white-space: nowrap;
}

.source-showcase-rotator::before,
.source-showcase-rotator::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0.4em;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(249, 247, 244, 0.95),
        rgba(249, 247, 244, 0)
    );
}

.source-showcase-rotator::after {
    top: auto;
    bottom: 0;
    transform: scaleY(-1);
}

.source-showcase-rotator::before {
    top: 0;
}

.source-showcase-rotator-track {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    will-change: transform;
}

.source-showcase-rotator-track.is-animating {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.source-showcase-rotator-word {
    display: flex;
    align-items: center;
    height: 1.4em;
    line-height: 1.4em;
    color: transparent;
    background-image: linear-gradient(90deg, #606060, #b49545, #7c6d52);
    -webkit-background-clip: text;
    background-clip: text;
}

.source-showcase-placeholder {
    width: 100%;
    aspect-ratio: 4 / 2.6;
    border-radius: 28px;
    border: 0;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.04) 75%, rgba(0, 0, 0, 0.04)),
        linear-gradient(45deg, rgba(0, 0, 0, 0.04) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.04) 75%, rgba(0, 0, 0, 0.04));
    background-size: 48px 48px;
    background-position: 0 0, 24px 24px;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.source-showcase-placeholder::after {
    content: "Image placeholder";
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.35);
}

/* Essence Section */
.essence-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.essence-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.essence-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-olive);
    font-weight: 500;
    text-align: center;
}

.essence-description {
    text-align: center;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.essence-placeholder-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 3vw, 2.5rem);
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.essence-placeholder {
    background-color: #ede4dc;
    border-radius: 28px;
    min-height: 220px;
    box-shadow: inset 0 0 0 1px rgba(117, 61, 32, 0.05), 0 20px 45px rgba(0, 0, 0, 0.06);
}

.vision-mission-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
}

.vision-mission-section .container {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4.5rem);
    align-items: stretch;
}

.vision-block,
.mission-block {
    width: 100%;
}

.vision-title,
.mission-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-olive);
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.75rem;
}

.vision-description {
    text-align: center;
    color: var(--color-text-light);
    line-height: 1.7;
}

.vision-quote {
    margin-top: 1rem;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--color-brown);
    text-align: center;
}

.mission-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: clamp(1.25rem, 3vw, 2rem);
}

.mission-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.9rem;
}

.mission-card-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3.3;
    border-radius: 26px;
    background-color: #ede4dc;
    box-shadow: inset 0 0 0 1px rgba(117, 61, 32, 0.05), 0 15px 35px rgba(0, 0, 0, 0.05);
}

.mission-card h3 {
    font-size: 1.1rem;
    color: var(--color-brown);
}

.mission-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.principles-section {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.principles-section .container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.principles-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-olive);
    font-weight: 500;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
}

.principle-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.principle-accent {
    width: 6px;
    height: 70px;
    border-radius: 999px;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.principle-accent::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(167, 182, 92, 0.65), rgba(117, 61, 32, 0.08));
    transform: scaleX(0);
    transform-origin: right center;
    animation: principle-accent-sweep 0.7s ease forwards;
    animation-play-state: paused;
}

.principles-section .container[data-animate].is-visible .principle-accent::after {
    animation-play-state: running;
}

.principles-grid .principle-card:nth-child(2) .principle-accent::after {
    animation-delay: 0.1s;
}

.principles-grid .principle-card:nth-child(3) .principle-accent::after {
    animation-delay: 0.2s;
}

.principles-grid .principle-card:nth-child(4) .principle-accent::after {
    animation-delay: 0.3s;
}

.principles-grid .principle-card:nth-child(5) .principle-accent::after {
    animation-delay: 0.4s;
}

.principles-grid .principle-card:nth-child(6) .principle-accent::after {
    animation-delay: 0.5s;
}

.principle-copy h3 {
    font-size: 1.05rem;
    color: var(--color-brown);
    margin-bottom: 0.35rem;
}

.principle-copy p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

@keyframes principle-accent-sweep {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.legal-foundation-section {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
}

.legal-foundation-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 4vw, 2rem);
}

.legal-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-olive);
    font-weight: 500;
    text-align: center;
}

.legal-description {
    max-width: 72ch;
    text-align: center;
    color: var(--color-text-light);
    line-height: 1.7;
}

.legal-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(1rem, 4vw, 3rem);
}

.legal-card {
    background-color: #ede4dc;
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px rgba(117, 61, 32, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legal-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.legal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-olive);
    display: inline-block;
}

.legal-card h3 {
    font-size: 1.05rem;
    color: var(--color-brown);
}

.legal-card p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.legal-download {
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 1px solid rgba(117, 61, 32, 0.25);
    color: var(--color-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    align-self: flex-start;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.legal-download:hover {
    background-color: rgba(var(--color-beige-rgb), 0.35);
    box-shadow: 0 12px 30px rgba(117, 61, 32, 0.12);
}

.impact-section {
    padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.impact-section .container {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: center;
}

.impact-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-olive);
    font-weight: 500;
    text-align: center;
}

.impact-metrics {
    width: 100%;
    background-color: #ede4dc;
    border-radius: 28px;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: clamp(1rem, 2.5vw, 1.5rem);
}

.impact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.impact-number {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--color-brown);
}

.impact-label {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.work-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.work-section .container {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3rem);
}

.work-overview {
    display: flex;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: flex-start;
    flex-wrap: wrap;
}

.work-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    color: var(--color-brown);
    font-weight: 500;
    flex: 1 1 220px;
}

.work-pillars {
    flex: 2 1 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.work-pillars-item {
    display: flex;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem;
    background-color: rgba(var(--color-beige-rgb), 0.7);
    border-radius: 18px;
    align-items: flex-start;
}

.work-pillars-item h3 {
    font-size: 1.05rem;
    color: var(--color-brown);
    margin-bottom: 0.35rem;
}

.work-pillars-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.work-pillars-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.work-pillars-icon--circle {
    border-radius: 50%;
    background-color: var(--color-olive);
}

.work-pillars-icon--diamond {
    width: 14px;
    height: 14px;
    background-color: var(--color-olive);
    transform: rotate(45deg);
    margin-top: 0.15rem;
}

.work-pillars-icon--triangle {
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid rgba(167, 182, 92, 0.9);
    margin-top: 0.15rem;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
}

.work-card {
    background-color: #fff;
    border-radius: 24px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.work-card-media {
    width: 100%;
    aspect-ratio: 3 / 4;
    background-image:
        linear-gradient(45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0.05)),
        linear-gradient(-45deg, rgba(0, 0, 0, 0.05) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.05) 75%, rgba(0, 0, 0, 0.05));
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    background-color: #f6f0ea;
}

.work-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.work-card-body h3 {
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brown);
}

.work-card-body p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.btn-link {
    align-self: flex-start;
    padding: 0.5rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(117, 61, 32, 0.3);
    color: var(--color-brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-link:hover {
    background-color: rgba(var(--color-beige-rgb), 0.8);
}

/* Footer */
.site-footer {
    margin-top: clamp(2rem, 6vw, 4rem);
    background: transparent;
}

.footer-cta {
    background: linear-gradient(145deg, rgba(var(--color-beige-rgb), 0.35), rgba(var(--color-beige-rgb), 0.65));
    border-top: 1px solid rgba(117, 61, 32, 0.08);
    border-bottom: 1px solid rgba(117, 61, 32, 0.08);
    padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
}

.footer-mark {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-brown);
}

.footer-logo img {
    width: 70px;
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(117, 61, 32, 0.25));
}

.footer-tagline {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
}

.footer-tagline-title {
    font-weight: 700;
}

.footer-tagline p {
    margin: 0;
    font-weight: 500;
}

.footer-invite h2 {
    color: var(--color-brown);
    margin-bottom: 0.35rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.footer-invite p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.footer-social-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--color-brown);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-social-link:hover {
    color: var(--color-text);
}

.footer-social-link img {
    width: 1rem;
    height: auto;
}

.footer-meta {
    background: rgba(var(--color-beige-rgb), 0.4);
    padding: var(--spacing-sm) 0;
    border-top: 1px solid rgba(117, 61, 32, 0.12);
}

.footer-meta-inner {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-meta-copy {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
}

.btn-pill {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.9rem 2.6rem;
}

.btn-brown {
    background-color: var(--color-brown);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-olive {
    background-color: var(--color-olive);
    color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.btn-outline {
    background: #fff;
    color: var(--color-brown);
    border: 1px solid rgba(117, 61, 32, 0.3);
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.btn-outline:hover {
    background: rgba(var(--color-beige-rgb), 0.5);
    color: var(--color-brown);
}

.team-section {
    padding: 0 0 clamp(4rem, 6vw, 6rem);
    background: var(--color-background);
}

.team-hero {
    background-color: rgba(var(--color-beige-rgb), 0.55);
    padding: clamp(2rem, 5vw, 4rem);
    border-radius: 36px;
    display: flex;
    align-items: flex-end;
    gap: clamp(2rem, 6vw, 5rem);
}

.team-hero-media img {
    width: 100%;
    display: block;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 30px 70px rgba(117, 61, 32, 0.2);
}

.team-hero-copy h2 {
    color: var(--color-brown);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1rem;
}

.team-hero-copy p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1rem;
}

.team-hero-copy p + p {
    margin-top: 1rem;
}

.team-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.85rem;
    color: var(--color-olive);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.team-voices {
    text-align: center;
    margin-top: clamp(3rem, 6vw, 4.5rem);
}

.team-voices h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--color-olive);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.team-profiles {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 4vw, 3rem);
}

.team-profile {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 1.75rem);
    align-items: center;
}

.team-profile-name {
    font-size: 1rem;
    letter-spacing: 0.14em;
    color: var(--color-brown);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.team-profile-role {
    color: var(--color-brown);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-profile-credentials {
    color: var(--color-text-light);
    margin-top: 0.35rem;
    font-size: 0.92rem;
}

.team-profile-main {
    width: 100%;
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: flex-start;
    justify-content: space-between;
    align-items: stretch;
}

.team-profile-text {
    flex: 1 1 520px;
    max-width: 560px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team-profile-heading {
    text-align: right;
    margin-bottom: 1.25rem;
}

.team-profile-bio {
    line-height: 1.7;
    color: var(--color-text-light);
    font-size: 0.98rem;
    text-align: left;
}

.team-profile-media {
    flex: 0 0 460px;
}

.team-profile-media img {
    width: 100%;
    display: block;
    border-radius: 26px;
    object-fit: cover;
    height: 100%;
    min-height: 420px;
    box-shadow: 0 22px 55px rgba(117, 61, 32, 0.12);
}

.team-profile.is-reverse .team-profile-main {
    flex-direction: row-reverse;
}

.team-profile.is-reverse .team-profile-heading {
    text-align: left;
}

.team-volunteer {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    text-align: center;
}

.team-quote {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--color-brown);
    font-family: var(--font-script);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.volunteer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.volunteer-grid-cell {
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

figure.volunteer-grid-cell {
    margin: 0;
}

.volunteer-grid-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.volunteer-grid-cell--label span {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
}

.support-button {
    border: 1px solid rgba(117, 61, 32, 0.25);
    border-radius: 999px;
    padding: 0.85rem 2.1rem;
    background: #fff;
    color: var(--color-brown);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 18px 30px rgba(117, 61, 32, 0.12);
    cursor: pointer;
}

.support-button--floating {
    margin-bottom: 1.5rem;
}

.team-engagement {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding: clamp(3rem, 5vw, 5rem) 0;
    background: #f3e9de;
}

.engagement-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.engagement-header h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--color-brown);
    margin-bottom: 1rem;
}

.engagement-header h2 span {
    color: var(--color-olive);
}

.engagement-header p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.engagement-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 0.6rem;
    box-shadow: 0 35px 80px rgba(117, 61, 32, 0.1);
}

.engagement-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--color-brown);
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.engagement-tab.is-active {
    background: #fff;
    border-color: rgba(117, 61, 32, 0.2);
    box-shadow: 0 15px 35px rgba(117, 61, 32, 0.15);
}

.engagement-panels {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.engagement-panel {
    background: #fff;
    border-radius: 36px;
    padding: clamp(2rem, 4vw, 3rem);
    box-shadow: 0 30px 70px rgba(117, 61, 32, 0.12);
    display: none;
}

.engagement-panel.is-active {
    display: block;
}

.engagement-panel + .engagement-panel {
    margin-top: 2rem;
}

.engagement-panel-header h3 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--color-brown);
    margin-bottom: 0.6rem;
}

.engagement-panel-header p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.engagement-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.engagement-card-grid--single {
    grid-template-columns: minmax(0, 1fr);
}

.engagement-card-grid--compact {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.engagement-card {
    background: rgba(var(--color-beige-rgb), 0.35);
    border-radius: 28px;
    padding: 1.5rem;
    border: 1px solid var(--color-card-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.engagement-card h4 {
    color: var(--color-brown);
    font-size: 1.05rem;
}

.engagement-duration,
.engagement-subtitle {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.engagement-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

.engagement-card ul li {
    position: relative;
    padding-left: 1.25rem;
}

.engagement-card ul li::before {
    content: '';
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--color-olive);
    position: absolute;
    left: 0;
    top: 0.45rem;
}

.engagement-badge {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--color-olive);
    font-weight: 600;
}

.engagement-note {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: rgba(167, 182, 92, 0.15);
    color: var(--color-brown);
    border: 1px solid rgba(167, 182, 92, 0.3);
}

.engagement-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.engagement-card .btn {
    align-self: flex-start;
}

@keyframes typewriter-caret {
    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-media {
        border-radius: 0;
    }

    .hero-media img {
        max-height: 60vh;
    }

    .hero-content {
        width: calc(100% - 1.5rem);
        padding: 2rem 1.5rem 2.5rem;
        margin-top: -2rem;
        border-radius: 0 0 16px 16px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .about-hero-panel {
        width: 100%;
        min-height: 240px;
    }

    .about-hero-copy {
        width: 100%;
        min-height: auto;
        align-items: center;
        text-align: center;
    }

    .about-hero-description {
        margin: 0 auto;
    }

    .source-showcase {
        width: 100%;
        padding: 2rem 1.25rem;
        border-radius: 24px;
    }

    .source-showcase-heading {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .source-showcase-placeholder {
        width: 100%;
        border-radius: 20px;
    }

    .footer-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-social-links {
        width: 100%;
        gap: var(--spacing-sm);
    }

    .footer-meta-copy {
        white-space: normal;
        text-align: left;
    }

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

    .team-profile {
        align-items: flex-start;
    }

    .team-profile-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .team-profile.is-reverse .team-profile-body {
        flex-direction: column;
    }

    .team-profile-media img {
        min-height: 260px;
    }

    .volunteer-grid {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    }

    .engagement-tabs {
        justify-content: flex-start;
        border-radius: 24px;
    }

    .support-button--floating {
        width: 100%;
    }

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

/* Reveal Animations */
[data-animate] {
    --delay: 0s;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay);
}

[data-animate="fade-up"] {
    transform: translateY(35px);
}

[data-animate="rise-in"] {
    transform: translateY(45px) scale(0.95);
}

[data-animate="float"] {
    transform: translateY(40px) scale(0.98);
}

[data-animate="slide-panel"] {
    transform: translateX(-80px) scale(0.98);
}

[data-animate="slide-up"] {
    transform: translateY(45px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
}
