.partners-section {
  padding-top: 112px;
}

.sponsor-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid rgba(143, 247, 255, 0.2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(65, 243, 255, 0.18), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(184, 108, 255, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(10, 39, 58, 0.78), rgba(5, 14, 24, 0.7));
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 160ms ease-out, border-color 220ms ease, box-shadow 220ms ease;
}

.sponsor-shell:hover {
  border-color: rgba(143, 247, 255, 0.46);
  box-shadow: 0 42px 140px rgba(65, 243, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.sponsor-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(65, 243, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 243, 255, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.88), transparent 68%);
}

.sponsor-photo-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-right: 1px solid rgba(143, 247, 255, 0.16);
  background: rgba(3, 10, 17, 0.42);
}

.sponsor-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.02);
}

.sponsor-photo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 40% 25%, rgba(65, 243, 255, 0.18), transparent 30%),
    linear-gradient(180deg, transparent 34%, rgba(3, 10, 17, 0.9));
  pointer-events: none;
}

.sponsor-photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(143, 247, 255, 0.22);
  border-radius: 22px;
  background: rgba(3, 10, 17, 0.72);
  backdrop-filter: blur(18px);
}

.sponsor-photo-caption span,
.sponsor-photo-caption small,
.sponsor-tagline {
  display: block;
  color: var(--muted);
  line-height: 1.55;
}

.sponsor-photo-caption span {
  color: var(--cyan-soft);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sponsor-photo-caption strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.055em;
}

.sponsor-thanks {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 4vw, 48px);
}

.sponsor-thanks h3 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.sponsor-tagline {
  max-width: 680px;
  font-size: 1.08rem;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.sponsor-card {
  min-height: 218px;
  padding: 18px;
  border: 1px solid rgba(143, 247, 255, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.sponsor-logo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 72px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #edf5f8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.sponsor-logo img {
  width: 100%;
  max-width: 150px;
  max-height: 46px;
  object-fit: contain;
}

.sponsor-card--defend .sponsor-logo {
  background: #050607;
  border-color: rgba(166, 255, 49, 0.3);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22), inset 0 0 28px rgba(166, 255, 49, 0.08);
}

.sponsor-card--defend .sponsor-logo img {
  width: 54px;
  height: 54px;
}

.sponsor-card--openai .sponsor-logo img {
  max-width: 168px;
}

.sponsor-card h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.04rem;
}

.sponsor-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.sponsor-credit {
  margin: 4px 0 0;
  color: rgba(156, 184, 198, 0.8);
  font-size: 0.82rem;
}

.sponsor-credit a {
  color: var(--cyan-soft);
  text-decoration: underline;
  text-decoration-color: rgba(143, 247, 255, 0.34);
  text-underline-offset: 3px;
}

/* Keep the cinematic hero typography, but make the text layer win the stack. */
.hero {
  isolation: isolate;
  overflow: visible;
}

.hero-copy {
  min-width: 0;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.hero-visual {
  position: relative;
  z-index: 5;
}

.hero h1 {
  position: relative;
  z-index: 31;
  max-width: 900px;
  padding: 0.08em 0.1em 0.16em 0;
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  text-wrap: balance;
  overflow: visible;
}

@media (max-width: 1060px) {
  .hero h1 {
    max-width: min(100%, 900px);
    font-size: clamp(3.35rem, 9.6vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.068em;
  }
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.055em;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 3.8rem);
    line-height: 1;
    letter-spacing: -0.04em;
    text-wrap: auto;
  }
}

@media (max-width: 1060px) {
  .sponsor-shell {
    grid-template-columns: 1fr;
  }

  .sponsor-photo-card {
    min-height: 460px;
    border-right: 0;
    border-bottom: 1px solid rgba(143, 247, 255, 0.16);
  }

  .sponsor-photo-card img {
    min-height: 460px;
  }
}

@media (max-width: 760px) {
  .partners-section {
    padding-top: 74px;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-photo-card,
  .sponsor-photo-card img {
    min-height: 360px;
  }
}
