/* Keep the hero anchored to the document while scrolling. */
.hero-bg {
    background-color: #16233f;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero-image {
    position: absolute;
    /* Put the parallax buffer below the frame so faces aren't cropped at the top. */
    inset: 0 0 -80px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}
@media (max-width: 767px) {
    .hero-image { background-position: 67% center; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-image { inset: 0; transform: none !important; }
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.hero-cta, .btn-hover-lift {
    display: inline-block;
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}
.card-hover {
    transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.image-zoom { overflow: hidden; border-radius: 0.75rem; }
.image-zoom img { transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .hero-cta:hover, .btn-hover-lift:hover { transform: translateY(-2px); }
    .card-hover.is-visible:hover { transform: translateY(-3px); }
    .image-zoom:hover img { transform: scale(1.02); }
}
.impact-number { font-variant-numeric: tabular-nums; }
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #14b8a6, #f59e0b);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
}
#team { font-family: 'Google Sans', system-ui, sans-serif; }
.team-portrait {
    --ink: #104d49;
    --paper: #c1e6d9;
    position: relative;
    display: grid;
    place-items: center;
    height: clamp(9rem, 17vw, 14rem);
    color: var(--ink);
    background: repeating-radial-gradient(circle at 102% 120%, transparent 0 24px, #ffffff75 25px 26px, transparent 27px 48px), var(--paper);
}
#team-cards article:nth-child(3n+2) .team-portrait { --ink: #624013; --paper: #f5dfaa; }
#team-cards article:nth-child(3n) .team-portrait { --ink: #40395b; --paper: #ded9ec; }
#team-cards { scrollbar-width: none; }
#team-cards::-webkit-scrollbar { display: none; }
#team-cards.team-expanded {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    overflow: visible;
}
#team :focus-visible { outline: 3px solid #0f766e; outline-offset: 2px; }
