/* ============================================================
   Faculty: "meet the team" row carousel
   A dark, blue-lit band with a row of equal faculty cards. The
   hovered card's portrait enlarges IN PLACE (transform:scale, so
   the row never reflows) and crossfades into a playing clip when
   the member has one; with no clip the portrait just enlarges and
   turns colour. Centred prev/next arrows page the row; it auto-
   loops (infinite, via cloned lead cards) and pauses on hover.
   Namespaced .fac-* ; driven by faculty-spotlight.js toggling
   .is-active / .is-playing and translating .fac-track.
   ============================================================ */

.fac-section {
  position: relative;
  background: #080a12;
  color: #fff;
  overflow: hidden;
}
/* blue glow, brightest top-right, fading into near-black (matches ref) */
.fac-section::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(78% 75% at 78% -8%, rgba(70,104,232,.55), rgba(30,44,120,.18) 42%, transparent 68%),
    linear-gradient(180deg, #0a0d18 0%, #080a12 60%);
}

.fac-inner {
  position: relative;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- top bar: label left, optional link right ---- */
.fac-topbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: clamp(30px, calc(4 * var(--fv, 1vw)), 52px);
}
.fac-label { display: flex; flex-direction: column; gap: 6px; }
.fac-eyebrow {
  font-family: 'Oswald', 'Bricolage Grotesque', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.fac-h2 {
  font-size: clamp(28px, calc(3.6 * var(--fv, 1vw)), 48px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em;
  color: #fff; max-width: 20ch; margin: 0;
}
.fac-toplink {
  flex: none; display: inline-flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: #fff; text-decoration: none;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, .3);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.fac-toplink svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.fac-toplink:hover { color: #a9c0ff; border-color: #a9c0ff; }
.fac-toplink:hover svg { transform: translateX(4px); }
/* the shared arrow markup carries a second svg for .ss-btn's hover swap;
   this link nudges one arrow instead, so the spare one stays hidden */
.fac-toplink .arw { display: inline-flex; }
.fac-toplink .arw svg + svg { display: none; }

/* ---- carousel ---- */
.fac-carousel { position: relative; }
.fac-viewport {
  /* clip off-screen cards, but the generous padding lets a hovered
     card's scale-up spill out without being cut and without reflow.
     No negative margin: that leaks past the section and adds page
     x-overflow; the row simply insets by the padding instead. */
  overflow: hidden;
  padding: clamp(20px, calc(3 * var(--fv, 1vw)), 40px) clamp(18px, calc(3 * var(--fv, 1vw)), 44px) clamp(24px, calc(3.4 * var(--fv, 1vw)), 48px);
}
.fac-track {
  display: flex;
  /* generous gap so the hovered card's growth stays within the gap and
     never abuts its neighbours */
  gap: clamp(26px, calc(3 * var(--fv, 1vw)), 46px);
  will-change: transform;
  transition: transform .6s var(--ease);
}

/* ---- card ---- */
.fac-card {
  flex: 0 0 auto;
  /* three-up on desktop; the wider gap is subtracted so 3 fit exactly,
     which also makes each card smaller and leaves breathing room */
  width: calc((100% - 2 * clamp(26px, calc(3 * var(--fv, 1vw)), 46px)) / 3);
}
.fac-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #c7d4ff 0%, #eaf0ff 100%);
  transform-origin: center center;
  will-change: transform;
  /* a hairline red ring, barely there at rest, so the portraits read as
     cards against the dark section instead of floating cut-outs */
  box-shadow: 0 0 0 1px rgba(175, 37, 28, .22);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.fac-card-img,
.fac-card-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.fac-card-img { /* full colour at rest, the red ring carries the hover */ }
.fac-card-video { opacity: 0; transition: opacity .5s var(--ease); }
.fac-card-mono {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: 'Oswald', sans-serif; font-size: 44px; font-weight: 700; color: rgba(20, 30, 70, .5);
}
.fac-card-play {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .85); color: #101426;
  opacity: 0; transform: scale(.8);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.fac-card-play svg { width: 16px; height: 16px; margin-left: 2px; }

/* caption sits below and never moves (only the media scales) */
.fac-card-cap { text-align: center; padding: 18px 6px 0; }
.fac-card-name { font-size: clamp(17px, calc(1.5 * var(--fv, 1vw)), 21px); font-weight: 600; letter-spacing: -.01em; color: #fff; margin: 0; }
.fac-card-role { font-size: 13.5px; color: rgba(255, 255, 255, .52); margin: 4px 0 0; }

/* ---- hover: enlarge in place + reveal clip ---- */
.fac-card.is-active { z-index: 6; }
.fac-card.is-active .fac-card-media {
  /* gentle lift, the growth stays well inside the gap so cards keep
     space around them and never overlap abruptly */
  transform: scale(1.08);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .75), 0 0 0 1.5px rgba(175, 37, 28, .55);
}
.fac-card.is-active .fac-card-play { opacity: 1; transform: scale(1); }
.fac-card.is-active.is-playing .fac-card-video { opacity: 1; }
.fac-card.is-active.is-playing .fac-card-play { opacity: 0; }

/* ---- centred nav arrows ---- */
.fac-controls {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: clamp(18px, calc(2.4 * var(--fv, 1vw)), 30px);
}
.fac-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
}
.fac-arrow:hover { background: #fff; color: #101426; border-color: transparent; transform: translateY(-2px); }
.fac-arrow:active { transform: translateY(0) scale(.94); }
.fac-arrow svg { width: 20px; height: 20px; }
.fac-arrow[disabled] { opacity: .3; pointer-events: none; }

/* ---- reduced motion / anim-off: no scale drama, no autoplay ---- */
@media (prefers-reduced-motion: reduce) {
  .fac-track { transition: none; }
  .fac-card-media { transition: none; }
  .fac-card.is-active .fac-card-media { transform: none; box-shadow: 0 0 0 1.5px rgba(175,37,28,.55); }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .fac-card { width: calc((100% - clamp(26px, calc(3 * var(--fv, 1vw)), 46px)) / 2); } /* two-up */
  .fac-topbar { align-items: flex-start; }
}
@media (max-width: 560px) {
  .fac-card { width: 100%; }                 /* one-up */
  .fac-topbar { flex-direction: column; gap: 16px; }
  .fac-card.is-active .fac-card-media { transform: scale(1.04); } /* gentler on phones */
}
