/* About page-only additions — loaded after /styles.css */

.why-how-what { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; max-width: 900px; margin: 0 auto 40px auto; }
@media (max-width: 700px) { .why-how-what { grid-template-columns: 1fr; } }
.whw-card { padding: 26px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08); text-align: center; }
.whw-label { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; color: var(--pink); margin-bottom: 12px; }
.whw-card p { font-size: 15px; color: var(--slate); line-height: 1.55; }
.story-body { max-width: 760px; margin: 0 auto; font-size: 15.5px; line-height: 1.75; color: var(--slate); text-align: center; }

.founder-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; max-width: 1100px; margin: 0 auto; }
@media (max-width: 800px) { .founder-grid { grid-template-columns: 1fr; } }
.founder-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; box-shadow: 0 30px 70px rgba(0,0,0,0.4); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-copy h2 { color: #fff; margin: 10px 0 4px 0; font-size: clamp(28px,3.4vw,38px); }
.founder-cred { color: var(--innovation); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px; }
.founder-copy p { color: rgba(255,255,255,0.88); font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.founder-copy blockquote { margin: 24px 0 0 0; padding: 20px 24px; border-left: 3px solid var(--pink); background: rgba(255,255,255,0.06); border-radius: 0 12px 12px 0; font-style: italic; color: #fff; font-size: 15.5px; }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px 24px; max-width: 1000px; margin: 0 auto; }
@media (max-width: 800px) { .team-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }
.team-card { text-align: center; }
.team-photo-btn { display: block; margin: 0 auto 16px auto; width: 130px; height: 130px; border-radius: 50%; padding: 0; border: none; background: none; cursor: pointer; overflow: hidden; box-shadow: 0 10px 30px rgba(43,30,143,0.18); transition: transform .2s ease; }
.team-photo-btn:hover { transform: scale(1.04); }
.team-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--innovation), var(--royal)); color: #fff; font-weight: 800; font-size: 30px; }
.team-card h3 { font-size: 16px; color: var(--ink); margin-bottom: 2px; }
.team-role { font-size: 12.5px; color: var(--pink); font-weight: 700; margin-bottom: 10px; }
.team-bio { display: none; font-size: 13.5px; color: var(--slate); line-height: 1.55; max-width: 270px; margin: 0 auto; }
.team-bio.is-open { display: block; }
.team-bio a { color: var(--royal); font-weight: 700; }
.team-bio p { margin: 0 0 8px 0; }
.team-bio p:last-child { margin-bottom: 0; }

.press-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 900px) { .press-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .press-grid { grid-template-columns: 1fr; } }
.press-card { display: block; padding: 24px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 10px 26px rgba(43,30,143,0.08); transition: transform .2s ease, box-shadow .2s ease; }
.press-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43,30,143,0.14); }
.press-source { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--innovation); margin-bottom: 10px; }
.press-card h4 { font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.4; }

/* Partners in Our Growth — compact institutional credibility row */
.partner-row { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.partner-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 26px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 10px 26px rgba(43,30,143,0.08); flex: 1; min-width: 200px; }
.partner-card img { max-height: 40px; width: auto; max-width: 140px; }
.partner-name { font-size: 13px; font-weight: 700; color: var(--ink); text-align: center; }
.partner-role { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); }

/* ── Team: department organization ──────────────────────────── */
.team-dept { margin-bottom: 40px; }
.team-dept:last-child { margin-bottom: 0; }
.dept-label {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--innovation);
}
.dept-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ── Team: bolder, non-bleeding instruction callout ─────────── */
.team-instruction {
  display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0 auto;
  padding: 10px 20px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--darktext); scroll-margin-top: 90px;
}
.team-instruction svg { width: 16px; height: 16px; color: var(--innovation); flex-shrink: 0; }
.ti-mobile-text { display: none; }
@media (max-width: 700px) { .ti-desktop-text { display: none; } .ti-mobile-text { display: inline; } }
#team { scroll-margin-top: 90px; }

/* ── Team: portrait interactivity affordances ───────────────── */
.team-photo-wrap { position: relative; width: 130px; height: 130px; margin: 0 auto 16px auto; perspective: 500px; }
.team-photo-btn { display: block; width: 100%; height: 100%; padding: 0; border: none; background: none; cursor: pointer; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 30px rgba(43,30,143,0.18); transition: transform .2s ease; }
.team-photo-btn:hover { transform: scale(1.06); }
.team-photo-btn:hover .team-photo { filter: brightness(1.06) saturate(1.1); }

/* Badge lives OUTSIDE the clipped circular button so it's never sliced by overflow:hidden */
.team-photo-wrap .reveal-hint {
  position: absolute; bottom: -2px; right: -2px; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--innovation), var(--royal)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(43,30,143,0.3); border: 2px solid #fff;
  transition: transform .25s ease, background .25s ease;
  pointer-events: none; z-index: 2;
}
.team-photo-btn[aria-expanded="true"] + .reveal-hint { transform: rotate(45deg); }

/* Both idle-nudge and happy-spin live on the INNER photo, never the outer button —
   keeps hover/lift on the button free of conflict, and keeps the two animations
   from fighting over the same element's animation property. */
@keyframes happySpin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
.team-photo-btn.is-spinning .team-photo { animation: happySpin 520ms ease-in-out !important; }

@keyframes idleNudge { 0%, 92%, 100% { transform: rotate(0deg); } 94% { transform: rotate(-4deg); } 96% { transform: rotate(3deg); } 98% { transform: rotate(0deg); } }
.team-card:nth-child(6n+1) .team-photo { animation: idleNudge 14s ease-in-out infinite; animation-delay: 1s; }
.team-card:nth-child(6n+2) .team-photo { animation: idleNudge 16s ease-in-out infinite; animation-delay: 4s; }
.team-card:nth-child(6n+3) .team-photo { animation: idleNudge 18s ease-in-out infinite; animation-delay: 7s; }
.team-card:nth-child(6n+4) .team-photo { animation: idleNudge 15s ease-in-out infinite; animation-delay: 10s; }
.team-card:nth-child(6n+5) .team-photo { animation: idleNudge 17s ease-in-out infinite; animation-delay: 2s; }
.team-card:nth-child(6n+6) .team-photo { animation: idleNudge 19s ease-in-out infinite; animation-delay: 5s; }

@media (prefers-reduced-motion: reduce) {
  .team-photo { animation: none !important; }
  .team-photo-btn:hover { transform: none; }
}

/* ── Team: standardized education component ─────────────────── */
.team-edu { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-edu svg { width: 15px; height: 15px; color: var(--slate); flex-shrink: 0; margin-top: 2px; }
.edu-item { font-size: 12px; color: var(--slate); line-height: 1.5; }

/* Partners section: reduced spacing before it (scoped fix, .tight is unused/no-op sitewide, left alone) */
#partners { padding: clamp(28px, 4vw, 48px) 0 clamp(64px, 9vw, 120px) 0; }

/* Partners: logo-based click-to-reveal (reuses .reveal-trigger/.reveal-body mechanics) */
.partner-logo-row { display: flex; justify-content: center; align-items: flex-start; gap: 32px; flex-wrap: wrap; margin-top: 8px; }
.partner-logo-card { position: relative; display: flex; flex-direction: column; align-items: center; width: 220px; }
.partner-logo-trigger {
  width: 100%; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; align-items: center; justify-content: center;
}
.partner-logo-trigger:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(43,30,143,0.14); }
.partner-logo-trigger img { max-height: 48px; width: auto; max-width: 100%; }
.partner-logo-card .reveal-hint {
  position: absolute; bottom: -2px; right: 4px; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--innovation), var(--royal)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(43,30,143,0.3); border: 2px solid #fff;
  transition: transform .25s ease; pointer-events: none;
}
.partner-logo-trigger[aria-expanded="true"] + .reveal-hint { transform: rotate(45deg); }
.partner-logo-card .reveal-body { margin-top: 12px; text-align: center; }
.partner-logo-card .reveal-body p { font-size: 13px; color: var(--slate); line-height: 1.5; margin: 0; }
.partner-logo-card .reveal-body strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
