/* ============================================================
   Team / About Us — /team/index.html
   Depends on /css/resource-hub.css for header, footer, reset
   ============================================================ */

/* ── Shared section wrapper ── */
.team-section {
  width: 100%;
  max-width: var(--frame-max);
  margin: 0 auto;
  padding: 96px var(--gutter-x);
  box-sizing: border-box;
}

/* ── Eyebrow label ── */
.team-eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero--about {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  padding: 56px var(--gutter-x) 96px;
  min-height: 460px;
  box-sizing: border-box;
}

.team-hero__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 64px;
  line-height: 76px;
  letter-spacing: -0.04em;
  color: var(--secondary);
  max-width: 900px;
}

/* ══════════════════════════════════════════
   HOW IT STARTED
   ══════════════════════════════════════════ */

.team-started {
  display: flex;
  align-items: stretch;
  gap: 80px;
}

.team-started__card {
  flex: 0 0 500px;  /* fixed width — prevents shrinking that causes h2 overflow */
  background: #e9efec;
  border-radius: 24px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
}

.team-started__card h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.team-started__text {
  flex: 1 1 572px;  /* grow and shrink, basis 572px */
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.team-started__text p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--on-surface);
}

/* ══════════════════════════════════════════
   LEADERSHIP TEAM
   ══════════════════════════════════════════ */
.team-section-heading {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary);
  margin-bottom: 48px;
}

.team-leader {
  display: flex;
  gap: 80px;
  align-items: center;
  margin-bottom: 64px;
}

.team-leader:last-child {
  margin-bottom: 0;
}

.team-leader--reversed {
  flex-direction: row-reverse;
}

.team-leader__image {
  flex: 0 0 500px;
  height: 500px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.team-leader__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-leader__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 48px;
  min-width: 0;
}

.team-leader--reversed .team-leader__text {
  padding-right: 0;
}

.team-leader__name-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-leader__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.team-leader__role {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--on-variant);
}

.team-leader__bio {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-leader__bio p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--on-surface);
}

.team-leader__icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.team-leader__icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* LinkedIn icon: 18×18 with 3px padding all sides */
.team-leader__icons a[href*="linkedin"] {
  padding: 3px;
}

/* Email icon: 20×16 with 4px top/bottom, 2px left/right */
.team-leader__icons a[href^="mailto:"] {
  padding: 4px 2px;
}

.team-leader__icons a:hover { opacity: 1; }

.team-leader__icons img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ══════════════════════════════════════════
   ADVISORS
   ══════════════════════════════════════════ */
.team-section--advisors {
  background: #fff;
}

.team-advisors {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.team-advisor {
  flex: 1 0 calc(50% - 24px);
  min-width: 480px;
  display: flex;
  gap: 24px;
  height: 450px;
  align-items: center;
}

.team-advisor__image {
  flex: 1;
  height: 100%;
  min-height: 280px;  /* prevent collapse when parent height is auto */
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.team-advisor__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-advisor__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 36px;
  height: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.team-advisor__name-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-advisor__name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.team-advisor__role {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-variant);
}

.team-advisor__bio {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
}

/* ══════════════════════════════════════════
   VALUES
   ══════════════════════════════════════════ */
.team-values-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  margin-bottom: 48px;
}

.team-values-header .team-section-heading {
  margin-bottom: 0;
}

.team-values-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
  max-width: 750px;
}

.team-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.team-value-card {
  background: #e9efec;
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.team-value-card__header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.team-value-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Innovation icon is portrait (30×40) with padding to reach the same 48×48 footprint */
.team-value-card__icon--innovation {
  width: 30px;
  height: 40px;
  padding: 4px 9px;
  box-sizing: content-box;
}

.team-value-card h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.04em;
  color: var(--secondary);
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
}

.team-value-card p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-primary-container);
}

/* ══════════════════════════════════════════
   TMIND NAME SECTION
   ══════════════════════════════════════════ */
.team-name-inner {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
}

.team-name-text {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 1;
}

.team-name-text h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.team-name-text p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--on-surface);
}

/* Star button */
.team-star-btn {
  position: relative;
  width: 240px;
  height: 140px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  /* overflow: visible so the star spikes can extend past the button bounds */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.team-star-btn:hover { transform: scale(1.05); }
.team-star-btn:active { transform: scale(0.97); }

/* Star image — absolutely centered at the button's midpoint, free to overflow */
.team-star-btn__bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 286px;   /* Figma spec: star container width */
  height: 151px;  /* Figma spec: star container height */
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
}

.team-star-btn__label {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.team-star-btn__label img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ══════════════════════════════════════════
   TMIND NAME MODAL
   ══════════════════════════════════════════ */

/* Overlay */
.tmind-modal-overlay[hidden] { display: none !important; }

.tmind-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.tmind-modal-overlay.is-open {
  opacity: 1;
}

/* Modal card */
.tmind-modal {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 64px;
  display: flex;
  gap: 80px;
  align-items: stretch;
  max-width: 960px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: visible;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.tmind-modal-overlay.is-open .tmind-modal {
  transform: translateY(0);
}

/* Close button */
.tmind-modal__close {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 16px;
  right: 16px;
  padding: 8px;
  box-sizing: border-box;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

.tmind-modal__close:hover { background: rgba(0, 0, 0, 0.07); }

.tmind-modal__close svg {
  display: block;
  flex-shrink: 0;
}

/* Text column */
.tmind-modal__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.tmind-modal__header {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tmind-modal__eyebrow {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
}

.tmind-modal__title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.tmind-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-surface);
}

.tmind-modal__body em {
  font-style: italic;
}

.tmind-modal__hl {
  font-weight: 600;
  color: var(--primary);
}

/* Image column */
.tmind-modal__image {
  flex: 1;
  height: auto;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  min-width: 0;
}

.tmind-modal__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal responsive */
@media (max-width: 768px) {
  .tmind-modal {
    flex-direction: column;
    padding: 48px 24px 32px;
    gap: 32px;
  }
  .tmind-modal__image {
    height: 240px;
    width: 100%;
  }
  .tmind-modal__title { font-size: 32px; line-height: 40px; }
}

.team-name-reveal h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 36px;
  letter-spacing: -0.04em;
  color: var(--primary);
  animation: fadeSlideUp 0.4s ease both;
}

.team-name-reveal p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-variant);
  animation: fadeSlideUp 0.4s ease 0.08s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   CTA SECTION
   ══════════════════════════════════════════ */
.team-section--cta {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

/* Green radial blob — centered, exact Figma size 382×248 */
.team-section--cta::before {
  content: '';
  position: absolute;
  width: 382px;
  height: 248px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-23.37deg);
  filter: blur(50px);
  background: radial-gradient(ellipse at center, rgba(157, 237, 193, 1) 0%, rgba(143, 231, 182, 0.3) 100%);
  pointer-events: none;
}

/* Yellow linear blob — lower-left, exact Figma size 190×276 */
.team-section--cta::after {
  content: '';
  position: absolute;
  width: 190px;
  height: 276px;
  left: 25%;
  top: 34%;
  transform: rotate(-38.53deg);
  filter: blur(50px);
  background: linear-gradient(175.44deg, rgba(244, 225, 79, 0.3) 12.89%, rgba(229, 253, 106, 0.3) 27.36%);
  pointer-events: none;
}

.team-cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.team-cta-inner h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 56px;
  letter-spacing: -0.02em;
  color: var(--secondary);
  max-width: 700px;
}

.team-cta-inner p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 30px;
  color: var(--on-primary-container);
}

.team-cta-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* CTA section uses larger buttons than the header */
.team-cta-actions .btn-login,
.team-cta-actions .btn-demo-outline {
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  white-space: nowrap;
  height: 56px;
  padding: 14px 32px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.team-cta-actions .btn-login {
  width: 125px;
  min-width: unset;
}

.team-cta-actions .btn-demo-outline {
  width: 178px;
  min-width: 80px;
  border: 1px solid #447569;
  color: #1c4f44;
}

/* Book a Demo in CTA has the outline-primary border (#447569) */
.team-cta-actions .btn-demo-outline {
  border: 1px solid #447569;
  color: #1c4f44;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 1280px) {
  .team-started { gap: 48px; }
  .team-leader { gap: 48px; }
  .team-leader__image { flex: 0 0 400px; height: 400px; }
  .team-leader__text { padding-right: 24px; }
}

@media (max-width: 1100px) {
  .team-hero__title { font-size: 52px; line-height: 64px; }
  .team-started { flex-direction: column; }
  .team-started__card { flex: none; width: 100%; height: auto; padding: 48px; }
  .team-started__text { flex: none; width: 100%; min-width: 0; padding-right: 0; }
  .team-leader { flex-direction: column !important; gap: 40px; }
  .team-leader__image { flex: none; width: 100%; max-width: 500px; height: 440px; }
  .team-leader__text { padding-right: 0 !important; }
  .team-advisors { flex-direction: column; }
  .team-advisor { min-width: 0; height: auto; }
  .team-advisor__image { height: 320px; }
  .team-advisor__text { padding-top: 16px; height: auto; }
  .team-name-inner { flex-direction: column; gap: 40px; text-align: center; }
  .team-name-text { max-width: 100%; align-items: center; }
}

@media (max-width: 768px) {
  .hero--about { min-height: 320px; padding: 48px var(--gutter-x) 72px; }
  .team-hero__title { font-size: 36px; line-height: 48px; }
  .team-section { padding: 64px var(--gutter-x); }
  .team-started__card h2 { font-size: 32px; line-height: 40px; }
  .team-section-heading { font-size: 32px; line-height: 40px; margin-bottom: 32px; }
  .team-leader__name { font-size: 26px; }
  .team-leader__bio p,
  .team-started__text p { font-size: 18px; }
  .team-values-grid { grid-template-columns: 1fr; gap: 24px; }
  .team-value-card { min-height: auto; }
  .team-value-card h3 { font-size: 24px; }
  .team-cta-inner h2 { font-size: 32px; line-height: 40px; }
  .team-name-text h2 { font-size: 32px; line-height: 40px; }
  .team-advisor { flex-direction: column; height: auto; }
  .team-advisor__image { height: 280px; width: 100%; }
  .team-advisor__text { height: auto; }
}

@media (max-width: 480px) {
  .team-hero__title { font-size: 28px; line-height: 38px; }
  .team-cta-actions { flex-direction: column; width: 100%; max-width: 280px; }
  .team-cta-actions .btn-login,
  .team-cta-actions .btn-demo-outline { width: 100%; text-align: center; }
}

/* ── Navbar mobile fixes ── */


/* Hide "Book a Demo" in the header at ≤640px — only Sign Up / Log In remains */
@media (max-width: 640px) {
  .site-header .btn-demo-outline {
    display: none;
  }
}

/* Let nav-actions shrink at ≤480px before the ≤400px resource-hub rule */
@media (max-width: 480px) {
  .site-header .nav-actions {
    flex-shrink: 1;
    min-width: 0;
    gap: 4px;
  }
  .site-header .btn-login {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 0;
  }
}
