/* ==========================================================================
   Case pages (Valid8, Apple, Just Football): only what kls.css does not have.
   Same rules: the work stands on a stage, lands once, then stands still.
   ========================================================================== */

/* a logo that needs a white ground to read on its stage */
.logo-chip { display: inline-flex; align-items: center; justify-self: start; background: #fff; border-radius: 14px; padding: clamp(10px, 1vw, 14px) clamp(14px, 1.4vw, 20px); }
.logo-chip .logo { height: clamp(26px, 2.6vw, 38px); }

/* one piece of work standing on a chapter stage, cut by its bottom edge */
.stand { container-type: inline-size; display: grid; place-items: end center; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 56px) 0; }
.chapter .stage.stand { min-height: 0; }
.stand .phone { --w: min(300px, 64vw); border-radius: calc(var(--w) * .16) calc(var(--w) * .16) 0 0; padding-bottom: 0; }
.stand .phone .screen { aspect-ratio: 664 / 1250; border-radius: calc(var(--w) * .12) calc(var(--w) * .12) 0 0; }
.stand .browser { --w: min(100cqw, 980px); border-radius: calc(var(--w) * .016) calc(var(--w) * .016) 0 0; }

/* a real capture that already carries its own frame: centred, with air all round */
.stand.pad { place-items: center; padding: clamp(24px, 5vw, 72px) clamp(16px, 5vw, 72px); }
.shot { width: min(100%, 1120px); height: auto; border-radius: clamp(12px, 1.4vw, 20px); box-shadow: 0 1px 0 rgba(13, 16, 22, .04), 0 30px 60px -34px rgba(13, 16, 22, .45); }

/* a photograph that fills its stage */
.chapter .stage.photo { min-height: 0; aspect-ratio: 16 / 8; }
.stage.photo > img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }

/* three tablets side by side; only the middle one reads its page */
.trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(10px, 2.4vw, 36px); padding: clamp(32px, 5vw, 72px) clamp(12px, 3vw, 48px) 0; }
.chapter .stage.trio { min-height: 0; }
.trio .tablet { --w: min(26vw, 340px); border-radius: calc(var(--w) * .07) calc(var(--w) * .07) 0 0; padding-bottom: 0; }
.trio .tablet .screen { border-radius: calc(var(--w) * .035) calc(var(--w) * .035) 0 0; }
.trio .tablet.main { --w: min(30vw, 390px); }

/* Just Football: the survey answers, drawn from the real counts */
.survey { display: grid; gap: clamp(14px, 1.6vw, 22px); width: min(100%, 860px); margin-inline: auto; }
.survey .q { font-size: clamp(19px, 1.55vw, 23px); font-weight: 600; letter-spacing: -.01em; margin-bottom: 6px; }
.survey .r { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 4.5em; gap: 16px; align-items: center; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.3; }
.survey .r i { display: block; height: 12px; border-radius: 6px; background: #fff; width: var(--v); transform-origin: left; }
.survey .r b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.js .survey .r i { transform: scaleX(0); }
.js .play .survey .r i { animation: grow .9s var(--ease-out) var(--at, 0s) forwards; }
@keyframes grow { to { transform: none; } }
.stage.survey-stage { display: grid; align-items: center; padding: clamp(32px, 5vw, 72px) clamp(20px, 5vw, 72px); }
.chapter .stage.survey-stage { min-height: 0; }

/* ---- Just Football ---- */
.nowrap { white-space: nowrap; }
/* the band line runs wider and balanced, so "€0,40" never ends up alone on a line */
.band p.lead.fit { grid-column: 1 / span 8; text-wrap: balance; }
/* the question sits under its heading, in the heading's column */
.head-q { grid-column: 1 / span 6; display: grid; gap: clamp(10px, 1.2vw, 16px); }
.head-q h2 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.04; }
.head-q .q { font-size: clamp(19px, 1.55vw, 23px); line-height: 1.38; font-weight: 450; letter-spacing: -.01em; color: var(--muted); }
/* the insights table as a white sheet standing on the grey stage */
.stage.sheet-stage { display: grid; place-items: center; padding: clamp(28px, 6vw, 96px) clamp(16px, 5vw, 96px); }
.chapter .stage.sheet-stage { min-height: 0; }
.sheet { width: min(100%, 1080px); background: #fff; border-radius: clamp(14px, 1.4vw, 20px); padding: clamp(8px, 1.4vw, 20px) clamp(20px, 3vw, 48px); box-shadow: 0 1px 0 rgba(13, 16, 22, .04), 0 30px 60px -34px rgba(13, 16, 22, .35); }
.sheet.pairs > div:first-child { border-top: 0; }
.sheet.pairs > div:last-child { border-bottom: 0; }
.sheet.pairs > div { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(20px, 3vw, 48px); }
.sheet.pairs p:first-child, .sheet.pairs p:last-child { grid-column: auto; }
/* one or two whole phones, large, standing in the middle of their stage */
.stage.phones { display: flex; justify-content: center; align-items: flex-start; gap: clamp(28px, 6vw, 110px); padding: clamp(36px, 7svh, 80px) clamp(16px, 4vw, 56px); }
.chapter .stage.phones { min-height: 0; }
.phones .tall { --h: min(70svh, 820px); --w: min(calc(var(--h) / var(--k)), 72vw); }
.phones figure { display: grid; justify-items: center; gap: clamp(16px, 2vw, 24px); margin: 0; }
.phones figcaption { max-width: 22em; text-wrap: balance; text-align: center; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
/* a wide film on its own stage, never taller than the window */
.chapter .stage.wide-film { min-height: 0; aspect-ratio: 16 / 9; width: min(100%, (100svh - var(--nav-h) - 40px) * 1.778); margin-inline: auto; }
.wide-film > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- Valid8: the demos stand on the product's own warm ground ---- */
.stage.beige { --stage-bg: #f1efeb; --light: rgba(255, 255, 255, .7); }
.chapter .stage.beige { min-height: 0; padding: clamp(24px, 5vw, 80px); }

/* a closing note under the last chapter */
.legal { padding-top: clamp(40px, 5vw, 64px); }
.legal p { grid-column: 7 / span 6; }

@media (max-width: 1000px) {
  .band p.lead.fit { grid-column: 1 / -1; }
  .legal p { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .numbers.says div { grid-column: 1 / -1; }
  .stage.phones { flex-direction: column; align-items: center; }
  .phones .tall { --h: 64svh; }
  .sheet.pairs > div { grid-template-columns: minmax(0, 1fr); }
  .head-q { grid-column: 1 / -1; }
  .chapter .stage.photo { aspect-ratio: 4 / 3; }
  .survey .r { grid-template-columns: minmax(0, 1fr) 3.6em; row-gap: 6px; }
  .survey .r span { grid-column: 1 / -1; }
  .trio .tablet { --w: 26vw; }
  .trio .tablet.main { --w: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
  .js .survey .r i { transform: none; animation: none !important; }
}

/* Valid8: the band says how it was made, in three short statements instead of numbers */
.numbers.says b { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.025em; }
.numbers.says span { font-weight: 450; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.4; max-width: 34ch; }

/* ---- round 26: Just Football ---- */
/* the survey and the photo of the kids as one panel, half and half */
.stage.survey-stage.pair { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; padding: 0; align-items: stretch; overflow: hidden; }
.survey-stage.pair > img { display: block; width: 100%; height: 100%; min-height: clamp(380px, 37vw, 540px); object-fit: cover; object-position: 38% 50%; }
.survey-stage.pair .survey { align-self: center; width: auto; margin: 0; padding: clamp(28px, 4vw, 60px); }
@media (max-width: 860px) {
  .stage.survey-stage.pair { grid-template-columns: minmax(0, 1fr); }
  .survey-stage.pair > img { min-height: 0; aspect-ratio: 4 / 3; }
}
/* the partners: one strip of logos under the band, running left to right. The navy is the one in the picture he sent. */
.partners { --k: .32; background: #19173c; overflow: hidden; padding-block: clamp(24px, 2.8vw, 38px); }
.partners-run { display: flex; width: max-content; animation: partners 30s linear infinite; }      /* four equal rows; it moves by one row and starts again, so no gap can show */
.partners ul { display: flex; flex: none; align-items: center; gap: clamp(44px, 5.5vw, 92px); margin: 0; padding: 0 clamp(22px, 2.75vw, 46px); list-style: none; }
.partners img { display: block; width: calc(var(--w) * var(--k) * 1px); height: calc(var(--h) * var(--k) * 1px); max-width: none; }      /* sizes are fixed before a logo has loaded, so nothing shifts */
@keyframes partners { from { transform: translate3d(-25%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (max-width: 760px) { .partners { --k: .24; } }
@media (prefers-reduced-motion: reduce) {
  .partners-run { animation: none; width: auto; }
  .partners ul { flex-wrap: wrap; justify-content: center; row-gap: 22px; flex: auto; }
  .partners ul + ul { display: none; }
}
/* round 27: the survey stands on the grey panel; its bars carry the orange */
.stage.mist.survey-stage .survey .r i { background: #f0a530; }

