.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 70px;
    height: 10vh;
}

.contact-title{
    color: #262626;
    margin: 2rem 4vw 0;
    margin-top: 100px;
    font-family: "Mona Sans";
    font-size: clamp(25px, 5vw, 40px);
    font-style: normal;
    font-weight: 500;
    padding-bottom: 15px;
}

.mission-statement{
    color: #262626;
    margin: 0 4vw 0;
    font-family: "Mona Sans";
    font-size: clamp(17px, 1.5vw, 40px);
    font-style: normal;
    font-weight: 300;
    padding-bottom: 20px;
}

.help-statement{
    color: #262626;
    margin: 0 4vw 0;
    font-family: "Mona Sans";
    font-size: clamp(17px, 1vw, 40px);
    font-style: normal;
    font-weight: 500;
    line-height: 100%;
    font-stretch: 100%;
}

.member {
    text-align: left;
}

.members-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 1rem;
    margin: 2rem 4vw 0;
}

/* Frame that holds the photo, the button and the slide-up panel.
   Rounded corners + overflow: hidden keep the panel inside the photo. */
.member-photo-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 0.75rem;
    /* box-shadow: 0 4px 4px 0 rgba(255, 255, 255, 0.25) inset, 1px 3px 4px 0 rgba(0, 0, 0, 0.25); */
}

.member-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 8;
    object-fit: cover;
    /* transition: scale 0.4s cubic-bezier(0.075, 0.82, 0.165, 1); */
}

@media screen and (max-width: 560px) {
      .member-photo{
        aspect-ratio: 5/5;
}
    .members-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(225px, 80%), 1fr));
        gap: 1rem;
        margin: 2rem 4vw 0;
    }
}
    

/* Zoom now stays inside the rounded frame, so it won't overlap neighbors */
/* .member-photo-wrap:hover .member-photo { scale: 1.03; } */

.member-photo-placeholder {
    width: 100%;
    aspect-ratio: 5 / 10;
    background: #e5e5e5;
}

/* ---------- Read More button ---------- */
.member-more-btn {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 13px;
    background: rgba(38, 38, 38, 0.45);
    backdrop-filter: blur(1px);
    color: white;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.email-btn {
    position: absolute;
    right: .5rem;
    bottom: 0.5rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    border: none;
    border-radius: 13px;
    background: rgba(38, 38, 38, 0.45);
    backdrop-filter: blur(14px);
    color: white;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    
}

.linkedin-btn {
    position: absolute;
    right: 0.75rem;
    bottom: 3.25rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 999px;
    background: #0078D3;
    color: white;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 4px 4px 0 rgba(255, 255, 255, 0.25) inset, 1px 3px 4px 0 rgba(0, 0, 0, 0.25);
}

.member-more-btn:hover, .email-btn:hover {
    background: #fff;
    color: #262626;
}


.member-more-btn:focus-visible {
    outline: 2px solid #0a66c2;
    outline-offset: 2px;
}

.member-more-icon {
    width: 12px;
    height: 12px;
    transition: rotate 0.3s;
}

/* Arrow flips to point down when the panel is open */
.member-photo-wrap.is-open .member-more-icon {
    rotate: 180deg;
}

/* ---------- Slide-up panel ---------- */
.member-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: 90%;
    overflow-y: auto;
    padding: 1rem 1rem 3.5rem; /* extra bottom space so the button doesn't cover text */
    background: rgba(38, 38, 38, 0.75);
    backdrop-filter: blur(14px);
    border-radius: 15px 15px 0 0;

    /* Closed: pushed below the photo and hidden from keyboard/screen readers */
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 1s cubic-bezier(0.52, 0.01, 0, 1.03), visibility 2s;
}

.member-photo-wrap.is-open .member-panel {
    transform: translateY(0);
    visibility: visible;
    transition: transform 1s cubic-bezier(0.52, 0.01, 0, 1.03), visibility 0s;
    overflow-x: hidden;
}

.actions{
    display: flex;
    justify-content: end;
}

.member-detail {
    margin-bottom: 0.75rem;
}

.member-detail-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #f6f6f6;
}

.member-detail-value {
    display: block;
    font-size: 0.95rem;
    color: #f6f6f6;
}


/* ---------- Name, title, email ---------- */
.member-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.member-name {
    padding: 0;
    margin: 0;
    font-size: 1.15rem;
    font-weight: 500;
}

.member-title {
    margin: 0.25rem 0 0;
    margin-bottom: 1rem;
    color: #555;
}

.member-email {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.member-bio {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Turn off motion for visitors who prefer less animation */
@media (prefers-reduced-motion: reduce) {
    .member-panel,
    .member-more-icon,
    .member-photo {
        transition: none;
    }
}