/* =====================================================================
   SHANEXWEBCO | OUR TEAM 4.0 — GSAP edition
   Loads after about-us.css (shared tokens, hero, statement, FAQ, CTA and
   the .shx-ag GSAP layer). This file adds the Team-only sections.
   01 Hero · 02 Group photo zoom · 03 Team gallery · 04 Skills (pinned)
   05 Ways · 06 Join · 07 Responsive · 08 Motion safety
   ===================================================================== */

.shx-tg .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =============================== 01 HERO ============================= */
.shx-tg-hero { min-height: calc(80svh - var(--hh)); }
.shx-tg-hero__title { font-size: clamp(64px, 18vw, 190px); line-height: .9; }
.shx-tg-hero__title em.shx-ag-hero__line { font-size: 1em; }

/* ======================= 02 GROUP PHOTO (ZOOM) ======================= */
.shx-tg-group { position: relative; background: #04111F; }
.shx-tg-group__pin { height: calc(100svh - var(--hh)); min-height: 420px; max-height: 960px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shx-tg-group__window { position: relative; width: 100%; height: 100%; margin: 0; overflow: hidden; will-change: clip-path; }
.shx-tg-group__window img, .shx-tg-group__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; will-change: transform; }
.shx-tg-group__art { display: grid; place-items: center; background: radial-gradient(circle at 25% 30%, rgba(240,199,121,.45), transparent 45%), radial-gradient(circle at 80% 75%, rgba(47,127,191,.5), transparent 50%), linear-gradient(150deg, #0D3A63, #04111F); }
.shx-tg-group__art b { font-family: var(--font-h); font-size: clamp(48px, 13vw, 200px); font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(240,199,121,.7); }
.shx-tg-group__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,17,31,.85) 0%, rgba(4,17,31,.25) 45%, transparent 70%); }
.shx-tg-group__cap { position: absolute; left: 0; right: 0; bottom: 7%; padding: 0 20px; text-align: center; color: #fff; }
.shx-tg-group__cap .shx-a-eyebrow { justify-content: center; }
.shx-tg-group__cap strong { display: block; margin-top: 10px; font-family: var(--font-h); font-size: clamp(28px, 6vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; }
.shx-tg-group__cap em { font-style: normal; color: var(--gold); }

/* ============================== 03 THE TEAM ==========================
   Expanding gallery: the open member is a wide card (photo + info panel),
   the others are slim photo strips. Desktop = row, mobile = stacked strips. */
.shx-tg-crew { background: #fff; }
.shx-tg-crew__layout { display: grid; gap: 34px; }
.shx-tg-crew__intro h2 { margin-top: 12px; }
.shx-tg-crew__intro p { margin-top: 14px; max-width: 440px; font-size: 16px; line-height: 1.75; }
.shx-tg-crew__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 26px; }
.shx-tg-crew__dots { display: flex; gap: 8px; }
.shx-tg-crew__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 99px; background: #d3dde8; cursor: pointer; transition: width .4s cubic-bezier(.2,.8,.2,1), background .3s; }
.shx-tg-crew__dots button[aria-selected="true"] { width: 30px; background: var(--gold-deep); }

.shx-tg-acc { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shx-tg-panel { position: relative; flex: 0 0 auto; height: 92px; overflow: hidden; border-radius: 22px; background: linear-gradient(150deg, var(--navy), var(--navy-deep)); box-shadow: 0 16px 36px rgba(9,43,76,.12); transition: height .7s cubic-bezier(.2,.8,.2,1), flex-grow .7s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.shx-tg-panel.is-active { height: 560px; box-shadow: 0 30px 60px rgba(9,43,76,.2); }
.shx-tg-panel:nth-child(even) { background: linear-gradient(150deg, var(--navy-deep), #0D3A63); }
.shx-tg-panel__hit { position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: inherit; }
.shx-tg-panel.is-active .shx-tg-panel__hit { bottom: auto; height: 60%; }
.shx-tg-panel__hit:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: -3px; }
.shx-tg-panel__photo { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, rgba(240,199,121,.4), transparent 45%); }
.shx-tg-panel__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(.35) brightness(.85); transition: filter .6s ease; will-change: transform; }
.shx-tg-panel.is-active .shx-tg-panel__photo { bottom: 38%; }
.shx-tg-panel.is-active .shx-tg-panel__photo img { filter: none; }
.shx-tg-panel__photo b { font-family: var(--font-h); font-size: clamp(110px, 26vw, 200px); font-weight: 800; line-height: 1; background: linear-gradient(180deg, #FFF1CF, #E9B963 60%, #C99643); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shx-tg-panel:not(.is-active) .shx-tg-panel__photo b { font-size: 64px; opacity: .25; }

/* label on closed strips */
.shx-tg-panel__label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 2px; padding: 16px 20px; background: linear-gradient(0deg, rgba(4,17,31,.9), transparent); color: #fff; pointer-events: none; transition: opacity .35s ease; }
.shx-tg-panel__label b { font-family: var(--font-h); font-size: 17px; font-weight: 700; }
.shx-tg-panel__label small { color: var(--gold); font-size: 12px; font-weight: 700; }
.shx-tg-panel.is-active .shx-tg-panel__label { opacity: 0; }

/* info card on the open member */
.shx-tg-panel__info { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: auto; min-height: 38%; background: linear-gradient(160deg, #FFF8EA, #FFEBC4); transform: translateY(101%); transition: transform .65s cubic-bezier(.2,.8,.2,1); }
.shx-tg-panel.is-active .shx-tg-panel__info { transform: none; }
.shx-tg-panel__inner { min-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; overflow: hidden; }
.shx-tg-panel__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.shx-tg-panel__info h3 { color: var(--ink); font-family: var(--font-h); font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.shx-tg-panel__role { margin-top: 3px; color: var(--gold-deep); font-size: 13.5px; font-weight: 700; }
.shx-tg-panel__social { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.shx-tg-panel__social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--navy) !important; box-shadow: 0 6px 14px rgba(9,43,76,.1); transition: background .25s, color .25s, transform .3s; }
.shx-tg-panel__social a:hover { background: var(--navy); color: var(--gold) !important; transform: translateY(-2px); }
.shx-tg-panel__bio { color: var(--body); font-size: 13.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shx-tg-panel__skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.shx-tg-panel__skills li { padding: 5px 10px; border-radius: 999px; background: rgba(9,43,76,.08); color: var(--ink); font-size: 11.5px; font-weight: 700; }
.shx-tg-panel__btn { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff !important; font-size: 13px; font-weight: 700; transition: background .25s, gap .3s; }
.shx-tg-panel__btn:hover { background: var(--navy-mid); gap: 16px; }

@media (min-width: 768px) {
    .shx-tg-panel { height: 110px; }
    .shx-tg-panel.is-active { height: 600px; }
}

/* Desktop: intro on the left, gallery as a row of tall strips */
@media (min-width: 1025px) {
    .shx-tg-crew__layout { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: center; gap: 56px; }
    .shx-tg-acc { flex-direction: row; height: 560px; gap: 14px; }
    .shx-tg-panel, .shx-tg-panel.is-active { height: auto; flex: 1 1 0; min-width: 0; }
    .shx-tg-panel.is-active { flex-grow: 5; }
    .shx-tg-panel.is-active .shx-tg-panel__hit { height: 58%; }
    .shx-tg-panel.is-active .shx-tg-panel__photo { bottom: 36%; }
    .shx-tg-panel__info { min-height: 36%; }
    .shx-tg-panel__inner { width: 100%; min-width: 300px; }
    .shx-tg-panel__label { left: 0; right: 0; bottom: 0; top: 0; justify-content: flex-end; align-items: center; padding: 18px 8px; background: linear-gradient(0deg, rgba(4,17,31,.85), transparent 50%); }
    .shx-tg-panel__label b, .shx-tg-panel__label small { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
    .shx-tg-panel__label b { font-size: 16px; }
    .shx-tg-panel__label { flex-direction: row; gap: 4px; }
}

/* ======================== 04 SKILLS (PINNED) ========================= */
.shx-tg-skills { position: relative; background: #04111F; color: #fff; overflow: hidden; }
.shx-tg-skills__pin { min-height: calc(100svh - var(--hh)); display: flex; flex-direction: column; justify-content: center; gap: 30px; padding: 50px 0 34px; }
.shx-tg-skills__head h2 { margin-top: 12px; max-width: 720px; color: #fff; }
.shx-tg-skills__track { display: flex; gap: 18px; padding-inline: max(20px, calc((100vw - var(--container-width, 1240px)) / 2)); perspective: 1400px; will-change: transform; }
.shx-anim-safe:not(.shx-gsap) .shx-tg-skills__track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.shx-tg-skill { position: relative; overflow: hidden; flex: 0 0 min(80vw, 360px); min-height: 360px; display: flex; flex-direction: column; padding: 30px; border: 1px solid rgba(255,255,255,.12); border-radius: 28px; background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); color: #fff !important; scroll-snap-align: center; }
.shx-tg-skill__no { position: absolute; right: 20px; top: 6px; font-family: var(--font-h); font-size: 96px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.16); }
.shx-tg-skill__icon { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 18px; background: var(--bg-gold-gradient, linear-gradient(135deg, #FFE3AA, #E9B963)); color: var(--navy-deep); }
.shx-tg-skill h3 { margin-top: auto; padding-top: 30px; font-family: var(--font-h); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.03em; color: #fff; }
.shx-tg-skill p { margin-top: 10px; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.65; }
.shx-tg-skill--cta { justify-content: flex-end; background: var(--bg-gold-gradient, linear-gradient(135deg, #FFE3AA, #E9B963)); border-color: transparent; }
.shx-tg-skill--cta h3, .shx-tg-skill--cta b { color: var(--navy-deep); }
.shx-tg-skill--cta p { color: rgba(6,27,48,.78); }
.shx-tg-skill--cta b { margin-top: 16px; font-weight: 800; }
.shx-tg-skill--cta .shx-tg-skill__no { -webkit-text-stroke-color: rgba(6,27,48,.25); }
.shx-tg-skills__foot { display: flex; align-items: center; gap: 16px; }
.shx-tg-skills__bar { flex: 1; height: 3px; border-radius: 9px; background: rgba(255,255,255,.14); overflow: hidden; }
.shx-tg-skills__bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(.05); transform-origin: left; }
.shx-tg-skills__foot small { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.shx-anim-safe:not(.shx-gsap) .shx-tg-skills__foot { display: none; }

/* =============================== 05 WAYS ============================= */
.shx-tg-ways__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: way; }
.shx-tg-way { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: 0 14px 36px rgba(9,43,76,.06); counter-increment: way; overflow: hidden; }
.shx-tg-way::after { content: '0' counter(way); position: absolute; right: 18px; top: 8px; font-family: var(--font-h); font-size: 64px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(201,150,67,.35); }
.shx-tg-way__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); }
.shx-tg-way h3 { margin-top: 20px; color: var(--ink); font-family: var(--font-h); font-size: 19px; letter-spacing: -.02em; }
.shx-tg-way p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; }

/* =============================== 06 JOIN ============================= */
.shx-tg-join { padding: 30px 0 90px; background: #fff; }
.shx-tg-join__box { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1.4fr auto; align-items: end; gap: 30px; padding: 110px 56px 50px; border-radius: 36px; background: linear-gradient(150deg, #FFF8EA, #FFE7B8); border: 1px solid rgba(201,150,67,.35); }
.shx-tg-join__marquee { position: absolute; left: 0; right: 0; top: 22px; z-index: -1; overflow: hidden; white-space: nowrap; }
.shx-tg-join__marquee div { display: inline-flex; will-change: transform; }
.shx-tg-join__marquee span { padding-right: 10px; font-family: var(--font-h); font-size: clamp(40px, 7vw, 90px); font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.2px rgba(201,150,67,.55); }
.shx-tg-join__copy h2 { margin-top: 12px; }
.shx-tg-join__copy p { margin-top: 14px; max-width: 560px; color: var(--ink); font-size: 16px; line-height: 1.75; }

/* ============================ 07 RESPONSIVE ========================== */
@media (max-width: 1100px) {
    .shx-tg-ways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .shx-tg-join__box { grid-template-columns: 1fr; padding: 96px 28px 34px; }
}
@media (max-width: 640px) {
    .shx-tg-hero__title { font-size: clamp(60px, 22vw, 96px); }
    .shx-tg-ways__grid { grid-template-columns: 1fr; }
    .shx-tg-skill { min-height: 330px; padding: 26px; }
    .shx-tg-join { padding: 10px 0 64px; }
}

/* =========================== 08 MOTION SAFETY ======================== */
@media (prefers-reduced-motion: reduce) {
    .shx-tg-panel, .shx-tg-panel__info, .shx-tg-crew__dots button { transition: none; }
}
/* ============================ 09 CTA PRICES ========================== */
.shx-tg-cta__prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.shx-tg-cta__prices li { padding: 8px 14px; border: 1px solid rgba(240,199,121,.35); border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); font-size: 13px; }
.shx-tg-cta__prices b { color: var(--gold); }
.shx-a-cta .shx-tg-cta__all { margin-top: 16px; color: var(--gold) !important; border-color: var(--gold); }