/* ── STORY SECTION ── */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.story-text p {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  margin-bottom: 16px;
}
.story-stats {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  margin-top: 32px;
}
.story-stat {
  flex: 1;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.story-stat:last-child { border-right: none; }
.ss-num { font-size: 32px; font-weight: 900; color: var(--gold); line-height: 1; }
.ss-label { font-size: 9px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #555; margin-top: 4px; }

/* ── TEAM GRID ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform 0.35s cubic-bezier(0.34,1.2,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(212,175,55,0.4);
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.1),
    0 0 32px rgba(212,175,55,0.1),
    0 20px 48px rgba(0,0,0,0.55);
}
.team-card.founder { border-top: 3px solid var(--gold); }
.team-photo {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
  filter: grayscale(15%);
}
.team-card:hover .team-photo img { transform: scale(1.03); }
.team-photo::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 60%, transparent 100%);
  pointer-events: none;
}
.role-badge {
  position: absolute;
  bottom: 14px; left: 16px;
  z-index: 2;
}
.role-badge .name {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.role-badge .role {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}
.team-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.92);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  /* Only cover the photo area — pointer-events off prevents blocking the info-bar button below */
  pointer-events: none;
}
.team-card:hover .team-overlay {
  opacity: 1;
  pointer-events: none; /* never blocks clicks — info-bar button stays always clickable */
}
.team-info-bar {
  position: relative;
  z-index: 4; /* always above overlay */
}
.team-overlay .o-name { color: var(--gold); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; font-weight: 700; }
.team-overlay .o-bio { color: #ccc; font-size: 12px; font-weight: 700; line-height: 1.7; margin-bottom: 14px; }
.team-overlay .o-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-tag {
  background: var(--black-2);
  border: 1px solid var(--border-2);
  color: #777;
  font-size: 8px;
  padding: 4px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
}
.team-info-bar {
  padding: 14px 16px;
  border-top: 1px solid var(--surface-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ib-label { color: #444; font-size: 8px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }
.ib-classes { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.photo-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
}
.ph-text { color: #2a2a2a; font-size: 9px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; }

/* Trainer Instagram icon link */
.trainer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-2);
  transition: border-color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.trainer-ig::before {
  content: '';
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'/%3E%3Cpath d='M16 11.37A4 4 0 1112.63 8 4 4 0 0116 11.37z'/%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.trainer-ig:hover { border-color: var(--gold); background: rgba(212,175,55,0.06); }
.trainer-ig:hover::before { opacity: 1; filter: sepia(1) saturate(4) hue-rotate(8deg); }

@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .team-card { padding: 24px 20px; }
  .trainer-photo { height: 260px; }
}
