html.tfx {
  --tfx-accent: 244, 197, 104;
  --tfx-accent-2: 255, 226, 160;
  --tfx-card-a: #222a1b;
  --tfx-card-b: #161a12;
  --tfx-line: #343d29;
  --tfx-text-dim: #a9b29a;

  --tfx-voice: 236, 192, 110;
  --tfx-trans: 226, 146, 104;
  --tfx-edit: 214, 132, 146;
  --tfx-admin: 156, 196, 122;
  --tfx-neutral: 190, 180, 140;
}
html.tfx.night-mode {

  --tfx-voice: 178, 198, 250;
  --tfx-trans: 118, 196, 240;
  --tfx-edit: 196, 172, 250;
  --tfx-admin: 140, 214, 178;
  --tfx-neutral: 165, 178, 212;
  --tfx-accent: 178, 198, 250;
  --tfx-accent-2: 226, 234, 255;
  --tfx-card-a: #1a2234;
  --tfx-card-b: #111726;
  --tfx-line: #2b3956;
  --tfx-text-dim: #9eabc6;
}

html.tfx .team-intro { gap: 32px; padding-bottom: 36px; }
html.tfx .team-intro h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e4a94a 10%, #f4c568 35%, #fff0c4 50%, #f4c568 65%, #e4a94a 90%);
  background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: tfx-shimmer 7s ease-in-out 1s infinite;
}
html.tfx.night-mode .team-intro h1 em { background-image: linear-gradient(100deg, #8ea6e8 10%, #c3d2ff 35%, #ffffff 50%, #c3d2ff 65%, #8ea6e8 90%); }
@keyframes tfx-shimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }

.tfx-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tfx-stat {
  display: inline-flex; align-items: baseline; gap: 7px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(var(--tfx-c, var(--tfx-accent)), .3); background: rgba(var(--tfx-c, var(--tfx-accent)), .07);
  color: var(--tfx-text-dim); font-size: 12.5px;
}
.tfx-stat strong { color: rgb(var(--tfx-c, var(--tfx-accent-2))); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }

html.tfx .team-intro-mark.tfx-orbit {
  position: relative; width: 340px; height: 340px; flex-shrink: 0; transform: none;
  border: 0; border-radius: 50%; background: none; display: block;
}
.tfx-orbit__glow { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tfx-accent), .22), transparent 68%); animation: tfx-breathe 5s ease-in-out infinite alternate; }
@keyframes tfx-breathe { from { transform: scale(.9); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.tfx-orbit__logo { position: absolute; left: 50%; top: 50%; width: 104px; height: 104px; margin: -52px 0 0 -52px; object-fit: contain; filter: drop-shadow(0 0 18px rgba(var(--tfx-accent), .35)); }
html.tfx .team-intro-mark.tfx-orbit img.tfx-orbit__logo { transform: none; opacity: 1; width: 104px; height: 104px; }
.tfx-ring {
  position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%;
  border: 1px dashed rgba(var(--tfx-accent), .2);
  animation: tfx-spin var(--t) linear infinite; animation-direction: var(--dir, normal);
}
.tfx-orbit:hover .tfx-ring, .tfx-orbit:hover .tfx-planet { animation-play-state: paused; }
@keyframes tfx-spin { to { transform: rotate(360deg); } }
.tfx-planet {
  position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
  border-radius: 50%; padding: 0; border: 0; background: none; cursor: pointer;
}

.tfx-planet__in { display: block; width: 100%; height: 100%; animation: tfx-spin var(--t) linear infinite; animation-direction: var(--counter, reverse); }
.tfx-orbit:hover .tfx-planet__in { animation-play-state: paused; }
.tfx-planet img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  border: 2px solid rgba(var(--tfx-accent), .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tfx-planet:hover img, .tfx-planet:focus-visible img { transform: scale(1.25); border-color: rgb(var(--tfx-accent-2)); box-shadow: 0 0 0 4px rgba(var(--tfx-accent), .2), 0 8px 22px rgba(0, 0, 0, .5); }
.tfx-planet__name {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%) translateY(4px);
  padding: 4px 9px; border-radius: 7px; white-space: nowrap; pointer-events: none;
  background: rgba(14, 15, 12, .92); border: 1px solid rgba(var(--tfx-accent), .35); color: #f2f1ea; font-size: 11px; font-weight: 600;
  opacity: 0; transition: opacity .2s, transform .2s;
}
.tfx-planet:hover .tfx-planet__name, .tfx-planet:focus-visible .tfx-planet__name { opacity: 1; transform: translateX(-50%) translateY(0); }

.tfx-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tfx-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--tfx-line); background: rgba(var(--tfx-c, var(--tfx-accent)), .04); color: #cfd3c4; font: inherit; font-size: 13px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.tfx-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--tfx-c, var(--tfx-accent))); box-shadow: 0 0 8px rgba(var(--tfx-c, var(--tfx-accent)), .7); }
.tfx-chip span { opacity: .55; font-variant-numeric: tabular-nums; }
.tfx-chip:hover { border-color: rgba(var(--tfx-c, var(--tfx-accent)), .55); color: #fff; transform: translateY(-1px); }
.tfx-chip.is-active { background: rgba(var(--tfx-c, var(--tfx-accent)), .16); border-color: rgba(var(--tfx-c, var(--tfx-accent)), .75); color: #fff; }
.tfx-chip[data-group="voice"] { --tfx-c: var(--tfx-voice); }
.tfx-chip[data-group="trans"] { --tfx-c: var(--tfx-trans); }
.tfx-chip[data-group="edit"] { --tfx-c: var(--tfx-edit); }
.tfx-chip[data-group="admin"] { --tfx-c: var(--tfx-admin); }

html.tfx .team-grid { gap: 18px; }
html.tfx .team-card {
  position: relative; isolation: isolate; overflow: hidden; align-items: center; text-align: center;
  padding: 30px 22px 22px; border-radius: 26px; border-color: var(--tfx-line);
  background: linear-gradient(165deg, var(--tfx-card-a), var(--tfx-card-b) 72%);
  animation: none;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .35s, opacity .45s, filter .45s;
}

html.tfx .team-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 170px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(var(--tfx-accent), .16), transparent 70%),
    repeating-radial-gradient(circle at 50% 92px, transparent 0 22px, rgba(var(--tfx-accent), .05) 22px 23px);
  -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent);
}

html.tfx .team-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--tfx-accent), .11), transparent 45%);
}
html.tfx .team-card:hover::after { opacity: 1; }
html.tfx .team-card:hover { transform: translateY(-6px); border-color: rgba(var(--tfx-accent), .45); box-shadow: 0 22px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(var(--tfx-accent), .08); }
html.tfx .team-card.tfx-flash { animation: tfx-flash 1.6s ease; }
@keyframes tfx-flash { 0%, 100% { box-shadow: none; } 25% { box-shadow: 0 0 0 3px rgba(var(--tfx-accent), .65), 0 0 40px rgba(var(--tfx-accent), .35); } }

html.tfx .team-card.tfx-wait { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); }
html.tfx .team-card.tfx-hide { display: none; }

.tfx-ava { position: relative; width: 118px; height: 118px; margin: 0 auto 18px; --lvl: 0; }
.tfx-ava::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(var(--tfx-accent), .9), rgba(var(--tfx-accent), .1) 30%, rgba(var(--tfx-accent-2), .85) 55%, rgba(var(--tfx-accent), .1) 80%, rgba(var(--tfx-accent), .9));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: tfx-spin 14s linear infinite; animation-play-state: paused; opacity: .75;
  transform: scale(calc(1 + var(--lvl) * .14));
  transition: opacity .3s;
}
html.tfx .team-card:hover .tfx-ava::before, .tfx-ava.is-live::before { animation-play-state: running; opacity: 1; }
.tfx-ava::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(var(--tfx-accent), calc(.12 + var(--lvl) * .5)), transparent 68%);
}
html.tfx .tfx-ava .team-avatar {
  width: 118px; height: 118px; margin: 0; border-radius: 50%; border: 0;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .8);
  transform: scale(calc(1 + var(--lvl) * .05));
}
.tfx-wave { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(var(--tfx-accent), .7); pointer-events: none; animation: tfx-wave 1.3s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes tfx-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.75); opacity: 0; } }

.tfx-ava.is-live.is-fallback { animation: tfx-pulse 1.1s ease-in-out infinite alternate; }
@keyframes tfx-pulse { from { --lvl: .05; } to { --lvl: .55; } }
@property --lvl { syntax: '<number>'; inherits: true; initial-value: 0; }

html.tfx .team-card h2 { margin: 0 0 4px; font-size: 21px; }
.tfx-count { display: inline-block; margin-bottom: 14px; color: var(--tfx-text-dim); font-size: 12px; text-decoration: none; }
a.tfx-count:hover { color: rgb(var(--tfx-accent-2)); }
.tfx-count b { color: rgb(var(--tfx-accent-2)); font-weight: 650; }
html.tfx .team-roles { justify-content: center; margin-bottom: 20px; }
html.tfx .team-roles li { border-radius: 999px; padding: 4px 11px; --tfx-c: var(--tfx-neutral); border-color: rgba(var(--tfx-c), .35); background: rgba(var(--tfx-c), .08); color: rgb(var(--tfx-c)); }
html.tfx .team-roles li.r-voice { --tfx-c: var(--tfx-voice); }
html.tfx .team-roles li.r-trans { --tfx-c: var(--tfx-trans); }
html.tfx .team-roles li.r-edit { --tfx-c: var(--tfx-edit); }
html.tfx .team-roles li.r-admin { --tfx-c: var(--tfx-admin); }

html.tfx .team-actions { gap: 9px; }
.tfx-links { display: flex; gap: 8px; width: 100%; }
html.tfx .tfx-links .team-projects { flex: 1; border-radius: 12px; }
html.tfx .tfx-links .team-portfolio:not(.team-projects) { flex: 0 0 44px; width: 44px; justify-content: center; padding: 0; border-radius: 12px; }
html.tfx .tfx-links .team-portfolio:not(.team-projects) > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.tfx .tfx-links span.team-portfolio[aria-disabled="true"] { font-size: 0; opacity: .45; }
html.tfx .tfx-links span.team-portfolio[aria-disabled="true"]::before { content: "↗"; font-size: 15px; }
html.tfx .team-demo { border-radius: 16px; text-align: left; }
html.night-mode.tfx .team-demo { border-color: #3a4a6b; background: linear-gradient(140deg, #1e2840, #151c2c); }
html.night-mode.tfx .team-demo.is-playing { border-color: #8ea6e8; }
html.tfx .team-demo.is-unavailable { padding: 8px 12px; border-style: dashed; background: transparent; }
html.tfx .is-unavailable .demo-play-icon { flex-basis: 28px; height: 28px; }
html.tfx .is-unavailable .demo-kicker { display: none; }
html.tfx .is-unavailable .demo-state { font-size: 11.5px; }
html.night-mode.tfx .team-card .team-portfolio:not(.team-projects) { background: #1d2538; border-color: #34446a; color: #c3d2ff; }

html.night-mode.tfx .team-contact { background: #141b2b; border-color: #2b3956; }

@media (max-width: 1050px) { html.tfx .team-intro-mark.tfx-orbit { width: 280px; height: 280px; } }
@media (max-width: 920px) { html.tfx .team-intro-mark.tfx-orbit { width: 240px; height: 240px; } }
@media (max-width: 600px) {
  html.tfx .team-intro { flex-direction: column; align-items: flex-start; }
  html.tfx .team-intro-mark.tfx-orbit { display: block; width: min(300px, 100%); height: auto; aspect-ratio: 1; align-self: center; }
  .tfx-filter { gap: 6px; }
  .tfx-chip { padding: 7px 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tfx-ring, .tfx-planet__in, .tfx-orbit__glow, html.tfx .team-intro h1 em, .tfx-ava::before, .tfx-ava.is-live.is-fallback { animation: none !important; }
  html.tfx .team-card.tfx-wait { opacity: 1; transform: none; filter: none; }
  .tfx-wave { display: none; }
}
