/* ==========================================================
   Sponsors page. The hero is the shared headline-only hero (its picture is still to be
   designed). Project showcase: one project's page on a white card, tilted back in 3D with
   a thick edge, its details beside it (js/project-tilt.js eases the tilt as it scrolls in).
   ========================================================== */
.sp-show { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) {
  .sp-show { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(var(--space-6), 6vw, 112px); }
}
.sp-show__pic { position: relative; padding-block: var(--space-3); perspective: 1400px; }
.sp-show__tilt { --ry: 15deg; --rx: 7deg; position: relative; z-index: 1; transform: rotateY(var(--ry)) rotateX(var(--rx)); transform-origin: 55% 50%; }
.sp-show__card {
  max-width: 540px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 26px);
  border-radius: 22px;
  background: #fff;
  color: #3b3762;
  box-shadow:
    0 0 0 1px rgba(7, 0, 48, 0.06),
    -1px 1px 0 #e3e1f0, -2px 2px 0 #dcd9ec, -3px 3px 0 #d5d2e8, -4px 4px 0 #ceCBe4,
    -5px 5px 0 #c7c3e0, -6px 6px 0 #c0bcdc, -7px 7px 0 #b9b5d8, -8px 8px 0 #b2add4,
    -24px 44px 70px -30px rgba(0, 0, 0, 0.7);
}
.sp-show__img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(7, 0, 48, 0.08), 0 0 0 1px rgba(7, 0, 48, 0.08); }
.sp-show__meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; font-size: 12.5px; }
.sp-show__team { display: flex; }
.sp-show__team span {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-left: -4px;
  border-radius: 50%; box-shadow: 0 0 0 2px #fff;
  font-size: 10px; font-weight: 700; color: #2b1d8f; background: #dcd9f5;
}
.sp-show__team span:first-child { margin-left: 0; }
.sp-show__team span:nth-child(2) { background: #e9e8f2; }
.sp-show__team span:nth-child(3) { background: #c9c3f5; }
.sp-show__meta small { font-size: 12px; font-weight: 600; color: #6b6690; }
.sp-show__up { margin-left: auto; font-size: 12px; color: #8a86a3; }
.sp-show__rows { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.sp-show__rows li { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid #ecebf3; border-radius: 10px; color: #3b3762; }
.sp-show__rows b { color: #140a6b; font-weight: 600; }
.sp-tag { padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-style: normal; font-weight: 600; color: #3b3762; background: #f1f0f7; }
.sp-tag--ok { color: var(--on-lime); background: var(--lime); }
.sp-show__glow {
  position: absolute; left: 12%; right: 8%; bottom: -6%; height: 38%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 162, 255, 0.35), rgba(168, 162, 255, 0));
  filter: blur(24px);
}
.sp-show__copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.sp-show__name { margin: 0; font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.035em; color: var(--text); }
.sp-show__text { margin: 0 0 var(--space-1); max-width: 36ch; font-size: 1.125rem; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
.sp-show__copy .btn { margin-top: var(--space-2); }
@media (max-width: 959px) {
  .sp-show__tilt { --ry: 10deg; --rx: 5deg; }
}
@media (max-width: 560px) {
  .sp-show__up { display: none; }
  .sp-show__card { border-radius: 18px; }
}
/* "Explore projects and startup ideas." on one line from tablet up */
#projects .sub-head { max-width: none; }
@media (min-width: 768px) { #projects .section-title { white-space: nowrap; } }

/* ---------- Back an idea. Or bring a challenge.: the diagram (js/sponsor-flow.js) ----------
   The two ways to sponsor feed into nawa and on to student teams; progress comes back.
   Lime dots flow along every line at once. Desktop: left to right. Phones: top to bottom. */
.sf { margin-bottom: var(--space-5); }
.sf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.sf-svg--tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 767px) {
  .sf-svg--wide { display: none; }
  .sf-svg--tall { display: block; }
}
.sf-node rect { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.5; }
.sf-node--nawa rect { fill: var(--panel-3); stroke: var(--lime); stroke-width: 2; filter: drop-shadow(0 0 14px rgba(209, 238, 43, 0.25)); }
.sf-t { font: 600 20px/1 var(--font); fill: var(--text); letter-spacing: -0.01em; }
.sf-s { font: 500 15px/1 var(--font); fill: var(--text-2); }
.sf-node--sm .sf-t { font-size: 16px; }
.sf-node--sm .sf-s { font-size: 13px; }
.sf-mid { text-anchor: middle; }
.sf-brand { font: 800 30px/1 var(--font); fill: var(--text); text-anchor: middle; letter-spacing: -0.02em; }
.sf-brand--sm { font-size: 24px; }
.sf-line { fill: none; stroke: rgba(209, 238, 43, 0.45); stroke-width: 2; stroke-linecap: round; }
.sf-line--out { stroke-dasharray: 5 7; stroke: rgba(209, 238, 43, 0.6); }
.sf-line--back { stroke: rgba(244, 243, 250, 0.2); stroke-dasharray: 3 8; }
.sf-arrow { fill: none; stroke: rgba(244, 243, 250, 0.35); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sf-dot { fill: var(--lime); }
.sf-dot--back { fill: rgba(244, 243, 250, 0.7); }
.sf-glow { fill: rgba(209, 238, 43, 0.18); }

/* ---------- Hero: a slowly turning ring of student projects (js/sponsor-ring.js) ----------
   The cards stand round a ring that turns about its upright axis; the front ones are full
   strength, the side ones fade and the back half is hidden. White cards on the navy. Desktop: the headline on the
   left, the ring on the right, at the same height. Phones: the ring under the headline.
   It keeps turning under the pointer. Reduced motion: the ring stands still. No JS: a plain row of the first three cards. */
.spr-hero { min-height: 0; padding-top: var(--section-space); padding-bottom: var(--section-space); }
.spr { position: relative; height: 290px; margin-top: var(--space-4); perspective: 1600px; }
.spr-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; transform: rotateX(-7deg); }
.spr-card {
  position: absolute;
  left: -116px;
  top: -92px;
  width: 232px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 28px 60px -26px rgba(0, 0, 0, 0.75);
  backface-visibility: hidden;
  color: #140a6b;
}
.spr-card p { margin: 0; }
.spr-stage { display: inline-block; margin-bottom: 10px !important; padding: 3px 9px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-size: 12px; font-weight: 600; }
.spr-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.spr-desc { margin-top: 4px !important; font-size: 14px; line-height: 1.4; color: #5b5680; }
.spr-team { display: flex; align-items: center; margin-top: 12px !important; }
.spr-team span { display: grid; place-items: center; width: 24px; height: 24px; margin-left: -5px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; background: #dcd9f5; color: #2b1d8f; font-size: 10px; font-weight: 700; }
.spr-team span:first-child { margin-left: 0; }
.spr-team span:nth-child(2) { background: #e9e8f2; }
.spr-team span:nth-child(3) { background: #c9c3f5; }
.spr-team small { margin-left: 8px; font-size: 12px; color: #6b6690; }
.spr-next { margin-top: 10px !important; padding-top: 10px; border-top: 1px solid #ecebf3; font-size: 14px; font-weight: 600; color: #140a6b; }
.spr-next span { display: block; font-size: 12px; font-weight: 500; color: #6b6690; }
/* without the script: a plain row of three, no ring */
html:not(.js) .spr { height: auto; perspective: none; }
html:not(.js) .spr-ring { position: static; display: flex; gap: 16px; width: auto; height: auto; transform: none; }
html:not(.js) .spr-card { position: static; }
html:not(.js) .spr-card:nth-child(n + 4) { display: none; }
/* the headline centred, the ring under it across the full width */
.spr-hero .biz-hero__layout { display: block; }
.spr-hero .hero__inner { align-items: center; text-align: center; }
.spr-hero .hero__ctas { justify-content: center; }
@media (min-width: 1024px) {
  .spr { height: 340px; margin-top: var(--space-4); }
}
@media (max-width: 599px) {
  .spr { height: 240px; }
  .spr-ring { transform: rotateX(-7deg) scale(0.62); }
}
