/* Mosaico: as capas ocupam o ecrã todo, agrupadas por tipo; a fotografia em foco expande, as outras ficam a preto e branco. */
.page { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: var(--pad); padding-bottom: 0 !important; overflow-x: clip; }
.mp-ctl { margin-top: var(--s6); }
.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); }
.k { font-family: var(--mono); font-size: 11px; color: var(--mute); text-transform: uppercase; }
.chip { all: unset; cursor: pointer; box-sizing: border-box; padding: 7px 14px 6px; border: 1px solid var(--ink); border-radius: 99px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; transition: background 0.25s, color 0.25s, transform 0.3s var(--curve); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip:focus-visible, .tl:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }

.mosaic { flex: 1; min-height: 460px; display: flex; gap: 6px; margin: var(--s4) calc(var(--pad) * -1) 0; padding: 0 var(--pad) calc(var(--pad) * 3 + 14px); }
.grp { flex: var(--c) 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s2); transition: flex-grow 0.9s var(--curve), opacity 0.5s var(--curve-fade); }
.grp.off { flex-grow: 0.0001; opacity: 0; pointer-events: none; overflow: hidden; }
.g-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); white-space: nowrap; overflow: hidden; }
.g-n { font-stretch: 112%; font-weight: 900; font-size: clamp(16px, 1.9vw, 30px); letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.g-m { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.g-cols { flex: 1; min-height: 0; display: flex; gap: 6px; }
.g-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; transition: flex-grow 0.8s var(--curve); }
.g-col:hover, .g-col:focus-within { flex-grow: 1.35; }

.tl { position: relative; flex: 1 1 0; min-height: 0; display: block; overflow: hidden; background: var(--ph); text-decoration: none; color: #fff; transition: flex-grow 0.8s var(--curve), filter 0.5s var(--curve-fade), opacity 0.5s var(--curve-fade); }
.tl:hover, .tl:focus-visible { flex-grow: 2.3; }
.tl img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--curve); }
.tl:hover img, .tl:focus-visible img { transform: scale(1.06); }
.tl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), transparent 45%); opacity: 0.85; transition: opacity 0.5s; pointer-events: none; }
.tl-c { position: absolute; z-index: 1; left: var(--s4); bottom: var(--s3); right: var(--s4); }
.tl-c b { display: block; font-stretch: 112%; font-weight: 900; font-size: clamp(15px, 1.7vw, 28px); line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.tl-c i { display: block; margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: 11px; opacity: 0.85; }
.mosaic.hv .tl:not(:hover):not(:focus-visible) { filter: grayscale(1) contrast(1.05); opacity: 0.55; }

html.js .tl { animation: rev 1.1s cubic-bezier(0.16, 1, 0.3, 1) backwards; animation-delay: calc(var(--d) * 90ms + 0.1s); }
@keyframes rev { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

@media (max-width: 800px) {
  .mosaic { flex-direction: column; gap: var(--s6); min-height: 0; }
  .grp.off { flex-grow: 0; max-height: 0; }
  .grp { flex: none; }
  .g-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .g-col { display: contents; }
  .tl { aspect-ratio: 3 / 2; flex: none; }
  .tl:hover, .tl:focus-visible { flex-grow: 0; }
  .tl-c b { font-size: 13px; } .tl-c i { font-size: 10px; }
}
@media (hover: none) { .mosaic.hv .tl { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.js .tl { animation: none; } .grp, .g-col, .tl, .tl img, .chip { transition: none; } }
