/* ═══════════════════════════════════════
   PRINCIPALS
═══════════════════════════════════════ */
.principals {
  background: var(--dark-gradient);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.principals .container { margin-bottom: 0; }

.principals-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.principals-header .section-sub { margin-bottom: 0; }

.principal-cta-btn { align-self: flex-end; flex-shrink: 0; }

/* ═══════════════════════════════════════
   LOGO COLLAGE  (shared: Principals + Downstream Reach)
   A soft white "cloud" of borderless logos that dissolves into the dark
   section at its edges, rather than a rigid grid of bordered tiles.
═══════════════════════════════════════ */
.logo-collage {
  position: relative;
  margin-bottom: 28px;
  padding: 64px 60px;
  border-radius: 36px;
  /* Solid-white core for the logos; the outer padding zone feathers to
     transparent so the panel reads as a cloud floating on the dark section. */
  background: radial-gradient(ellipse 92% 90% at 50% 50%,
    #ffffff 0%,
    #ffffff 64%,
    rgba(255,255,255,0.72) 82%,
    rgba(255,255,255,0) 100%);
}

.collage-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px 48px;
}

.collage-group + .collage-group { margin-top: 44px; }

.collage-group-title {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 26px;
}

.collage-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
  transition: transform var(--transition);
}

.collage-item:hover { transform: translateY(-4px) scale(1.05); }

.collage-item:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
  border-radius: 6px;
}

.collage-logo { display: inline-flex; }

/* Height-normalized, width-auto: different native aspect ratios then produce
   the varied-width, collage-like rhythm. object-fit keeps wide logos from
   distorting once they hit the max-width cap. */
.collage-logo img {
  height: 56px;
  width: auto;
  max-width: 158px;
  object-fit: contain;
  display: block;
}

/* Logos stay roughly one size. The featured well-known principals (clustered
   through the centre by source order) sit only slightly larger, enough to
   draw the eye without turning the wall into a ranking. */
.collage-item--feat .collage-logo img { height: 64px; max-width: 195px; }

@media (max-width: 700px) {
  .logo-collage { padding: 44px 24px; border-radius: 26px; }
  .collage-row { gap: 22px 30px; }
  .collage-logo img { height: 42px; max-width: 124px; }
  .collage-item--feat .collage-logo img { height: 48px; max-width: 150px; }
}

.principal-footer-note {
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  padding-top: 8px;
}

/* ── Logo lightbox (principals) ──
   Class names kept as .reach-lightbox* for shared use with logo-lightbox.js. */
.reach-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: transparent;
  backdrop-filter: blur(14px) brightness(0.92);
  opacity: 0;
  visibility: hidden;
  /* visibility switches only after the fade-out finishes, so the image's
     shrink-back-to-tile transform animation stays visible while closing */
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  cursor: zoom-out;
}

.reach-lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s linear 0s;
}

/* Fixed size regardless of each logo's native aspect ratio, so the enlarged
   view always reads as the same "size class" no matter which logo was clicked. */
.reach-lightbox-frame {
  width: min(460px, 82vw);
  height: min(240px, 45vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  will-change: transform;
}

.reach-lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.reach-lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}

.reach-lightbox-close:hover { background: rgba(255,255,255,0.2); }
