/* One collection = populous.com/collections/cricket-venues (measured): film hero with the name at column 7, statement, short text, 3 featured projects, project list with hover preview, next collections. Values in design/populous-ref/SPEC.md. White and black only. */
body.cl { background: #fff; color: #010101; font-size: var(--fs); line-height: 1.5; --w2: calc((100 * var(--vw) - 2 * var(--gm)) / 6 - var(--gut) * 5 / 6); }
.cl button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
.cl :focus-visible { outline: 2px solid #010101; outline-offset: 3px; }
.cl main { display: block; }
.cl ul { list-style: none; margin: 0; padding: 0; }

/* hero (c-media-hero): film is 100lvh sticky inside a taller layer so it stays put while the box scrolls away (curtain); --p fades it to .3; name at column 7, 33.33vh down */
.cl .cl-hero { display: block; height: 100svh; padding: 0; }
.cl-hero .mh-bgi > img { object-position: center; }
.cl-hero .mh-bgi::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(1, 1, 1, .35), rgba(1, 1, 1, 0) 45%, rgba(1, 1, 1, .3)); }
@media (prefers-reduced-motion: no-preference) { .cl-hero .mh-bgi > img { animation: mhReveal .9s var(--ease); } }
.cl-hero.logo .mh-bgi > img { object-fit: contain; object-position: 25% 50%; }
.cl .cl-hero h1 { position: absolute; z-index: 2; top: max(33.33vh, 150px); left: calc(var(--gm) + var(--w6) + var(--gut)); max-width: var(--w6); margin: 0; font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; font-weight: 400; text-wrap: balance; }

/* statement over columns 1 to 3 of 4 (max 57.25rem), short text at column 7 (31.25rem) */
.cl-in { padding: var(--sp-big) var(--gm) 0; }
.cl-in h2 { max-width: calc(.75 * (100 * var(--vw) - 2 * var(--gm)) - .25 * var(--gut)); margin: 0 0 .5em; font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.05em; font-weight: 400; text-wrap: balance; }
.cl-in p { max-width: 31.25rem; margin: var(--sp-big) 0 0 calc(var(--w6) + var(--gut)); }

/* featured projects (c-featured-list): title top left, 2-col grid, item 3n+1 on the right, 3n+3 full width */
.cl-fl { overflow: hidden; margin-top: var(--sp-big); padding: 0 var(--gm); }
.cl-fi { position: relative; }
.cl-ft { position: absolute; top: 0; left: 0; width: calc(50% - var(--gut) / 2); max-width: 18.75rem; margin: 0; font-size: var(--fs-l); line-height: 1.2; font-weight: 400; }
.cl-fg { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--gut); row-gap: var(--sp-large); }
.cl-fg li:nth-child(3n+1) { grid-column-start: 2; }
.cl-fg li:nth-child(3n+3) { grid-column-start: span 2; }

/* card (c-card-default), shared by featured and next collections */
.cl .fc { display: flex; flex-direction: column; gap: calc(var(--fs) * .75); }
.cl .fc-im { position: relative; aspect-ratio: 16 / 9; overflow: hidden; clip-path: inset(0 round 4px); background: #e6e6e6; }
.cl .fc-im img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.cl .fc-im[data-fit="logo"] img { object-position: 50% 58%; }
.cl .fc-ct { display: flex; justify-content: space-between; gap: var(--gut); }
.cl .fc-ct h3, .cl .fc-ct p { margin: 0; font-size: var(--fs); line-height: 1.5; font-weight: 400; }
@media (prefers-reduced-motion: no-preference) {
  .cl-fg .fc-im { transform: scale(1.175) translate3d(0, var(--sp-big), 0); opacity: 0; }
  .cl-fg .io.in .fc-im { transform: none; opacity: 1; transition: transform 1.5s var(--ease), opacity .6s var(--ease); }
}
@media (hover: hover) { .cl .fc:hover h3 { text-decoration: underline; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .cl .fc:hover .fc-im img { transform: scale(1.05); transition: transform .6s var(--ease); } }

/* project list (c-list): name 1-6, location 7-9, third column 10-12; hover band; preview sticks bottom right while the list is on screen */
.cl-pl { margin: var(--sp-large) var(--gm) 0; }
.cl-ph { margin: 0 0 40px; font-size: var(--fs-l); line-height: 1.2; letter-spacing: -.05em; font-weight: 400; }
.cl-ls { position: relative; }
@media (hover: hover) and (min-width: 1000px) { .cl-ls { min-height: 17vw; } }
.cl-r { position: relative; }
.cl-r::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gm) * -1); right: calc(var(--gm) * -1); background: #010101; opacity: 0; z-index: -1; transition: opacity .3s var(--ease); }
.cl-r:hover::before, .cl-r:focus-within::before { transition-duration: 0s; opacity: .15; }
.cl-it { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px calc(var(--gut) * 1.25); }
.cl-it > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-it .n { grid-column: span 2; order: 1; }
.cl-it .l { order: 2; }
.cl-it .i { order: 3; }
.cl-a::after { content: ""; position: absolute; inset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .cl-r { animation: rowUp .9s var(--ease) both; animation-play-state: paused; animation-delay: calc(var(--n, 0) * .02s); }
  .cl-rows.in .cl-r { animation-play-state: running; }
}
@keyframes rowUp { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
.cl-pvw { position: absolute; top: calc(-100vh + var(--w2)); left: calc(var(--gm) * -1); right: calc(var(--gm) * -1); bottom: -32px; z-index: 1; display: flex; justify-content: flex-end; pointer-events: none; }
.cl-pvi { position: sticky; top: 0; width: 100%; height: 100vh; }
.cl-pvc { position: absolute; bottom: 32px; right: 32px; width: var(--w3); height: var(--w2); margin: 0; clip-path: polygon(-10% 0, -10% 110%, 110% 110%, 110% 0); --ps: .6s; }
.cl-ls:not(.sp) .cl-pvc { visibility: hidden; clip-path: polygon(0 0, 0 0, 100% 0, 100% 0); transition: visibility 0s linear var(--ps), clip-path var(--ps) var(--ease); }
.cl-ls.sp .cl-pvc { transition: clip-path var(--ps) var(--ease); }
.cl-pvc img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: top center; background: #010101; }
.cl-pvc img:not(.is-active) { visibility: hidden; transition: visibility 0s linear var(--ps); animation: lpIn var(--ps) var(--ease), lpOut var(--ps) var(--ease); }
.cl-pvc img.is-active { transform: translate3d(0, 0, 0); animation: lpIn var(--ps) var(--ease); }
.cl-pvc img.stop { clip-path: polygon(0 100%, 0 100%, 100% 100%, 100% 100%); animation: none !important; }
@keyframes lpIn { from { clip-path: polygon(0 100%, 0 100%, 100% 100%, 100% 100%); } to { clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0); } }
@keyframes lpOut { from { transform: scale(1); opacity: 1; } to { transform: scale(.9); opacity: 0; } }

/* next collections: two 6-column cards */
.cl-ot { margin: var(--sp-big) var(--gm) 0; }
.cl-ot h2 { margin: 0 0 40px; font-size: var(--fs-l); line-height: 1.2; letter-spacing: -.05em; font-weight: 400; }
.cl-og { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-large) var(--gut); }

@media (max-width: 999px) { .cl-pvw { display: none; } .cl-in p { margin-left: 0; } .cl .cl-hero h1 { left: var(--gm); max-width: calc(100% - 2 * var(--gm)); } }
@media (max-width: 699px) {
  .cl-in { padding-top: 80px; }
  .cl-in p { margin-top: 40px; }
  .cl-fl, .cl-ot { margin-top: 80px; }
  .cl-ft { position: static; width: auto; margin-bottom: 40px; }
  .cl-fg { grid-template-columns: 1fr; row-gap: 40px; }
  .cl-fg li:nth-child(n) { grid-column: auto; }
  .cl-pl { margin-top: 45.5px; }
  .cl-it { grid-template-columns: 1fr auto; padding-top: 10px; padding-bottom: 20px; gap: 0 var(--gut); }
  .cl-it .n { order: 3; grid-column: 1 / -1; font-size: 21px; line-height: 1.4; letter-spacing: -.025em; }
  .cl-it .l { order: 1; font-size: 12px; line-height: 1.6; }
  .cl-it .i { order: 2; font-size: 12px; line-height: 1.6; justify-self: end; }
  .cl-r::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; border-top: 1px solid; opacity: .1; }
  .cl-og { grid-template-columns: 1fr; row-gap: 45.5px; }
}
@media (max-width: 499px) { .cl .fc-ct { flex-direction: column-reverse; gap: .25rem; } .cl .fc-ct p { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .cl-hero .mh-bgi > img, .cl-r { animation: none; } }

@media (max-width: 699px) { .cl-a { display: inline-block; padding: 9px 0; } }

/* released page: breadcrumbs under the hero, the one plain link to the page that owns the search term */
.cl .st-bc { margin: 24px var(--gm) 0; }
.cl-own { margin-top: 28px; }
.cl-own a { text-decoration: underline; text-underline-offset: 3px; }
