/* ── Our Team Page ────────────────────────────────────────────────────────────
   Uses the site's existing design tokens:
   --text:#20242d  --gold:#c9a84c  --gold-dark:#b0872c  --muted:#606775
   Red accent: #c74242
   Fonts: Cormorant Garamond + DM Sans
   ─────────────────────────────────────────────────────────────────────────── */

/* Hero uses the site's standard .hero.hero-breadcrumb component (see
   styles.css) with no overrides here, so its font, weight, and layout match
   every other page (Corporate Offsites, CXO Retreats, Private Journey, etc.)
   exactly. */

/* ── INTRO (full-bleed band, wide two-column) ────────────────────────────── */
.team-intro-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 64px;
}

.team-intro-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.team-intro-left {
  position: relative;
}

.team-intro-mark {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px;
  line-height: 0.6;
  color: var(--gold);
  opacity: 0.16;
  margin-top: 18px;
}

/* ── SECTION HEAD (before team cards) ────────────────────────────────────── */
.team-section-head {
  max-width: 1320px;
  margin: 0 auto;
  padding: 96px 48px 0;
  text-align: center;
}

.team-section-head .section-eyebrow {
  justify-content: center;
}

.team-section-head .section-sub {
  max-width: none;
  margin: 18px auto 0;
  text-align: center;
  font-size: clamp(17px, 1.9vw, 20px);
}

/* ── TEAM CARDS (modern grid) ─────────────────────────────────────────────── */
.team-cards-outer {
  padding: 72px 48px 120px;
}

.team-cards-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}

.team-card {
  position: relative;
  text-align: left;
  transition: opacity .6s ease, transform .35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}

.team-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(14,22,40,0.08);
  transition: box-shadow .35s ease;
}

.team-card:hover .team-card-photo {
  box-shadow: 0 22px 44px rgba(14,22,40,0.18);
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.team-card:hover .team-card-photo img {
  transform: scale(1.07);
}

.team-card-initials {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: #1b1c20;
}

/* Contact overlay — revealed on hover/focus of the photo. pointer-events is
   off by default so this invisible layer never blocks clicks on the image
   itself; it only becomes interactive once it's actually visible. */
.team-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(180deg, rgba(16,11,11,0.55) 0%, rgba(16,11,11,0.88) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}

.team-card-photo:hover .team-card-overlay,
.team-card-photo:focus-within .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.team-card-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.team-card-contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.team-card-contact-list svg {
  width: 16px;
  height: 16px;
  fill: var(--gold2);
  flex-shrink: 0;
}

.team-card-contact-list a {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
  text-align: left;
  transition: color .2s ease;
}

.team-card-contact-list a:hover {
  color: var(--gold2);
  text-decoration: underline;
}

.team-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  transition: background .2s ease, transform .2s ease;
}

.team-social-btn svg {
  width: 17px;
  height: 17px;
  fill: var(--text);
  transition: fill .2s ease;
}

.team-social-btn:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.team-social-btn:hover svg {
  fill: #1b1c20;
}

.team-card-body {
  padding: 20px 4px 0;
}

.team-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.team-card-role {
  margin-bottom: 12px;
}

.team-card-role span {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 999px;
  padding: 5px 14px;
}

.team-card-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* ── FOUNDER SPOTLIGHT ────────────────────────────────────────────────────── */
.founder-spotlight {
  position: relative;
  max-width: 1280px;
  margin: 56px 48px 96px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  align-items: stretch;
  background: linear-gradient(120deg, #0f1117 0%, #1c1610 45%, #2c1f12 100%);
  color: #f7f7f7;
  box-shadow: 0 24px 60px rgba(14,22,40,0.18);
  transition: transform .45s ease, box-shadow .45s ease;
}

.founder-spotlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 76px rgba(14,22,40,0.28);
}

@media (min-width: 640px) {
  .founder-spotlight { margin-left: auto; margin-right: auto; }
}

.founder-spotlight-photo {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
}

.founder-spotlight-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), filter .5s ease;
}

.founder-spotlight:hover .founder-spotlight-photo img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.founder-spotlight-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,17,23,0.05) 0%, rgba(15,17,23,0) 40%);
}

@media (max-width: 860px) {
  .founder-spotlight-photo::after {
    background: linear-gradient(0deg, rgba(15,17,23,0.55) 0%, rgba(15,17,23,0) 35%);
  }
}

.founder-spotlight-photo .team-card-initials {
  position: relative;
  font-size: 72px;
}

.founder-spotlight-inner {
  position: relative;
  z-index: 1;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.founder-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: #f2d179;
  margin-bottom: 20px;
}

.founder-kicker::before {
  content: '';
  width: 22px;
  height: 1.5px;
  background: #f2d179;
}

.founder-spotlight::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(201,168,76,0.4), rgba(201,168,76,0));
  filter: blur(2px);
  pointer-events: none;
  animation: founderOrbFloat 7s ease-in-out infinite;
}

@keyframes founderOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-14px, -18px) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .founder-spotlight::after { animation: none; }
}

.founder-quote-icon {
  display: block;
  color: var(--gold);
  opacity: 0;
  font-size: 60px;
  line-height: 1;
}

.founder-spotlight.visible .founder-quote-icon {
  animation: founderQuoteIn .7s .2s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes founderQuoteIn {
  from { opacity: 0; transform: scale(.6) translateY(6px); }
  to   { opacity: 0.7; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .founder-quote-icon { opacity: 0.7; animation: none; }
}

.founder-quote {
  max-width: 640px;
  margin: 4px 0 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.5;
  color: #fdfaf3;
}

.founder-divider {
  width: 46px;
  height: 2px;
  margin: 30px 0 24px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.founder-person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.founder-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.founder-role {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.founder-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── TRUST (full-bleed band, wide two-column) ────────────────────────────── */
.team-trust-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 100px 64px;
}

.team-trust-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.team-trust-right .callout {
  margin-top: 22px;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .team-intro-wrap,
  .team-trust-wrap { grid-template-columns: 1fr; gap: 32px; }
  .team-intro-mark { display: none; }
  .founder-spotlight { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 860px) {
  .founder-spotlight { grid-template-columns: 1fr; }
  .founder-spotlight-photo { min-height: 280px; }
  .founder-spotlight-inner { padding: 48px 36px; text-align: center; align-items: center; }
  .founder-quote { margin-left: auto; margin-right: auto; }
  .founder-divider { margin-left: auto; margin-right: auto; }
  .founder-person { flex-direction: column; justify-content: center; align-items: center; }
}

@media (max-width: 720px) {
  .team-intro-section,
  .team-trust-section { padding: 72px 24px; }
  .team-cards-outer { padding: 56px 20px 90px; }
}

@media (max-width: 620px) {
  .team-hero-inner { padding: 70px 22px; }
  .team-section-head { padding: 72px 22px 0; }
  .founder-spotlight { margin-left: 16px; margin-right: 16px; }
  .founder-spotlight-inner { padding: 40px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .team-hero-scroll svg { animation: none; }
  .team-card, .founder-spotlight.reveal-section { transition-duration: .01ms !important; }
}
