/* RAIN · People page
   The team sits on a navy stage between the two cream sections. Portraits rest
   in grayscale and bloom into colour with a gold ring: on hover where there is
   a pointer, and while a card crosses the middle of the screen on phones
   (people.js). Everything holds still under prefers-reduced-motion. */

/* ---------- Hero: jump links ---------- */
.people-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.people-jump a {
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1;
  color: rgba(246, 243, 236, 0.9);
  padding: 12px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.people-jump a:hover,
.people-jump a:focus-visible {
  background: rgba(255, 255, 255, 0.13); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(204, 156, 79, 0.55);
  outline: none;
}

/* ---------- Team stage ---------- */
.hero ~ section.team-stage { background: var(--navy); color: #f3f2ee; overflow: hidden; }
.team-stage .container { position: relative; z-index: 1; }
.team-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 88% 0%, rgba(39, 69, 214, 0.34) 0%, rgba(39, 69, 214, 0) 70%),
    radial-gradient(45% 40% at 0% 100%, rgba(204, 156, 79, 0.13) 0%, rgba(204, 156, 79, 0) 70%);
}
.team-stage .eyebrow {
  color: var(--gold);
  background: rgba(204, 156, 79, 0.1);
  box-shadow: inset 0 0 0 1px rgba(204, 156, 79, 0.3), 0 0 24px rgba(204, 156, 79, 0.16);
}
.team-stage .h-1 { color: #f6f3ec; }
.team-stage .h-1 .ser { color: var(--gold); }

.team-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.team-item { min-width: 0; }
.team-card {
  height: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(30px, 3.4vw, 46px) clamp(16px, 2vw, 28px) clamp(28px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.018) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(243, 242, 238, 0.09);
  transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-photo {
  position: relative; flex-shrink: 0;
  width: clamp(108px, 10.5vw, 148px); aspect-ratio: 1;
  margin-bottom: 24px;
  border-radius: 50%;
}
.team-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 50%;
  background: #0f1f44;
  filter: grayscale(1) contrast(1.04) brightness(0.95);
  transition: filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
/* A faint ring always, a gold one that draws itself on hover. */
.team-photo::before {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(204, 156, 79, 0.2);
  pointer-events: none;
}
.team-ring {
  position: absolute; inset: -7px;
  width: calc(100% + 14px); height: calc(100% + 14px);
  max-width: none; /* the global svg max-width: 100% squeezed it 7px off centre */
  transform: rotate(-90deg); overflow: visible; pointer-events: none;
}
/* Stroke in user units (viewBox 100): with non-scaling-stroke the pathLength
   dash ran in screen pixels, so only part of the ring drew. ~1.6px on screen. */
.team-ring circle {
  fill: none; stroke: var(--gold); stroke-width: 1.1; stroke-linecap: round;
  stroke-dasharray: 1 1.05; stroke-dashoffset: 1.02; /* no round-cap dot at rest */
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Initials stand in until a headshot arrives. */
.team-photo.is-mono {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 120% at 30% 18%, #1b2f60 0%, #0f1f44 55%, #0a1733 100%);
  box-shadow: inset 0 0 0 1px rgba(204, 156, 79, 0.24), inset 0 -12px 28px rgba(0, 0, 0, 0.32);
}
.team-photo.is-mono span {
  font-family: var(--display); font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 100, "wght" 400;
  font-size: clamp(34px, 3.3vw, 46px); line-height: 1;
  letter-spacing: 0.01em; color: var(--gold);
  transition: color 0.6s ease;
}

.team-name {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "SOFT" 40, "wght" 500;
  font-weight: 500; font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.15; letter-spacing: -0.015em; color: #f6f3ec;
}
.team-role {
  margin-top: 9px; max-width: 30ch;
  font-family: var(--mono); font-size: 11px; line-height: 1.55;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
}

/* Lit state: hover on pointer devices, centre-of-screen on phones. */
.team-card:hover,
.team-card.is-lit {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.03) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(204, 156, 79, 0.3),
              0 30px 60px -32px rgba(0, 0, 0, 0.7);
}
.team-card:hover { transform: translateY(-4px); }
.team-card:hover .team-photo img,
.team-card.is-lit .team-photo img { filter: none; }
.team-card:hover .team-ring circle,
.team-card.is-lit .team-ring circle { stroke-dashoffset: 0; }
.team-card:hover .team-photo.is-mono span,
.team-card.is-lit .team-photo.is-mono span { color: var(--gold-bright); }

/* ---------- Featured intern + org pointer row ----------
   Sits on the team grid's columns: the intern takes one, the pointer two. */
.team-extras {
  margin-top: clamp(12px, 1.6vw, 20px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.team-extras .orgs-pointer { grid-column: span 2; margin-top: 0; }

.intern-feature {
  display: flex; align-items: center; gap: clamp(18px, 1.8vw, 24px);
  padding: clamp(18px, 2vw, 24px) clamp(20px, 2.2vw, 28px);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(204, 156, 79, 0.3);
}
/* Portrait stays in colour; the gold ring draws itself like the team cards'
   (hover on pointer devices, mid-screen on phones via people.js). */
.intern-photo { width: clamp(76px, 6.4vw, 92px); margin-bottom: 0; }
.intern-photo img { filter: none; }
.intern-feature {
  transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.intern-feature:hover,
.intern-feature.is-lit {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.035) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 0 1px rgba(204, 156, 79, 0.5);
}
.intern-photo .team-ring circle { stroke-width: 1.6; } /* smaller ring, same ~1.6px line */
.intern-feature:hover .team-ring circle,
.intern-feature.is-lit .team-ring circle { stroke-dashoffset: 0; }
.intern-copy { min-width: 0; }
.intern-tag {
  display: block; margin-bottom: 8px;
  font-family: var(--mono); font-size: 10.5px; line-height: 1;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(243, 242, 238, 0.6);
}
.intern-feature .team-name { font-size: clamp(18px, 1.5vw, 21px); }
.intern-feature .team-role { margin-top: 6px; font-size: 10.5px; letter-spacing: 0.14em; }
.intern-bio {
  margin: 8px 0 0; font-size: 14px; line-height: 1.45;
  color: rgba(243, 242, 238, 0.78);
}
.intern-bio a {
  color: #f6f3ec; text-decoration: underline;
  text-decoration-color: rgba(204, 156, 79, 0.6); text-underline-offset: 3px;
  transition: text-decoration-color 0.3s ease;
}
.intern-bio a:hover, .intern-bio a:focus-visible { text-decoration-color: var(--gold-bright); }

/* ---------- Pointer to the org pages on Raindrop ---------- */
.orgs-pointer {
  margin-top: clamp(14px, 1.8vw, 20px);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: clamp(18px, 2.2vw, 26px) clamp(22px, 2.8vw, 34px);
  border-radius: var(--r-lg);
  background: rgba(204, 156, 79, 0.08);
  box-shadow: inset 0 0 0 1px rgba(204, 156, 79, 0.26);
  color: #f3f2ee;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.orgs-pointer:hover,
.orgs-pointer:focus-visible {
  background: rgba(204, 156, 79, 0.14);
  box-shadow: inset 0 0 0 1px rgba(204, 156, 79, 0.55);
  outline: none;
}
.op-num {
  font-family: var(--display);
  font-variation-settings: "opsz" 144, "SOFT" 40, "wght" 400;
  font-size: clamp(34px, 3.6vw, 48px); line-height: 1;
  letter-spacing: -0.03em; color: var(--gold);
}
.op-copy { font-size: clamp(15px, 1.25vw, 17px); line-height: 1.45; color: rgba(243, 242, 238, 0.84); }
.op-go {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--sans); font-weight: 600; font-size: 14px; color: #f6f3ec;
}
.op-go .arr { display: inline-block; transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.orgs-pointer:hover .op-go .arr { transform: translateX(4px); }

/* ---------- Layout ---------- */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-extras { grid-template-columns: minmax(0, 1fr); }
  .team-extras .orgs-pointer { grid-column: auto; }
}
@media (max-width: 640px) {
  .people-jump { gap: 8px; margin-top: 28px; }
  .people-jump a { font-size: 13.5px; padding: 11px 15px; }
  .team-grid { gap: 10px; }
  .team-card { padding: 26px 10px 24px; border-radius: 22px; }
  .team-photo { width: 96px; margin-bottom: 18px; }
  .team-photo::before { inset: -5px; }
  .team-ring { inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); }
  .team-ring circle { stroke-width: 1.5; }
  .intern-photo .team-ring circle { stroke-width: 1.85; }
  .team-photo.is-mono span { font-size: 32px; }
  .team-name { font-size: 17px; }
  .team-role { font-size: 9.5px; letter-spacing: 0.12em; }
  .orgs-pointer { grid-template-columns: auto minmax(0, 1fr); row-gap: 12px; }
  .team-extras { gap: 10px; }
  .intern-feature { padding: 18px; border-radius: 22px; }
  .intern-photo { width: 76px; }
  .op-go { grid-column: 1 / -1; }
}

/* No pointer: never lift on tap. */
@media (hover: none), (pointer: coarse) {
  .team-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .team-photo img { filter: none; transition: none; }
  .team-ring circle { transition: none; }
  .team-card, .team-card:hover { transform: none; transition: none; }
}
