/* Who we are — team, mission, credibility */

.team-hero {
  padding-top: 160px;
  padding-bottom: 100px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.team-stub {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 6px;
  background: rgba(255, 200, 90, 0.18);
  color: #8a6800;
  border: 1px dashed rgba(180, 130, 0, 0.45);
}
.section--dark .team-stub, .hero--dark .team-stub {
  background: rgba(255, 220, 130, 0.16);
  color: #ffe39a;
  border-color: rgba(255, 220, 130, 0.45);
}

/* Mission */
.team-mission { padding: clamp(80px, 10vw, 140px) 56px; text-align: center; }
.team-mission__inner { max-width: 960px; margin: 0 auto; }
.team-mission__eye {
  width: 88px; height: auto;
  margin: 0 auto 32px;
  display: block;
  opacity: 0.92;
  animation: missionBreathe 5s ease-in-out infinite;
}
@keyframes missionBreathe { 50% { opacity: 0.55; transform: scale(0.97); } }
.team-mission__h2 {
  font-family: var(--sans);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.5);
}
.team-mission__bright { color: #fff; }
.team-mission__sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 62ch;
  margin: 0 auto;
}

.team-mission__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 56px auto 0;
  max-width: 1040px;
  text-align: left;
}
.team-mission__pillar {
  padding: 26px 26px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.team-mission__pillar h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 14px 0 6px;
}
.team-mission__pillar p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}
.team-mission__pill-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffd2c5;
}
.team-mission__pillar:nth-child(2) .team-mission__pill-icon { color: #b5f5e1; }
.team-mission__pillar:nth-child(3) .team-mission__pill-icon { color: #ffe39a; }

.team-mission__photo {
  margin: 56px auto 0;
  max-width: 1040px;
  text-align: center;
}
.team-mission__photo img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
  box-shadow: 0 40px 100px -32px rgba(0, 0, 0, 0.45);
}
.team-mission__photo figcaption {
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .team-mission__pillars { grid-template-columns: 1fr; gap: 14px; }
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  padding: 24px;
  border-radius: 22px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-card:hover { transform: translateY(-3px); border-color: var(--purple-200); box-shadow: var(--shadow); }
.team-card__photo {
  width: 100%; aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--purple-50);
  margin-bottom: 18px;
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--purple);
  background: repeating-linear-gradient(45deg, var(--purple-50) 0 14px, #fff 14px 28px);
  border: 1px dashed var(--purple-200);
}
.team-card__photo--stub span {
  padding: 6px 14px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid var(--purple-200);
}
.team-card h4 { margin-bottom: 6px; font-size: 16px; }
.team-card p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-body); }
@media (max-width: 1000px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } }

/* Backers */
.team-backers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.team-backer {
  padding: 36px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--paper-edge);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.team-backer:hover { transform: translateY(-3px); border-color: var(--purple-200); box-shadow: var(--shadow); }
.team-backer img { height: 40px; width: auto; margin-bottom: 24px; }
.team-backer .team-backer__logo--uw { height: 64px; }
.team-backer h4 { margin-bottom: 10px; }
.team-backer p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-body); }
@media (max-width: 800px) { .team-backers { grid-template-columns: 1fr; } }

/* Timeline */
.team-timeline {
  display: grid;
  gap: 14px;
  position: relative;
}
.team-timeline__item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--paper-warm);
  border: 1px solid var(--paper-edge);
}
.team-timeline__year {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  font-weight: 700;
  padding-top: 4px;
}
.team-timeline__body h4 { margin-bottom: 6px; }
.team-timeline__body p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.team-timeline__item--done { background: #fff; border-color: var(--paper-edge); }
.team-timeline__item--done .team-timeline__year { color: var(--purple); }
.team-timeline__item--active {
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.10), rgba(79, 62, 220, 0.06));
  border-color: var(--purple-200);
}
.team-timeline__item--active .team-timeline__year { color: var(--purple); }
.team-timeline__item--active .team-timeline__body h4::after {
  content: " · in progress";
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--purple);
  font-weight: 500;
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .team-timeline__item { grid-template-columns: 1fr; gap: 8px; }
}

/* Location section (light, with embedded map) */
.team-location__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.team-location__address {
  font-style: normal;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-body);
  margin: 14px 0 24px;
}
.team-location__map {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--paper-edge);
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow);
  filter: grayscale(0.1) contrast(0.98);
  transition: filter 0.3s var(--ease);
}
.team-location__map:hover { filter: none; }
.team-location__map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) {
  .team-location__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Team story — photographic full-bleed band */
.team-story {
  position: relative;
  min-height: 70svh;
  padding: clamp(80px, 10vw, 140px) 56px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #0a071f;
}
.team-story__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% 50%;
  z-index: -2;
}
.team-story__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(95deg,
      rgba(10, 7, 31, 0.94) 0%,
      rgba(10, 7, 31, 0.78) 35%,
      rgba(10, 7, 31, 0.30) 70%,
      rgba(0, 0, 0, 0.0) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 40%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
.team-story__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  max-width: 720px;
  margin-left: max(56px, calc((100vw - var(--max)) / 2 + 56px));
}
.team-story__h {
  margin: 18px 0 24px;
}
.team-story__accent {
  background: linear-gradient(120deg, #ff9d6c 0%, #ff7a86 50%, #c08bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.team-story__sub {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
  margin: 0 0 36px;
}
@media (max-width: 760px) {
  .team-story { padding-left: 28px; padding-right: 28px; }
  .team-story__inner { margin-left: 0; }
}

/* Contact card (dark, form + meta) */
.team-contact {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  padding: 56px 64px;
  border-radius: 28px;
  background: linear-gradient(160deg, #6c5cff 0%, #4f3edc 40%, #2a1b85 100%);
  color: #fff;
  box-shadow: 0 40px 100px -30px rgba(42, 27, 133, 0.4);
}
.team-contact__copy .label { color: rgba(255, 255, 255, 0.65); }
.team-contact__copy .h2 { color: #fff; }
.team-contact__copy .sub { color: rgba(255, 255, 255, 0.82); }
.team-contact__meta { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.team-contact__meta li { display: flex; flex-direction: column; gap: 4px; }
.team-contact__meta-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.55); }
.team-contact__meta a { font-size: 16px; font-weight: 600; color: #fff; }
.team-contact__meta a:hover { color: var(--purple-wash); }

.team-contact__form { display: grid; gap: 14px; }
.team-contact__form label {
  display: grid; gap: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}
.team-contact__form input, .team-contact__form textarea, .team-contact__form select {
  font: inherit; font-family: var(--sans);
  font-size: 15px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.team-contact__form input::placeholder, .team-contact__form textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.team-contact__form input:focus, .team-contact__form textarea:focus, .team-contact__form select:focus {
  border-color: #fff; background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}
.team-contact__form textarea { resize: vertical; min-height: 96px; }
.team-contact__form button {
  margin-top: 6px; justify-self: start;
  background: #fff; color: var(--ink);
}
.team-contact__note {
  font-family: var(--mono); font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  min-height: 18px; letter-spacing: 0.1em;
}

.select-wrap { position: relative; display: block; }
.select-wrap select {
  appearance: none; -webkit-appearance: none;
  width: 100%; padding-right: 44px; cursor: pointer; line-height: 1.2;
}
.select-wrap select option { color: var(--ink); background: #fff; }
.select-caret {
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

@media (max-width: 900px) {
  .team-contact { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
}
