/* =========================================================
   MEET THE TEAM - navy studio dossier grid
   ========================================================= */

/* The page canvas shifts from neutral black to deep navy. */
:root {
  --p3-black: #050b14;
  --p3-bg: var(--theme-bg, #0e0062);
  --ff-bg: var(--theme-bg, #0e0062);
}

body,
#qodef-page-outer,
#qodef-main-rev-holder,
.about-section {
  background-color: var(--theme-bg, #0e0062) !important;
}

/* Keep the Events section on the same canvas as the rest of the page. */
#events {
  background: var(--theme-bg, #0e0062) !important;
}

/* The background grid supplies enough structure; remove the two wide
   decorative rules that could cross the first event cards. */
#events .ff-events-line {
  display: none !important;
}

#meettheteam .page {
  max-width: 1360px;
  margin: 0 auto;
}

#meettheteam .grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch;
}

#meettheteam .card {
  position: relative;
  display: flex !important;
  min-height: 278px !important;
  height: auto !important;
  padding: 25px !important;
  overflow: hidden;
  border: 1px solid rgba(229, 236, 244, 0.15) !important;
  border-radius: 10px !important;
  background: #08090c !important;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.025),
    0 18px 40px rgba(0, 0, 0, 0.16) !important;
  transition:
    transform 180ms ease-out,
    border-color 180ms ease-out,
    background-color 180ms ease-out !important;
}

/* Keep the lead card aligned with the grid while retaining its taller footprint. */
#meettheteam .card:first-child {
  grid-column: span 1;
  min-height: 308px !important;
  padding: 25px !important;
}

#meettheteam .card.card--wide {
  grid-column: 1 / -1;
  min-height: 210px !important;
  padding: clamp(24px, 4vw, 42px) !important;
  background: linear-gradient(110deg, #08090c 0%, #0b0c10 100%) !important;
}

#meettheteam .card::before {
  display: none;
}

#meettheteam .card::after {
  display: none !important;
  content: none !important;
}

/* Keep cards text-only if legacy portrait markup is restored later. */
#meettheteam .backdrop,
#meettheteam .frame,
#meettheteam .photo,
#meettheteam .signature,
#meettheteam .corner {
  display: none !important;
}

#meettheteam .card:hover,
#meettheteam .card:focus-within {
  transform: translateY(-3px);
  border-color: rgba(0, 217, 237, 0.5) !important;
  background: #0b0c10 !important;
}

#meettheteam .card:hover::after,
#meettheteam .card:focus-within::after {
  background: #00d9ed;
}

#meettheteam .content {
  position: relative !important;
  inset: auto !important;
  display: flex !important;
  flex: 1;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center !important;
}

#meettheteam .card--wide .content {
  flex-direction: row !important;
  align-items: center !important;
  text-align: left !important;
}

#meettheteam .content > div:first-child {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 34px !important;
}

#meettheteam .card--wide .content > div:first-child {
  flex: 1;
  align-items: flex-start;
  padding-top: 0 !important;
  text-align: left;
}

#meettheteam .role {
  order: 2;
  width: 100%;
  max-width: none;
  color: #9da1a8 !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  text-wrap: pretty;
}

#meettheteam .name {
  order: 1;
  width: 100%;
  max-width: none;
  margin: 0 0 10px !important;
  color: #f4f4f2 !important;
  font-family: "Space Grotesk", sans-serif !important;
  font-size: clamp(1.8rem, 2.35vw, 2.8rem) !important;
  font-weight: 600;
  line-height: 1.08 !important;
  letter-spacing: -0.055em !important;
  text-wrap: balance;
}

#meettheteam .card:first-child .name {
  width: 100%;
  max-width: none;
  font-size: clamp(2rem, 2.7vw, 3.2rem) !important;
}

#meettheteam .name em {
  color: #b9b9b6;
  font-family: inherit;
  font-style: normal;
  font-weight: 400;
}

#meettheteam .team-summary {
  max-width: 34ch;
  margin: 18px 0 0;
  color: #9ba5b1;
  font:
    400 13px/1.55 "Space Grotesk",
    sans-serif;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

#meettheteam .team-summary {
  display: none !important;
}

#meettheteam .card--wide .team-summary {
  order: 3;
  display: block !important;
  max-width: none;
  margin: 16px 0 0;
  color: #8e949d;
  font:
    400 13px/1.55 "Space Grotesk",
    sans-serif;
  letter-spacing: 0.01em;
}

#meettheteam .card:first-child .team-summary {
  max-width: 46ch;
  font-size: 14px;
}

#meettheteam .links {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
}

#meettheteam .card--wide .links {
  width: auto;
  flex: 0 0 auto;
  padding: 0 0 0 24px;
}

#meettheteam .links a {
  min-height: 30px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #d8d8d4 !important;
  background: transparent !important;
  font-family: "Space Grotesk", sans-serif;
  font-size: 9px !important;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 160ms ease-out,
    transform 160ms ease-out !important;
}

#meettheteam .links a::after {
  content: "  ↗";
  color: #00d9ed;
}

#meettheteam .links a:hover,
#meettheteam .links a:focus-visible {
  color: #00d9ed !important;
  transform: translateX(2px);
}

#meettheteam .links a:focus-visible {
  outline: 1px solid #00d9ed;
  outline-offset: 5px;
}

#meettheteam .links a.contact {
  display: inline-flex;
  width: min(100%, 320px);
  min-height: 52px;
  margin-inline: auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 6px !important;
  color: #e5e8eb !important;
  background: rgba(255, 255, 255, 0.065) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.16);
  font-size: 13px !important;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease !important;
}

#meettheteam .links a.contact::after {
  margin-left: 4px;
  color: #aeb8c0;
}

#meettheteam .links a.contact:hover,
#meettheteam .links a.contact:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.34) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 26px rgba(0, 0, 0, 0.22);
}

#meettheteam .links a.contact:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.52);
  outline-offset: 3px;
}

body.elementor-page-2454 #meettheteam .card:first-child .contact {
  width: min(100%, 480px);
}

body.elementor-page-2454 #meettheteam .card:first-child::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 900px) {
  #meettheteam .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  #meettheteam .grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: min(100%, 520px) !important;
  }

  #meettheteam .card,
  #meettheteam .card:first-child {
    grid-column: auto;
    min-height: 250px !important;
    padding: 22px !important;
  }

  #meettheteam .card--wide .content {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }

  #meettheteam .card--wide .content > div:first-child {
    flex: 0 1 auto;
  }

  #meettheteam .card--wide .links {
    width: 100%;
    padding: 0;
  }

  #meettheteam .card::after {
    right: 24px;
    bottom: 24px;
    left: 24px;
  }

  #meettheteam .name,
  #meettheteam .card:first-child .name {
    font-size: clamp(2.5rem, 10vw, 3.65rem) !important;
  }

  #meettheteam .team-summary,
  #meettheteam .card:first-child .team-summary {
    max-width: 36ch;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #meettheteam .card,
  #meettheteam .card::after,
  #meettheteam .links a {
    transition: none !important;
  }
}

/* Keep the homepage canvas on the same lighter blue throughout. */
body,
#qodef-page-outer,
#qodef-main-rev-holder {
  background-color: #070a13 !important;
}

#events {
  background: #070a13 !important;
}
