/* ========================================
   MEET RHYTHM — Page-Specific Styles
   ======================================== */

/* --- HERO VARIANT --- */
.hero--meet {
  min-height: 80vh;
  min-height: 80dvh;
}

.hero-video-placeholder--meet {
  background: linear-gradient(160deg, #0f0f0f 0%, #0A0A0A 30%, #161616 60%, #0A0A0A 100%);
}

.hero-video-placeholder--meet::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 70%, rgba(243, 187, 67, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(243, 187, 67, 0.03) 0%, transparent 50%);
}

/* When team photo is ready */
.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) brightness(0.35) blur(3px);
  transform: scale(1.05);
}


/* ========================================
   PHILOSOPHY
   ======================================== */
.philosophy {
  padding: var(--section-pad-mobile) 0;
  background-color: var(--black);
}

.philosophy-inner {
  max-width: 720px;
}

.philosophy-inner h2 {
  margin-bottom: 20px;
}

.philosophy-divider {
  width: 48px;
  height: 2px;
  background-color: var(--gold);
  margin-bottom: 28px;
}

.philosophy-inner p {
  margin-bottom: 16px;
}

.philosophy-closer {
  color: var(--gold) !important;
  font-weight: 600;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.125rem !important;
  margin-top: 24px;
}


/* ========================================
   TEAM CARD GRID
   ======================================== */
.team {
  padding: var(--section-pad-mobile) 0;
  background-color: var(--dark);
}

.team-header {
  text-align: center;
  margin-bottom: 56px;
}

.team-header h2 {
  margin-bottom: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.team-card {
  grid-column: span 2;
}

.team-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.team-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.team-card {
  cursor: pointer;
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--gray-dark);
  border-radius: 8px;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  border-color: rgba(243, 187, 67, 0.25);
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(243, 187, 67, 0.05) 0%, rgba(243, 187, 67, 0.02) 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 40px rgba(243, 187, 67, 0.04);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-card-photo {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.team-card-photo img {
  width: 100%;
  max-width: 180px;
  height: 220px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--gray-dark);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .team-card-photo img {
  border-color: rgba(243, 187, 67, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(243, 187, 67, 0.06);
}

.team-card-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.team-card-role {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-card::after {
  content: 'View Bio \2192';
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.team-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}


/* ========================================
   CENTERED BIO MODAL
   ======================================== */
.bio-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.bio-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.bio-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 24px)) scale(0.92);
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.6),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(243, 187, 67, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bio-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.bio-panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bio-panel-close:hover {
  background: rgba(243, 187, 67, 0.1);
  border-color: rgba(243, 187, 67, 0.4);
  color: var(--gold);
}

.bio-panel-body {
  padding: 48px 40px;
}

@media (min-width: 768px) {
  .panel-bio-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 32px;
  }

  .panel-bio-header .panel-photo {
    margin-bottom: 0;
  }

  .panel-bio-header .panel-header-text .panel-divider {
    margin-bottom: 0;
  }
}

/* Panel bio content styles */
.panel-photo {
  width: 100%;
  max-width: 220px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(243, 187, 67, 0.2);
  border-radius: 6px;
  box-shadow: 0 0 24px rgba(243, 187, 67, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  margin-bottom: 32px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bio-panel.open .panel-photo {
  border-color: rgba(243, 187, 67, 0.35);
  box-shadow: 0 0 32px rgba(243, 187, 67, 0.12), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.panel-name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 12px;
}

.panel-divider {
  width: 0;
  height: 2px;
  background-color: var(--gold);
  margin-bottom: 24px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.bio-panel.open .panel-divider {
  width: 48px;
}

.panel-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(243, 187, 67, 0.3);
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.panel-badge:hover {
  background: rgba(243, 187, 67, 0.1);
  border-color: var(--gold);
}

.panel-bio-content p {
  margin-bottom: 16px;
}

.bio-quote {
  margin-top: 24px;
  padding: 20px 24px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gold);
  line-height: 1.6;
  background-color: rgba(243, 187, 67, 0.04);
}

/* Body scroll lock when modal is open */
body.panel-open {
  overflow: hidden;
}


/* ========================================
   CULTURE
   ======================================== */
.culture {
  padding: var(--section-pad-mobile) 0;
  background-color: var(--black);
  position: relative;
}

.culture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.culture-header {
  text-align: center;
  margin-bottom: 56px;
  padding-top: 40px;
}

.culture-header h2 {
  margin-bottom: 16px;
}

.culture-header p {
  max-width: 560px;
  margin: 0 auto;
}

.culture-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.culture-item {
  padding: 32px 28px;
  border: 1px solid var(--gray-dark);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.culture-item:hover {
  border-color: rgba(243, 187, 67, 0.3);
}

.culture-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.culture-item:hover::before {
  transform: scaleX(1);
}

.culture-item h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 12px;
}

.culture-item p {
  font-size: 0.9375rem;
}


/* ========================================
   JOIN THE COLLECTIVE
   ======================================== */
.join {
  padding: var(--section-pad-mobile) 0;
  background-color: var(--dark);
}

.join-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.join-inner h2 {
  margin-bottom: 20px;
}

.join-divider {
  width: 48px;
  height: 2px;
  background-color: var(--gold);
  margin: 0 auto 24px;
}

.join-inner p {
  margin-bottom: 16px;
}

.join-inner .btn-primary {
  margin-top: 16px;
}


/* ========================================
   BOTTOM CTA
   ======================================== */
.meet-cta {
  padding: var(--section-pad-mobile) 0;
  background-color: var(--black);
  text-align: center;
}

.meet-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 64px 32px;
  border: 1px solid var(--gray-dark);
  position: relative;
}

.meet-cta-inner::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--gold);
}

.meet-cta-inner h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.meet-cta-inner p {
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.meet-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}


/* ========================================
   DESKTOP BREAKPOINTS
   ======================================== */
@media (min-width: 768px) {
  .team-card {
    padding: 36px 24px;
  }

  .team-card-photo img {
    max-width: 200px;
    height: 250px;
  }

  .culture-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .meet-cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .team-grid {
    gap: 48px;
  }

  .team-card {
    padding: 40px 28px;
  }

  .team-card-photo img {
    max-width: 220px;
    height: 280px;
  }

  .team-card-name {
    font-size: 1.5rem;
  }

  .culture-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
