/* La Staviacoise 2026 — souvenir site. Brand colours from the festival's own charte. */

@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; src: url(../fonts/montserrat-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2");
  font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url(../fonts/barlow-semi-condensed-latin-800-normal.woff2) format("woff2");
  font-weight: 800; font-display: swap; }

:root {
  --blue: #0050be;        /* charte: C94 M72 J0 N0 */
  --blue-deep: #003c8f;
  --wave-1: #a9cdf5;      /* the three layers of the wave (waves() in site.js reads them) */
  --wave-2: #70a8ed;
  --wave-3: var(--blue);
  --red: #e0120d;         /* charte: C0 M97 J95 N0 */
  --red-text: #c20f0b;    /* red for small text on tinted backgrounds (AA) */
  --sun: #f2c94c;
  --ink: #0d1b33;
  --muted: #4a5a75;
  --tint: #eef4fc;
  --line: #d3e0f2;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --text: "Montserrat", Helvetica, Arial, sans-serif;
  --wrap: 72rem;
  --radius: 1rem;         /* cards, photos, films */
  --radius-s: .5rem;      /* thumbnails, logo tiles, the booklet cover */
  --pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.65 var(--text); color: var(--ink); background: #fff; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .15em; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--blue); }
h3 { font-size: 1.5rem; }
figure { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

sup { font-size: .62em; line-height: 0; vertical-align: .55em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: .5rem; }

/* On the blue bands (header, thank-you band, footer, viewer): white links, sun accents */
:is(.band, .foot) a { color: #fff; }
:is(.band, .foot) a:hover { color: var(--sun); }
:is(.top, .band, .foot, .viewer) :focus-visible, .to-top:focus-visible { outline-color: var(--sun); }
main:focus { outline: none; }   /* focused by script after "back to top" */

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--blue); color: #fff; }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none;
  font: 800 1.35rem/1 var(--display); white-space: nowrap; }
.brand img { background: #fff; border-radius: 50%; }
.brand:hover { color: #fff; }
.top nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; padding: .45rem .85rem; border-radius: var(--pill); color: #fff;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.top nav a[aria-current="true"] { background: #fff; color: var(--blue); }
@media (hover: hover) { .top nav a:hover { color: var(--sun); } .top nav a[aria-current="true"]:hover { color: var(--blue); } }

/* Hero */
.hero { overflow-x: clip; /* the entrance scale/rotate never widens the page */
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 1rem; }
.hero-logo { width: min(100%, 30rem); margin: 0 0 .5rem -2%; }
.hero h1 { font-size: clamp(4.5rem, 13vw, 9.5rem); color: var(--red); letter-spacing: -.01em; line-height: .9; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; margin: 1rem 0 0; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: var(--radius); }
.hero-photo figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; text-align: right; }
.hero-photo figcaption a { color: inherit; }

.wave { --h: clamp(4rem, 8vw, 9rem); height: var(--h); margin-top: .5rem;
  /* the festival's wave, mirrored into a seamless tile: never stretched, it repeats instead */
  background: url(../img/vague-tile.svg) 0 0 / auto 100% repeat-x; }

/* Merci band */
.band { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 1rem 0 clamp(3rem, 6vw, 5rem); margin-top: -1px; }
.band .merci { position: relative; }
.merci { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.merci blockquote { grid-column: 1 / -1; margin: 0 0 1rem; max-width: 52rem; }
.merci blockquote p { font: 700 clamp(1.7rem, 3.6vw, 2.7rem)/1.12 var(--display); margin: 0; }
.merci blockquote footer { margin-top: .9rem; color: var(--sun); font-weight: 600; }
.merci-body p { margin: 0 0 1rem; max-width: 36em; }
.merci-body strong { color: var(--sun); }
.merci-photo img { border-radius: var(--radius); }
.merci-photo figcaption { font-size: .8rem; opacity: .85; margin-top: .4rem; }

/* Sections */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-tint { background: var(--tint); }
.sec-lead { margin: .75rem 0 2rem; color: var(--muted); }
.nowrap { white-space: nowrap; }
.sec h2 + .films { margin-top: 2rem; }

/* Films */
.films { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.5rem; align-items: start; }
.film .screen { position: relative; }
.film-main { grid-column: 1 / -1; }
.film-main .qry-film-play span { width: 5.5rem; height: 5.5rem; }
.film-main .qry-film-play svg { width: 2.2rem; height: 2.2rem; }
.film-main figcaption strong { font-size: 1.6rem; }
.film video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: #000; }
.film .qry-film-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(to top, rgb(0 20 60 / .45), transparent 55%); display: grid; place-items: center; }
.film .qry-film-play span { width: 4.4rem; height: 4.4rem; border-radius: 50%; background: var(--red); display: grid; place-items: center;
  box-shadow: 0 .4rem 1.4rem rgb(0 0 0 / .35); transition: transform .2s, background .2s; }
.film .qry-film-play svg { width: 1.7rem; height: 1.7rem; margin-left: .25rem; fill: #fff; }
@media (hover: hover) { .film .qry-film-play:hover span { transform: scale(1.08); background: var(--blue); } }
.film figcaption { margin-top: .6rem; font-size: .92rem; color: var(--muted); }
.film video[controls] { object-fit: contain; }
.film figcaption strong { display: block; color: var(--ink); font: 800 1.3rem/1.15 var(--display); margin-bottom: .1rem; }

/* Programme: five days (a real sequence) + the booklet, one grid of cards */
.prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.days { display: contents; list-style: none; }
.day, .livret { position: relative; overflow: hidden; background: #fff; border-radius: var(--radius); padding: 1.75rem 1.4rem 1.5rem; }
/* the coloured top bar: rounded outside with the card, straight underneath */
.day::before, .livret::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .35rem; background: var(--blue); }
.livret::before { background: var(--red); }
.day h3 { display: flex; align-items: center; gap: .7rem; color: var(--blue); margin-bottom: 1.1rem; }
.dnum { font-size: 3.4rem; line-height: .8; }
.dname { font-size: 1rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.acts li { display: grid; grid-template-columns: 3.4rem 1fr; gap: .6rem; }
.acts time { font: 700 1.05rem/1.45 var(--display); color: var(--blue); }
.acts b { display: block; font-weight: 600; line-height: 1.35; }
.acts span { display: block; font-size: .86rem; line-height: 1.45; color: var(--muted); margin-top: .1rem; }
.acts .hi b { color: var(--red-text); font-weight: 700; }

.livret { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.1rem; text-decoration: none;
  color: var(--ink); }
.livret img { width: min(100%, 12rem); border-radius: var(--radius-s); box-shadow: 0 .5rem 1.4rem rgb(0 80 190 / .22); transition: transform .2s; }
.livret-text b { display: block; font: 800 1.6rem/1.1 var(--display); color: var(--blue); }
.livret-sub { display: block; color: var(--muted); font-size: .9rem; margin-top: .35rem; }
.btn { display: inline-block; margin-top: .9rem; padding: .55rem 1.2rem; border-radius: var(--pill);
  background: var(--red); color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; }
.btn:hover { color: #fff; }   /* beats a:hover (the button is red) */
@media (hover: hover) { .livret:hover img { transform: translateY(-4px) rotate(-1.5deg); } .livret:hover .btn, a.btn:hover { background: var(--blue); } }

.results { margin-top: clamp(2.5rem, 5vw, 4rem); }
.results h3 { color: var(--blue); font-size: clamp(1.9rem, 3.5vw, 2.4rem); margin-bottom: 1.2rem; }
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.result { background: #fff; border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.result img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 25%; }
.result figcaption { padding: 1.1rem 1.3rem 1.3rem; }
.result b { display: block; font: 800 1.4rem/1.1 var(--display); }
.result figcaption > span { display: block; color: var(--muted); font-size: .92rem; margin: .35rem 0 .5rem; }
.result a { font-weight: 600; }
.podium { list-style: none; margin: .7rem 0 0; padding: 0; display: grid; gap: .45rem; }
.podium li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .6rem; align-items: center; font-weight: 600; line-height: 1.3; }
.medal { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font: 800 1rem/1 var(--display); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18); }
.gold { background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .75) 50%, transparent 65%) 160% 0 / 250% 100% no-repeat, #c99a0e; }
.silver { background: #8d97a5; }
.bronze { background: #b06a33; }
.podium li > span:last-child span { font-weight: 400; color: var(--muted); font-size: .88rem; }
.docs { font-size: .92rem; color: var(--muted); margin: 1.1rem 0 0; }

/* Albums */
.albums { display: grid; gap: 2.8rem; }
.state { color: var(--muted); }
.album-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; margin-bottom: .9rem; }
.album-head h3 { font-size: 1.9rem; color: var(--ink); }
.album-head .when { font-weight: 700; color: var(--blue); }
.album.red .album-head .when { color: var(--red); }
.album-head .count { color: var(--muted); font-size: .9rem; margin-left: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: .45rem;
  max-height: 22.5rem; overflow: hidden; position: relative; }
.album.open .grid { max-height: none; }
.grid a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-s); background: var(--tint); }
.grid img { width: 100%; height: 100%; object-fit: cover; color: transparent; transition: transform .3s; }
@media (hover: hover) { .grid a:hover img { transform: scale(1.05); } }
.album .more { display: block; margin: .9rem auto 0; padding: .6rem 1.4rem; border: 2px solid var(--blue); border-radius: var(--pill);
  background: #fff; color: var(--blue); font: 600 .95rem var(--text); cursor: pointer; }
.album.red .more { border-color: var(--red); color: var(--red); }
@media (hover: hover) { .album .more:hover { background: var(--blue); color: #fff; } .album.red .more:hover { background: var(--red); } }
.album:not(.open) .grid::after { content: ""; position: absolute; inset: auto 0 0; height: 4rem;
  background: linear-gradient(transparent, #fff); pointer-events: none; }
.album.fits .grid::after, .album.fits .more { display: none; }

/* Back to top: appears once the footer is in view (toTop() removes .is-hidden; hidden from the first paint) */
.to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30;
  width: 3.2rem; height: 3.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff;
  box-shadow: 0 .4rem 1.2rem rgb(0 20 60 / .3); opacity: 0; visibility: hidden; transform: translateY(1rem) scale(.9);
  transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1), visibility 0s .35s, background .2s; }
.to-top:not(.is-hidden) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }
@media (hover: hover) { .to-top:hover { background: var(--blue); color: #fff; } }

/* Viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(4 12 28 / .96); color: #fff; overscroll-behavior: contain; }
.viewer::backdrop { background: rgb(4 12 28 / .96); }
.viewer figure { position: absolute; inset: 0 0 3.5rem; display: grid; place-items: center; padding: 1rem; }
.viewer img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; user-select: none; }
.viewer figcaption { position: fixed; left: 0; right: 0; bottom: 0; min-height: 3.5rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: .3rem 1rem; padding: .5rem 1rem; font-size: .9rem; }
.viewer figcaption a { color: #fff; }
.viewer figcaption .hd { padding: .25rem .8rem; border: 1px solid rgb(255 255 255 / .5); border-radius: var(--pill); text-decoration: none; }
.viewer figcaption .pos { opacity: .7; }
.v-btn { position: fixed; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 3rem; height: 3rem;
  border-radius: 50%; font: 400 2rem/1 var(--text); cursor: pointer; display: grid; place-items: center; }
.v-btn:hover { background: rgb(255 255 255 / .25); }
.v-prev { left: .75rem; top: 50%; translate: 0 -50%; }
.v-next { right: .75rem; top: 50%; translate: 0 -50%; }
.v-close { right: .75rem; top: .75rem; }

/* Sponsors: a centred thank-you wall, card size by tier */
#sponsors .wrap { text-align: center; }
#sponsors .sec-lead { margin-inline: auto; }
.tier { font-size: 1.35rem; color: var(--blue); margin: 2.4rem 0 1rem; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem;
  --cols: 6; }
.logos li { flex: 0 0 calc((100% - (var(--cols) - 1) * .8rem) / var(--cols)); }
.logos-1 { --cols: 4; }
.logos-2, .logos-3 { --cols: 5; }
.logos a { display: grid; place-items: center; height: 100%; background: #fff; border-radius: var(--radius-s); padding: 1rem 1.2rem;
  border: 1px solid var(--line); }
.logos img { width: 100%; height: 4.2rem; object-fit: contain; }
.logos-1 img { height: 5.5rem; }
.logos-4 img { height: 3.4rem; }
@media (hover: hover) { .logos a:hover { border-color: var(--blue); } }

/* Footer */
.foot { background: var(--blue-deep); color: #fff; padding: 3rem 0; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: center; }
.next { display: flex; align-items: center; gap: 1.2rem; text-decoration: none; }
.next img { width: 8rem; flex: none; }
.next b { display: block; font: 800 1.8rem/1.1 var(--display); color: var(--sun); }
.foot-info p { margin: 0 0 1rem; font-size: .92rem; }

/* 404 */
.logo-404 { width: min(100%, 22rem); }
.title-404 { color: var(--red); font-size: clamp(3rem, 9vw, 5rem); margin-top: 1rem; }

/* Motion: a few moments, all on the festival's own theme (water, float, bubbles).
   1. hero, once: the logo comes into focus, then floats gently like a fishing float;
      "Merci !" rises letter by letter;
   2. the wave moves like water: three layers of travelling sines (waves() in site.js);
   3. bubbles and notes rise and sway behind the thank-you quote, and burst at the surface
      (only while the band is on screen);
   4. the results: the podium is revealed 3rd, 2nd, 1st, and a glint runs over the gold. */
@keyframes focus { from { opacity: .15; filter: blur(14px); transform: scale(.92); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes lift { from { transform: translateY(.9rem); } to { transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-.35rem) rotate(-.6deg); } }
@keyframes letter { from { opacity: 0; transform: translateY(.45em) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(.8rem); } to { opacity: 1; transform: none; } }
@keyframes bubble { 0% { top: 102%; opacity: 0; transform: scale(.6); } 8% { opacity: 1; transform: scale(1); }
  82% { opacity: 1; transform: scale(1); } 92% { opacity: 0; transform: scale(1.35); } 100% { top: 6%; opacity: 0; } }
@keyframes sway { 0%, 100% { translate: calc(var(--a) * -1) 0; rotate: calc(var(--r) * -1); } 50% { translate: var(--a) 0; rotate: var(--r); } }
@keyframes glint { from { background-position: 160% 0; } to { background-position: -60% 0; } }

.hero-logo { animation: focus 1.1s cubic-bezier(.2, .7, .2, 1) .1s both, float 5s ease-in-out 1.3s infinite; }
.hero h1 .letters span { display: inline-block; animation: letter .6s cubic-bezier(.2, .8, .2, 1) calc(.55s + var(--i) * .06s) both; }
.hero-lead { animation: rise .6s ease-out 1s both; }
.hero-photo { animation: lift .9s cubic-bezier(.2, .8, .2, 1) .1s both; }
.wave.js { background: none; }
.wave svg { display: block; width: 100%; height: 100%; overflow: visible; }

.bubbles { position: absolute; inset: 0; pointer-events: none; }
.bubbles > span { position: absolute; left: var(--x); top: 102%; animation: bubble var(--d) linear var(--delay) infinite paused; }
.bubbles i { display: block; width: var(--s); height: var(--s); border-radius: 50%; font-style: normal;
  border: 1.5px solid rgb(190 220 255 / .3); background: radial-gradient(circle at 32% 30%, rgb(255 255 255 / .22), transparent 45%);
  animation: sway var(--w) ease-in-out var(--delay) infinite paused; }
.bubbles .note i { border: 0; background: none; width: auto; height: auto; color: var(--wave-1); opacity: .45;
  font-size: calc(var(--s) * 1.5); line-height: 1; }
.band.live .bubbles > span, .band.live .bubbles i { animation-play-state: running; }

.qry-js .results:not(.is-in) .podium li { opacity: 0; transform: translateY(.8rem) scale(.96); }
.qry-js .results:not(.is-in) .result img { transform: scale(1.08); }
.results .podium li, .results .result img { transition: opacity .5s ease-out, transform .9s cubic-bezier(.2, .8, .2, 1); }
.results.is-in .podium li:nth-child(3) { transition-delay: .2s; }
.results.is-in .podium li:nth-child(2) { transition-delay: .55s; }
.results.is-in .podium li:nth-child(1) { transition-delay: .9s; }
.results.is-in .podium li:first-child .medal { animation: glint 1.1s ease-in-out 1.6s both; }

/* Laptop / tablet */
@media (max-width: 68rem) {
  .prog { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 60rem) {
  .hero, .merci { grid-template-columns: 1fr; }
  .hero { text-align: center; justify-items: center; }
  .hero h1 { transform-origin: center; }
  .hero-logo { margin: 0 auto .25rem; width: min(80%, 26rem); }
  .hero-lead { margin-inline: auto; }
  .hero-photo { width: 100%; }
  .hero-photo img { aspect-ratio: 16 / 10; object-position: 50% 12%; }
  .merci blockquote { margin-bottom: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .logos-1 { --cols: 3; }
  .logos-2, .logos-3 { --cols: 4; }
  .logos-4 { --cols: 5; }
}
/* Phone */
@media (max-width: 40rem) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .brand { display: none; }
  .top nav { margin: 0; width: 100%; }
  .top ul { gap: 0; justify-content: space-between; }
  .top nav a { padding: .45rem .5rem; font-size: .85rem; }
  .hero-logo { width: min(78%, 17rem); }
  .hero-photo img { aspect-ratio: 4 / 3; }
  .films, .prog, .results-grid { grid-template-columns: 1fr; }
  .films { gap: 1.5rem; }
  .livret { padding: 1.65rem 1.1rem 1.4rem; }
  .day { padding: 1.55rem 1.1rem 1.3rem; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: .3rem; max-height: calc((100vw - 2.6rem) * 2 / 3 + .3rem); }
  .album-head { row-gap: 0; }
  .album-head h3 { flex-basis: 100%; font-size: 1.6rem; }
  .logos { gap: .5rem; }
  .logos li { flex-basis: calc((100% - (var(--cols) - 1) * .5rem) / var(--cols)); }
  .logos a { padding: .7rem .8rem; }
  .logos-1, .logos-2, .logos-3 { --cols: 2; }
  .logos-4 { --cols: 3; }
  .logos img { height: 3rem; }
  .logos-1 img { height: 3.6rem; }
  .logos-4 img { height: 2.4rem; }
  .next { flex-direction: column; align-items: flex-start; }
  .next img { width: 6.5rem; }
  .v-prev, .v-next { display: none; }
  /* narrow column: the text sits over the whole band, so fewer, fainter bubbles */
  .bubbles { opacity: .45; }
  .bubbles > span:nth-child(even) { display: none; }
}
@media (max-width: 26rem) {
  .top nav a { padding: .4rem .28rem; font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .qry-js .results:not(.is-in) .podium li { opacity: 1; transform: none; }
  .qry-js .results:not(.is-in) .result img { transform: none; }
  .bubbles { display: none; }
}
@media print {
  .top, .viewer, .more, .films { display: none; }
  .grid { max-height: none; }
}

/* page to page: a cross-fade where the browser can (view transitions; others just change page) —
   the qry stack's motion signature (--qry-speed, --qry-ease) */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }
::view-transition-group(root) { animation-duration: var(--qry-speed, .2s); animation-timing-function: var(--qry-ease, cubic-bezier(.2, .7, .2, 1)); }
