.sponsors {
  --tile-w: 192px;
  --tile-h: 100px;
  --tile-gap: 16px;
  --tile-line: rgba(52, 65, 88, 0.13);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(72px, 8vw, 120px);
}

/* Anchored to the panel's top-right corner; z-index -1 slips it behind the panel */
.sponsors__arc {
  position: absolute;
  z-index: -1;
  top: -250px;
  right: -20px;
  width: 340px;
  height: 300px;
  fill: none;
  color: var(--gold-deep);
  stroke-width: 1.2;
  opacity: 0.8;
  pointer-events: none;
}

.sponsors__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px clamp(32px, 4vw, 64px);
  margin-bottom: clamp(32px, 3.2vw, 44px);
  padding-right: clamp(0px, 5vw, 72px);
}

.sponsors__title {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--h2-size);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--navy);
  text-wrap: balance;
}

.sponsors__intro {
  padding-bottom: 4px;
}

.sponsors__lede {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.sponsors__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-block: 4px 3px;
  border-bottom: 1px solid rgba(133, 102, 42, 0.55);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold-text);
  transition: border-color 0.25s var(--ease);
}

.sponsors__cta:hover {
  border-bottom-color: var(--gold-text);
}

.sponsors__cta-icon {
  transition: transform 0.25s var(--ease);
}

.sponsors__cta:hover .sponsors__cta-icon {
  transform: translateX(3px);
}

.sponsors__panel {
  position: relative;
  margin-inline: calc(var(--gutter) * -0.3);
  padding: clamp(24px, 2.4vw, 34px) clamp(16px, 4vw - 18px, 40px) clamp(28px, 2.8vw, 40px);
  background: var(--cream-light);
  border-radius: var(--radius);
  box-shadow:
    0 30px 60px -36px rgba(7, 11, 18, 0.28),
    0 2px 8px -2px rgba(7, 11, 18, 0.06);
}

.sponsors__tier:not(:has(.sponsors__item)) {
  display: none;
}

.sponsors__tier:has(.sponsors__item) ~ .sponsors__tier {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-light);
}

.sponsors__tier--md {
  --tile-w: 180px;
  --tile-h: 96px;
}

.sponsors__tier--sm {
  --tile-w: 160px;
  --tile-h: 84px;
}

.sponsors__tier--xs {
  --tile-w: 140px;
  --tile-h: 72px;
}

.sponsors__label {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--gold-text);
}

.sponsors__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--tile-gap);
}

.sponsors__item {
  width: var(--tile-w);
}

.sponsors__item[hidden] {
  display: none;
}

.sponsors__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--tile-w);
  height: var(--tile-h);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tile-line);
  border-radius: 8px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.sponsors__tile:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 132, 58, 0.45);
}

/* --w per logo balances optical weight; white file margins crop at the tile edge */
.sponsors__logo {
  flex: none;
  width: var(--w, 60%);
  height: auto;
  object-fit: contain;
}

/* 200px sources: stay at or under 100 CSS px so 2x screens stay sharp */
.sponsors__logo--lowres {
  max-width: 100px;
}

/* Lifts an off-white file background to pure white so its box edge vanishes */
.sponsors__logo--flatten {
  filter: brightness(1.03);
}

/* Temporary: the supplied XDLINX file is white-only */
.sponsors__logo--invert {
  filter: brightness(0);
}

.sponsors__caption {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  color: var(--slate);
}

.sponsors__more {
  margin-top: 20px;
  padding-block: 4px 2px;
  border-bottom: 1px solid rgba(133, 102, 42, 0.55);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold-text);
  transition: border-color 0.25s var(--ease);
}

.sponsors__more:hover {
  border-bottom-color: var(--gold-text);
}

.sponsors__more[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .sponsors__arc {
    display: none;
  }
}

@media (max-width: 760px) {
  .sponsors__head {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 0;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line-light);
  }

  .sponsors__intro {
    padding-bottom: 0;
  }

  .sponsors__lede {
    margin-bottom: 4px;
    font-size: 15px;
    color: var(--ink-soft);
    text-wrap: pretty;
  }

  .sponsors__panel {
    margin-inline: 0;
    padding: 24px 0 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .sponsors__label {
    font-size: 14px;
  }

  .sponsors__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sponsors__item,
  .sponsors__tile {
    width: auto;
  }

  .sponsors__tile {
    height: auto;
    aspect-ratio: var(--tile-w-n, 192) / var(--tile-h-n, 100);
  }

  .sponsors__tier--md {
    --tile-w-n: 180;
    --tile-h-n: 96;
  }

  .sponsors__tier--sm {
    --tile-w-n: 160;
    --tile-h-n: 84;
  }

  .sponsors__tier--xs {
    --tile-w-n: 140;
    --tile-h-n: 72;
  }
}
