/* =====================================================================
   CAREERS (careers/): banner (section.ch).
   Loaded after base.css and components.css. Copy, CTAs and a perk strip on the left; on the right an
   image-free glass panel listing the teams we hire for, over slow orbit rings, with two floating chips. Entrance uses the shared [data-p4-in] animation; the float
   and pulse below are CSS only and switch off for reduced motion.
   ===================================================================== */
.ch { --ch-ease: cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(104px, 13vh, 128px) 0 clamp(36px, 5vh, 56px); }

/* extra backdrop: fine grid lines fading out + a soft red bloom behind the mosaic */
.ch__lines { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(160, 190, 240, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(160, 190, 240, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 75%); mask: radial-gradient(70% 80% at 70% 45%, #000 20%, transparent 75%); }
.ch__bloom { position: absolute; z-index: -1; pointer-events: none; right: -8%; top: 12%; width: min(60vw, 760px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 31, 90, .22), rgba(255, 31, 90, .06) 55%, transparent); filter: blur(10px); }

.ch__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 88px); align-items: center; width: 100%; }

/* ---------- copy ---------- */
.ch .p4-crumbs { margin-bottom: clamp(14px, 2.4vh, 24px); }
.ch__pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--o4-line); backdrop-filter: blur(8px);
  font-size: .82rem; font-weight: 600; letter-spacing: .01em; color: var(--o4-text); }
.ch__pill b { padding: 3px 9px; border-radius: 999px; background: rgba(255, 31, 90, .16); color: #ff7aa0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ch__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #2ee59d; box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); animation: ch-pulse 2s infinite; }
@keyframes ch-pulse { 70% { box-shadow: 0 0 0 9px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }

#main h1.ch__title { font-size: clamp(2.1rem, 1rem + 2.7vw, 3.5rem); line-height: 1.05; max-width: 15ch; }
#main h1.ch__title em { display: inline; background: linear-gradient(90deg, #ff6b93, var(--o4-red) 45%, #ff8a5c);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.ch .p4-hero__lede { max-width: 50ch; margin-top: 14px; font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); line-height: 1.6; }
.ch .p4-hero__actions { margin-top: 22px; }
.ch .btn-glass { border-color: rgba(255, 255, 255, .22); }


/* ---------- teams panel (no images) ---------- */
.ch-visual { position: relative; padding: 26px 0 26px 28px; }
.ch-rings { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: grid; place-items: center; }
.ch-rings i { position: absolute; border-radius: 50%; border: 1px solid rgba(160, 190, 240, .14); animation: ch-spin 40s linear infinite; }
.ch-rings i:nth-child(1) { width: 78%; aspect-ratio: 1; border-style: dashed; }
.ch-rings i:nth-child(2) { width: 104%; aspect-ratio: 1; animation-duration: 60s; animation-direction: reverse; }
.ch-rings i:nth-child(3) { width: 130%; aspect-ratio: 1; border-color: rgba(160, 190, 240, .07); }
.ch-rings i:nth-child(1)::before { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: #7EA3E6; box-shadow: 0 0 12px 2px rgba(126, 163, 230, .7); }
.ch-rings i:nth-child(2)::before { content: ""; position: absolute; top: 50%; left: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--o4-red); box-shadow: 0 0 14px 2px rgba(255, 31, 90, .7); }
@keyframes ch-spin { to { transform: rotate(360deg); } }

.ch-panel { position: relative; z-index: 1; padding: 16px 16px 14px; border-radius: 20px;
  background: linear-gradient(160deg, rgba(22, 44, 98, .72), rgba(6, 18, 48, .78)); border: 1px solid rgba(160, 190, 240, .2);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .08); }
/* gradient hairline border: red top-left fading to blue bottom-right */
.ch-panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 31, 90, .55), transparent 35%, transparent 70%, rgba(126, 163, 230, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ch-panel__head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px; border-bottom: 1px solid var(--o4-line); color: #fff; font-size: .95rem; }
.ch-panel__count { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: .74rem; font-weight: 600; color: var(--o4-text-2); }

.ch-roles-list { margin: 10px 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ch-role { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .035); border: 1px solid transparent; transition: background .3s, border-color .3s, transform .3s var(--ch-ease); }
.ch-role:hover, .ch-role:focus-visible { background: rgba(255, 255, 255, .08); border-color: rgba(160, 190, 240, .22); transform: translateX(4px); }
.ch-role__ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, rgba(255, 31, 90, .9), rgba(224, 49, 47, .75)); box-shadow: 0 10px 24px -10px rgba(255, 31, 90, .8); }
.ch-role__ico svg { width: 17px; height: 17px; }
.ch-roles-list li:nth-child(even) .ch-role__ico { background: linear-gradient(140deg, #3D72D6, #1F4690); box-shadow: 0 10px 24px -10px rgba(61, 114, 214, .8); }
.ch-role__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ch-role__txt strong { font-size: .92rem; font-weight: 600; }
.ch-role__txt small { font-size: .76rem; color: var(--o4-text-2); }
.ch-role__go { flex: none; width: 18px; height: 18px; margin-left: auto; color: var(--o4-text-2); transition: color .3s, transform .3s var(--ch-ease); }
.ch-role:hover .ch-role__go { color: #fff; transform: translate(2px, -2px); }

.ch-panel__foot { display: flex; align-items: center; gap: 6px; padding: 11px 4px 0; border-top: 1px solid var(--o4-line); font-size: .86rem; color: var(--o4-text-2); text-decoration: none; }
.ch-panel__foot b { color: #fff; font-weight: 600; }
.ch-panel__foot .ch-role__go { margin-left: 0; width: 15px; height: 15px; }
.ch-panel__foot:hover b { color: #ff7aa0; }

/* floating chips */
.ch-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 8px 12px 8px 8px; border-radius: 12px;
  background: rgba(10, 28, 70, .7); border: 1px solid rgba(160, 190, 240, .22); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08); animation: ch-float 7s ease-in-out infinite; }
.ch-chip small { display: block; font-size: .7rem; color: var(--o4-text-2); }
.ch-chip strong { display: block; font-size: .86rem; font-weight: 700; white-space: nowrap; }
.ch-chip__ico { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #FFD27A; }
.ch-chip__ico svg { width: 18px; height: 18px; }
.ch-chip--soc { right: -12px; bottom: 6px; animation-delay: -3.5s; }
.ch-chip--soc .ch-chip__ico { color: #2ee59d; }
@keyframes ch-float { 50% { transform: translateY(-8px); } }


/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .ch { min-height: 0; }
  .ch__grid { grid-template-columns: 1fr; }
  #main h1.ch__title { max-width: 16ch; }
  .ch-visual { max-width: 560px; padding: 24px 0 24px 16px; }
  .ch-chip--soc { right: 0; }
}
@media (max-width: 560px) {
  .ch-visual { padding: 0; }
  .ch-rings, .ch-chip { display: none; }
  .ch-panel { padding: 14px 12px 12px; border-radius: 18px; }
  .ch-role { padding: 8px 6px; gap: 10px; }
  .ch-role__ico { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .ch-chip, .ch-rings i, .ch__dot { animation: none; }
  .ch-role, .ch-role__go { transition: none; }
}
