/* team.css — Steamify team page. Brand-aligned with home/plans.
   Fixes: fluid profile media, no white photo shells, balanced inspiration media,
   responsive video scale, and tighter mid-width behavior. */

body.page-team {
  --accent-a: #31d8ff;
  --accent-b: #7c57ff;
  --accent-c: #ff6db3;
  background-color: #080b14;
  background:
    radial-gradient(circle at 85% 6%, rgba(124, 87, 255, 0.06), transparent 40%),
    linear-gradient(180deg, #080b14 0%, #0a0e1a 100%);
  background-attachment: fixed;
}

.page-team .site-main {
  display: grid;
  gap: 1.5rem;
}

.page-team .team-mission-hero {
  position: relative;
  display: block;
  overflow: hidden;
  margin-top: 0;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 8%, rgba(130, 150, 255, 0.07), transparent 38%),
    linear-gradient(180deg, #0f1626 0%, #0b1020 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.page-team .team-mission-hero::after {
  content: "";
  position: absolute;
  inset: auto -12% -38% auto;
  width: min(420px, 48vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(49, 216, 255, 0.1), transparent 68%);
  pointer-events: none;
}

.page-team .team-mission-hero .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-team .eyebrow,
.page-team .section-kicker,
.page-team .card-kicker {
  margin: 0;
  color: #4ade80;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-team .team-mission-hero h1,
.page-team .section-head h2,
.page-team .team-contact-section h2,
.page-team .team-profile h3,
.page-team .team-video-card h3 {
  font-family: "Sora", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.page-team .team-mission-hero h1 {
  max-width: 980px;
  margin: 0.55rem 0 0.85rem;
  font-size: clamp(2rem, 3.4vw, 3.15rem);
  line-height: 1.06;
}

.page-team .hero-accent {
  color: #4ade80;
}

.page-team .team-mission-hero p:not(.eyebrow) {
  max-width: 62rem;
  margin: 0;
  color: #e8eef9;
  font-size: 1rem;
  line-height: 1.65;
}

.page-team .mission-tagline {
  max-width: 46rem;
}

.page-team .mission-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.4rem;
}

.page-team .mission-tags__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.page-team .mission-tags__label {
  flex: 0 0 auto;
  width: 4.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fa3c4;
}

.page-team .mission-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e8eef9;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.page-team .content-section {
  margin-top: 0;
  padding: clamp(1.35rem, 3vw, 2.1rem);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, #0f1626 0%, #0c1120 100%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.page-team .section-head {
  max-width: 760px;
}

.page-team .section-head--compact h2,
.page-team .team-contact-section h2 {
  margin-top: 0.4rem;
}

.team-profile-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-profile {
  display: grid;
  grid-template-columns: minmax(8.5rem, clamp(9rem, 18vw, 14rem)) minmax(0, 1fr);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: center;
  overflow: hidden;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    radial-gradient(circle at 95% 10%, rgba(124, 87, 255, 0.08), transparent 34%),
    #111a2c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.team-profile__photo,
.team-inspiration__image {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #b9d5ee;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.team-profile__photo {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 999px;
  justify-self: center;
}

.team-profile__photo.image-placeholder::before,
.team-inspiration__image.image-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.team-profile__photo img,
.team-inspiration__image img,
.team-profile__photo picture,
.team-inspiration__image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-profile__photo img,
.team-inspiration__image img {
  object-fit: cover;
  object-position: center;
  background: transparent;
  border: 0;
}

.team-profile__photo img {
  transform: scale(1.04);
}

.team-profile__photo.image-placeholder,
.team-inspiration__image.image-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(154, 241, 216, 0.18);
  background:
    radial-gradient(circle at 75% 18%, rgba(124, 87, 255, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(49, 216, 255, 0.12), rgba(17, 26, 44, 0.92));
}

.team-profile__copy {
  display: grid;
  align-content: center;
  gap: 0.5rem;
  min-width: 0;
}

.team-profile__role {
  width: fit-content;
  margin: 0;
  padding: 0.24rem 0.62rem;
  border: 1px solid rgba(74, 216, 172, 0.36);
  border-radius: 999px;
  color: #9af1d8;
  background: rgba(74, 216, 172, 0.1);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.team-profile h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.12;
}

.team-profile p:not(.team-profile__role) {
  margin: 0;
  color: #dbe4f2;
  font-size: 0.94rem;
  line-height: 1.62;
}

.team-inspiration {
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
  margin-top: 1rem;
  margin-inline: auto;
}

.team-inspiration__image {
  width: min(100%, 14rem);
  aspect-ratio: auto;
  object-fit: contain;
  justify-self: center;
  border-radius: 16px;
}

.team-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 14rem);
  justify-content: center;
  gap: 1rem;
  align-items: start;
}

.team-video-card {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #111a2c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.team-video-card h3 {
  margin: 0;
  font-size: clamp(0.86rem, 1.2vw, 1rem);
  line-height: 1.25;
  min-height: 2.5em;
}

.team-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 18, 28, 0.34);
}

.team-video-embed iframe,
.team-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.team-video-thumb {
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 0.8cm;
  height: 0.8cm;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  background: #dc2626 no-repeat center / 44%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.video-play-btn:hover,
.video-play-btn:focus-visible {
  background-color: #ef4444;
  transform: scale(1.1);
}

.team-contact-section {
  display: grid;
  gap: 0.8rem;
}

.team-contact-section h2,
.team-contact-section p {
  margin: 0;
}

.team-contact-section > p {
  max-width: 48rem;
  color: #dbe4f2;
  line-height: 1.6;
}

.team-contact-form {
  display: grid;
  gap: 0.9rem;
  max-width: 860px;
  margin-top: 0.6rem;
}

.team-contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.team-contact-form label {
  display: grid;
  gap: 0.35rem;
  color: #b9d5ee;
  font-size: 0.82rem;
  font-weight: 800;
}

.team-contact-form input,
.team-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(123, 152, 224, 0.42);
  border-radius: 12px;
  background: rgba(5, 10, 20, 0.72);
  color: #eef4ff;
  padding: 0.72rem 0.8rem;
  font: inherit;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.team-contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.team-contact-form input:focus,
.team-contact-form textarea:focus {
  outline: none;
  border-color: rgba(74, 216, 172, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 216, 172, 0.12);
  background: rgba(7, 14, 29, 0.82);
}

.team-contact-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.team-contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.team-contact-form__actions .btn {
  min-width: 11rem;
  justify-content: center;
}

.team-contact-form__status {
  min-height: 1.3rem;
  margin: 0;
  color: #ffd89b;
  font-size: 0.88rem;
  font-weight: 700;
}

.page-team .site-footer {
  margin-top: 0.5rem;
}

@media (max-width: 1100px) {
  .team-profile {
    grid-template-columns: minmax(7.5rem, clamp(8rem, 16vw, 11rem)) minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .team-profile {
    grid-template-columns: minmax(7rem, clamp(7.5rem, 22vw, 10rem)) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page-team .team-mission-hero,
  .page-team .content-section {
    border-radius: 18px;
  }

  .page-team .team-mission-hero h1 {
    font-size: clamp(1.85rem, 9vw, 2.55rem);
  }

  .page-team .mission-tags__label {
    width: 100%;
    margin-bottom: -0.15rem;
  }

  .page-team .mission-pill {
    font-size: 0.82rem;
    padding: 0.35rem 0.75rem;
  }

  .team-profile {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.95rem;
  }

  .team-profile__photo {
    width: min(46vw, 11.5rem);
    justify-self: start;
  }

  .team-contact-form__grid {
    grid-template-columns: 1fr;
  }

  .team-contact-form__actions {
    align-items: stretch;
  }

  .team-contact-form__actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .team-profile__photo {
    width: min(58vw, 10.5rem);
  }
}
