/* Team member profile pages */
.team-profile-page {
  padding-bottom: 0;
}

.team-profile-page .header {
  background: rgba(255, 255, 255, 0.96);
}

.team-profile-page .team-hero {
  z-index: 1;
}

.team-breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.team-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.team-breadcrumb a:hover {
  color: #fff;
}

.team-breadcrumb span {
  opacity: 0.45;
}

/* Hero variants */
.team-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

.team-hero-mesh {
  position: absolute;
  inset: 0;
  background-image: var(--grad-mesh);
  opacity: 0.55;
  pointer-events: none;
}

.team-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: center;
}

.team-hero-photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--sh-lg);
  aspect-ratio: 1;
}

.team-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(0.15);
}

.team-hero-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.08;
  color: #fff;
  margin: 0 0 8px;
}

.team-hero-role {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.92);
}

.team-hero-lead {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg2-on-dark);
  max-width: 560px;
  margin: 0 0 24px;
}

.team-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.team-hero-actions .btn {
  font-size: 14px;
  padding: 12px 20px;
}

.team-hero-actions .btn-hero-primary {
  background: #fff;
  color: var(--yb-blue);
  box-shadow: var(--sh-md);
}

.team-hero-actions .btn-hero-primary:hover {
  filter: brightness(0.98);
  transform: translateY(-2px);
}

.team-hero-actions .btn-hero-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
}

.team-hero-actions .btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.team-body {
  padding: 72px 0 88px;
}

.team-prose {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg2);
}

.team-prose p {
  margin: 0 0 1.15em;
}

.team-prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 2em 0 0.75em;
}

.team-prose h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 1.5em 0 0.5em;
}

.team-prose strong {
  color: var(--ink);
  font-weight: 700;
}

.team-layout-split {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 40px;
  align-items: start;
}

.team-prose,
.team-aside-stack {
  min-width: 0;
  width: 100%;
}

.team-aside-stack {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 96px;
}

.team-aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--sh-sm);
  width: 100%;
}

.team-aside-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 12px;
  color: var(--ink);
}

.team-aside-info-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fg2);
  margin: 0 0 16px;
}

.team-aside-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--fg2);
  margin: 0;
  padding: 0;
}

.team-aside-list li::before {
  content: '✓ ';
  color: var(--yb-blue);
  font-weight: 700;
}

.team-aside-info h3 + h3 {
  margin-top: 20px;
}

/* Calendly booking card */
.team-calendly-intro {
  text-align: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.team-calendly-avatar {
  width: 52px;
  height: 52px;
  background: var(--grad-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
}

.team-calendly-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg3);
  margin-bottom: 4px;
}

.team-calendly-title {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 6px;
}

.team-calendly-duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--fg3);
}

.team-calendly-desc {
  font-size: 13px;
  color: var(--fg2);
  margin: 10px 0 0;
  line-height: 1.5;
}

.team-calendly-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}

.team-calendly-note {
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: 10px 14px;
  text-align: center;
  font-size: 11.5px;
  color: var(--yb-blue);
  margin: 0;
  line-height: 1.45;
}

/* Contact form */
.team-form-lead {
  font-size: 14px;
  color: var(--fg2);
  line-height: 1.6;
  margin: 0 0 18px;
}

.team-form {
  display: grid;
  gap: 14px;
}

.team-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.team-form-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--fg2);
  margin-bottom: 6px;
}

.team-form-field input,
.team-form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
}

.team-form-field textarea {
  min-height: 100px;
  resize: vertical;
}

.team-form-captcha {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-form-captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg2);
}

.team-form-captcha-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--line-strong);
  border-radius: 4px;
  flex: none;
  display: inline-block;
}

.team-form-captcha-brand {
  text-align: right;
  font-size: 10px;
  color: var(--fg3);
  line-height: 1.35;
}

.team-form-captcha-brand span {
  font-size: 9px;
}

.team-form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 15px;
}

/* Full-width contact band (Sophie, Kayelyn) */
.team-contact-section {
  background: var(--bg-soft);
  padding: 72px 0;
}

.team-contact-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.team-contact-intro h2 {
  margin: 14px 0 12px;
}

.team-contact-intro p {
  color: var(--fg2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}

.team-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: 40px;
  max-width: none;
  margin: 0;
}

.team-contact-grid > * {
  min-width: 0;
  width: 100%;
}

.team-aside-form .yb-hs-form {
  min-height: 320px;
  width: 100%;
}

.team-aside-form .hs-form-frame {
  width: 100%;
  max-width: none;
}

.team-aside-form .yb-hs-form-footnote {
  font-size: 12.5px;
  color: var(--fg3);
  text-align: center;
  margin: 16px 0 0;
  line-height: 1.5;
}

/* FAQ accordion (Kevin) */
.team-faq {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.team-faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.team-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

.team-faq-a {
  display: none;
  padding: 0 22px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg2);
}

.team-faq-item.open .team-faq-a {
  display: block;
}

.team-faq-item.open .team-faq-chevron {
  transform: rotate(180deg);
}

.team-faq-chevron {
  transition: transform 0.2s ease;
  flex: none;
  color: var(--yb-blue);
}

/* Testimonials (Jacob) */
.team-quote-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.team-quote {
  background: var(--bg-soft);
  border-left: 4px solid var(--yb-coral);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 22px 24px;
}

.team-quote p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--fg2);
  font-style: italic;
}

.team-quote cite {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  font-style: normal;
}

/* Process steps */
.team-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.team-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-sm);
}

.team-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
}

.team-step h3 {
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.team-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg2);
}

/* Chips */
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--fg1);
}

/* Tag grid (Kirsten) */
.team-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.team-skill {
  background: var(--wash-violet);
  color: var(--yb-violet);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* Pull quote (Sophie) */
.team-pull-quote {
  margin: 36px 0;
  padding: 32px 36px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--wash-coral) 0%, var(--wash-pink) 100%);
  border: 1px solid rgba(255, 107, 87, 0.2);
}

.team-pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

/* Interest pills (Jacob) */
.team-interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.team-interest {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 13px;
  background: var(--wash-coral);
  color: var(--yb-coral);
}

/* Social highlight (Kayelyn) */
.team-social-band {
  background: linear-gradient(135deg, var(--wash-amber) 0%, var(--wash-mint) 100%);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-top: 28px;
  text-align: center;
}

.team-social-band h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--ink);
}

.team-social-band p {
  margin: 0;
  color: var(--fg2);
  max-width: 480px;
  margin-inline: auto;
}

/* Theme accents */
.team-kevin .team-hero {
  background: var(--grad-navy);
}

.team-kevin .team-hero-eyebrow {
  color: var(--yb-cyan);
}

.team-kevin .team-hero-role {
  color: var(--yb-cyan);
}

.team-jacob .team-hero {
  background: linear-gradient(135deg, #1b2a4a 0%, #3f6fd6 55%, #2bc4f0 100%);
}

.team-jacob .team-hero-eyebrow {
  color: #ffe8e4;
}

.team-jacob .team-step-num {
  background: var(--yb-coral);
}

.team-sophie .team-hero {
  background: linear-gradient(135deg, #7b5be6 0%, #3f6fd6 100%);
}

.team-sophie .team-hero-eyebrow {
  color: var(--wash-pink);
}

.team-kayelyn .team-hero {
  background: linear-gradient(135deg, #c77f12 0%, #ff6b57 100%);
}

.team-kayelyn .team-hero-eyebrow {
  color: #fff8e8;
}

.team-kirsten .team-hero {
  background: linear-gradient(135deg, #1b2a4a 0%, #7b5be6 100%);
}

.team-kirsten .team-hero-eyebrow {
  color: var(--yb-cyan);
}

.team-kirsten .team-skill {
  background: var(--wash-blue);
  color: var(--yb-blue);
}

.team-cta-strip {
  background: var(--bg-soft);
  padding: 64px 0;
  text-align: center;
}

.team-cta-strip h2 {
  margin: 12px 0 14px;
}

.team-cta-strip p {
  color: var(--fg2);
  max-width: 520px;
  margin: 0 auto 24px;
}

.team-back-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.team-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yb-blue);
}

@media (max-width: 960px) {
  .team-hero-grid,
  .team-layout-split {
    grid-template-columns: 1fr;
  }

  .team-hero-photo {
    max-width: 280px;
    margin: 0 auto;
  }

  .team-aside-stack,
  .team-aside-card {
    position: static;
  }

  .team-form-row,
  .team-contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .team-skill-grid {
    grid-template-columns: 1fr;
  }
}
