/* Team member profile pages — BlueSoft sleek (not YB clone) */
.team-profile-page {
  --team-accent: var(--yb-cyan);
  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: 22px;
  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 (service-page energy: navy + mesh + logo) —— */
.team-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: var(--grad-navy);
}

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

.team-hero .hero-logo-overlay {
  z-index: 0;
  opacity: 0.35;
}

.team-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.team-hero-copy {
  min-width: 0;
}

.team-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--team-accent);
  margin: 0 0 14px;
}

.team-hero-eyebrow::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.team-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 10px;
}

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

.team-hero-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.65;
  color: var(--fg2-on-dark);
  max-width: 38ch;
  margin: 0 0 26px;
}

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

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

.team-hero-actions .btn-hero-primary {
  background: #fff !important;
  color: var(--yb-blue) !important;
  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);
}

/* Photo as visual plane (not YB bordered square card) */
.team-hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}

.team-hero-orbit {
  position: absolute;
  inset: -12% -8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  animation: team-orbit-spin 48s linear infinite;
}

.team-hero-orbit::before,
.team-hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(43, 196, 240, 0.28);
}

.team-hero-orbit::before {
  inset: 8%;
}

.team-hero-orbit::after {
  inset: 18%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.08);
}

@keyframes team-orbit-spin {
  to {
    transform: rotate(360deg);
  }
}

.team-hero-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  background: #0a1628;
}

.team-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* —— Body: intro + sticky proof layout —— */
.team-body {
  padding: clamp(4rem, 8vw, 6.25rem) 0;
}

.team-body--soft {
  background: var(--bg-soft);
}

.team-layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: start;
}

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

.team-sticky-label {
  margin: 0 0 28px;
}

.team-sticky-label .eyebrow {
  color: var(--team-accent);
  margin-bottom: 8px;
}

.team-sticky-label h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0;
  max-width: 12ch;
}

.team-prose {
  font-size: 16.5px;
  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: clamp(1.35rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 2.2em 0 0.85em;
}

.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-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: 28px;
  box-shadow: var(--sh-md);
  width: 100%;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.team-aside-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}

.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;
}

/* Schedule card (contact-page language, not Calendly UI clone) */
.team-aside-calendly {
  border-top: 3px solid var(--team-accent);
}

.team-calendly-intro {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  text-align: left;
}

.team-calendly-avatar {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  flex: none;
  background: var(--bg-soft);
}

.team-calendly-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-calendly-avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand);
  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: 2px;
}

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

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

.team-calendly-desc {
  font-size: 14px;
  color: var(--fg2);
  margin: 0 0 16px;
  line-height: 1.55;
}

.team-calendly-btn {
  width: 100%;
  justify-content: center;
}

.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: 12px;
}

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

.team-form-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.team-form-field input,
.team-form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

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

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

.team-form-captcha-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-form-captcha-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: #fff;
}

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

.team-form-submit {
  width: 100%;
  justify-content: center;
}

.team-contact-section {
  background: var(--bg-soft);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

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

.team-contact-intro h2 {
  margin: 12px 0 12px;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.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, 1fr) minmax(0, 1fr);
  gap: 28px;
  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 */
.team-faq {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.team-faq-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
}

.team-faq-item:first-child {
  border-top: 1px solid var(--line);
}

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

.team-faq-q:hover {
  color: var(--yb-blue);
}

.team-faq-a {
  display: none;
  padding: 0 4px 20px;
  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(--team-accent);
}

/* Process steps — cap-row language */
.team-steps {
  display: grid;
  gap: 0;
  margin-top: 8px;
}

.team-step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: transparent;
  box-shadow: none;
  transition: background 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.team-step:last-child {
  border-bottom: none;
}

.team-step:hover {
  background: var(--bg-soft);
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 var(--team-accent);
}

.team-step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--team-accent);
  background: color-mix(in srgb, var(--team-accent) 14%, #fff);
  margin: 0;
}

.team-step h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  margin: 2px 0 8px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

/* Focus areas — text rows, not pill clusters */
.team-focus-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.team-focus-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.team-focus-list li:last-child {
  border-bottom: none;
}

.team-focus-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--team-accent);
  flex: none;
  margin-top: 0.35em;
}

.team-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 8px;
}

.team-chip {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

.team-chip:nth-child(odd) {
  padding-right: 16px;
}

.team-chip:nth-child(even) {
  padding-left: 16px;
}

/* Skill rows (Kirsten) */
.team-skill-grid {
  display: grid;
  gap: 0;
  margin-top: 8px;
  grid-template-columns: 1fr;
}

.team-skill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}

.team-skill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--team-accent) 70%, #fff);
  flex: none;
}

/* Pull quote — proof-card energy */
.team-pull-quote {
  margin: 36px 0;
  padding: 28px 28px 28px 32px;
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--team-accent);
  box-shadow: var(--sh-md);
}

.team-pull-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Feature band (Kayelyn) */
.team-social-band {
  margin-top: 36px;
  padding: clamp(2.5rem, 5vw, 3.25rem);
  border-radius: var(--r-xl);
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
  text-align: left;
  color: #fff;
}

.team-social-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grad-mesh);
  opacity: 0.5;
  pointer-events: none;
}

.team-social-band > * {
  position: relative;
}

.team-social-band h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.02em;
  color: #fff;
}

.team-social-band p {
  margin: 0;
  color: var(--fg2-on-dark);
  max-width: 42ch;
  line-height: 1.65;
}

.team-social-band .btn {
  margin-top: 22px;
}

/* Themes — accent only (heroes stay navy) */
.team-kevin {
  --team-accent: var(--yb-cyan);
}

.team-jacob {
  --team-accent: #5eb8ff;
}

.team-sophie {
  --team-accent: #8ec5ff;
}

.team-kayelyn {
  --team-accent: var(--yb-cyan);
}

.team-kirsten {
  --team-accent: #9bb8ff;
}

/* Mega CTA (matches service pages) */
.team-cta-strip {
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  text-align: center;
}

.team-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grad-mesh);
  opacity: 0.65;
  pointer-events: none;
}

.team-cta-strip .container {
  position: relative;
}

.team-cta-strip .eyebrow {
  color: var(--yb-cyan);
}

.team-cta-strip h2 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 12px 0 16px;
}

.team-cta-strip p {
  color: var(--fg2-on-dark);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.6;
}

.team-cta-strip .team-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.team-cta-strip .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-cta-strip .btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

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

.team-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
}

.team-back-link:hover {
  color: #fff;
}

/* Reveal (shared with service sleek) */
.team-profile-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-profile-page .reveal.is-in {
  opacity: 1;
  transform: none;
}

.team-profile-page .reveal-delay-1 {
  transition-delay: 0.08s;
}

.team-profile-page .reveal-delay-2 {
  transition-delay: 0.16s;
}

@media (max-width: 960px) {
  .team-hero {
    padding: 80px 0 64px;
  }

  .team-hero-grid,
  .team-layout-split,
  .team-contact-grid {
    grid-template-columns: 1fr;
  }

  .team-hero-visual {
    justify-self: center;
    width: min(100%, 300px);
    order: -1;
  }

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

  .team-aside-card:hover {
    transform: none;
  }

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

  .team-step:hover {
    transform: none;
  }

  .team-sticky-label h2 {
    max-width: 16ch;
  }
}

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

  .team-chip:nth-child(odd),
  .team-chip:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
  }

  .team-hero-orbit {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero-orbit {
    animation: none;
  }

  .team-profile-page .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .team-aside-card,
  .team-step {
    transition: none;
  }
}
