/* Why Partner With Us (wy-, wa-). Concept: the credentials deck, light. Shared pieces live in base.css and system.css. */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.calm { scroll-behavior: auto; }

/* ---------- Hero (light) ---------- */
.wy-hero { position: relative; isolation: isolate; overflow-x: clip; padding: clamp(124px, 16vh, 164px) 0 clamp(64px, 7vw, 104px); background: radial-gradient(60% 70% at 80% 40%, #fff 0%, rgba(255, 255, 255, 0) 70%), var(--paper-soft); }
.wy-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.wy-hero__copy { display: grid; gap: 16px; justify-items: start; }
.wy-hero__copy .t-display { font-size: clamp(2.25rem, min(4vw, 7.6vh), 3.5rem); }
.wy-hero__copy .t-lead { max-width: 56ch; }
.wy-hero__copy .t-body { max-width: 58ch; color: var(--ink-body); }
.wy-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.wy-hero__art { position: relative; padding: 4% 14% 12% 12%; }
.wy-hero__art::before { content: ""; position: absolute; inset: auto auto 4% 2%; width: 48%; aspect-ratio: 2.2 / 1; border-radius: 18px; background: var(--lime); transform: skewX(-24deg); }
.wy-hero__art .loz { position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; box-shadow: var(--shadow-3); }
.wy-chip { position: absolute; inset-inline-end: 0; bottom: 6%; display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 20px; background: var(--navy); box-shadow: var(--shadow-3); }
.wy-chip .num { font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--lime); }
.wy-chip span { max-width: 12ch; font-size: .875rem; font-weight: 700; line-height: 1.35; color: #fff; }

/* ---------- The credentials deck ---------- */
.wa { overflow-x: clip; padding-bottom: calc(var(--section-y) + clamp(48px, 7vw, 104px)); }
.wa__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
/* isolation: the cards' z-index (up to 100) stays inside the deck, below the fixed header and tab bar */
.wa-deck { position: relative; isolation: isolate; z-index: 0; height: 600px; touch-action: pan-y; border-radius: 28px; }
.wa-deck:focus-visible { outline: 3px solid var(--lime-strong); outline-offset: 8px; }
.wa-card { position: absolute; top: 20px; inset-inline-end: 4%; width: min(420px, 78%); height: 550px; display: grid; grid-template-rows: 200px auto auto 1fr; gap: 12px; padding: 14px 14px 26px; border-radius: 26px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-2); transform-origin: 50% 90%; transition: transform .7s var(--ease-out), opacity .5s, box-shadow .4s; user-select: none; }
.wa-card.is-front { box-shadow: var(--shadow-3); }
.wa-card__ph { border-radius: 18px; }
.wa-card__ph img { pointer-events: none; }
.wa-card__top { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 0; }
.wa-card__top b { font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--navy); }
.wa-card h3 { padding-inline: 10px; font-size: clamp(1.25rem, 1.6vw, 1.4375rem); font-weight: 800; letter-spacing: -.015em; color: var(--navy); }
.wa-card > p { padding-inline: 10px; color: var(--ink-soft); }
.wa-side { display: grid; gap: 16px; justify-items: start; }
.wa-count { font-size: 1.25rem; font-weight: 800; color: var(--ink-mute); }
.wa-count [data-now] { font-size: 3rem; letter-spacing: -.03em; color: var(--navy); }
.wa-list { list-style: none; width: 100%; display: grid; gap: 2px; }
.wa-list button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 9px 14px; border-radius: 12px; text-align: start; font-size: .9375rem; font-weight: 700; line-height: 1.35; color: var(--ink-soft); transition: background-color .25s, color .25s; }
.wa-list button b { color: var(--ink-mute); }
.wa-list button:hover { background: var(--paper-soft); color: var(--navy); }
.wa-list button[aria-current] { background: var(--paper-soft); color: var(--navy); }
.wa-list button[aria-current] b { color: var(--lime-strong); }
.wa-ctrl { display: flex; gap: 10px; }
/* the magnetic hover owns .btn .ic's transform, so the back arrow turns with rotate instead */
.wa-ctrl .ic.back { transform: none; rotate: 180deg; }
[dir="rtl"] .wa-ctrl .ic.back { rotate: 0deg; }
.wa-ctrl .btn:hover .ic.back { translate: -4px 0; }
[dir="rtl"] .wa-ctrl .btn:hover .ic.back { translate: 4px 0; }
.wa-hint { font-size: .8125rem; color: var(--ink-mute); }
.calm .wa-card { transition: none; }

@media (max-width: 900px) {
  .wy-hero__grid, .wa__grid { grid-template-columns: minmax(0, 1fr); }
  .wy-hero__art { max-width: 480px; width: 100%; margin-inline: auto; }
  .wa-side { order: -1; }
  .wa-list { display: none; }
}
@media (max-width: 760px) {
  .wy-hero { padding-top: 100px; }
  .wy-hero__copy .t-display { font-size: clamp(1.875rem, 8.4vw, 2.375rem); }
  .wy-btns { width: 100%; }
  .wy-btns .btn { flex: 1 1 100%; }
  .wy-hero__art { padding-inline: 16%; }
  .wa-deck { height: 590px; }
  .wa-card { inset-inline: 0; margin-inline: auto; width: calc(100% - 28px); height: 560px; grid-template-rows: 150px auto auto 1fr; } /* the brief's ten titles run longer */
}
