html[lang="en"] main [lang="pl"],
html[lang="pl"] main [lang="en"] {
  display: none;
}

.partners-introduction {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(32px, 6vw, 116px);
  align-items: start;
  padding: clamp(72px, 8vw, 154px) var(--edge);
  background: #fff;
}

.partners-introduction h2, .partner-application h2 {
  margin: 0;
  font-size: clamp(2.75rem, 5.1vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -.065em;
  font-weight: 500;
}

.partners-prose {
  max-width: 63ch;
  font-size: clamp(1rem, 1.28vw, 1.25rem);
  line-height: 1.7;
  letter-spacing: -.02em;
}

.partners-prose p { margin: 0; }
.partners-prose p + p { margin-top: 1.35em; }

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .partners-introduction h2 { position: sticky; top: min(40px, 5vh); }
}

.partner-application {
  --service-gap: clamp(32px, 6vw, 116px);
  --service-inset: var(--edge);
  --service-space: clamp(72px, 8vw, 154px);
  background: #000;
}
.partner-application h2 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .partners-introduction {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: clamp(52px, 10vw, 76px);
  }
}

.partners-impact {
  padding: 0 var(--edge);
  background: #fff;
}
.impact-board {
  --tile-gutter: clamp(14px, 2.1vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr));
  /* Two tracks per row let the rule above every caption share a baseline. */
  grid-template-rows: minmax(clamp(128px, 14vw, 272px), auto) auto
                      minmax(clamp(104px, 10.4vw, 212px), auto) auto;
  gap: clamp(4px, .42vw, 8px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.impact-metric, .impact-face {
  display: grid;
  min-width: 0;
  grid-template-rows: subgrid;
  row-gap: 0;
}
.impact-metric {
  --tile-paper: #ececeb;
  color: #161616;
}
.impact-reach {
  grid-area: 1 / 1 / 3 / 3;
  --tile-paper: #e8e8e6;
  --number-size: 21.3cqi;
}
.impact-measurements {
  grid-area: 3 / 1 / 5 / 2;
  --tile-paper: #292929;
  --number-size: 25.2cqi;
  color: #fafaf9;
}
.impact-congress {
  grid-area: 3 / 2 / 5 / 3;
  --tile-paper: #b8b8b5;
  --number-size: 44cqi;
}
.impact-years {
  grid-area: 1 / 3 / 3 / 4;
  --tile-paper: #d3d3d0;
  --number-size: 44cqi;
}
.impact-students {
  grid-area: 3 / 3 / 5 / 4;
  --number-size: 35cqi;
}
.impact-face {
  grid-row: span 2;
  position: relative;
  align-items: start;
  appearance: none;
  background: var(--tile-paper);
  color: inherit;
  font: inherit;
  text-align: start;
  padding: var(--tile-gutter);
  margin: 0;
  border: 0;
  border-radius: 0;
}
.impact-number {
  display: block;
  min-width: 0;
  align-self: center;
  grid-row: 1;
  container-type: inline-size;
  overflow: hidden;
}
.impact-digits, .impact-caption-window, .impact-caption-copy {
  display: block;
}
.impact-digits {
  font-size: var(--number-size);
  font-weight: 480;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -.088em;
  line-height: 1.08;
  white-space: nowrap;
}
.impact-ink { display: inline-block; }
.impact-ink + .impact-ink { margin-inline-start: .13em; }
.impact-caption {
  grid-row: 2;
  position: relative;
  display: block;
  align-self: start;
  min-width: 0;
  max-width: 32ch;
  padding-block-start: .68em;
  margin-block-start: clamp(10px, 1.2vw, 22px);
  font-size: clamp(1rem, 1.14vw, 1.35rem);
  font-weight: 460;
  letter-spacing: -.026em;
  line-height: 1.36;
  overflow-wrap: break-word;
  hyphens: manual;
}
.impact-caption::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  opacity: .34;
  background: currentColor;
  transform-origin: left center;
}
.impact-caption-window { overflow: hidden; }
/* The transparent control covers the whole tile without introducing native
   button layout between the figures and the shared caption track. */
.impact-toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
}
.impact-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.impact-toggle:is(:active, [data-touch-pressed], [aria-pressed="true"]) {
  box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 13%), inset 0 2px 6px rgb(0 0 0 / 12%);
}
@media (hover: hover) {
  .impact-toggle:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 100vmax rgb(0 0 0 / 5%); }
}

@media (prefers-reduced-motion: no-preference) {
  .impact-toggle { transition: box-shadow .22s ease-out; }
  .impact-ink, .impact-caption-copy {
    --phase: clamp(0, calc((var(--impact-progress, 1) - var(--start, 0)) / (1 - var(--start, 0))), 1);
    --remaining: calc(1 - var(--phase));
    transform: translateY(calc(103% * var(--remaining) * var(--remaining) * var(--remaining)));
  }
  .impact-ink:nth-child(2) { --start: .10; }
  .impact-ink:nth-child(3) { --start: .20; }
  .impact-caption-copy { --start: .14; }
  .impact-caption::before {
    --remaining: calc(1 - var(--impact-progress, 1));
    transform: scaleX(calc(1 - var(--remaining) * var(--remaining) * var(--remaining)));
  }
  .impact-face:has(.impact-toggle:focus-visible) { --impact-progress: 1; }
}

@media (max-width: 700px) {
  .impact-board {
    --tile-gutter: clamp(12px, 3.2vw, 21px);
    grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
    grid-template-rows: minmax(clamp(88px, 18vw, 128px), auto) auto
                        minmax(clamp(62px, 13vw, 98px), auto) auto
                        minmax(clamp(58px, 12vw, 90px), auto) auto;
    gap: 3px;
  }
  .impact-reach { grid-area: 1 / 1 / 3 / 3; }
  .impact-years { grid-area: 3 / 1 / 5 / 2; }
  .impact-measurements { grid-area: 3 / 2 / 5 / 3; }
  .impact-congress { grid-area: 5 / 1 / 7 / 2; }
  .impact-students { grid-area: 5 / 2 / 7 / 3; }
  .impact-years, .impact-congress { --number-size: min(40cqi, 6rem); }
}
@media print {
  .impact-metric { break-inside: avoid; }
  .impact-face { --impact-progress: 1; }
}
