/* Team profile pages — complements Tailwind + site brand */
:root {
  --profile-purple: #4e2bcd;
  --profile-purple-dark: #3a23a3;
  --profile-ink: #1c1c28;
  --profile-muted: #555770;
  --profile-cream: #fff8e9;
  --profile-lavender: #e0e7ff;
}

.profile-page {
  font-family: "Gilroy-Regular", system-ui, sans-serif;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 22%, #ffffff 100%);
  color: var(--profile-ink);
}

.profile-hero-gradient {
  background: linear-gradient(135deg, #f5f3ff 0%, #fff8e9 45%, #e8f4ff 100%);
  border-bottom: 1px solid rgba(78, 43, 205, 0.12);
}

.profile-photo-wrap {
  position: relative;
  padding: 6px;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--profile-purple), #7c5ce0, #ffe67d);
  box-shadow: 0 20px 50px rgba(78, 43, 205, 0.18);
}

.profile-photo-wrap img {
  display: block;
  border-radius: 1rem;
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--profile-purple);
  background: rgba(78, 43, 205, 0.08);
  border: 1px solid rgba(78, 43, 205, 0.2);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.profile-stat {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-stat:hover {
  border-color: rgba(78, 43, 205, 0.35);
  box-shadow: 0 8px 24px rgba(78, 43, 205, 0.08);
}

.profile-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--profile-purple);
  line-height: 1.2;
  font-family: "Gilroy-Bold", system-ui, sans-serif;
}

.profile-stat span {
  font-size: 0.8rem;
  color: var(--profile-muted);
}

.profile-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  height: 100%;
}

.profile-card h3 {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--profile-purple);
  margin-bottom: 0.75rem;
}

.profile-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--profile-muted);
  margin-bottom: 0.65rem;
}

.profile-check::before {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 0.35rem;
  background: var(--profile-lavender) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8l3 3 7-7' stroke='%234E2BCD' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.profile-chip {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  background: var(--profile-lavender);
  color: var(--profile-ink);
  border: 1px solid rgba(78, 43, 205, 0.12);
}

.profile-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: var(--profile-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Gilroy-Bold", system-ui, sans-serif;
}

.profile-cta-band {
  background: linear-gradient(110deg, var(--profile-purple) 0%, #6b46e0 55%, #4c1d95 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: 0 24px 48px rgba(78, 43, 205, 0.28);
}

.profile-cta-band h2 {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.profile-cta-band p {
  opacity: 0.92;
  font-size: 0.95rem;
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

.profile-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  background: #ffe67d;
  color: var(--profile-ink);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.profile-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.profile-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

.profile-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  border: 2px solid var(--profile-purple);
  color: var(--profile-purple);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: background 0.15s;
}

.profile-btn-secondary:hover {
  background: rgba(78, 43, 205, 0.06);
}

.profile-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.profile-honest-yes {
  border-left: 4px solid #22c55e;
  padding-left: 1rem;
  background: rgba(34, 197, 94, 0.06);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.profile-honest-no {
  border-left: 4px solid #94a3b8;
  padding-left: 1rem;
  background: #f8fafc;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1rem 1rem 1rem 1.25rem;
}

.profile-footer {
  background: #1e1e1e;
  color: #ccc;
  padding: 2.5rem 1rem 2rem;
  margin-top: 3rem;
}

.profile-breadcrumb {
  font-size: 0.8125rem;
  color: var(--profile-muted);
}

.profile-breadcrumb a {
  color: var(--profile-purple);
  text-decoration: none;
}

.profile-breadcrumb a:hover {
  text-decoration: underline;
}

.profile-header-sticky {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.profile-h1 {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.profile-sub {
  font-size: 1.2rem;
  color: var(--profile-muted);
}

/* —— Layout: optional sticky TOC + main column —— */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 1024px) {
  .profile-layout {
    grid-template-columns: 10.5rem minmax(0, 1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.profile-toc-mobile {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (min-width: 1024px) {
  .profile-toc-mobile {
    display: none;
  }
}

.profile-toc-mobile a {
  flex-shrink: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #e0e0e8;
  background: #fff;
  color: var(--profile-muted);
  text-decoration: none;
  white-space: nowrap;
}

.profile-toc-mobile a:hover {
  border-color: var(--profile-purple);
  color: var(--profile-purple);
}

.profile-toc-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .profile-toc-desktop {
    display: block;
  }
}

.profile-toc {
  position: sticky;
  top: 5.25rem;
  padding-top: 0.25rem;
}

.profile-toc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8888a0;
  margin-bottom: 0.75rem;
}

.profile-toc a {
  display: block;
  font-size: 0.875rem;
  padding: 0.4rem 0;
  color: var(--profile-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.65rem;
  margin-left: -2px;
}

.profile-toc a:hover,
.profile-toc a:focus {
  color: var(--profile-purple);
  border-left-color: var(--profile-purple);
}

.profile-section {
  scroll-margin-top: 5.5rem;
  margin-bottom: 3rem;
}

.profile-section:last-of-type {
  margin-bottom: 0;
}

.profile-section-title {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  color: var(--profile-ink);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.profile-section-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--profile-purple);
  margin-bottom: 0.5rem;
}

.profile-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3a3a48;
  max-width: 48rem;
}

.profile-prose {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--profile-muted);
  max-width: 48rem;
}

.profile-prose p {
  margin-bottom: 1rem;
}

.profile-prose strong {
  color: var(--profile-ink);
}

.profile-meta-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: linear-gradient(180deg, #fff 0%, #fafbff 100%);
  border: 1px solid #e8e8ef;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 640px) {
  .profile-meta-panel {
    grid-template-columns: repeat(4, 1fr);
  }
}

.profile-meta-item dt {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8888a0;
  margin-bottom: 0.25rem;
}

.profile-meta-item dd {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--profile-ink);
  margin: 0;
}

.profile-quote {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem 1.35rem 1.25rem;
  border-radius: 0.75rem;
  background: var(--profile-cream);
  border: 1px solid rgba(78, 43, 205, 0.1);
  border-left: 4px solid var(--profile-purple);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2d2d3a;
  font-style: italic;
}

.profile-quote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 600;
  color: var(--profile-purple);
  letter-spacing: 0.04em;
}

.profile-table-wrap {
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid #e8e8ef;
  margin: 1rem 0 1.5rem;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.profile-table th,
.profile-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ececf2;
}

.profile-table th {
  background: #f8f7fc;
  font-weight: 700;
  color: var(--profile-purple);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.profile-table tr:last-child td {
  border-bottom: none;
}

.profile-table td {
  color: var(--profile-muted);
}

.profile-h3 {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: 1.05rem;
  color: var(--profile-ink);
  margin: 1.75rem 0 0.65rem;
}

.profile-list {
  margin: 0 0 1rem 1.15rem;
  color: var(--profile-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.profile-list li {
  margin-bottom: 0.45rem;
}

.profile-callout {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: #166534;
  margin-top: 1.25rem;
}

.profile-faq details {
  border: 1px solid #e8e8ef;
  border-radius: 0.65rem;
  margin-bottom: 0.65rem;
  background: #fff;
  overflow: hidden;
}

.profile-faq summary {
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--profile-ink);
  cursor: pointer;
  list-style: none;
}

.profile-faq summary::-webkit-details-marker {
  display: none;
}

.profile-faq details[open] summary {
  border-bottom: 1px solid #ececf2;
  color: var(--profile-purple);
}

.profile-faq details p {
  padding: 0.85rem 1rem 1rem;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--profile-muted);
}

.profile-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .profile-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.profile-mini-card {
  background: #fff;
  border: 1px solid #e8e8ef;
  border-radius: 0.75rem;
  padding: 1.15rem 1.25rem;
}

.profile-mini-card h4 {
  font-family: "Gilroy-Bold", system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--profile-purple);
  margin: 0 0 0.5rem;
}

.profile-mini-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--profile-muted);
}
