/* ═══════════════════════════════════════════════════════════════════════
   Team / Crew page
   ═══════════════════════════════════════════════════════════════════════ */
.team-hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--brand-charcoal);
    margin-left: calc(50% - 50vw);
}
.team-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.team-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-hero-image-low {
    filter: blur(20px) saturate(1.15);
    transform: scale(1.05);
    z-index: 0;
}
.team-hero-image-full {
    z-index: 1;
    opacity: 0;
    transition: opacity 1.4s ease-in;
}
.team-hero-image-full.is-loaded { opacity: 1; }
.team-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
            radial-gradient(ellipse at center,
            rgba(0,0,0,0.18) 0%,
            rgba(0,0,0,0.55) 70%,
            rgba(0,0,0,0.78) 100%);
    pointer-events: none;
}
.team-hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.25rem;
    animation: teamHeroSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
@keyframes teamHeroSlideUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.team-hero-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin: 1.75rem 0 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.team-hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.65);
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    animation: teamHeroBounce 2.5s ease-in-out infinite;
    transition: color var(--transition-fast), background var(--transition-fast);
}
.team-hero-scroll:hover,
.team-hero-scroll:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}
.team-hero-scroll svg { width: 28px; height: 28px; display: block; }
@keyframes teamHeroBounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}
.team-intro {
    background: var(--bg-page);
    padding: 4rem 0 1rem;
}
.team-intro-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
}
.team-intro-text p { margin-bottom: 1rem; }
.team-intro-text p:last-child { margin-bottom: 0; }
.team-section {
    padding: 5rem 0;
    background: var(--bg-page);
}
.team-section:nth-of-type(even) { background: var(--bg-elevated); }
.team-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.team-section-reverse .team-section-media { order: 2; }
.team-section-reverse .team-section-text  { order: 1; }
.team-section[data-team-section] {
    opacity: 0;
    transition:
            opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.team-section[data-team-section] .team-section-media {
    transform: translateX(-32px);
    opacity: 0;
    transition:
            transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
            opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.team-section[data-team-section] .team-section-text {
    transform: translateY(22px);
    opacity: 0;
    transition:
            transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s,
            opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s;
}
.team-section-reverse[data-team-section] .team-section-media {
    transform: translateX(32px);
}
.team-section[data-team-section].is-visible { opacity: 1; }
.team-section[data-team-section].is-visible .team-section-media,
.team-section[data-team-section].is-visible .team-section-text {
    transform: translateX(0) translateY(0);
    opacity: 1;
}
.team-section-media {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--brand-charcoal);
    box-shadow: var(--shadow-lg);
}
.team-section-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.team-section-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.team-member-role {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    margin: 0;
}
.team-member-name {
    font-size: clamp(1.85rem, 3.6vw, 2.85rem);
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--brand-charcoal);
    line-height: 1.05;
}
.team-member-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.7;
}
.team-member-description p { margin-bottom: 0.75rem; }
.team-member-description p:last-child { margin-bottom: 0; }
.team-member-socials {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    
}
.team-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0;
    color: var(--brand-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
    transition: var(--transition-fast);
    border: none;
    background: transparent;
    border-radius: 0;
    width: auto;
    height: auto;
    align-self: flex-start;
}
.team-social-link:hover,
.team-social-link:focus-visible {
    color: var(--brand-red-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    background: transparent;
    transform: none;
    box-shadow: none;
    outline: none;
}
.team-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--brand-charcoal);
    flex-shrink: 0;
}
.team-social-icon svg { width: 18px; height: 18px; display: block; }
.team-social-handle {
    padding: 0.2rem;
    font-feature-settings: 'tnum';
    color: var(--secondary-color);
    padding-bottom: .2rem;
}
.team-social-link svg { width: 20px; height: 20px; display: block; }
.team-member-website {
    display: inline-flex;
    align-items: center;
    transition: ease .3s;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
    align-self: flex-start;
}   
.team-member-website svg{
    color: var(--secondary-color);
}
.team-social-handle:hover {
    font-feature-settings: 'tnum';
    color: var(--secondary-color);
    padding-bottom: .2rem;
    transform: translateY(-1px);

    box-shadow: #0a0a0a 3px 2px;
    transition: ease .3s;
}
.team-member-website:hover {
    background: var(--background);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: #0a0a0a 2px 2px;
    transition: ease .3s;
}
.team-website-link-text{
    color: var(--secondary-color);
}
.team-website-link-text:hover {
    color: var(--primary-color);
}
.team-empty { padding: 6rem 0; text-align: center; }
.team-empty h2 { color: var(--brand-charcoal); }
.team-empty p { color: var(--muted-text); }
@media (max-width: 768px) {
    .team-section { padding: 3rem 0; }
    .team-intro    { padding: 2.5rem 0 0.5rem; }
    .team-section-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-section-reverse .team-section-media { order: 0; }
    .team-section-reverse .team-section-text  { order: 0; }
    .team-section-media { aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) {
    .team-hero-content { animation: none; }
    .team-hero-scroll  { animation: none; }
    .team-section[data-team-section],
    .team-section[data-team-section] .team-section-media,
    .team-section[data-team-section] .team-section-text {
        transition: none;
        transform: none;
        opacity: 1;
    }
    .team-hero-image-full { transition: none; }
}