/* Temporarily hidden on homepage — contact is nested inside Team section wrapper */
#main #team,
#main header#team,
#main .tas-team-grid,
#main [data-framer-name="Team section"] > .framer-fqsyx2,
#main [data-framer-name="Team section"] .framer-hqt01y[data-framer-name="Sub Container"],
#main [data-framer-name="Team section"] [data-framer-name="Team Card"],
#main [data-framer-name="Team section"] .tas-team-card:last-child {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  left: -9999px !important;
  width: 0 !important;
  opacity: 0 !important;
}

#main [data-framer-name="Team section"] {
  height: auto !important;
  min-height: 0 !important;
  padding-bottom: 84px !important;
}

#main #contact,
#main [data-framer-name="Contact section"],
#main [data-framer-name="Team section"] #contact,
#main [data-framer-name="Team section"] [data-framer-name="Contact section"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

#main header [data-framer-name="Links"] a[href$="#team"],
#main header [data-framer-name="Links"] a[href*="index.html#team"] {
  display: none !important;
}

/* Custom team grid (Framer export leaves team cards hidden / empty below the header). */
.tas-team-grid {
  width: min(1100px, 92vw);
  margin: 0 auto;
  padding: 8px 0 72px;
  box-sizing: border-box;
}

.tas-team-grid-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 900px) {
  .tas-team-grid-inner {
    grid-template-columns: 1fr;
  }
}

.tas-team-card:nth-child(4) {
  grid-column: 2;
}

@media (max-width: 900px) {
  .tas-team-card:nth-child(4) {
    grid-column: auto;
  }
}

.tas-team-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 48px 20px 20px;
  min-height: 108px;
  box-sizing: border-box;
  background: radial-gradient(
    50% 50% at 50% 50%,
    rgb(21, 23, 30) 0%,
    rgb(0, 0, 0) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: rgba(20, 19, 42, 0.08) 0px 2px 12px 0px;
}

.tas-team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #1a1d24;
}

.tas-team-meta {
  min-width: 0;
}

.tas-team-name {
  margin: 0 0 6px;
  font-family: "Nunito Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.tas-team-role {
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.88rem;
  color: rgba(206, 206, 206, 0.95);
  line-height: 1.4;
}

.tas-team-li {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.tas-team-li:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(243, 178, 12, 0.45);
}

.tas-team-li svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Hide Framer SSR team card stack (opacity:0 / duplicate layout). */
.tas-team-grid + .framer-hqt01y[data-framer-name="Sub Container"] {
  display: none !important;
}
