/**
 * Team single template (IndyGG). Scoped under .team-single.
 * Accent color: --team-accent (set inline on root from ACF primary color).
 */

.team-single {
  --cyan: #00d4ff;
  --red: #ff3152;
  --border: #e4e6ea;
  --surface: #f6f7f9;
  --accent: var(--team-accent, #00d4ff);
  --accent-rgb: var(--team-accent-rgb, 0, 212, 255);
}

.team-single__progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 999;
  background: linear-gradient(to right, var(--accent), var(--red));
  transition: width 0.1s linear;
}

.team-single__breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.team-single__breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.team-single__crumb {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-single__crumb:hover {
  color: var(--accent);
}

.team-single__crumb--current {
  color: #111;
}

.team-single__crumb-sep {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #ccc;
}

/* Hero */
.team-single__hero {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(135deg, #06060f 0%, #0c0c22 60%, #06060f 100%);
}

.team-single__hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.team-single__hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255, 255, 255, 0.018) 60px, rgba(255, 255, 255, 0.018) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 255, 255, 0.018) 60px, rgba(255, 255, 255, 0.018) 61px);
}

.team-single__hero-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.25), transparent);
  z-index: 2;
  animation: team-single-scan 8s linear infinite;
  pointer-events: none;
}

@keyframes team-single-scan {
  0% {
    top: -2px;
  }
  100% {
    top: 100%;
  }
}

.team-single__hero-glow {
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.14) 0%, transparent 65%);
}

.team-single__hero-glow-r {
  position: absolute;
  top: -80px;
  right: 40px;
  width: 400px;
  height: 400px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255, 49, 82, 0.09) 0%, transparent 65%);
}

.team-single__hero-darken {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(to top, rgba(6, 6, 15, 1) 0%, rgba(6, 6, 15, 0.55) 50%, rgba(6, 6, 15, 0.1) 100%);
}

.team-single__hero-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  z-index: 5;
}

.team-single__hero-wm {
  position: absolute;
  right: -20px;
  bottom: -30px;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(6rem, 18vw, 14rem);
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: 0.06em;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  user-select: none;
}

.team-single__hero-inner {
  position: relative;
  z-index: 5;
  padding: 40px 24px 44px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  /* Stretch to full hero height so we can place the share button
     in the "empty" top band while keeping content bottom-aligned. */
  align-self: stretch;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.team-single__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.team-single__tag {
  display: inline-block;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.team-single__tag--accent {
  background: var(--accent);
  color: #000;
}

.team-single__tag--dark {
  background: #1a1a2a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-single__tag--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #888;
}

.team-single__tag--green {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.team-single__identity {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.team-single__logo-box {
  width: 88px;
  height: 88px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.team-single__logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.team-single__logo-fallback {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}

.team-single__logo-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
}

.team-single__logo-corner--tl {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}
.team-single__logo-corner--tr {
  top: 0;
  right: 0;
  border-width: 1.5px 1.5px 0 0;
}
.team-single__logo-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1.5px 1.5px;
}
.team-single__logo-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.team-single__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 0.97;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.team-single__subtitle {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.team-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.team-single__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: #888;
  font-weight: 600;
}

.team-single__meta-item svg {
  color: #444;
  flex-shrink: 0;
}

.team-single__meta-item--hl {
  color: var(--accent);
  font-weight: 700;
}

.team-single__meta-item a {
  color: inherit;
  text-decoration: none;
}

.team-single__meta-item a:hover {
  text-decoration: underline;
}

/* Tabs */
.team-single__tabs {
  background: #fff;
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.team-single__tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
}

.team-single__tab {
  font-weight: 700;
  font-size: 13px;
  color: #888;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 15px 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
  cursor: pointer;
}

.team-single__tab:hover {
  color: #111;
}

.team-single__tab.is-on {
  color: #111;
  border-bottom-color: var(--accent);
}

/* Layout */
.team-single__wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .team-single__wrap {
    grid-template-columns: 1fr;
  }
}

.team-single__sec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.team-single__sec-bar {
  width: 3px;
  height: 18px;
  background: var(--accent);
  flex-shrink: 0;
}

.team-single__sec-label {
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-single__sec-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.team-single__sec-extra {
  font-size: 13px;
  color: #888;
}

.team-single__section {
  margin-bottom: 40px;
}

/* Do not set display:none on #team-panel-staff here: Alpine x-show reveals by clearing inline
   display; a stylesheet rule would win and the Staff tab would stay blank forever. */

.team-single__about {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

.team-single__about p {
  margin: 0 0 16px;
}

.team-single__about p:last-child {
  margin-bottom: 0;
}

.team-single__detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 640px) {
  .team-single__detail-grid {
    grid-template-columns: 1fr;
  }
}

.team-single__detail-cell {
  background: #fff;
  padding: 14px 16px;
  transition: background 0.15s;
}

.team-single__detail-cell:hover {
  background: var(--surface);
}

.team-single__detail-cell--full {
  grid-column: 1 / -1;
}

.team-single__detail-key {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 5px;
}

.team-single__detail-val {
  font-weight: 700;
  font-size: 14px;
  color: #111;
  line-height: 1.4;
}

.team-single__detail-val a {
  color: var(--accent);
}

.team-single__detail-val--dim {
  color: #aaa;
  font-weight: 400;
}

.team-single__detail-val--yes {
  color: #16a34a;
}

.team-single__detail-val--pending {
  color: #ca8a04;
  font-weight: 400;
}

.team-single__games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.team-single__game-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 13px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: #444;
  padding: 8px 14px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.team-single__game-chip:hover {
  border-color: var(--accent);
  color: #111;
  background: #fff;
}

.team-single__game-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--accent);
}

.team-single__game-chip:nth-child(5n + 2) .team-single__game-dot {
  background: #c89b3c;
}
.team-single__game-chip:nth-child(5n + 3) .team-single__game-dot {
  background: #f97316;
}
.team-single__game-chip:nth-child(5n + 4) .team-single__game-dot {
  background: #888;
}
.team-single__game-chip:nth-child(5n + 5) .team-single__game-dot {
  background: #a855f7;
}
.team-single__game-chip:nth-child(5n) .team-single__game-dot {
  background: #22c55e;
}

/* Staff */
.team-single__staff-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
  display: flex;
  gap: 14px;
  margin-bottom: 12px;
}

.team-single__staff-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.team-single__staff-name {
  font-weight: 800;
  font-size: 16px;
  color: #111;
  margin: 0 0 2px;
}

.team-single__staff-role {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.team-single__staff-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
  margin: 0 0 12px;
}

.team-single__staff-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.team-single__staff-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.team-single__staff-link:hover {
  text-decoration: underline;
}

.team-single__inquiry {
  background: var(--surface);
  border: 1.5px solid var(--border);
  padding: 20px 22px;
  margin-top: 4px;
}

.team-single__inquiry-kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-single__inquiry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.team-single__inquiry-title {
  font-weight: 700;
  font-size: 15px;
  color: #111;
  margin: 0 0 4px;
}

.team-single__inquiry-text {
  font-size: 14px;
  color: #888;
  margin: 0;
}

.team-single__inquiry-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.team-single__inquiry-btn:hover {
  opacity: 0.88;
}

/* Sidebar */
.team-single__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
}

@media (max-width: 900px) {
  .team-single__sidebar {
    position: static;
  }
}

.team-single__side-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--accent);
  overflow: hidden;
}

.team-single__side-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.team-single__side-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}

.team-single__side-row:last-child {
  border-bottom: none;
}

.team-single__side-key {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-top: 1px;
}

.team-single__side-val {
  font-weight: 700;
  font-size: 13px;
  color: #111;
  text-align: right;
  line-height: 1.4;
}

.team-single__side-val a {
  color: var(--accent);
}

.team-single__side-val--yes {
  color: #16a34a;
}

.team-single__side-val--pending {
  color: #ca8a04;
  font-weight: 400;
}

.team-single__verify {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #f0fdf4;
  border-top: 1px solid #bbf7d0;
}

.team-single__verify-icon {
  width: 28px;
  height: 28px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #bbf7d0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #16a34a;
}

.team-single__verify-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #16a34a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.team-single__verify-date {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #aaa;
  margin-top: 2px;
}

.team-single__recruit {
  border: 1.5px solid var(--border);
  padding: 22px;
}

.team-single__recruit h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.6rem;
  color: #111;
  margin: 0 0 6px;
  letter-spacing: 0.04em;
}

.team-single__recruit p {
  font-size: 13px;
  color: #888;
  line-height: 1.6;
  margin: 0 0 16px;
}

.team-single__recruit-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  padding: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
}

.team-single__recruit-btn:hover {
  opacity: 0.88;
}

.team-single__social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.team-single__social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  padding: 12px;
  font-weight: 700;
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-single__social-btn:hover {
  background: var(--surface);
  color: #111;
}

.team-single__related {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.15s;
}

.team-single__related:last-child {
  border-bottom: none;
}

.team-single__related:hover {
  background: var(--surface);
}

.team-single__related-logo {
  width: 34px;
  height: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  color: #aaa;
  flex-shrink: 0;
}

.team-single__related-name {
  font-weight: 700;
  font-size: 13px;
  color: #555;
  margin: 0 0 1px;
}

.team-single__related-meta {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-single__related-arrow {
  color: #ccc;
  margin-left: auto;
  flex-shrink: 0;
}

.team-single__correction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.team-single__correction:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   Team dossier share button (top-right) + modal
   Scoped to team single.
───────────────────────────────────────────── */
.team-single__share-anchor {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
}

.team-single__share-v2-wrap {
  position: relative;
  display: inline-block;
}

.team-single__share-v2 {
  position: relative;
  width: 42px;
  height: 42px;
  background: rgba(10, 10, 15, 0.65);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, background 0.3s, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-single__share-v2 svg {
  transition: color 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-single__share-v2-bracket {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
  opacity: 0.6;
  transition:
    top 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    right 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s,
    width 0.35s,
    height 0.35s;
}

.team-single__share-v2-bracket.tl {
  top: -4px;
  left: -4px;
  border-width: 1.5px 0 0 1.5px;
}
.team-single__share-v2-bracket.tr {
  top: -4px;
  right: -4px;
  border-width: 1.5px 1.5px 0 0;
}
.team-single__share-v2-bracket.bl {
  bottom: -4px;
  left: -4px;
  border-width: 0 0 1.5px 1.5px;
}
.team-single__share-v2-bracket.br {
  bottom: -4px;
  right: -4px;
  border-width: 0 1.5px 1.5px 0;
}

.team-single__share-v2:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
}

.team-single__share-v2:hover svg {
  color: var(--accent);
  transform: scale(1.1);
}

.team-single__share-v2:hover .team-single__share-v2-bracket {
  opacity: 1;
  width: 14px;
  height: 14px;
}

.team-single__share-v2:hover .team-single__share-v2-bracket.tl {
  top: -7px;
  left: -7px;
}
.team-single__share-v2:hover .team-single__share-v2-bracket.tr {
  top: -7px;
  right: -7px;
}
.team-single__share-v2:hover .team-single__share-v2-bracket.bl {
  bottom: -7px;
  left: -7px;
}
.team-single__share-v2:hover .team-single__share-v2-bracket.br {
  bottom: -7px;
  right: -7px;
}

.team-single__share-v2-tip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #0a0a0a;
  color: #fff;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.team-single__share-v2-wrap:hover .team-single__share-v2-tip {
  opacity: 1;
  transform: translateY(0);
}

.team-single__share-v2-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  animation: team-share-pulse 1.6s ease-in-out infinite;
}

@keyframes team-share-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.team-single__share-v2.is-clicked .team-single__share-v2-bracket {
  animation: team-share-snap 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes team-share-snap {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(0.5);
    opacity: 0.3;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Modal */
.team-dossier--open {
  overflow: hidden !important;
}

/* Static dossier (preview + export): keep details, remove motion */
.team-dossier__shell--static .team-dossier__card {
  animation: none !important;
}

.team-dossier__shell--static .team-dossier__scanline,
.team-dossier__shell--static .team-dossier__classification-dot {
  animation: none !important;
}

/* Export mode: only disable transforms that affect capture fidelity */
.team-dossier--exporting .team-dossier__card {
  transform: none !important;
  /* Remove large background gradients during export to prevent tile seams.
     Keep grid/glows/watermark/corners intact. */
  background: #06060f !important;
}

.team-dossier__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 15, 0.78);
  z-index: 900;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.team-dossier__shell {
  /* Modal is teleported to <body>, so it can't inherit .team-single CSS vars.
     Use the JS-provided --team-dossier-accent* vars as the source of truth. */
  --accent: var(--team-dossier-accent, #00d4ff);
  --accent-rgb: var(--team-dossier-accent-rgb, 0, 212, 255);

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1080px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  background: #fff;
  z-index: 1000;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}

.team-dossier__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1.5px solid var(--border);
  flex-shrink: 0;
}

.team-dossier__head-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-dossier__head-bar {
  width: 3px;
  height: 22px;
  background: var(--accent);
}

.team-dossier__title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  line-height: 1;
  color: #111;
  letter-spacing: 0.04em;
}

.team-dossier__sub {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #aaa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}

.team-dossier__close {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.25s;
  color: #666;
}

.team-dossier__close:hover {
  border-color: var(--red);
  color: var(--red);
  transform: rotate(90deg);
}

.team-dossier__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.team-dossier__stage {
  background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 8px, #f3f4f6 8px, #f3f4f6 16px);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-y: auto;
}

.team-dossier__stage-tag {
  position: absolute;
  top: 18px;
  left: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #666;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-dossier__stage-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
}

.team-dossier__controls {
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.team-dossier__controls-section {
  padding: 22px 24px;
  border-bottom: 1px solid #1a1a2a;
}

.team-dossier__controls-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #666;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.team-dossier__accent-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-dossier__accent-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid var(--accent);
  background: rgba(var(--accent-rgb), 0.18);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03) inset;
  flex-shrink: 0;
}

.team-dossier__accent-auto {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #555;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.team-dossier__accent-auto-val {
  color: var(--accent);
}

.team-dossier__format-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.team-dossier__format-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: 1.5px solid #1a1a2a;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}

.team-dossier__format-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-dossier__format-btn:hover {
  border-color: #2a2a3a;
  background: rgba(255, 255, 255, 0.02);
}

.team-dossier__format-btn.is-active {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.team-dossier__format-btn.is-active::before {
  transform: scaleY(1);
}

.team-dossier__format-icon {
  flex-shrink: 0;
  border: 1.5px solid #2a2a3a;
  transition: border-color 0.25s;
}

.team-dossier__format-btn.is-active .team-dossier__format-icon {
  border-color: var(--accent);
}

.team-dossier__format-icon--story {
  width: 14px;
  height: 25px;
}
.team-dossier__format-icon--square {
  width: 22px;
  height: 22px;
}
.team-dossier__format-icon--og {
  width: 28px;
  height: 15px;
}

.team-dossier__format-name {
  font-weight: 700;
  font-size: 13px;
  color: #ddd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.team-dossier__format-btn.is-active .team-dossier__format-name {
  color: #fff;
}

.team-dossier__format-dim {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #666;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.team-dossier__toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #1a1a2a;
}

.team-dossier__toggle-row:last-child {
  border-bottom: none;
}

.team-dossier__toggle-label {
  font-weight: 600;
  font-size: 13px;
  color: #bbb;
}

.team-dossier__toggle-switch {
  position: relative;
  width: 38px;
  height: 22px;
  background: #1a1a2a;
  cursor: pointer;
  transition: background 0.25s;
  border: none;
}

.team-dossier__toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #444;
  transition: left 0.25s, background 0.25s;
}

.team-dossier__toggle-switch.is-on {
  background: rgba(var(--accent-rgb), 0.2);
}

.team-dossier__toggle-switch.is-on::after {
  left: 19px;
  background: var(--accent);
}

.team-dossier__actions {
  margin-top: auto;
  padding: 20px 24px;
  background: #06060f;
  border-top: 1px solid #1a1a2a;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-dossier__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.team-dossier__btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-dossier__btn-primary > * {
  position: relative;
  z-index: 1;
}

.team-dossier__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.team-dossier__btn-primary:hover::after {
  transform: translateX(101%);
}

.team-dossier__btn-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #888;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1.5px solid #1a1a2a;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.team-dossier__btn-ghost:hover {
  color: #fff;
  border-color: #2a2a3a;
}

/* Dossier card */
.team-dossier__card {
  position: relative;
  overflow: hidden;
  background: #06060f;
  color: #fff;
  flex-shrink: 0;
  animation: team-dossier-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.team-dossier__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(
      145deg,
      #071827 0%,
      #070817 34%,
      #090817 56%,
      #08243a 100%
    );
}


.team-dossier__bg,
.team-dossier__svg-bg,
.team-dossier__raster-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.team-dossier__raster-bg {
  object-fit: cover;
}

.team-dossier__bg-wm {
  font-family: "Bebas Neue", sans-serif;
  font-size: 220px;
  letter-spacing: 0.04em;
  fill: rgba(255, 255, 255, 0.03);
}

.team-dossier__bg-wm--square {
  font-size: 160px;
}

.team-dossier__bg-wm--og {
  font-size: 140px;
}


/* Cyan HUD frame details (corners + inset glow) */
.team-dossier__card::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  z-index: 9;
  opacity: 0.9;
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left top / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right top / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) left bottom / 2px 22px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 22px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) right bottom / 2px 22px no-repeat;
}

.team-dossier__card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.08) inset,
    0 0 0 2px rgba(var(--accent-rgb), 0.04) inset;
}

.team-dossier__card.size-story {
  width: 540px;
  height: 960px;
}
.team-dossier__card.size-square {
  width: 540px;
  height: 540px;
}
.team-dossier__card.size-og {
  width: 600px;
  height: 315px;
}

@media (max-height: 1080px) {
  .team-dossier__card.size-story {
    transform: scale(0.78);
    transform-origin: center;
  }
}

.team-dossier__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255, 255, 255, 0.022) 60px, rgba(255, 255, 255, 0.022) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255, 255, 255, 0.022) 60px, rgba(255, 255, 255, 0.022) 61px);
}

.team-dossier__scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, rgba(var(--accent-rgb), 0.35), transparent);
  z-index: 3;
  animation: team-dossier-scan 7s linear infinite;
  pointer-events: none;
}

.team-dossier__shell--static .team-dossier__scanline,
.team-dossier--exporting .team-dossier__scanline {
  display: none !important;
  animation: none !important;
}

@keyframes team-dossier-scan {
  0% {
    top: -2px;
  }
  100% {
    top: 100%;
  }
}

.team-dossier__glow-a {
  position: absolute;
  bottom: -180px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.team-dossier__glow-b {
  position: absolute;
  top: -100px;
  right: -60px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 49, 82, 0.1) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}

.team-dossier__wm {
  position: absolute;
  font-family: "Bebas Neue", sans-serif;
  color: rgba(255, 255, 255, 0.028);
  letter-spacing: 0.04em;
  pointer-events: none;
  line-height: 0.8;
  user-select: none;
  z-index: 2;
}
.team-dossier__card.size-story .team-dossier__wm {
  right: -40px;
  bottom: -60px;
  font-size: 22rem;
}
.team-dossier__card.size-square .team-dossier__wm {
  right: -30px;
  bottom: -40px;
  font-size: 14rem;
}
.team-dossier__card.size-og .team-dossier__wm {
  right: -20px;
  bottom: -30px;
  font-size: 12rem;
}

.team-dossier__stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
  z-index: 6;
}

.team-dossier__bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  z-index: 7;
  pointer-events: none;
  opacity: 0.85;
}
.team-dossier__bracket--tl {
  top: 18px;
  left: 18px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.team-dossier__bracket--tr {
  top: 18px;
  right: 18px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}
.team-dossier__bracket--bl {
  bottom: 18px;
  left: 18px;
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.team-dossier__bracket--br {
  bottom: 18px;
  right: 18px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.team-dossier__inner {
  position: relative;
  z-index: 8;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
}

.team-dossier__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-dossier__card.size-story .team-dossier__inner {
  padding: 72px 48px 110px;
}

.team-dossier__classification {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-dossier__classification-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: team-dossier-pulse 1.6s ease-in-out infinite;
}

@keyframes team-dossier-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.team-dossier__id {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  color: #555;
  letter-spacing: 0.1em;
}

.team-dossier__identity {
  margin-top: 36px;
  flex-shrink: 0;
}

.team-dossier__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.team-dossier__tag {
  display: inline-block;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
}

.team-dossier__tag--accent {
  background: var(--accent);
  color: #000;
}

.team-dossier__tag--dark {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
}

.team-dossier__tag--recruiting {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.team-dossier__identity-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.team-dossier__logo {
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
}

.team-dossier__card.size-square .team-dossier__logo {
  width: 78px;
  height: 78px;
}

.team-dossier__card.size-og .team-dossier__logo {
  width: 60px;
  height: 60px;
}

.team-dossier__logo img {
  /* Use intrinsic sizing instead of width/height:100% + object-fit so
     html2canvas (which ignores object-fit) preserves the logo's native
     aspect ratio in the exported PNG. */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 8px;
  box-sizing: border-box;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.team-dossier__card.size-og .team-dossier__logo img {
  padding: 6px;
}

.team-dossier__logo-fallback {
  font-family: "Bebas Neue", sans-serif;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1;
  font-size: 2.4rem;
}

.team-dossier__card.size-square .team-dossier__logo-fallback {
  font-size: 2rem;
}

.team-dossier__card.size-og .team-dossier__logo-fallback {
  font-size: 1.6rem;
}

.team-dossier__logo-corner {
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--accent);
  border-style: solid;
}

.team-dossier__logo-corner.tl {
  top: 0;
  left: 0;
  border-width: 1.5px 0 0 1.5px;
}
.team-dossier__logo-corner.tr {
  top: 0;
  right: 0;
  border-width: 1.5px 1.5px 0 0;
}
.team-dossier__logo-corner.bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 1.5px 1.5px;
}
.team-dossier__logo-corner.br {
  bottom: 0;
  right: 0;
  border-width: 0 1.5px 1.5px 0;
}

.team-dossier__name-block {
  min-width: 0;
  flex: 1;
}

.team-dossier__name {
  font-family: "Bebas Neue", sans-serif;
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: 6px;
  font-size: 3.2rem;
}

.team-dossier__card.size-square .team-dossier__name {
  font-size: 2.4rem;
}

.team-dossier__card.size-og .team-dossier__name {
  font-size: 2rem;
}

.team-dossier__org {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #888;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 12px;
}

.team-dossier__card.size-square .team-dossier__org {
  font-size: 11px;
}

.team-dossier__card.size-og .team-dossier__org {
  font-size: 10px;
}

.team-dossier__intel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  margin-top: 32px;
  grid-template-columns: 1fr 1fr;
}

.team-dossier__card.size-square .team-dossier__intel {
  margin-top: 18px;
}

.team-dossier__card.size-og .team-dossier__intel {
  display: none;
}

.team-dossier__intel-cell {
  padding: 14px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.team-dossier__intel-cell:nth-child(2n) {
  border-right: none;
}

.team-dossier__intel-cell:nth-last-child(-n + 2) {
  border-bottom: none;
}

.team-dossier__intel-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #666;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-dossier__intel-label svg {
  opacity: 0.85;
  color: var(--accent);
}

.team-dossier__intel-val {
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  font-size: 15px;
}

.team-dossier__card.size-square .team-dossier__intel-val {
  font-size: 14px;
}

.team-dossier__intel-val--accent {
  color: var(--accent);
}

.team-dossier__og-meta {
  display: flex;
  gap: 24px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.team-dossier__card.size-story .team-dossier__og-meta,
.team-dossier__card.size-square .team-dossier__og-meta {
  display: none;
}

.team-dossier__og-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.team-dossier__og-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #666;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.team-dossier__og-val {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}

.team-dossier__og-val--accent {
  color: var(--accent);
}

.team-dossier__games {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.team-dossier__card.size-square .team-dossier__games {
  margin-top: 14px;
}

.team-dossier__card.size-og .team-dossier__games {
  display: none;
}

.team-dossier__game-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  font-weight: 600;
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.04em;
}

.team-dossier__game-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-dossier__about {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.team-dossier__card.size-square .team-dossier__about,
.team-dossier__card.size-og .team-dossier__about {
  display: none;
}

.team-dossier__about-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9px;
  color: #555;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.team-dossier__about-text {
  font-size: 13px;
  line-height: 1.6;
  color: #aaa;
}

.team-dossier__footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.team-dossier__card.size-og .team-dossier__footer {
  position: absolute;
  right: 24px;
  bottom: 18px;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.team-dossier__footer-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.team-dossier__url {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-dossier__card.size-og .team-dossier__url {
  font-size: 10px;
}

.team-dossier__brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.team-dossier__brand .gg {
  color: var(--accent);
}

.team-dossier__brand-tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #444;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 1px;
}

.team-dossier__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-dossier__qr {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  background: #fff;
  padding: 5px;
  position: relative;
}

.team-dossier__card.size-og .team-dossier__qr {
  width: 54px;
  height: 54px;
  padding: 4px;
}

.team-dossier__qr img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}

.team-dossier__qr::before,
.team-dossier__qr::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
}

.team-dossier__qr::before {
  top: -2px;
  left: -2px;
  border-width: 1.5px 0 0 1.5px;
}

.team-dossier__qr::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 1.5px 1.5px 0;
}

.team-dossier__qr-hint {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 8px;
  color: #444;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-top: 6px;
}

.team-dossier__card.size-square .team-dossier__qr-hint,
.team-dossier__card.size-og .team-dossier__qr-hint {
  display: none;
}

@keyframes team-dossier-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toast */
.team-dossier__toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0a0a0a;
  color: #fff;
  padding: 12px 20px;
  z-index: 1100;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.team-dossier__toast svg {
  color: var(--accent);
}

.team-dossier__toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (max-width: 860px) {
  .team-dossier__body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  .team-dossier__controls {
    max-height: 50vh;
  }
  .team-dossier__stage {
    padding: 20px;
    min-height: 60vh;
  }
  .team-dossier__card.size-story {
    transform: scale(0.6);
  }
  .team-dossier__card.size-square,
  .team-dossier__card.size-og {
    transform: scale(0.85);
  }
}


.team-dossier__card::before,
.team-dossier__card::after {
  display: none !important;
}