/* Partners page. Shared tokens and components come from base.css. Prefix: pt- */

/* ------------------------------------------------------------------ hero: photo left, text right */
.pt-hero { padding-top: calc(var(--header-h) + clamp(32px, 6vw, 88px)); padding-bottom: clamp(56px, 7vw, 104px); }
.pt-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.pt-hero__figure { order: -1; position: relative; isolation: isolate; margin: 0; }
/* A flag-yellow block sits behind the photo, offset down and left. */
.pt-hero__figure::before { content: ""; position: absolute; z-index: -1; inset: 0; transform: translate(-18px, 18px); background: var(--accent); border-radius: var(--radius); }
.pt-hero__media { aspect-ratio: 1; }
.pt-hero__media img { object-position: 52% 50%; }
.pt-hero__text { display: grid; gap: 28px; justify-items: start; }
.pt-hero__title { margin-top: 4px; font-size: clamp(3rem, 1.2rem + 4.6vw, 6.25rem); }
.pt-hero__title em { color: var(--accent-text); }
.pt-hero__ctas { gap: 16px 28px; margin-top: 6px; }
@media (max-width: 899px) {
  .pt-hero__grid { grid-template-columns: 1fr; }
  .pt-hero__figure { order: 0; margin-left: 14px; }
  .pt-hero__media { aspect-ratio: 4 / 3; }
  .pt-hero__figure::before { transform: translate(-12px, 12px); }
}
/* Landscape phones: a short title block, and the photo beside the text, so the button is in the first screen. */
@media (min-width: 560px) and (max-height: 520px) {
  .pt-hero { padding-top: calc(var(--header-h) + 8px); padding-bottom: 32px; }
  .pt-hero__text { gap: 12px; }
  .pt-hero__title { margin-top: 0; font-size: clamp(2.25rem, 11vh, 3.25rem); }
  .pt-hero .lead { font-size: 1rem; }
  .pt-hero__ctas { margin-top: 0; }
}
@media (min-width: 560px) and (max-height: 340px) {
  .pt-hero .lead { line-height: 1.3; }
  .pt-hero__text { gap: 8px; }
}
@media (min-width: 560px) and (max-width: 899px) and (max-height: 520px) {
  .pt-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; }
  .pt-hero__figure { order: 1; margin-left: 0; }
  .pt-hero__media { aspect-ratio: 4 / 3; }
}

/* ------------------------------------------------------------------ reach band (flag yellow, ink text in both themes) */
.pt-reach { background: var(--accent); color: var(--accent-ink); padding-block: clamp(48px, 7vw, 104px); }
.pt-reach__grid { display: grid; grid-template-columns: 0.8fr 0.95fr 1.3fr 1.2fr; gap: 36px clamp(20px, 3vw, 56px); margin: 0; }
.pt-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; min-width: 0; }
.pt-stat__value { margin: 0; font-size: clamp(3.5rem, 1rem + 6.2vw, 9rem); font-weight: 900; font-stretch: 62%; line-height: 0.84; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-stat__label { max-width: 22ch; font-size: var(--step--1); font-weight: 600; line-height: 1.4; }
.pt-reach__note { margin-top: clamp(28px, 4vw, 48px); font-size: var(--step--1); font-weight: 500; }
@media (max-width: 899px) { .pt-reach__grid { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ why: stacking cards */
.pt-why .pt-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pt-card {
  position: sticky; top: calc(var(--header-h) + 18px + var(--i) * 16px);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 28px clamp(32px, 5vw, 88px);
  min-height: min(54vh, 460px); padding: clamp(24px, 3vw, 44px);
  border-radius: var(--radius); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-strong), 0 -22px 40px -30px rgb(0 0 0 / 0.35);
  transform-origin: center top;
}
.pt-card__head { display: grid; align-content: space-between; gap: 24px; }
.pt-card__icon { width: 48px; height: 48px; color: var(--accent-text); }
.pt-card__title { font-size: clamp(2.4rem, 0.9rem + 4.8vw, 6rem); font-weight: 880; font-stretch: 64%; text-transform: uppercase; line-height: 0.88; text-wrap: balance; word-spacing: 0.14em; }
.pt-card__body { align-self: end; display: grid; gap: 18px; max-width: 50ch; color: var(--ink-2); font-size: var(--step-1); }
.pt-card__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--step-0); }
.pt-card__points li { position: relative; padding-left: 26px; }
.pt-card__points li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 4px; background: linear-gradient(90deg, var(--stripe-1) 0 33.3%, var(--flag-yellow) 0 66.6%, var(--flag-red) 0); }
@media (max-width: 899px) {
  .pt-card { grid-template-columns: 1fr; min-height: 0; }
}
/* Phones, and short windows (landscape phones) where a stuck card would be taller than the screen: plain flow. */
@media (max-width: 767px), (max-height: 600px) {
  .pt-card { position: static; }
}

/* ------------------------------------------------------------------ media channels */
.pt-channels { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pt-channel {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); gap: 16px clamp(24px, 5vw, 80px); align-items: baseline;
  padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line);
  transition: padding 0.5s var(--ease-out);
}
.pt-channel__title { font-size: clamp(2.4rem, 0.9rem + 4.4vw, 5.5rem); font-weight: 880; font-stretch: 64%; text-transform: uppercase; line-height: 0.9; transition: color 0.35s; word-spacing: 0.14em; }
.pt-channel__text { display: grid; gap: 10px; max-width: 52ch; color: var(--ink-2); }
.pt-channel__reach { color: var(--muted); }
.pt-channel:hover { padding-inline: 12px; }
.pt-channel:hover .pt-channel__title { color: var(--accent-text); }
@media (max-width: 767px) {
  .pt-channel { grid-template-columns: 1fr; }
  .pt-channel:hover { padding-inline: 0; }
}

/* ------------------------------------------------------------------ tiers: big words as tabs */
.pt-tierbox { display: grid; gap: clamp(28px, 4vw, 56px); }
.pt-tabs { display: flex; flex-wrap: wrap; gap: 8px clamp(20px, 3vw, 48px); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.pt-tab {
  position: relative; padding: 0 0 4px; color: var(--muted);
  font-size: clamp(2rem, 0.8rem + 3.6vw, 4.5rem); font-weight: 880; font-stretch: 64%;
  text-transform: uppercase; line-height: 1;
  transition: color 0.3s; word-spacing: 0.14em; }
.pt-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -15px; height: 5px; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform 0.5s var(--ease-out); }
.pt-tab:hover { color: var(--ink-2); }
.pt-tab[aria-selected="true"] { color: var(--ink); }
.pt-tab[aria-selected="true"]::after { transform: scaleX(1); }
.pt-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 104px); align-items: start; }
.pt-panel[hidden] { display: none; }
.pt-panel.is-entering { animation: pt-in 0.7s var(--ease-out) both; }
@keyframes pt-in { from { opacity: 0; transform: translateY(18px); } }
.pt-panel__intro { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.pt-panel__name { font-size: var(--step-4); font-weight: 880; font-stretch: 64%; text-transform: uppercase; line-height: 0.9; word-spacing: 0.14em; }
.pt-panel__intro .lead { font-size: var(--step-0); }
.pt-panel__groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px clamp(24px, 4vw, 64px); }
.pt-group__title { display: grid; gap: 12px; font-size: var(--step-1); font-weight: 760; font-stretch: 80%; line-height: 1.15; }
.pt-group__title::before { content: ""; width: 28px; height: 5px; background: linear-gradient(90deg, var(--stripe-1) 0 33.3%, var(--flag-yellow) 0 66.6%, var(--flag-red) 0); }
.pt-group__list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.pt-group__list li { position: relative; padding-left: 18px; }
.pt-group__list li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 8px; height: 3px; background: var(--accent-text); }
@media (max-width: 767px) {
  .pt-tabs { flex-wrap: nowrap; gap: 24px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: thin; }
  .pt-tab { flex: none; font-size: 2rem; }
}
@media (max-width: 899px) {
  .pt-panel { grid-template-columns: 1fr; }
  .pt-panel__intro { position: static; }
  .pt-panel__groups { grid-template-columns: 1fr; gap: 32px; }
}

/* ------------------------------------------------------------------ comparison matrix: three clusters */
.pt-matrix { display: grid; gap: clamp(32px, 4vw, 56px); }
.pt-cluster { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.pt-cluster__title { caption-side: top; padding-bottom: 16px; text-align: left; font-size: var(--step-3); font-weight: 840; font-stretch: 70%; text-transform: uppercase; line-height: 1; word-spacing: 0.14em; }
.pt-cluster__title::before { content: ""; display: block; margin-bottom: 14px; width: 40px; height: 6px; background: linear-gradient(90deg, var(--stripe-1) 0 33.3%, var(--flag-yellow) 0 66.6%, var(--flag-red) 0); }
.pt-cluster thead th { padding: 12px 14px; text-align: left; font-size: 0.9375rem; font-weight: 700; font-stretch: 92%; }
.pt-cluster__feature { width: 30%; }
.pt-cluster thead th[data-tier="title"] { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius) var(--radius) 0 0; }
.pt-cluster tbody th, .pt-cluster td { padding: 16px 14px; text-align: left; vertical-align: top; }
.pt-cluster tbody th { font-weight: 620; }
.pt-cluster td { font-weight: 600; }
.pt-cluster td.is-no { color: var(--muted); font-weight: 450; }
.pt-cluster tbody tr:nth-child(odd) > * { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.pt-cluster tbody td[data-tier="title"] { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.pt-cluster tbody tr:last-child td[data-tier="title"] { border-radius: 0 0 var(--radius) var(--radius); }
.pt-cluster tbody tr:hover > * { background: color-mix(in srgb, var(--ink) 9%, transparent); }
.pt-cluster tbody tr:hover > td[data-tier="title"] { background: color-mix(in srgb, var(--accent) 38%, transparent); }
.pt-cluster [data-tier] { transition: opacity 0.35s; }
/* Putting one tier in focus dims the others (wide screens) or hides them (phones). */
.pt-matrix[data-focus="title"] [data-tier]:not([data-tier="title"]),
.pt-matrix[data-focus="gold"] [data-tier]:not([data-tier="gold"]),
.pt-matrix[data-focus="silver"] [data-tier]:not([data-tier="silver"]),
.pt-matrix[data-focus="bronze"] [data-tier]:not([data-tier="bronze"]) { opacity: 0.26; }
@media (max-width: 767px) {
  .pt-matrix[data-focus="title"] [data-tier]:not([data-tier="title"]),
  .pt-matrix[data-focus="gold"] [data-tier]:not([data-tier="gold"]),
  .pt-matrix[data-focus="silver"] [data-tier]:not([data-tier="silver"]),
  .pt-matrix[data-focus="bronze"] [data-tier]:not([data-tier="bronze"]) { display: none; }
  .pt-matrix__focus [data-focus-tier="all"] { display: none; }
  .pt-cluster__feature { width: 52%; }
  .pt-cluster thead th, .pt-cluster tbody th, .pt-cluster td { padding-inline: 10px; }
}

/* ------------------------------------------------------------------ reporting: three steps that grow */
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); align-items: end; }
.pt-step { display: grid; gap: 12px; align-content: end; padding: clamp(22px, 2.4vw, 34px); border-radius: var(--radius); background: var(--bg-2); }
.pt-step--1 { min-height: 250px; }
.pt-step--2 { min-height: 330px; }
.pt-step--3 { min-height: 410px; background: var(--accent); color: var(--accent-ink); }
.pt-step__when { text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.pt-step__title { font-size: var(--step-3); font-weight: 860; font-stretch: 68%; text-transform: uppercase; line-height: 0.95; word-spacing: 0.14em; }
.pt-step__body { max-width: 34ch; }
.pt-report__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 6vw, 96px); margin-top: clamp(48px, 6vw, 88px); }
.pt-ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.pt-ticks li { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); }
.pt-ticks .icon { color: var(--accent-text); transform: translateY(0.18em); }
@media (max-width: 899px) {
  .pt-steps { grid-template-columns: 1fr; align-items: stretch; }
  .pt-step--1, .pt-step--2, .pt-step--3 { min-height: 0; }
  .pt-report__lists { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ current partners */
.pt-empty {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(32px, 5vw, 64px); padding: clamp(28px, 5vw, 72px);
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
}
.pt-empty__text { display: grid; gap: 20px; justify-items: start; }
.pt-empty__title { font-size: clamp(2.6rem, 1rem + 5.4vw, 6.5rem); font-weight: 880; font-stretch: 64%; text-transform: uppercase; line-height: 0.88; text-wrap: balance; word-spacing: 0.14em; }
/* Four empty slots shrink from Title down to Bronze, the same order as the tiers. */
.pt-empty__ladder { display: grid; gap: 10px; }
.pt-slot { display: flex; align-items: center; padding: 0 20px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pt-slot--1 { height: 132px; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); }
.pt-slot--2 { height: 92px; }
.pt-slot--3 { height: 68px; }
.pt-slot--4 { height: 52px; }
@media (max-width: 899px) { .pt-empty { grid-template-columns: 1fr; } }

.pt-wall { display: grid; gap: 48px; margin-top: clamp(32px, 5vw, 64px); }
.pt-wall__tier { margin-bottom: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.pt-wall__logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pt-wall__group:first-child .pt-wall__logos { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pt-logo { display: grid; place-items: center; aspect-ratio: 3 / 2; padding: 22px; border-radius: var(--radius); background: #f6f6f2; transition: transform 0.4s var(--ease-out); }
a.pt-logo:hover { transform: translateY(-4px); }
.pt-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.pt-wall__name { color: #121311; font-size: 1.5rem; font-weight: 800; font-stretch: 70%; text-transform: uppercase; text-align: center; line-height: 1; word-spacing: 0.14em; }

/* ------------------------------------------------------------------ contact */
.pt-contact__panel {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 24px; justify-items: start;
  padding: clamp(40px, 7vw, 104px) clamp(24px, 6vw, 96px);
  border-radius: var(--radius); background: #121311; color: #f3f3f0;
  box-shadow: 0 0 0 1px rgb(243 243 240 / 0.14);
}
.pt-contact__title { max-width: 12ch; }
.pt-contact__panel .lead { max-width: 46ch; color: rgb(243 243 240 / 0.86); }
.pt-contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 56px; margin-top: 12px; }
.pt-contact__panel .btn--accent { --btn-fill: #f3f3f0; --btn-fill-fg: #121311; }
.pt-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pt-contact__list li { display: flex; align-items: center; gap: 12px; }
.pt-contact__list .icon { color: var(--accent); flex: none; }
.pt-contact__list a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.pt-contact__list a:hover { color: var(--accent); }
.pt-contact__panel::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: 50%; width: min(720px, 80vw); aspect-ratio: 1; border-radius: 50%;
  transform: translateY(-50%);
  background: repeating-radial-gradient(circle at center, transparent 0 26px, rgb(243 243 240 / 0.13) 26px 28px);
  -webkit-mask: radial-gradient(circle, #000 60%, transparent 71%);
  mask: radial-gradient(circle, #000 60%, transparent 71%);
}
@media (max-width: 767px) { .pt-contact__panel::after { right: -55%; top: 92%; } }
