/* team.css (2026-10-26): the Team page (team/index.html), two fullPage pages.
   1. .team_intro: the orchestra, text left and four lines right (like the home page's Beyond).
   2. .team_map: the architecture drawing (assets/architecture.svg, loaded by assets/js/team.js),
      as large as the screen allows, a card over each partner box (type in cqw: 1cqw = 1% of the
      drawing's width, so it scales with it), and the balloon (.fit_tip). The rest is home.css.
   The slide on screen is on BODY as page_bg_team / page_bg_team_map (home.js), for the header
   and the nav dots. */

/* ── 1. The team ─────────────────────────────────────────────────────────── */
.bg_team {
    background-image: radial-gradient(80rem 50rem at 80% 15%, rgba(125, 211, 252, 0.18), transparent 70%),
        radial-gradient(70rem 45rem at 5% 95%, rgba(249, 255, 180, 0.08), transparent 70%), var(--grid);
    background-color: #07103a;
}

.team_grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4.8rem;
    align-items: center;
}

.team_intro h1 {
    font-size: clamp(3.4rem, 4.6vw, 5.6rem);
}

.team_intro .sub {
    margin-bottom: 2rem;
    line-height: 1.5;
}

.team_list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.2rem;
}

.team_list li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.2rem 2.6rem;
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
    align-items: baseline;
    background: #00000054;
    color: var(--amber);
    backdrop-filter: blur(0.4rem);
}

.team_list li b {
    font-size: 1.8rem;
    white-space: nowrap;
}

.team_list li span {
    color: #f6f6f6;
    font-size: 1.5rem;
    text-align: right;
}

.team_list li.now {
    background: #000000a3;
    border: 2px solid var(--accent);
    color: var(--accent);
}

/* ── 2. The players ──────────────────────────────────────────────────────── */
.bg_team_map {
    background-image: radial-gradient(70rem 50rem at 50% 0%, rgba(125, 211, 252, 0.14), transparent 70%), var(--grid);
    background-color: #050a24;
}

.team_map .fit_wrap {
    /*! max-width: 160rem; */
    /*! padding-top: 0.2rem; */ /* under the header */
    margin-top: -4rem;
}

.fit_head {
    text-align: center;
    display: none;
}

.fit_head .kicker {
    margin-bottom: 0.4rem;
}

.fit_head .sub {
    margin: 0 auto 1rem;
    font-size: 1.6rem;
}

.fit_canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 13rem) !important;
    max-height: calc(100vh - 13rem) !important;
    /*! background: red; */
    position: relative;
    top: 2.5rem;
    margin: 0 -5rem;
    overflow: hidden;
}

.page_bg_team_map header {
    background: none;
    border: none;
}


.fit_loading {
    color: var(--muted);
    font-size: 1.4rem;
}

.fit_stage {
    position: relative;
    container-type: inline-size;
    /*! top: 4rem; */
}

.fit_stage svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* the drawing's parts */
.fit_stage .tp_slot { pointer-events: none; }
.fit_stage .tp_partner,
.fit_stage .tp_edge,
.fit_stage .tp_core,
.fit_stage .tp_service { cursor: default; outline: none; }
.fit_stage .tp_box_shape,
.fit_stage .tp_service_shape { transition: filter 0.2s; }
.fit_stage .tp_partner:hover .tp_box_shape,
.fit_stage .tp_partner:focus .tp_box_shape,
.fit_stage .tp_edge:hover .tp_box_shape,
.fit_stage .tp_edge:focus .tp_box_shape,
.fit_stage .tp_service:hover .tp_service_shape,
.fit_stage .tp_service:focus .tp_service_shape { filter: drop-shadow(0 0 1.8rem rgba(160, 220, 255, 0.85)); }
.fit_stage .tp_core:focus .tp_core_shape { filter: drop-shadow(0 0 1.2rem rgba(160, 220, 255, 0.6)); }

/* a candidate: named, not chosen yet: amber, dashed */
.fit_stage .tp_partner.fit_candidate .tp_box_shape { stroke: #f59e0b; stroke-dasharray: 14 10; }

/* built in (mapping, messaging): services Maestro runs, not partners: darker, dashed, recedes */
.fit_stage .tp_partner.tp_builtin .tp_box_shape { fill: #1b2350; stroke: rgba(160, 190, 230, 0.55); stroke-width: 3; stroke-dasharray: 18 12; }
.fit_stage .tp_partner.tp_builtin .tp_header { fill: #05060d; }
.fit_stage .tp_partner.tp_builtin .tp_header_text { fill-opacity: 0.8; }
.fit_stage .tp_builtin_link .tp_link_arrow { fill-opacity: 0.45; }

/* the cards over the slots */
.fit_cards { position: absolute; inset: 0; pointer-events: none; }

.fit_card {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35cqw;
    padding: 0.4cqw 0.9cqw;
    overflow: hidden;
    color: #fff;
}

.fit_card p { margin: 0; line-height: 1.2; }
.fit_name { font-size: 1.45cqw; font-weight: 700; }
.fit_name.fit_open { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.fit_state { font-size: 1.05cqw; color: rgba(255, 255, 255, 0.85); }
.fit_state span { color: rgba(255, 255, 255, 0.7); }
.fit_eg { font-size: 1.1cqw; color: rgba(255, 255, 255, 0.65); }

.fit_state i {
    display: inline-block;
    width: 0.75cqw;
    height: 0.75cqw;
    margin-right: 0.45cqw;
    border-radius: 50%;
    vertical-align: middle;
}

.fit_st_candidate i { box-shadow: inset 0 0 0 0.15cqw #f59e0b; }
.fit_st_builtin i { border-radius: 0.15cqw; box-shadow: inset 0 0 0 0.12cqw rgba(160, 190, 230, 0.8); }

/* the key under the drawing */
.fit_key { display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; justify-content: center; margin: 0.8rem 0 0; font-size: 1.3rem; color: var(--muted); display: none;}
.fit_key span { display: inline-flex; align-items: center; gap: 0.6rem; }
.fit_key i { width: 2.2rem; height: 1.2rem; border-radius: 0.3rem; }
.fit_key_partner i { background: #2F3D8E; border: 1px solid #75A3BF; }
.fit_key_builtin i { background: #1b2350; border: 1px dashed rgba(160, 190, 230, 0.7); }

/* the balloon: follows the pointer (team.js fit_show) */
.fit_tip {
    position: fixed;
    z-index: 1000;
    max-width: 34rem;
    padding: 1.1rem 1.4rem;
    background: #fff;
    color: rgb(50, 55, 70);
    border-radius: 0.6rem;
    box-shadow: 0 0.6rem 2.4rem rgba(0, 0, 0, 0.45);
    font-size: 1.35rem;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s;
}

.fit_tip.on { opacity: 1; visibility: visible; }
.fit_tip b { display: block; margin-bottom: 0.3rem; font-size: 1.6rem; color: #000; }
.fit_tip i { font-style: normal; font-weight: 700; color: #000; }
.fit_tip .fit_eg_tip { color: rgb(110, 115, 130); }

@media (max-width: 800px) {
    .team_grid { grid-template-columns: 1fr; }
    .team_list li { flex-direction: column; gap: 0.4rem; }
    .team_list li span { text-align: left; }
    .team_map .fit_wrap { padding-top: 0; }
}
