/* =====================================================
   MEET_THE_TEAM.CSS
   ===================================================== */

::selection { background: rgba(185,151,87,0.35); }

/* ===================== HERO ===================== */
.team-hero {
    min-height: 52vh;
    padding: 0 60px 70px;
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(to top, #0b0b0b 8%, rgba(0,0,0,0.45) 65%),
        url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?q=80&w=1800&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
}

.team-hero .hero-content {
    max-width: 780px;
    padding-top: 110px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b99757;
    margin-bottom: 14px;
}

.team-hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.6px;
    margin-bottom: 18px;
}

.hero-sub {
    font-size: 18px;
    line-height: 1.65;
    color: #c8c8c8;
    max-width: 640px;
    margin: 0;
}


/* ===================== TEAM SECTION ===================== */
.team-section {
    position: relative;
    padding: 8px 60px 80px;
}

/* Warm gold glow behind content */
.team-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(
        circle at 50% 0%,
        rgba(185,151,87,0.08) 0%,
        rgba(185,151,87,0.04) 35%,
        rgba(185,151,87,0.015) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 0;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.team-empty {
    text-align: center;
    padding: 80px 0;
    color: #555;
    font-size: 16px;
}


/* ===================== DEPARTMENT GROUP ===================== */
.team-group {
    margin-bottom: 72px;
}

.team-group:last-child {
    margin-bottom: 0;
}

.dept-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b99757;
    margin-bottom: 32px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(185,151,87,0.2);
}

.team-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}


/* ===================== MEMBER CARD ===================== */
.member-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
    opacity: 0;
    transform: translateY(24px);
}

.member-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity .6s cubic-bezier(.16,1,.3,1),
        transform .6s cubic-bezier(.16,1,.3,1),
        background .25s ease,
        box-shadow .25s ease;
}

.member-card:hover {
    background: rgba(255,255,255,0.055);
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* Photo */
.member-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #141414;
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    opacity: 0.92;
    transition: transform .35s ease, opacity .3s ease;
}

.member-card:hover .member-photo {
    transform: scale(1.04);
    opacity: 1;
}

/* Body */
.member-body {
    padding: 18px 20px 20px;
}

.member-name {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.member-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #b99757;
    margin-bottom: 12px;
}

.member-bio {
    font-size: 13.5px;
    line-height: 1.65;
    color: #999;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Social links */
.member-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.member-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    color: #777;
    text-decoration: none;
    transition: background .2s, border-color .2s, color .2s;
}

.member-link:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

.member-link svg {
    width: 14px;
    height: 14px;
}


/* ===================== SCROLL REVEAL ===================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s cubic-bezier(.16,1,.3,1),
        transform .7s cubic-bezier(.16,1,.3,1);
    will-change: opacity, transform;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-card,
    .member-card {
        opacity: 1 !important;
        transform: none !important;
        transition: background .2s, box-shadow .2s !important;
    }
}


/* ===================== CTA SECTION ===================== */
.cta-section {
    padding: 0 60px 20px;
}

.cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(185,151,87,0.07);
    border: 1px solid rgba(185,151,87,0.18);
    border-radius: 16px;
    padding: 56px 60px;
    text-align: center;
}

.cta-inner h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.cta-inner p {
    font-size: 16px;
    line-height: 1.7;
    color: #aaa;
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.cta-primary {
    background: #fff;
    color: #000;
}

.cta-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(255,255,255,0.15);
}

.cta-secondary {
    background: rgba(185,151,87,0.15);
    border: 1px solid rgba(185,151,87,0.35);
    color: #b99757;
}

.cta-secondary:hover {
    background: rgba(185,151,87,0.25);
    transform: translateY(-2px);
}


/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
    .team-hero          { padding: 0 20px 50px; min-height: 46vh; }
    .team-hero h1       { font-size: 40px; }
    .hero-sub           { font-size: 16px; }
    .team-section       { padding: 60px 20px 60px; }
    .cta-section        { padding: 0 20px 70px; }
    .cta-inner          { padding: 40px 28px; }
}

@media (max-width: 640px) {
    .team-hero h1           { font-size: 32px; }
    .team-group-grid        { grid-template-columns: 1fr 1fr; gap: 14px; }
    .member-photo-wrap      { aspect-ratio: 1 / 1; }
    .member-bio             { -webkit-line-clamp: 3; }
    .cta-inner h2           { font-size: 24px; }
}

@media (max-width: 420px) {
    .team-group-grid        { grid-template-columns: 1fr; }
}


/* ===================== JUDGES CTA ===================== */
.judges-cta {
    padding: 0 60px 40px;
}

.judges-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.judges-cta-text {
    flex: 1;
    min-width: 260px;
}

.judges-eyebrow {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #b99757;
    margin-bottom: 10px;
}

.judges-cta-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.judges-cta-text p {
    font-size: 15px;
    line-height: 1.65;
    color: #888;
    max-width: 520px;
    margin: 0;
}

@media (max-width: 980px) {
    .judges-cta         { padding: 0 20px 32px; }
    .judges-cta-inner   { padding: 32px 28px; flex-direction: column; align-items: flex-start; gap: 24px; }
}
