/* --------------------------------------------------------------------------
   Employee profile — biotech / scientific theme
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --teal-400: #6fe7dd;
  --teal-500: #4dd4c8;
  --teal-600: #3aa6b9;
  --cyan-deep: #0a1f28;
  --ink: #061016;
  --text-primary: #f2fafb;
  --text-muted: #b8d9df;
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-surface: rgba(255, 255, 255, 0.06);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 28px 64px rgba(0, 0, 0, 0.55);
  --radius-card: 28px;
  --radius-photo: 20px;
  --radius-pill: 999px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Background: video + scrim + ambient glow */
.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      165deg,
      rgba(6, 16, 22, 0.82) 0%,
      rgba(10, 31, 40, 0.72) 45%,
      rgba(6, 20, 28, 0.88) 100%
    ),
    radial-gradient(
      ellipse 120% 80% at 50% 0%,
      rgba(63, 180, 170, 0.12),
      transparent 55%
    );
}

.bg-glow {
  position: absolute;
  width: min(520px, 90vw);
  height: min(520px, 90vw);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.bg-glow--tl {
  top: -12%;
  left: -8%;
  background: radial-gradient(
    circle,
    rgba(111, 231, 221, 0.35) 0%,
    transparent 70%
  );
}

.bg-glow--br {
  bottom: -18%;
  right: -10%;
  background: radial-gradient(
    circle,
    rgba(58, 166, 185, 0.28) 0%,
    transparent 70%
  );
}

/* Main column: 70% desktop, 90% mobile */
.page {
  position: relative;
  z-index: 1;
  width: 70%;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1rem, 3vw, 1.5rem)
    clamp(2rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top: logo + actions */
.top-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.logo {
  width: clamp(72px, 14vw, 112px);
  height: auto;
  object-fit: contain;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 100%);
  box-shadow: 0 4px 20px rgba(111, 231, 221, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(111, 231, 221, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

.btn--secondary {
  color: var(--text-primary);
  background: var(--glass-surface);
  border-color: var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.btn--secondary:focus-visible {
  outline: 2px solid rgba(111, 231, 221, 0.6);
  outline-offset: 3px;
}

/* Profile card */
.profile-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius-card);

  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);

  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);

  transition: transform 0.35s ease, box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.profile-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(111, 231, 221, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.profile-media {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-photo-frame {
  border-radius: var(--radius-photo);
  padding: 3px;
  background: linear-gradient(
    145deg,
    rgba(111, 231, 221, 0.45),
    rgba(255, 255, 255, 0.12)
  );
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.profile-photo-frame img {
  display: block;
  width: clamp(160px, 22vw, 228px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius-photo) - 3px);
}

.profile-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--text-primary);
}

.profile-name {
  font-size: clamp(1.65rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.profile-role {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  font-weight: 600;
  color: var(--teal-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.divider {
  width: 100%;
  max-width: 200px;
  height: 1px;
  margin: clamp(0.85rem, 2vw, 1.15rem) 0 clamp(0.85rem, 2vw, 1.15rem);
  background: linear-gradient(
    90deg,
    rgba(111, 231, 221, 0.45),
    rgba(255, 255, 255, 0.12) 60%,
    transparent
  );
  border: 0;
}

.profile-section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 250, 251, 0.75);
  margin-bottom: 0.5rem;
}

.profile-about {
  font-size: clamp(0.9375rem, 1.35vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
}

.contact-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-top: clamp(1.1rem, 2.5vw, 1.5rem);
}

.contact-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.contact-icon i {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.25s ease;
}

.contact-icon:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(63, 180, 170, 0.35);
}

.contact-icon:hover i {
  color: var(--ink);
}

.contact-icon:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

/* Mobile: stack, center */
@media (max-width: 768px) {
  .page {
    width: 90%;
    max-width: 100%;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: clamp(1.35rem, 5vw, 1.75rem);
  }

  .profile-body {
    align-items: center;
    text-align: center;
  }

  .divider {
    margin-left: auto;
    margin-right: auto;
    max-width: 160px;
  }

  .profile-about {
    max-width: none;
  }

  .contact-icons {
    justify-content: center;
  }

  .top-actions {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .top-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-card,
  .btn,
  .contact-icon {
    transition: none;
  }

  .profile-card:hover,
  .btn--primary:hover,
  .btn--secondary:hover,
  .contact-icon:hover {
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Shared utilities
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn--sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   Our Team directory (index.html)
   -------------------------------------------------------------------------- */

.page-team {
  min-height: 100vh;
}

/* —— Nav —— */
.team-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(6, 16, 22, 0.78) 0%,
    rgba(6, 16, 22, 0.55) 100%
  );
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
}

.team-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem clamp(1rem, 3vw, 1.5rem);
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.team-nav__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.team-nav__brand img {
  height: clamp(36px, 8vw, 44px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.team-nav__search-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  justify-self: center;
}

.team-nav__search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(111, 231, 221, 0.65);
  font-size: 0.85rem;
  pointer-events: none;
}

.team-nav__search {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

.team-nav__search::placeholder {
  color: rgba(184, 217, 223, 0.55);
}

.team-nav__search:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.team-nav__search:focus {
  border-color: rgba(111, 231, 221, 0.45);
  box-shadow: 0 0 0 3px rgba(111, 231, 221, 0.15);
}

.team-nav__cta {
  justify-self: end;
  white-space: nowrap;
}

/* —— Main —— */
.team-main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem)
    clamp(2.5rem, 5vw, 3.5rem);
}

.team-hero {
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.team-hero__title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.team-hero__subtitle {
  max-width: 36rem;
  margin: 0 auto;
  font-size: clamp(0.95rem, 2vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.55;
}

.team-hero__rule {
  width: min(200px, 50%);
  height: 3px;
  margin: clamp(1rem, 2.5vw, 1.35rem) auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(111, 231, 221, 0.75),
    transparent
  );
  opacity: 0.85;
}

.team-empty {
  text-align: center;
  padding: 1rem 1rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.team-status {
  text-align: center;
  color: rgba(242, 250, 251, 0.9);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

/* —— Grid —— */
.team-grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.35rem);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1099px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* —— Card —— */
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.25rem, 3vw, 1.6rem) clamp(1rem, 2.5vw, 1.25rem)
    clamp(1.15rem, 2.5vw, 1.35rem);
  border-radius: 22px;
  cursor: pointer;

  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);

  transition: transform 0.3s ease, box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift), 0 0 32px rgba(63, 180, 170, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  border-color: rgba(111, 231, 221, 0.22);
}

.team-card:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

.team-card--hidden {
  display: none !important;
}

.team-card__avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 3px;
  margin-bottom: 0.85rem;
  background: linear-gradient(
    145deg,
    rgba(111, 231, 221, 0.5),
    rgba(255, 255, 255, 0.12)
  );
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.team-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.team-card__name {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.team-card__role {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-400);
  line-height: 1.35;
  margin-bottom: 0.85rem;
}

.team-card__icons {
  display: flex;
  gap: 0.55rem;
  margin-bottom: auto;
  padding-bottom: 0.85rem;
}

.team-card__social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, background 0.22s ease,
    border-color 0.22s ease, box-shadow 0.22s ease;
}

.team-card__social i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.22s ease;
}

.team-card__social:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 6px 18px rgba(63, 180, 170, 0.35);
}

.team-card__social:hover i {
  color: var(--ink);
}

.team-card__social:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

.team-card__cta {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(242, 250, 251, 0.92);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: color 0.2s ease, border-color 0.2s ease,
    background 0.2s ease, transform 0.2s ease;
}

.team-card__cta:hover {
  color: var(--teal-400);
  border-color: rgba(111, 231, 221, 0.35);
  background: rgba(111, 231, 221, 0.08);
  transform: translateX(2px);
}

.team-card__cta:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

/* —— Pagination —— */
.team-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.team-pager--hidden {
  display: none !important;
}

.team-pager__btn {
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.team-pager__btn:hover:not(:disabled) {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.team-pager__btn:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 2px;
}

.team-pager__btn.is-active {
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 16px rgba(111, 231, 221, 0.3);
}

.team-pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.team-pager__btn--nav {
  min-width: auto;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
}

/* —— Profile placeholder —— */
.team-placeholder {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.team-placeholder__card {
  width: min(100%, 420px);
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.25rem);
  border-radius: var(--radius-card);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.04) 100%
  );
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-soft);
}

.team-placeholder__title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.team-placeholder__text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.35rem;
}

.team-placeholder__card .btn {
  display: inline-flex;
}

@media (max-width: 900px) {
  .team-nav__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }

  .team-nav__brand {
    justify-self: center;
  }

  .team-nav__search-wrap {
    max-width: none;
    order: 2;
  }

  .team-nav__brand {
    order: 1;
  }

  .team-nav__cta {
    order: 3;
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card__social,
  .team-card__cta,
  .team-pager__btn {
    transition: none;
  }

  .team-card:hover,
  .team-card__social:hover,
  .team-card__cta:hover {
    transform: none;
  }
}
