﻿/* =========================================
   About/Index (Public)
   Upgraded: Eye-catchy Team Cards with
   Radial spotlight + glow border system
   - NO "Details" button
   - Click card -> modal
   ========================================= */

:root {
    --home-bg: #0b0b0f;
    --home-text: rgba(255,255,255,.92);
    --home-muted: rgba(255,255,255,.70);
    --home-muted2: rgba(255,255,255,.58);
    --home-border: rgba(255,255,255,.12);
    --home-border2: rgba(255,255,255,.18);
    --home-red: #ff2a2a;
    --home-card: rgba(255,255,255,.04);
    --home-card2: rgba(0,0,0,.18);
    --home-radius: 18px;
    --home-shadow: 0 18px 55px rgba(0,0,0,.55);
    --home-shadow2: 0 12px 34px rgba(0,0,0,.45);
    --home-ease: cubic-bezier(.2,.8,.2,1);
    --home-ease-fast: cubic-bezier(.2,.9,.2,1);
    /* SVG mask icons */
    --i-open: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M13 6l6 6-6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-team: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 21a4 4 0 0 0-8 0' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M12 11a4 4 0 1 0-4-4 4 4 0 0 0 4 4z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M21 21a4.5 4.5 0 0 0-6-3.9' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 11a3 3 0 1 0-3-3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    --i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M18 6L6 18' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
    --i-empty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v10H7z' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M9 1v4M15 1v4M9 19v4M15 19v4M1 9h4M1 15h4M19 9h4M19 15h4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.abt {
    min-width: 320px;
    color: var(--home-text);
    background: transparent;
    padding: clamp(18px, 3vw, 28px) 0 clamp(46px, 6vw, 74px);
}

.abt__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (max-width:520px) {
    .abt__inner {
        padding-inline: 14px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms var(--home-ease), transform 520ms var(--home-ease);
}

    .reveal.is-in {
        opacity: 1;
        transform: translateY(0);
    }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 220ms var(--home-ease), border-color 220ms var(--home-ease);
}

    .kicker:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
    }

.kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--home-red);
    box-shadow: 0 0 0 4px rgba(255,42,42,0.14);
}

.kicker__text {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
}

.accent {
    color: var(--home-red);
}

.abt-metaRow {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast);
}

    .pill:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
    }

.pill__icon {
    --pill-icon: var(--i-team);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.38);
    display: inline-grid;
    place-items: center;
}

    .pill__icon::before {
        content: "";
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--pill-icon) center/contain no-repeat;
        mask: var(--pill-icon) center/contain no-repeat;
    }

.pill__icon--team {
    --pill-icon: var(--i-team);
}

.pill__icon--open {
    --pill-icon: var(--i-open);
}

.pill__text {
    font-size: 13px;
    font-weight: 850;
    color: rgba(255,255,255,0.86);
}

/* Hero */
.abt-hero {
    border-radius: var(--home-radius);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--home-border);
    box-shadow: var(--home-shadow2);
    padding: 18px;
    overflow: hidden;
    position: relative;
}

    .abt-hero::after {
        content: "";
        position: absolute;
        right: -70px;
        top: -70px;
        width: 200px;
        height: 200px;
        background: rgba(255,42,42,0.10);
        filter: blur(36px);
        pointer-events: none;
    }

.abt-hero__title {
    margin: 14px 0 8px;
    font-size: clamp(28px, 4.2vw, 42px);
    letter-spacing: -0.03em;
    line-height: 1.06;
    position: relative;
    z-index: 1;
}

.abt-hero__text {
    margin: 0;
    max-width: 76ch;
    color: var(--home-muted);
    font-size: clamp(13.5px, 1.7vw, 16px);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Beliefs */
.abt-card {
    margin-top: 14px;
    border-radius: var(--home-radius);
    background: rgba(0,0,0,0.14);
    border: 1px solid rgba(255,255,255,0.10);
    padding: 14px;
    position: relative;
    overflow: hidden;
}

    .abt-card::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 3px;
        border-radius: 99px;
        background: rgba(255,42,42,0.75);
        opacity: .9;
    }

.abt-subtitle {
    font-weight: 950;
    letter-spacing: .2px;
    margin-left: 10px;
}

.abt-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

    .abt-list li {
        margin-left: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,0.10);
        background: rgba(255,255,255,0.03);
        color: rgba(255,255,255,0.84);
        line-height: 1.6;
    }

/* Team head */
.team {
    margin-top: 16px;
}

.team__head {
    margin: 14px 0 12px;
}

.team__title {
    margin: 12px 0 6px;
    font-size: clamp(18px, 2.6vw, 28px);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.team__sub {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.7;
    font-size: 13.5px;
}

/* Grid */
.team-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

/* -----------------------------
   Team Card: Radial Box System
   ----------------------------- */
.team-card {
    position: relative;
    isolation: isolate;
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--home-radius);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.30);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 300px;
    overflow: hidden;
    cursor: pointer;
    transform: translateY(0) scale(1);
    transition: transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast), background 180ms var(--home-ease-fast), box-shadow 180ms var(--home-ease-fast);
}

    /* spotlight */
    .team-card::before {
        content: "";
        position: absolute;
        inset: -2px;
        z-index: -1;
        opacity: 0;
        transition: opacity 180ms var(--home-ease-fast);
        background: radial-gradient(650px circle at var(--mx, 50%) var(--my, 30%), rgba(255,42,42,0.22), rgba(255,42,42,0.10) 28%, rgba(0,0,0,0.00) 62%);
    }

    /* glow border ring */
    .team-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        pointer-events: none;
        opacity: 0;
        transition: opacity 180ms var(--home-ease-fast);
        border: 1px solid rgba(255,42,42,0.28);
        box-shadow: 0 0 0 4px rgba(255,42,42,0.08), 0 22px 60px rgba(0,0,0,0.50);
    }

    /* subtle tech-grid texture */
    .team-card .team-ava,
    .team-card .team-name,
    .team-card .team-desig,
    .team-card .team-tapHint {
        position: relative;
        z-index: 1;
    }

    .team-card:hover {
        transform: translateY(-3px) scale(1.01);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.05);
        box-shadow: 0 26px 70px rgba(0,0,0,0.50);
    }

        .team-card:hover::before,
        .team-card:hover::after {
            opacity: 1;
        }

    .team-card:focus-visible {
        outline: none;
        transform: translateY(-2px) scale(1.01);
        border-color: rgba(255,42,42,0.50);
        box-shadow: 0 0 0 4px rgba(255,42,42,0.18), 0 26px 70px rgba(0,0,0,0.52);
    }

        .team-card:focus-visible::before,
        .team-card:focus-visible::after {
            opacity: 1;
        }

/* Open hint icon */
.team-openHint {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    display: grid;
    place-items: center;
    opacity: .65;
    transform: translateY(0);
    transition: opacity 180ms var(--home-ease-fast), transform 180ms var(--home-ease-fast), border-color 180ms var(--home-ease-fast), background 180ms var(--home-ease-fast);
    z-index: 2;
}

    .team-openHint::before {
        content: "";
        width: 18px;
        height: 18px;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-open) center/contain no-repeat;
        mask: var(--i-open) center/contain no-repeat;
    }

.team-card:hover .team-openHint {
    opacity: 1;
    transform: translateY(-1px);
    border-color: rgba(255,42,42,0.35);
    background: rgba(255,255,255,0.04);
}

/* Avatar */
.team-ava {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
    display: grid;
    place-items: center;
    margin-top: 8px;
}

    .team-ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        filter: contrast(1.03) saturate(1.02);
    }

.team-avaFallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.30);
}

    .team-avaFallback span {
        font-weight: 950;
        font-size: 28px;
        color: rgba(255,255,255,0.92);
    }

/* Name */
.team-name {
    margin-top: 12px;
    font-weight: 950;
    letter-spacing: -0.01em;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.team-display {
    color: rgba(255,255,255,0.70);
    font-weight: 850;
    font-size: 12.5px;
}

/* Designation */
.team-desig {
    margin-top: 8px;
    color: rgba(255,255,255,0.74);
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* bottom hint */
.team-tapHint {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12.5px;
    font-weight: 850;
    color: rgba(255,255,255,0.62);
    opacity: .85;
    transition: opacity 180ms var(--home-ease-fast), transform 180ms var(--home-ease-fast);
}

.team-card:hover .team-tapHint {
    opacity: 1;
    transform: translateY(-1px);
    color: rgba(255,255,255,0.72);
}

/* Empty */
.team-empty {
    margin-top: 14px;
}

.team-empty__card {
    border: 1px dashed rgba(255,255,255,0.18);
    border-radius: var(--home-radius);
    background: rgba(255,255,255,0.03);
    padding: 18px;
    text-align: center;
}

.team-empty__icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    border-radius: 16px;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.30);
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

    .team-empty__icon::before {
        content: "";
        width: 22px;
        height: 22px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-empty) center/contain no-repeat;
        mask: var(--i-empty) center/contain no-repeat;
    }

.team-empty__title {
    font-weight: 950;
    letter-spacing: .2px;
    margin-bottom: 6px;
}

.team-empty__text {
    color: var(--home-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Modal */
.team-modal[hidden] {
    display: none !important;
}

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: grid;
    place-items: center;
    padding: 16px;
}

.team-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 180ms var(--home-ease-fast);
}

.team-modal__panel {
    width: min(92vw, 560px);
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(12,12,14,0.96);
    box-shadow: var(--home-shadow);
    overflow: hidden;
    transform: translateY(10px) scale(.985);
    opacity: 0;
    transition: transform 180ms var(--home-ease-fast), opacity 180ms var(--home-ease-fast);
    position: relative;
}

.team-modal.is-open .team-modal__overlay {
    opacity: 1;
}

.team-modal.is-open .team-modal__panel {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.team-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.team-modal__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.20);
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.86);
    font-weight: 900;
    font-size: 12.5px;
    letter-spacing: .2px;
}

.team-modal__kdot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--home-red);
    box-shadow: 0 0 0 4px rgba(255,42,42,0.14);
}

.team-x {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 150ms var(--home-ease-fast), background 150ms var(--home-ease-fast), border-color 150ms var(--home-ease-fast), box-shadow 150ms var(--home-ease-fast);
}

    .team-x:hover {
        transform: translateY(-1px);
        background: rgba(255,255,255,0.07);
        border-color: rgba(255,255,255,0.16);
        box-shadow: 0 14px 35px rgba(0,0,0,0.35);
    }

    .team-x:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,42,42,0.18);
    }

.team-x__icon {
    width: 18px;
    height: 18px;
    display: block;
    background: rgba(255,42,42,0.95);
    -webkit-mask: var(--i-x) center/contain no-repeat;
    mask: var(--i-x) center/contain no-repeat;
}

.team-modal__body {
    padding: 16px;
    text-align: center;
}

.team-modal__ava {
    width: 110px;
    height: 110px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
    display: grid;
    place-items: center;
    margin: 4px auto 12px;
}

    .team-modal__ava img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        filter: contrast(1.03) saturate(1.02);
    }

.team-modal__avaFallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.30);
}

    .team-modal__avaFallback span {
        font-weight: 950;
        font-size: 30px;
        color: rgba(255,255,255,0.92);
    }

.team-modal__title {
    margin: 0;
    font-size: clamp(18px, 2.6vw, 26px);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.team-modal__line {
    margin-top: 8px;
    color: rgba(255,255,255,0.72);
    font-weight: 850;
    font-size: 13px;
}

.team-modal__pill {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    font-weight: 900;
    font-size: 12.5px;
    color: rgba(255,255,255,0.88);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Mobile */
@media (max-width:420px) {
    .team-card {
        min-height: 292px;
    }

    .team-ava {
        width: 88px;
        height: 88px;
    }

    .team-modal__ava {
        width: 92px;
        height: 92px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .kicker,
    .pill,
    .team-card,
    .team-modal__overlay,
    .team-modal__panel,
    .team-x,
    .team-openHint,
    .team-tapHint {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
