/* =========================================================
   MEMBERS PAGE — founder block, member grid, cta, lightbox
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- FOUNDER ---------------- */
.mem-founder {
    padding: 80px 0;
    background: #f8f9fa;
}

.mem-founder-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.mem-founder-image img {
    width: 100%;
    max-width: 360px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.mem-founder-content h2 {
    margin: 14px 0 18px;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.2;
    color: #212529;
}

.mem-founder-content h2 span {
    color: var(--ink);
}

.mem-founder-content p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.8;
    max-width: 55ch;
}

/* ---------------- MEMBERS ---------------- */
.mem-trustees {
    padding: 80px 0;
    background: var(--paper);
}

.mem-head {
    max-width: 60ch;
    margin-bottom: 40px;
}

.mem-head h2 {
    margin: 14px 0 0;
    font-size: clamp(28px, 3.2vw, 40px);
}

.mem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mem-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mem-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.mem-card img {
    width: 100%;
    aspect-ratio: 5 / 3;    /* consistent shape at every screen size */
    object-fit: cover;      /* fills the card completely, no letterboxing */
    object-position: top;   /* keeps faces in frame when cropped */
    display: block;
    cursor: pointer;        /* signals the image is clickable */
}

.mem-note {
    margin-top: 26px;
    text-align: center;
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-muted);
}

/* ---------------- CTA ---------------- */
.mem-cta {
    padding: 0 0 90px;
}

.mem-cta-inner {
    background: var(--ink);
    border-radius: var(--radius);
    padding: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    color: #fff;
}

.mem-cta-inner .eyebrow {
    color: var(--gold-light);
}

.mem-cta-inner .eyebrow::before {
    background: var(--gold-light);
}

.mem-cta-inner h2 {
    color: #fff;
    font-size: clamp(24px, 2.6vw, 32px);
    margin: 12px 0 8px;
}

.mem-cta-inner p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 48ch;
    font-size: 0.95rem;
}

.mem-cta-inner .btn-primary {
    background: var(--gold);
    flex-shrink: 0;
}

.mem-cta-inner .btn-primary:hover {
    background: var(--gold-light);
}

/* ---------------- LIGHTBOX ---------------- */
.mem-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mem-lightbox.is-open {
    display: flex;
    opacity: 1;
}

.mem-lightbox-stage {
    max-width: 88vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.mem-lightbox.is-open .mem-lightbox-stage {
    transform: scale(1);
}

.mem-lightbox-stage img {
    max-width: 88vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    background: #111;
}

.mem-lightbox-caption {
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    opacity: 0.85;
    margin: 0;
    text-align: center;
}

.mem-lightbox-close,
.mem-lightbox-nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mem-lightbox-close:hover,
.mem-lightbox-nav:hover {
    background: var(--gold, #c9a34e);
    border-color: var(--gold, #c9a34e);
    transform: translateY(-50%) scale(1.06);
}

.mem-lightbox-close {
    top: 24px;
    right: 24px;
    width: 46px;
    height: 46px;
    font-size: 1.15rem;
}

.mem-lightbox-close:hover {
    transform: scale(1.06);
}

.mem-lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    font-size: 1.4rem;
}

.mem-lightbox-prev {
    left: 24px;
}

.mem-lightbox-next {
    right: 24px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 992px) {
    .mem-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .mem-founder-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .mem-founder-image {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .mem-founder,
    .mem-trustees {
        padding: 55px 18px;
    }

    .mem-founder-image img {
        height: 320px;
    }

    .mem-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .mem-cta {
        padding: 0 18px 60px;
    }

    .mem-cta-inner {
        padding: 34px 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .mem-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .mem-lightbox-close {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        top: 14px;
        right: 14px;
    }

    .mem-lightbox-prev {
        left: 10px;
    }

    .mem-lightbox-next {
        right: 10px;
    }
}

@media (max-width: 400px) {
    .mem-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}