/* ==========================================
   BYTEFRAME — TEAM PAGE STYLES
   ========================================== */

/* ─── TEAM HERO ──────────────────────────── */
.team-hero {
    min-height: 60svh;
    height: 100vh;
    background: var(--dark);
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    padding: 140px 0 80px;
}
.team-hero-bg {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    pointer-events: none;
}
.team-hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(193,57,26,.12) 0%, transparent 55%),
                radial-gradient(ellipse at 20% 80%, rgba(30,58,95,.1) 0%, transparent 50%);
}
.team-hero-inner {
    position: relative; z-index: 1;
    max-width: 700px;
}
.team-hero .hero-sub {
    animation: fade-up .6s var(--ease-out) .4s both;
}

/* ─── FOUNDERS ───────────────────────────── */
.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 1rem;
}

.founder-card {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    transition: box-shadow .25s, transform .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}
.founder-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--red), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.founder-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); border-color: rgba(193,57,26,.2); }
.founder-card:hover::before { opacity: 1; }

.founder-card-top {
    display: flex; align-items: flex-start; gap: 1.5rem;
}

.founder-avatar {
    width: 88px; height: 88px; border-radius: var(--r-xl);
    position: relative; flex-shrink: 0;
    overflow: hidden;
}
.founder-avatar img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: var(--r-xl);
}
.avatar-initials {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
    color: var(--white); border-radius: var(--r-xl);
}
.founder-avatar--1 .avatar-initials { background: linear-gradient(135deg, #C1391A 0%, #7a1c0b 100%); }
.founder-avatar--2 .avatar-initials { background: linear-gradient(135deg, #1e3a5f 0%, #0a1628 100%); }

.avatar-dot {
    position: absolute; bottom: 6px; right: 6px;
    width: 12px; height: 12px; border-radius: 50%;
    background: #4ade80;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 0 rgba(74,222,128,.5);
    animation: pulse 2s infinite;
}

.founder-title-block { display: flex; flex-direction: column; gap: .35rem; padding-top: .25rem; }
.founder-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--dark); }
.founder-role {
    display: inline-block;
    font-size: .8rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .08em; color: var(--red);
}
.founder-location {
    display: flex; align-items: center; gap: .35rem;
    font-size: .8rem; color: var(--mid);
    margin-top: .2rem;
}
.founder-location svg { color: var(--mid); }

.founder-bio p {
    color: var(--mid); line-height: 1.8; font-size: .95rem;
    margin-bottom: .75rem;
}
.founder-bio p:last-child { margin-bottom: 0; }

.founder-skills {
    display: flex; flex-wrap: wrap; gap: .4rem;
    padding-top: .25rem;
}
.founder-skills span {
    padding: .3rem .75rem;
    background: var(--light);
    color: var(--dark-3);
    font-size: .75rem; font-weight: 600;
    border-radius: var(--r-sm);
    border: 1px solid var(--light-2);
}

.founder-contact {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .7rem 1.25rem;
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-md);
    font-weight: 600; font-size: .875rem; color: var(--dark-3);
    transition: border-color .2s, color .2s, background .2s;
    width: fit-content; margin-top: auto;
}
.founder-contact:hover { border-color: var(--red); color: var(--red); background: rgba(193,57,26,.04); }

@media (max-width: 860px) {
    .founders-grid { grid-template-columns: 1fr; }
    .founder-card { padding: 2rem; }
}
@media (max-width: 480px) {
    .founder-card-top { flex-direction: column; }
    .founder-avatar { width: 72px; height: 72px; }
}

/* ─── OUR STORY ──────────────────────────── */
.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.story-text p {
    color: var(--mid);
    line-height: 1.85;
    margin-top: 1rem;
    font-size: .975rem;
}
.story-aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-top: .5rem;
}
.story-card {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.story-card:hover {
    border-color: rgba(193,57,26,.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.story-card-icon {
    width: 42px; height: 42px;
    border-radius: var(--r-md);
    background: rgba(193,57,26,.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
    margin-bottom: .25rem;
}
.story-card h5 {
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 700;
    color: var(--dark);
}
.story-card p {
    font-size: .85rem;
    color: var(--mid);
    line-height: 1.7;
}

@media (max-width: 860px) {
    .story-grid { grid-template-columns: 1fr; }
}

/* ─── COMPANY NUMBERS ────────────────────── */
.numbers-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.number-item {
    text-align: center; padding: 2.5rem 1.5rem;
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.number-item:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.num-value {
    font-family: var(--font-display); font-size: 3rem; font-weight: 800;
    color: var(--red); line-height: 1;
    margin-bottom: .5rem;
}
.num-label { font-size: .875rem; color: var(--mid); line-height: 1.4; }

@media (max-width: 860px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .numbers-grid { grid-template-columns: repeat(1, 1fr); } }

/* ─── VALUES ─────────────────────────────── */
.values-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 1rem;
}
.value-card {
    background: var(--white);
    border: 1.5px solid var(--light-2);
    border-radius: var(--r-xl);
    padding: 2rem;
    display: flex; flex-direction: column; gap: 1rem;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.value-card:hover { border-color: var(--red); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.value-icon {
    width: 48px; height: 48px; border-radius: var(--r-md);
    background: rgba(193,57,26,.07);
    display: flex; align-items: center; justify-content: center;
    color: var(--red);
}
.value-card h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.value-card p { color: var(--mid); font-size: .9rem; line-height: 1.75; }

@media (max-width: 860px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }

/* ─── HOW WE WORK ────────────────────────── */
.hww-grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.hww-text p { color: var(--mid); line-height: 1.8; margin-top: 1rem; }
.hww-list { display: flex; flex-direction: column; gap: 1.25rem; padding-top: .5rem; }
.hww-item { display: flex; align-items: flex-start; gap: 1rem; }
.hww-check {
    width: 32px; height: 32px; border-radius: var(--r-sm);
    background: rgba(193,57,26,.08); color: var(--red);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hww-item h5 { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.hww-item p { font-size: .875rem; color: var(--mid); line-height: 1.6; }

@media (max-width: 860px) { .hww-grid { grid-template-columns: 1fr; } }

/* ─── TEAM TESTIMONIAL ───────────────────── */
.team-testi-inner {
    max-width: 800px; margin: 0 auto; text-align: center;
    padding: clamp(2rem, 5vw, 4rem);
    background: var(--light);
    border-radius: var(--r-xl);
    border: 1.5px solid var(--light-2);
    position: relative;
}
.tt-quote-mark {
    font-family: var(--font-display); font-size: 6rem; line-height: .7;
    color: var(--red); opacity: .15; font-style: italic;
    pointer-events: none; user-select: none;
    margin-bottom: .5rem;
}
.tt-quote {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    line-height: 1.8; color: var(--dark-3);
    font-style: italic; margin-bottom: 2rem;
}
.tt-author {
    display: inline-flex; align-items: center; gap: 1rem;
}
.tt-author strong { display: block; font-style: normal; font-size: .95rem; }
.tt-author span { font-style: normal; font-size: .8rem; color: var(--mid); }

/* ─── HIRING ─────────────────────────────── */
.hiring-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}
.hiring-text p { color: var(--mid); line-height: 1.8; margin-top: 1rem; }
.hiring-cta-block { display: flex; flex-direction: column; gap: 1.5rem; padding-top: .5rem; }
.hiring-values { display: flex; flex-direction: column; gap: .85rem; }
.hv-item {
    display: flex; align-items: center; gap: .75rem;
    font-size: .9rem; font-weight: 500; color: var(--dark-3);
}
.hv-item svg { color: var(--red); flex-shrink: 0; }
.hiring-note { font-size: .8rem; color: var(--mid); }

@media (max-width: 860px) { .hiring-inner { grid-template-columns: 1fr; } }

/* ─── NAV ACTIVE ─────────────────────────── */
.nav-link.active { color: rgba(255,255,255,.9) !important; }
.nav.scrolled .nav-link.active { color: var(--red) !important; }