/* Team page — Hero (01 Hero) */

.cw-teams-hero {
  background: #141210;
  color: #f3efe7;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(56px, 7vw, 88px);
  overflow: hidden;
  box-sizing: border-box;
}

.cw-teams-hero__inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.cw-teams-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.cw-teams-hero__eyebrow {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #d4f53c;
}

.cw-teams-hero__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 8vw, 120px);
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.cw-teams-hero__title-dot {
  color: #ff5527;
}

.cw-teams-hero__title-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-size: 0.62em;
  color: #cfc4f6;
}

.cw-teams-hero__lead {
  margin: 0;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(243, 239, 231, 0.74);
  text-wrap: pretty;
}

.cw-teams-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-teams-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-teams-hero__btn--primary {
  background: #d4f53c;
  color: #141210;
  font-weight: 700;
}

.cw-teams-hero__btn--primary:hover,
.cw-teams-hero__btn--primary:focus-visible {
  background: #fff;
  color: #141210;
}

.cw-teams-hero__btn--secondary {
  border: 1px solid rgba(243, 239, 231, 0.25);
  color: #f3efe7;
}

.cw-teams-hero__btn--secondary:hover,
.cw-teams-hero__btn--secondary:focus-visible {
  border-color: #d4f53c;
  color: #d4f53c;
}

.cw-teams-hero__hint {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #8e877c;
}

.cw-teams-hero__visual {
  position: relative;
  min-width: 0;
}

.cw-teams-hero__board {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.cw-teams-hero__board-frame {
  position: absolute;
  inset: 0;
  border: 1px dashed rgba(243, 239, 231, 0.18);
  border-radius: 32px;
  pointer-events: none;
}

.cw-teams-hero__pieces {
  position: absolute;
  inset: 0;
}

.cw-teams-hero__piece {
  position: absolute;
  width: 50%;
  height: 50%;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15);
  text-align: left;
}

.cw-teams-hero__piece:focus-visible {
  outline: 2px solid #d4f53c;
  outline-offset: 2px;
}

.cw-teams-hero__piece-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  color: #141210;
  padding: clamp(16px, 2.4vw, 24px);
  box-sizing: border-box;
}

.cw-teams-hero__piece-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.cw-teams-hero__piece-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #141210;
  transition: opacity 0.3s ease;
}

.cw-teams-hero__piece-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cw-teams-hero__piece-name {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cw-teams-hero__piece-desc {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.75;
}

.cw-teams-hero__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.3);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #141210;
  border: 2px solid #d4f53c;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 9;
  pointer-events: none;
}

.cw-teams-hero__hub--ready {
  transform: translate(-50%, -50%) scale(1);
}

.cw-teams-hero__hub span {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.1;
  color: #d4f53c;
}

.cw-teams-hero__status {
  width: min(100%, 520px);
  margin: 18px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cw-teams-hero__assembled {
  font-size: 14px;
  color: #cfc9be;
}

.cw-teams-hero__shuffle {
  border: 1px solid rgba(243, 239, 231, 0.25);
  background: transparent;
  color: #f3efe7;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cw-teams-hero__shuffle:hover,
.cw-teams-hero__shuffle:focus-visible {
  border-color: #d4f53c;
  color: #d4f53c;
}

@media (prefers-reduced-motion: reduce) {
  .cw-teams-hero__piece,
  .cw-teams-hero__hub {
    transition: none;
  }
}
