/* Our Team — mosaic wall (no marquee) */

.team-section {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-y, 36px) 0;
}

.team-header {
  max-width: 760px;
  margin-bottom: 34px;
}

.team-lead {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.team-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  place-items: center;
  min-height: 220px;
  padding: 42px 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.team-empty p {
  margin: 0;
  font-size: 16px;
}

.team-empty code {
  color: var(--text);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 14px;
}

.team-empty span {
  color: var(--soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 72px;
  grid-auto-flow: dense;
  gap: 10px;
}

.team-tile {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(145deg, #14161d 0%, #2a3140 55%, #101218 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  animation: gallery-rise 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay);
  transition: transform 280ms ease, border-color 280ms ease, box-shadow 280ms ease;
}

.team-tile:focus-visible {
  outline: 2px solid rgba(118, 216, 255, 0.72);
  outline-offset: 3px;
}

.team-tile:hover {
  z-index: 2;
  border-color: var(--line-bright);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.team-tile--hero {
  grid-column: span 6;
  grid-row: span 5;
}

.team-tile--wide {
  grid-column: span 6;
  grid-row: span 3;
}

.team-tile--tall {
  grid-column: span 3;
  grid-row: span 4;
}

.team-tile--normal {
  grid-column: span 3;
  grid-row: span 3;
}

.team-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.team-tile.is-loaded img {
  opacity: 1;
}

.team-tile:hover img {
  transform: scale(1.08);
}

.team-tile.is-fallback img {
  opacity: 0;
}

.team-tile.is-fallback::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    var(--tile-fallback, linear-gradient(145deg, #1a1d2e, #76d8ff));
}

.team-tile.is-fallback[style*="--fallback:0"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(145deg, #1a1d2e 0%, #3d4f7c 42%, #76d8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:1"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(160deg, #12141c 0%, #5b3f72 55%, #b9a8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:2"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(135deg, #0d1016 0%, #1f4d3a 48%, #94f0c3 100%);
}

.team-tile.is-fallback[style*="--fallback:3"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(155deg, #10131a 0%, #4a3058 40%, #e8edf7 100%);
}

.team-tile.is-fallback[style*="--fallback:4"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(140deg, #090b10 0%, #2a3a5c 50%, #76d8ff 100%);
}

.team-tile.is-fallback[style*="--fallback:5"]::before {
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22), transparent 34%),
    linear-gradient(150deg, #0f1118 0%, #3b2f4f 45%, #f5f5f7 100%);
}

.team-tile figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  min-height: 46%;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(3, 3, 5, 0.82) 68%);
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.team-tile:hover figcaption,
.team-tile:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.team-tile figcaption span {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-lightbox-open {
  overflow: hidden;
}

.team-lightbox[hidden] {
  display: none;
}

.team-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.team-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.84);
  backdrop-filter: blur(18px) saturate(120%);
}

.team-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(1120px, calc(100% - 32px));
  height: calc(100% - 48px);
  margin: 24px auto;
}

.team-lightbox-figure {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: 100%;
  margin: 0;
}

.team-lightbox-figure img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.team-lightbox-figure figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.team-lightbox-figure strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}

.team-lightbox-close,
.team-lightbox-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.team-lightbox-close:hover,
.team-lightbox-nav:hover {
  border-color: var(--line-bright);
  background: rgba(255, 255, 255, 0.12);
}

.team-lightbox-close {
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.team-lightbox-nav {
  top: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  transform: translateY(-50%);
}

.team-lightbox-nav--prev {
  left: -6px;
}

.team-lightbox-nav--next {
  right: -6px;
}

@keyframes gallery-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .team-mosaic {
grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 64px;
  }

  .team-tile--hero,
  .team-tile--wide {
grid-column: span 6;
    grid-row: span 4;
  }

  .team-tile--tall,
  .team-tile--normal {
grid-column: span 3;
    grid-row: span 3;
  }
}

@media (max-width: 640px) {
  .hero,
  .team-section,
  .team-section,
  .section-band,
  .closing,
  .signal-strip {
width: min(100% - 28px, 1120px);
  }

  .team-mosaic {
grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
    gap: 8px;
  }

  .team-tile--hero,
  .team-tile--wide,
  .team-tile--tall,
  .team-tile--normal {
grid-column: span 2;
    grid-row: span 2;
  }

  .team-tile--normal:nth-child(3n) {
grid-column: span 1;
    grid-row: span 2;
  }

  .team-lightbox-nav--prev {
left: 8px;
  }

  .team-lightbox-nav--next {
right: 8px;
  }
}
