/* Department grouped team directory on the home page. */
#section-team.home-team-section {
    position: relative;
    overflow: hidden;
    padding: clamp(4.5rem, 7vw, 6.5rem) 0;
    background: radial-gradient(ellipse at 88% 12%, rgba(238, 114, 42, .075), transparent 42%), #091522;
}
#section-team .team-intro { margin-bottom: clamp(2.5rem, 5vw, 4rem) !important; }
#section-team .team-intro-copy .lead { max-width: 58ch; margin-inline: auto; color: rgba(221, 233, 245, .72); text-align: center; }
#section-team .team-departments { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
#section-team .team-department { min-width: 0; }
#section-team .team-department-heading {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.4rem;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(134, 170, 199, .16);
    border-left: 3px solid #ee722a;
    background: linear-gradient(105deg, rgba(17, 35, 51, .9), rgba(11, 25, 38, .52));
}
#section-team .team-department-kicker { color: #ee8a54; font-size: .65rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
#section-team .team-department-heading h3 { margin: .25rem 0 0; color: #f2f6fa; font: 600 clamp(1.2rem, 2vw, 1.55rem)/1.2 "Manrope", sans-serif; letter-spacing: -.035em; }
#section-team .team-department-heading p { max-width: 68ch; margin: .45rem 0 0; color: rgba(221, 233, 245, .65); font-size: .82rem; line-height: 1.6; }
#section-team .team-department-image,
#section-team .team-department-mark { width: 76px; height: 76px; flex: 0 0 76px; border: 1px solid rgba(238, 114, 42, .24); border-radius: 12px; }
#section-team .team-department-image { object-fit: cover; }
#section-team .team-department-mark { display: grid; place-items: center; background: rgba(238, 114, 42, .08); color: #ff9a5c; font-size: 1.35rem; }
#section-team .team-list { margin-top: 0; }
#section-team .team-card { width: 100%; overflow: hidden; border-color: rgba(134, 170, 199, .17); border-radius: 12px; background: linear-gradient(155deg, rgba(15, 34, 52, .98), rgba(9, 22, 35, .98)); box-shadow: 0 12px 28px rgba(0, 0, 0, .18); }
#section-team .team-card-photo { aspect-ratio: 4 / 3; background: linear-gradient(145deg, #172d40, #0c1925); }
#section-team .team-card-photo img { object-position: center 28%; }
#section-team .team-card-initials { display: grid; width: 100%; height: 100%; place-items: center; color: rgba(235, 241, 246, .82); font: 600 clamp(3rem, 6vw, 5rem)/1 "Manrope", sans-serif; }
#section-team .team-card-info { min-height: 130px; padding: 1.1rem 1.2rem 1.25rem; }
#section-team .team-card-name { margin: 0; color: #f2f6fa; font: 650 1.05rem/1.3 "Manrope", sans-serif; letter-spacing: -.025em; }
#section-team .team-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .75rem; }
#section-team .team-card-meta span { padding: .25rem .55rem; border: 1px solid rgba(113, 164, 205, .18); border-radius: 999px; background: rgba(113, 164, 205, .08); color: #b8d0e3; font-size: .66rem; font-weight: 650; }
#section-team .team-card-meta small { color: rgba(221, 233, 245, .58); font-size: .68rem; }
@media (hover: hover) and (pointer: fine) {
    #section-team .team-card { transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease; }
    #section-team .team-card:hover { transform: translateY(-4px); border-color: rgba(238, 114, 42, .45); box-shadow: 0 18px 36px rgba(0, 0, 0, .25); }
}
body.light-mode #section-team.home-team-section { background: radial-gradient(ellipse at 88% 12%, rgba(238, 114, 42, .07), transparent 42%), #f2f6f9; }
body.light-mode #section-team .team-intro-copy .lead { color: #617184; }
body.light-mode #section-team .team-department-heading { border-color: rgba(20, 92, 158, .14); border-left-color: #ee722a; background: linear-gradient(105deg, rgba(255,255,255,.98), rgba(246,249,251,.9)); }
body.light-mode #section-team .team-department-heading h3 { color: #18324a; }
body.light-mode #section-team .team-department-heading p { color: #617184; }
body.light-mode #section-team .team-card { border-color: rgba(20, 92, 158, .15); background: linear-gradient(155deg, #fff, #f8fafc); box-shadow: 0 12px 28px rgba(20, 55, 84, .09); }
body.light-mode #section-team .team-card-info { border-top-color: rgba(20, 92, 158, .1); }
body.light-mode #section-team .team-card-name { color: #18324a; }
body.light-mode #section-team .team-card-meta span { border-color: rgba(20, 92, 158, .14); background: rgba(20, 92, 158, .05); color: #35546e; }
body.light-mode #section-team .team-card-meta small { color: #617184; }
@media (max-width: 575.98px) {
    #section-team .team-department-heading { min-height: 90px; padding: 1rem; }
    #section-team .team-department-image, #section-team .team-department-mark { width: 56px; height: 56px; flex-basis: 56px; }
}

/* Organization tree: leadership first, then scrollable department branches. */
#section-team .team-tree-level-label { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; color: #e8eef3; font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
#section-team .team-tree-level-label > span { color: #ee8a54; font-size: .65rem; letter-spacing: .12em; }
#section-team .team-leadership { position: relative; display: grid; justify-items: center; margin-bottom: 2.8rem; padding-bottom: 2.4rem; }
#section-team .team-leadership::after { position: absolute; bottom: 0; left: 50%; height: 2.4rem; border-left: 1px solid rgba(238, 138, 84, .45); content: ""; }
#section-team .team-leadership-row { display: flex; max-width: 100%; justify-content: center; gap: 1rem; overflow-x: auto; padding: .35rem .15rem .8rem; }
#section-team .team-leader-card { position: relative; display: grid; width: min(260px, 76vw); flex: 0 0 min(260px, 76vw); grid-template-columns: 66px 1fr; align-items: center; gap: .9rem; padding: 1rem; border: 1px solid rgba(238, 138, 84, .28); border-radius: 12px; background: linear-gradient(145deg, rgba(30, 42, 50, .98), rgba(13, 27, 40, .98)); box-shadow: 0 12px 28px rgba(0, 0, 0, .16); }
#section-team .team-leader-badge { position: absolute; top: -.55rem; left: .85rem; padding: .18rem .5rem; border: 1px solid rgba(238, 138, 84, .35); border-radius: 999px; background: #152431; color: #ffad79; font-size: .58rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
#section-team .team-leader-photo { display: grid; width: 66px; height: 66px; overflow: hidden; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); color: #eaf0f4; font: 650 1.7rem/1 "Manrope", sans-serif; }
#section-team .team-leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
#section-team .team-leader-copy h3 { margin: 0; color: #f4f7f9; font: 650 1rem/1.25 "Manrope", sans-serif; }
#section-team .team-leader-copy p { margin: .28rem 0 0; color: rgba(221, 233, 245, .68); font-size: .73rem; line-height: 1.35; }
#section-team .team-departments-label { margin: 0 0 1rem; }
#section-team .team-departments { display: grid; gap: 1.4rem; }
#section-team .team-department { overflow: hidden; border: 1px solid rgba(134, 170, 199, .15); border-radius: 14px; background: rgba(12, 27, 40, .42); }
#section-team .team-department-heading { min-height: 82px; margin: 0; padding: 1rem 1.25rem; border: 0; border-bottom: 1px solid rgba(134, 170, 199, .14); border-left: 3px solid #ee722a; background: linear-gradient(105deg, rgba(19, 39, 56, .92), rgba(13, 28, 41, .72)); }
#section-team .team-department-kicker { font-size: .6rem; }
#section-team .team-department-heading h3 { margin-top: .18rem; font-size: 1.15rem; }
#section-team .team-department-count { flex: 0 0 auto; padding: .35rem .65rem; border: 1px solid rgba(134, 170, 199, .17); border-radius: 999px; color: #bfd0de; font-size: .67rem; font-weight: 650; }
#section-team .team-department-scroll { overflow-x: auto; overscroll-behavior-inline: contain; padding: 1.8rem 1.4rem 2.2rem; scrollbar-color: rgba(238, 114, 42, .5) rgba(255, 255, 255, .06); scrollbar-width: thin; }
#section-team .team-department-scroll:focus-visible { outline: 2px solid rgba(238, 114, 42, .7); outline-offset: -3px; }
#section-team .team-org-forest { display: flex; width: max-content; min-width: 100%; align-items: flex-start; justify-content: center; gap: 2.4rem; }
#section-team .team-org-node { position: relative; display: flex; width: max-content; min-width: 216px; flex: 0 0 auto; flex-direction: column; align-items: center; }
#section-team .team-org-card { position: relative; display: grid; width: 216px; min-height: 86px; grid-template-columns: 54px 1fr; align-items: center; gap: .75rem; margin: 0; padding: .75rem; border: 1px solid rgba(134, 170, 199, .2); border-radius: 11px; background: linear-gradient(145deg, #142a3d, #0d1e2d); box-shadow: 0 9px 20px rgba(0, 0, 0, .13); }
#section-team .team-org-node.has-children > .team-org-card::after { position: absolute; top: 100%; left: 50%; height: 25px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-org-photo { display: grid; width: 54px; height: 54px; overflow: hidden; place-items: center; border-radius: 9px; background: rgba(255, 255, 255, .07); color: #e8f0f5; font: 650 1.35rem/1 "Manrope", sans-serif; }
#section-team .team-org-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
#section-team .team-org-copy { min-width: 0; }
#section-team .team-org-copy h4 { overflow: hidden; margin: 0; color: #f2f6fa; font: 650 .81rem/1.25 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-org-copy p { overflow: hidden; margin: .24rem 0 0; color: rgba(221, 233, 245, .67); font-size: .67rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-org-level { display: inline-block; margin-top: .36rem; color: #ffad79; font-size: .58rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#section-team .team-org-copy small { display: block; overflow: hidden; margin-top: .25rem; color: #9eb3c3; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-org-children { position: relative; display: flex; width: max-content; align-items: flex-start; gap: 1.4rem; margin-top: 25px; padding: 25px .25rem 0; }
#section-team .team-org-children::before { position: absolute; top: 0; right: 0; left: 0; border-top: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-org-children > .team-org-node::before { position: absolute; top: -25px; left: 50%; height: 25px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-scroll-hint { display: flex; justify-content: flex-end; gap: .5rem; padding: 0 1.35rem .8rem; color: rgba(191, 208, 222, .58); font-size: .64rem; }
#section-team .team-scroll-hint i { color: #ee8a54; }
body.light-mode #section-team .team-tree-level-label { color: #18324a; }
body.light-mode #section-team .team-leadership::after { border-color: rgba(201, 80, 30, .35); }
body.light-mode #section-team .team-leader-card { border-color: rgba(20, 92, 158, .15); background: linear-gradient(145deg, #fff, #f5f8fa); box-shadow: 0 10px 24px rgba(20, 55, 84, .09); }
body.light-mode #section-team .team-leader-badge { border-color: rgba(201, 80, 30, .25); background: #fff5ef; color: #b64e1e; }
body.light-mode #section-team .team-leader-photo { background: #e7eef3; color: #18324a; }
body.light-mode #section-team .team-leader-copy h3 { color: #18324a; }
body.light-mode #section-team .team-leader-copy p { color: #617184; }
body.light-mode #section-team .team-department { border-color: rgba(20, 92, 158, .13); background: rgba(255, 255, 255, .56); }
body.light-mode #section-team .team-department-heading { border-bottom-color: rgba(20, 92, 158, .12); background: linear-gradient(105deg, #fff, #f7fafc); }
body.light-mode #section-team .team-department-count { border-color: rgba(20, 92, 158, .14); color: #49657b; }
body.light-mode #section-team .team-org-card { border-color: rgba(20, 92, 158, .16); background: linear-gradient(145deg, #fff, #f5f8fa); box-shadow: 0 8px 18px rgba(20, 55, 84, .08); }
body.light-mode #section-team .team-org-photo { background: #e7eef3; color: #18324a; }
body.light-mode #section-team .team-org-copy h4 { color: #18324a; }
body.light-mode #section-team .team-org-copy p,
body.light-mode #section-team .team-org-copy small { color: #617184; }
body.light-mode #section-team .team-org-level { color: #b64e1e; }
body.light-mode #section-team .team-org-node.has-children > .team-org-card::after,
body.light-mode #section-team .team-org-children::before,
body.light-mode #section-team .team-org-children > .team-org-node::before { border-color: rgba(201, 80, 30, .38); }
body.light-mode #section-team .team-scroll-hint { color: #617184; }
@media (max-width: 575.98px) {
    #section-team .team-department-scroll { padding: 1.5rem 1rem 1.8rem; }
    #section-team .team-org-forest { justify-content: flex-start; gap: 1.4rem; }
    #section-team .team-department-heading { gap: .7rem; }
    #section-team .team-department-count { font-size: .6rem; }
}

/* Connect the executive to department branches, then stack each department team below it. */
#section-team .team-leadership { margin: 0; padding-bottom: 34px; }
#section-team .team-leadership::after { bottom: 0; height: 34px; }
#section-team .team-leader-card { z-index: 1; }
#section-team .team-chart-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-color: rgba(238, 114, 42, .55) rgba(255, 255, 255, .06); scrollbar-width: thin; }
#section-team .team-departments { position: relative; display: flex; width: max-content; min-width: 100%; justify-content: center; gap: 1.25rem; padding: 30px 0 0; }
#section-team .team-departments::before { position: absolute; top: 0; right: 140px; left: 140px; border-top: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-department { position: relative; width: 280px; flex: 0 0 280px; overflow: visible; padding: 26px 0 0; border: 0; border-radius: 0; background: transparent; }
#section-team .team-department::before { position: absolute; top: 0; left: 50%; height: 26px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-department-heading { position: relative; min-height: 100px; align-items: flex-start; margin: 0; padding: 1rem 1rem 1.1rem; border: 1px solid rgba(134, 170, 199, .2); border-top: 2px solid #ee722a; border-radius: 11px; background: linear-gradient(145deg, #142a3d, #0d1e2d); }
#section-team .team-department-heading::after { position: absolute; bottom: -25px; left: 50%; height: 24px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-department-heading h3 { margin-top: .35rem; }
#section-team .team-department-count { position: absolute; right: .75rem; bottom: .75rem; }
#section-team .team-department-members { position: relative; display: grid; gap: 14px; margin-top: 24px; padding: 25px 0 0 14px; }
#section-team .team-department-members::before { position: absolute; top: 0; bottom: 40px; left: 14px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-chart-employee { position: relative; z-index: 1; display: grid; width: calc(100% - 14px); min-height: 76px; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: .7rem; margin: 0 0 0 14px; padding: .65rem; border: 1px solid rgba(134, 170, 199, .2); border-radius: 10px; background: #102337; box-shadow: 0 7px 17px rgba(0, 0, 0, .13); }
#section-team .team-chart-employee::before { position: absolute; top: 50%; left: -15px; width: 14px; border-top: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-chart-employee-photo { display: grid; width: 48px; height: 48px; overflow: hidden; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #eff4f7; font: 650 1.2rem/1 "Manrope", sans-serif; }
#section-team .team-chart-employee-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
#section-team .team-chart-employee-copy { min-width: 0; }
#section-team .team-chart-employee-copy h4 { overflow: hidden; margin: 0; color: #f2f6fa; font: 650 .8rem/1.25 "Manrope", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-chart-employee-copy p { overflow: hidden; margin: .2rem 0 0; color: rgba(221, 233, 245, .67); font-size: .66rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-chart-employee-copy span { display: inline-block; margin-top: .3rem; color: #ffad79; font-size: .57rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
#section-team .team-chart-employee-copy small { display: block; overflow: hidden; margin-top: .2rem; color: #9eb3c3; font-size: .57rem; text-overflow: ellipsis; white-space: nowrap; }
#section-team .team-scroll-hint { padding: .5rem 0 0; }
body.light-mode #section-team .team-leadership::after,
body.light-mode #section-team .team-departments::before,
body.light-mode #section-team .team-department::before,
body.light-mode #section-team .team-department-heading::after,
body.light-mode #section-team .team-department-members::before,
body.light-mode #section-team .team-chart-employee::before { border-color: rgba(201, 80, 30, .4); }
body.light-mode #section-team .team-department-heading { border-color: rgba(20, 92, 158, .17); border-top-color: #ee722a; background: linear-gradient(145deg, #fff, #f5f8fa); }
body.light-mode #section-team .team-chart-employee { border-color: rgba(20, 92, 158, .16); background: #fff; box-shadow: 0 7px 17px rgba(20, 55, 84, .08); }
body.light-mode #section-team .team-chart-employee-photo { background: #e7eef3; color: #18324a; }
body.light-mode #section-team .team-chart-employee-copy h4 { color: #18324a; }
body.light-mode #section-team .team-chart-employee-copy p,
body.light-mode #section-team .team-chart-employee-copy small { color: #617184; }
body.light-mode #section-team .team-chart-employee-copy span { color: #b64e1e; }
@media (max-width: 767.98px) {
    #section-team .team-departments { width: max-content; min-width: 100%; justify-content: flex-start; padding-right: calc((100vw - 280px) / 2); padding-left: max(0px, calc((100vw - 280px) / 2 - 12px)); }
    #section-team .team-departments::before { right: calc((100vw - 280px) / 2 + 140px); left: calc((100vw - 280px) / 2 - 12px + 140px); }
    #section-team .team-scroll-hint { padding-inline: .5rem; }
}

/* Large portrait cards with the employee information below each photo. */
#section-team .team-leader-card { width: 248px; min-height: 0; grid-template-columns: 1fr; justify-items: center; gap: .7rem; padding: 1.25rem 1rem 1rem; text-align: center; }
#section-team .team-leader-photo { width: 126px; height: 126px; border: 2px solid rgba(238, 138, 84, .5); border-radius: 50%; }
#section-team .team-leader-copy h3 { font-size: 1.05rem; }
#section-team .team-leader-copy p { margin-top: .35rem; }
#section-team .team-leader-badge { top: -.6rem; left: 50%; transform: translateX(-50%); white-space: nowrap; }
#section-team .team-chart-employee { display: flex; width: calc(100% - 14px); min-height: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
#section-team .team-chart-employee-photo { width: 100%; height: 176px; flex: 0 0 176px; border-radius: 0; background: linear-gradient(145deg, #172d40, #0c1925); }
#section-team .team-chart-employee-photo img { object-position: center 28%; }
#section-team .team-chart-employee-photo > span { font: 650 3.5rem/1 "Manrope", sans-serif; }
#section-team .team-chart-employee-copy { min-height: 104px; padding: .85rem .9rem 1rem; }
#section-team .team-chart-employee-copy h4 { font-size: .9rem; }
#section-team .team-chart-employee-copy p { margin-top: .28rem; font-size: .71rem; }
#section-team .team-chart-employee-copy span { margin-top: .42rem; }
#section-team .team-chart-employee-copy small { margin-top: .3rem; }
body.light-mode #section-team .team-leader-photo { border-color: rgba(201, 80, 30, .42); }
body.light-mode #section-team .team-chart-employee-photo { background: linear-gradient(145deg, #e7eef3, #d9e4eb); }

/* Department teams sit side by side, with circular portraits and copy below. */
#section-team .team-department { width: max-content; flex: 0 0 auto; }
#section-team .team-department-heading { width: 100%; }
#section-team .team-department-members { display: flex; width: max-content; gap: 1rem; margin-top: 24px; padding: 25px 0 0; }
#section-team .team-department-members::before { top: 0; right: 105px; bottom: auto; left: 105px; border-top: 1.5px solid rgba(238, 138, 84, .48); border-left: 0; }
#section-team .team-chart-employee { display: flex; width: 210px; min-height: 0; flex: 0 0 210px; flex-direction: column; align-items: center; gap: .8rem; margin: 0; padding: 1rem .85rem 1.1rem; overflow: visible; border-radius: 12px; text-align: center; }
#section-team .team-chart-employee::before { top: -25px; left: 50%; width: 0; height: 25px; border-top: 0; border-left: 1.5px solid rgba(238, 138, 84, .48); }
#section-team .team-chart-employee-photo { width: 118px; height: 118px; flex: 0 0 118px; border: 2px solid rgba(238, 138, 84, .32); border-radius: 50%; }
#section-team .team-chart-employee-photo img { border-radius: 50%; object-fit: cover; object-position: center 28%; }
#section-team .team-chart-employee-photo > span { font-size: 3rem; }
#section-team .team-chart-employee-copy { width: 100%; min-height: 105px; padding: 0; }
#section-team .team-chart-employee-copy h4 { font-size: .9rem; }
#section-team .team-chart-employee-copy p { white-space: normal; }
#section-team .team-chart-employee-copy small { white-space: normal; }
body.light-mode #section-team .team-department-members::before,
body.light-mode #section-team .team-chart-employee::before { border-color: rgba(201, 80, 30, .4); }
body.light-mode #section-team .team-chart-employee-photo { border-color: rgba(201, 80, 30, .25); }
@media (max-width: 575.98px) {
    #section-team .team-chart-employee { width: 184px; flex-basis: 184px; }
    #section-team .team-chart-employee-photo { width: 104px; height: 104px; flex-basis: 104px; }
    #section-team .team-department-members::before { right: 92px; left: 92px; }
}
#section-team .team-departments::before { right: 0; left: 0; }

/* Branch for employees with no department, placed directly beneath leadership. */
#section-team .team-direct-reports .team-department-heading { border-top-color: #ee8a54; }
#section-team .team-direct-reports .team-department-kicker { color: #ffad79; }
body.light-mode #section-team .team-direct-reports .team-department-heading { border-top-color: #c9511e; }
body.light-mode #section-team .team-direct-reports .team-department-kicker { color: #b64e1e; }

/* Employees without a department sit in their own row below company leadership. */
#section-team .team-direct-reports { position: relative; margin: 0 0 1.8rem; padding-top: 25px; overflow-x: auto; }
#section-team .team-direct-reports > .team-tree-level-label { justify-content: center; margin-bottom: .6rem; }
#section-team .team-direct-reports-row { position: relative; display: flex; width: max-content; min-width: 100%; justify-content: center; gap: 1rem; padding-top: 26px; }
#section-team .team-direct-reports-row::before { position: absolute; top: 0; right: 140px; left: 140px; border-top: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
#section-team .team-direct-report-card::before { position: absolute; top: -27px; left: 50%; height: 26px; border-left: 1.5px solid rgba(238, 138, 84, .48); content: ""; }
body.light-mode #section-team .team-direct-reports-row::before,
body.light-mode #section-team .team-direct-report-card::before { border-color: rgba(201, 80, 30, .4); }
@media (max-width: 767.98px) {
    #section-team .team-direct-reports-row { justify-content: flex-start; padding-right: 1rem; padding-left: 1rem; overflow-x: auto; }
    #section-team .team-direct-reports-row::before { right: calc(1rem + 124px); left: calc(1rem + 124px); }
}

/* Keep the unassigned employee row below leadership without a horizontal branch line. */
#section-team .team-direct-reports-row { padding-top: 0; }
#section-team .team-direct-reports-row::before { content: none; }
#section-team .team-direct-report-card::before { top: -27px; }

/* Center the department and position labels under direct report photos. */
#section-team .team-direct-report-card .team-leader-copy { width: 100%; text-align: center; }
#section-team .team-direct-report-card .team-leader-copy p { margin-inline: auto; text-align: center; }

/* Mobile layout: compact portraits, clear hierarchy and touch-friendly horizontal rows. */
@media (max-width: 767.98px) {
    #section-team.home-team-section { padding-block: 3.25rem; }
    #section-team .team-intro { row-gap: .9rem; margin-bottom: 2rem !important; }
    #section-team .team-intro-copy .lead { font-size: .95rem; line-height: 1.55; }
    #section-team .team-tree-level-label { justify-content: center; margin-bottom: .75rem; font-size: .85rem; }
    #section-team .team-leadership { margin: 0; padding-bottom: 28px; }
    #section-team .team-leadership::after { height: 28px; }
    #section-team .team-leadership-row { width: 100%; justify-content: center; gap: .75rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; padding: .5rem .75rem .8rem; }
    #section-team .team-leader-card { width: 216px; flex-basis: 216px; gap: .55rem; padding: 1.1rem .8rem .85rem; scroll-snap-align: center; }
    #section-team .team-leader-photo { width: 104px; height: 104px; }
    #section-team .team-leader-copy h3 { font-size: .95rem; line-height: 1.3; }
    #section-team .team-leader-copy p { font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; }
    #section-team .team-direct-reports { margin-bottom: 1.25rem; padding-top: 0; }
    #section-team .team-direct-reports-row { width: max-content; min-width: 100%; justify-content: flex-start; gap: .75rem; overflow: visible; padding: 0 .75rem .65rem; }
    #section-team .team-direct-report-card { width: 184px; flex-basis: 184px; padding: 1rem .7rem .8rem; }
    #section-team .team-direct-report-card .team-leader-photo { width: 92px; height: 92px; }
    #section-team .team-direct-report-card .team-leader-copy { min-width: 0; }
    #section-team .team-direct-report-card .team-leader-copy p { font-size: .72rem; line-height: 1.35; }
    #section-team .team-chart-scroll { margin-inline: -.75rem; padding-inline: .75rem; scroll-padding-inline: .75rem; }
    #section-team .team-departments { gap: .5rem; }
    #section-team .team-department-heading { min-height: 86px; padding: .85rem; }
    #section-team .team-department-heading h3 { font-size: 1rem; }
    #section-team .team-department-heading p { font-size: .72rem; line-height: 1.4; }
    #section-team .team-department-members { gap: .65rem; margin-top: 20px; padding-top: 22px; }
    #section-team .team-chart-employee { width: 166px; flex-basis: 166px; gap: .6rem; padding: .85rem .65rem .9rem; }
    #section-team .team-chart-employee-photo { width: 92px; height: 92px; flex-basis: 92px; }
    #section-team .team-chart-employee-copy { min-height: 90px; }
    #section-team .team-chart-employee-copy h4 { font-size: .82rem; line-height: 1.3; overflow-wrap: anywhere; }
    #section-team .team-chart-employee-copy p { font-size: .68rem; line-height: 1.4; }
    #section-team .team-scroll-hint { justify-content: center; padding-top: .35rem; }
}
@media (max-width: 420px) {
    #section-team .team-leader-card { width: 196px; flex-basis: 196px; }
    #section-team .team-leader-photo { width: 94px; height: 94px; }
    #section-team .team-direct-report-card { width: 166px; flex-basis: 166px; }
    #section-team .team-direct-report-card .team-leader-photo { width: 84px; height: 84px; }
    #section-team .team-chart-employee { width: 154px; flex-basis: 154px; }
    #section-team .team-chart-employee-photo { width: 84px; height: 84px; flex-basis: 84px; }
}

/* On phones show all department panels in a compact two-column grid. */
@media (max-width: 767.98px) {
    #section-team .team-chart-scroll { overflow: visible; margin-inline: 0; padding-inline: 0; }
    #section-team .team-departments { display: grid; width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .75rem; padding: 0; }
    #section-team .team-departments::before,
    #section-team .team-department::before { display: none; }
    #section-team .team-department { width: auto; min-width: 0; flex: initial; padding: 0; overflow: hidden; border: 1px solid rgba(134, 170, 199, .2); border-radius: 12px; background: rgba(12, 27, 40, .32); }
    #section-team .team-department-heading { min-height: 94px; padding: .75rem; border-top-width: 2px; border-radius: 0; }
    #section-team .team-department-kicker { font-size: .52rem; }
    #section-team .team-department-heading h3 { margin-top: .28rem; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
    #section-team .team-department-heading p { margin-top: .3rem; font-size: .65rem; line-height: 1.35; }
    #section-team .team-department-members { width: 100%; max-width: 100%; gap: .55rem; margin-top: 0; padding: .65rem .55rem .75rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
    #section-team .team-department-members::before { display: none; }
    #section-team .team-chart-employee { width: 132px; flex: 0 0 132px; gap: .5rem; padding: .7rem .55rem; scroll-snap-align: start; }
    #section-team .team-chart-employee::before { display: none; }
    #section-team .team-chart-employee-photo { width: 76px; height: 76px; flex-basis: 76px; }
    #section-team .team-chart-employee-photo > span { font-size: 2.2rem; }
    #section-team .team-chart-employee-copy { min-height: 0; }
    #section-team .team-chart-employee-copy h4 { font-size: .76rem; }
    #section-team .team-chart-employee-copy p { font-size: .64rem; }
    #section-team .team-chart-employee-copy span,
    #section-team .team-chart-employee-copy small { font-size: .56rem; }
    #section-team .team-scroll-hint { padding: .65rem 0 0; font-size: .62rem; }
    body.light-mode #section-team .team-department { border-color: rgba(20, 92, 158, .15); background: rgba(255, 255, 255, .72); }
}
@media (max-width: 380px) {
    #section-team .team-departments { gap: .55rem; }
    #section-team .team-department-heading { min-height: 88px; padding: .65rem; }
    #section-team .team-department-heading h3 { font-size: .82rem; }
    #section-team .team-chart-employee { width: 120px; flex-basis: 120px; }
    #section-team .team-chart-employee-photo { width: 68px; height: 68px; flex-basis: 68px; }
}

/* Match the company video section surface in both color modes. */
#section-team.home-team-section {
    background: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%), #07111d;
}
body.light-mode #section-team.home-team-section {
    background: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%), #edf2ef;
}

/* Override the Bootstrap bg-dark color so the team surface matches the video section. */
#section-team.home-team-section {
    background-color: #07111d !important;
    background-image: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%) !important;
}
body.light-mode #wrapper > #section-team.home-team-section {
    background-color: #fff !important;
    background-image: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%) !important;
}

/* Use the same plain section background as the company video section. */
#section-team.home-team-section { background: #07111d !important; }
body.light-mode #wrapper > #section-team.home-team-section { background: #fff !important; }

/* Match the video section surface and remove the old team grid overlay. */
#section-team.home-team-section {
    background-color: #07111d !important;
    background-image: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%) !important;
}
#section-team.home-team-section::before { display: none !important; content: none !important; background: none !important; }
body.light-mode #wrapper > #section-team.home-team-section {
    background-color: #fff !important;
    background-image: radial-gradient(ellipse 45% 65% at 8% 85%, rgba(20, 92, 158, .07), transparent 100%), radial-gradient(ellipse 45% 65% at 95% 8%, rgba(238, 114, 42, .06), transparent 100%) !important;
}

/* Slightly soften the team section background while keeping its grid removed. */
#section-team.home-team-section { background-color: #0b1822 !important; }
body.light-mode #wrapper > #section-team.home-team-section { background-color: #fff !important; }

/* Requested team section background color. */
#section-team.home-team-section,
body.light-mode #wrapper > #section-team.home-team-section {
    background-color: #fff !important;
}

/* Make the team section a flat, exact #fef9f6 background. */
#section-team.home-team-section,
body.light-mode #wrapper > #section-team.home-team-section {
    background: #fef9f6 !important;
    background-image: none !important;
    background-color: #fef9f6 !important;
}
#section-team.home-team-section::before { display: none !important; content: none !important; }

/* Employee cards show only their portrait and text, without a card surface. */
#section-team .team-leader-card,
#section-team .team-chart-employee {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
#section-team .team-leader-card:hover,
#section-team .team-chart-employee:hover {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none;
}

/* User-requested black background for the entire team section. */
#section-team.home-team-section,
body.light-mode #wrapper > #section-team.home-team-section {
    background: #fef8f5 !important;
    background-color: #fef8f5 !important;
    background-image: none !important;
}

/* Center department names within their cards. */
#section-team .team-department-heading { justify-content: center; text-align: center; }
#section-team .team-department-heading > div { width: 100%; text-align: center; }
#section-team .team-department-heading h3 { text-align: center; }

/* Reliable department grid and photo framing at phone widths. */
#section-team .team-department-empty { width: 100%; margin: .25rem 0; padding: .35rem; color: #617184; font-size: .7rem; line-height: 1.4; text-align: center; }
#section-team .team-chart-employee-photo,
#section-team .team-leader-photo { position: relative; flex-shrink: 0; overflow: hidden; }
#section-team .team-chart-employee-photo img,
#section-team .team-leader-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
@media (max-width: 767.98px) {
    #section-team .team-departments { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; align-items: start; gap: .5rem; }
    #section-team .team-department { display: flex; width: auto; min-width: 0; min-height: 0; flex-direction: column; border-radius: 10px; }
    #section-team .team-department-heading { display: flex; width: 100%; min-height: 58px; flex: 0 0 auto; align-items: center; justify-content: center; padding: .5rem .4rem; }
    #section-team .team-department-heading > div { width: 100%; }
    #section-team .team-department-heading h3 { margin: 0; font-size: clamp(.72rem, 3vw, .86rem); line-height: 1.25; overflow-wrap: anywhere; }
    #section-team .team-department-heading p { display: none; }
    #section-team .team-department-members { display: flex; width: 100%; min-width: 0; flex: 1 1 auto; align-items: flex-start; gap: .4rem; padding: .45rem; overflow-x: auto; }
    #section-team .team-chart-employee { width: 108px; flex: 0 0 108px; gap: .4rem; padding: .5rem .4rem; border-radius: 9px; }
    #section-team .team-chart-employee-photo { display: grid; width: 56px; height: 56px; flex: 0 0 56px; }
    #section-team .team-chart-employee-copy { min-height: 0; }
    #section-team .team-chart-employee-copy h4 { margin-bottom: .15rem; font-size: .7rem; line-height: 1.25; }
    #section-team .team-chart-employee-copy p { font-size: .6rem; line-height: 1.3; }
    #section-team .team-chart-employee-copy span,
    #section-team .team-chart-employee-copy small { font-size: .54rem; }
    #section-team .team-chart-employee-photo img { border-radius: 50%; }
    #section-team .team-department-empty { display: grid; min-height: 70px; place-items: center; }
}
@media (max-width: 360px) {
    #section-team .team-departments { gap: .4rem; }
    #section-team .team-department-heading { min-height: 52px; padding-inline: .3rem; }
    #section-team .team-department-members { padding-inline: .4rem; }
    #section-team .team-chart-employee { width: 96px; flex-basis: 96px; }
    #section-team .team-chart-employee-photo { width: 50px; height: 50px; flex-basis: 50px; }
}
