/* Selected work (/work/): the featured rows without holes, the selected rows with one preview in a fixed
   slot (3.11) and the brands. Each featured row shares one height: the big tile spans seven columns at 16:11, the small
   one five columns cropped to the same height; both captions sit on one baseline (subgrid). */

.feat { display: grid; row-gap: var(--sp-104); margin-top: var(--sp-104); }
.feat-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: var(--g); }
.feat-row > .tile { display: grid; grid-row: 1 / span 2; grid-template-rows: subgrid; row-gap: 0; }
.feat-row.is-left > .f-big { grid-column: 1 / span 7; }
.feat-row.is-left > .f-small { grid-column: 8 / span 5; }
.feat-row.is-right > .f-small { grid-column: 1 / span 5; }
.feat-row.is-right > .f-big { grid-column: 6 / span 7; }
.feat-row .f-small .cover { aspect-ratio: auto; height: 100%; min-height: 0; }
.feat-row .f-small .cover > img { position: absolute; inset: 0; }
.feat-row .cap { align-self: start; }
@media (max-width: 767px) {
  .feat { row-gap: 40px; margin-top: var(--sp-64); }
  .feat-row { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 40px; }
  .feat-row > .tile { grid-row: auto; grid-column: 1 / -1 !important; display: block; }
  .feat-row.is-right > .f-big { order: 2; }
  .feat-row .f-small .cover { aspect-ratio: 4 / 5; height: auto; }
  .feat-row .f-big .cover { --ar: 16 / 11; }
  /* a US cover is square with its phone larger (as on /us/), so no tile is mostly an empty field */
  .feat-row .f-small .cover:has(> .uc) { aspect-ratio: 1 / 1; }
  .feat-row .f-small .uc-phone { width: 30cqw; bottom: -10%; }
}

/* the selected rows */
.work-ix { padding-top: var(--sec); }
.ar-preview { --ar: 4 / 3; }
.ix-row a { transition: color var(--dur-ui) var(--ease-out); }
.ix-row a:focus-visible { outline-offset: -2px; }
.ix-preview > .is-on { z-index: 1; }
/* a US row's ad line on the brand's field, without the phone (no image twice on the page): set in the brand's face */
.cover.is-line .uc-line { display: block; top: 50%; transform: translateY(-50%); max-width: 86cqw; }
.ix-preview .is-line .uc-line { font-size: clamp(28px, 9cqw, 64px); left: 9cqw; }
/* a featured US case's preview is its ad-line thumbnail: the line alone on the field (its city is in the tile above) */
.ix-preview .is-line .uc-city { display: none; }
.ix-thumb .is-line .uc-line { left: 9cqw; max-width: 84cqw; font-size: 10.5cqw; line-height: 1.04; letter-spacing: 0; }
.ix-thumb .is-line .uc-line span { white-space: normal; }
/* a phone thumbnail is too small for the ad line: the brand's field and its site in the phone */
.ix-thumb .uc-line { display: none; }
.ix-thumb .uc-phone { right: 14cqw; width: 34cqw; bottom: -30%; }

/* the brands */
.br-h { grid-column: 1 / span 9; }
.br-line { grid-column: 1 / span 7; margin-top: 24px; color: var(--ink-2); max-width: 52ch; }
.work-mw { margin-top: var(--sp-64); }
