/* The BD's — Magic Street Band. A BD (bande dessinée) site: ink outlines, flat logo colours,
   halftone dots, comic panels and speech bubbles. Colours are the four of the logo. */

@font-face { font-family: "Bangers"; src: url(../fonts/bangers-latin-400-normal.woff2) format("woff2");
  font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght-normal.woff2) format("woff2");
  font-weight: 200 1000; font-display: swap; }

:root {
  --red: #e83040;        /* the logo's four colours */
  --yellow: #f2c81f;
  --green: #12882a;
  --blue: #1088b8;
  --ink: #141414;        /* the outlines */
  --paper: #fffaf0;
  --muted: #4a4a4a;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-s: 4px 4px 0 var(--ink);
  --radius: 6px;
  --display: "Bangers", "Impact", "Arial Narrow", sans-serif;
  --text: "Nunito", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 70rem;
  --dots: radial-gradient(rgb(242 200 31 / .55) 1.3px, transparent 1.7px) 0 0 / 14px 14px;
  --dots-red: radial-gradient(rgb(232 48 64 / .2) 1.4px, transparent 1.8px) 0 0 / 12px 12px;
  --star: polygon(50% 5%, 58% 19%, 70% 7%, 70% 29%, 87% 23%, 84% 37%, 99% 44%, 83% 53%, 94% 69%, 76% 69%, 84% 84%, 66% 81%, 63% 94%, 50% 85%, 36% 96%, 33% 79%, 18% 84%, 23% 67%, 5% 70%, 20% 55%, 1% 44%, 19% 39%, 11% 24%, 29% 26%, 30% 7%, 44% 17%);   /* the comic "burst" */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1.05rem/1.6 var(--text); color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: .18em; }
a:hover { background: var(--yellow); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .02em; line-height: 1; margin: 0; }
figure, blockquote { margin: 0; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; z-index: 99; background: var(--yellow); border: var(--line); padding: .4rem .9rem; }
.skip:focus { left: .5rem; }
main:focus { outline: none; }   /* focused by script after "back to top" */

/* ---------- Comic parts: panel, caption box, speech bubble, button ---------- */

.panel { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tilt-l { rotate: -1.2deg; }
.tilt-r { rotate: 1.2deg; }
.caption { display: inline-block; background: var(--yellow); border: var(--line); box-shadow: var(--shadow-s);
  padding: .3rem 1rem .15rem; font-size: clamp(2rem, 5vw, 3rem); rotate: -1.5deg; margin-bottom: 2rem; }
.bubble { position: absolute; margin: 0; background: #fff; border: var(--line); border-radius: 50% / 45%;
  padding: .7rem 1.3rem .5rem; font: 400 clamp(1.4rem, 3vw, 2rem)/1 var(--display); letter-spacing: .03em; }
/* the tail: an ink triangle, and a white one on top that hides the bubble's border where they meet */
.bubble::before, .bubble::after { content: ""; position: absolute; left: 36%; clip-path: polygon(0 0, 100% 0, 10% 100%); }
.bubble::before { top: calc(100% - 3px); width: 1.6rem; height: 1.35rem; background: var(--ink); }
.bubble::after { top: calc(100% - 7px); margin-left: 3px; width: calc(1.6rem - 7px); height: calc(1.35rem - 1px); background: #fff; clip-path: polygon(0 0, 100% 0, 9% 76%); }
.btn { display: inline-block; font: 400 1.5rem/1 var(--display);   /* ≥ 24px: large text, 3:1 on red */ letter-spacing: .04em; text-decoration: none;
  padding: .75rem 1.3rem .6rem; background: var(--red); color: #fff; border: var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-s); transition: transform .12s, box-shadow .12s; }
.btn-alt { background: var(--yellow); color: var(--ink); }
.btn:hover { background: var(--red); color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-alt:hover { background: var(--yellow); color: var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 0; }

/* Burst ("BOUM !"): an ink star with a yellow star inside, the word on top */
.boom { position: absolute; z-index: 2; display: grid; place-items: center; width: var(--size, 7.5rem); aspect-ratio: 1;
  rotate: var(--turn, -8deg); pointer-events: none; }
.boom::before, .boom::after { content: ""; position: absolute; clip-path: var(--star); }
.boom::before { inset: 0; background: var(--ink); }
.boom::after { inset: 5px; background: var(--fill, var(--yellow)); }
.boom > span { position: relative; z-index: 1; font: 400 calc(var(--size, 7.5rem) * .2)/1 var(--display); letter-spacing: .02em;
  color: var(--word, var(--red)); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }

/* Narration box ("Pendant ce temps…", "À suivre…") */
.narration { display: inline-block; margin: 0 0 1rem; padding: .35rem .8rem; background: #fff; border: var(--line);
  font: italic 800 1rem/1.3 var(--text); box-shadow: var(--shadow-s); rotate: -1deg; }

/* Sound-effect sticker on a card */
.sfx { position: absolute; top: -1.05rem; right: -.6rem; padding: .2rem .45rem .05rem; background: var(--yellow); border: 2px solid var(--ink);
  border-radius: 4px; font: 400 .95rem/1 var(--display); letter-spacing: .03em; rotate: 7deg; box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Header ---------- */

.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: var(--line); }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.brand { display: block; width: 3.1rem; flex: none; border-radius: 50%; }
.brand:hover { background: none; }
.top nav { margin-left: auto; }
.top ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.top nav a { display: block; white-space: nowrap; padding: .45rem .8rem .3rem; font: 400 1.25rem/1 var(--display); letter-spacing: .04em;
  text-decoration: none; border: 3px solid transparent; border-radius: var(--radius); }
.top nav a:hover { background: none; border-color: var(--ink); }
.top nav a[aria-current="true"] { background: var(--yellow); border-color: var(--ink); }

/* ---------- Hero ---------- */

.hero { position: relative; border-bottom: var(--line); overflow-x: clip;
  background: var(--dots), repeating-conic-gradient(from 0deg at 72% 55%, #ffe680 0 7deg, #fff6c9 7deg 14deg); }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4.5rem); }
.badge { position: relative; display: block; width: fit-content; margin: 1.4rem auto 1.8rem;   /* centred in its column */
  filter: drop-shadow(5px 5px 0 var(--ink)); }   /* the shadow is on the frame: it never turns with the spinning logo */
.hero-logo { width: 16rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); color: var(--red); -webkit-text-stroke: 2px var(--ink);
  paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); }
.hero-lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); max-width: 32em; margin: 1rem 0 0; }
.hero-photo { position: relative; overflow: visible; }
.hero-photo img { border-radius: calc(var(--radius) - 3px); }
.hero-photo .bubble { top: -1.6rem; left: -1.2rem; rotate: -6deg; z-index: 3; }
.boom-hero-1 { --size: 9.5rem; --turn: 12deg; bottom: -3.6rem; right: -3.2rem; }   /* bottom corner: clear of faces and of the logo sign */
.boom-hero-2 { --size: 8.5rem; --turn: -10deg; --fill: var(--red); --word: var(--yellow); bottom: -3.2rem; left: 36%; }

/* ---------- Sections ---------- */

.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; overflow-x: clip; }   /* bursts and stickers never widen the page */
.sec-dots { background: var(--dots), #fff; border-block: var(--line); }
#bande { background: var(--dots-red), var(--paper); }
.lead { margin: -0.8rem 0 2rem; color: var(--muted); }

/* La bande */
.about { max-width: none; }
.about-text p { margin: 0 0 1rem; max-width: 44em; }
.members { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem .8rem; }
.members > li { flex: 0 1 10.9rem; }   /* six a row on a wide screen: two full rows of six */
.members li { position: relative; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .7rem; align-items: center;
  background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: .55rem .7rem; }
.members .initial { grid-row: span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: var(--line);
  display: grid; place-items: center; font: 400 1.5rem/1 var(--display); color: #fff; }
.members b { font-weight: 800; line-height: 1.2; }
.members li > span:last-child { font-size: .85rem; color: var(--muted); line-height: 1.25; }
.members .red .initial { background: var(--red); }
.members .yellow .initial { background: var(--yellow); color: var(--ink); }
.members .green .initial { background: var(--green); }
.members .blue .initial { background: var(--blue); }

/* Notre histoire: a four-panel strip */
.strip-title { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1 var(--display); letter-spacing: .02em; margin: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.strip { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: case; }
.strip li { position: relative; overflow: visible; display: flex; flex-direction: column; }
.strip li:nth-child(odd) { rotate: -.8deg; }
.strip li:nth-child(even) { rotate: .8deg; }
.strip .narration { position: absolute; top: -.9rem; left: .6rem; z-index: 1; margin: 0; background: var(--yellow); font-size: .95rem; }
.strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: var(--line); border-radius: calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0; }
.strip li > p:last-of-type { margin: 0; padding: .8rem .9rem 1rem; font-size: .95rem; line-height: 1.45; }
.strip li::after { counter-increment: case; content: counter(case); position: absolute; right: .5rem; bottom: .4rem;
  font: 400 1.2rem/1 var(--display); color: var(--muted); }
.boom-strip { --size: 6rem; --turn: 12deg; --fill: var(--green); --word: var(--yellow); top: -2rem; right: -1.6rem; }
.source { margin: 1.2rem 0 0; font-size: .88rem; color: var(--muted); }

/* Vidéo */
.film { max-width: 52rem; margin-inline: auto; }
.film .screen { position: relative; }
.film video { width: 100%; aspect-ratio: 640 / 352; background: var(--ink); object-fit: cover; }
.film video[controls] { object-fit: contain; }
.film .qry-film-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(to top, rgb(0 0 0 / .35), transparent 60%); }
.film .qry-film-play span { position: relative; width: 8rem; aspect-ratio: 1; display: grid; place-items: center; transition: transform .15s; }
.film .qry-film-play span::before, .film .qry-film-play span::after { content: ""; position: absolute; clip-path: var(--star); }
.film .qry-film-play span::before { inset: 0; background: var(--ink); }
.film .qry-film-play span::after { inset: 5px; background: var(--red); }
.film .qry-film-play svg { position: relative; z-index: 1; }
.film .qry-film-play svg { width: 2.2rem; height: 2.2rem; margin-left: .3rem; fill: #fff; }
.film .qry-film-play:hover span { transform: scale(1.08) rotate(-6deg); }
.film figcaption { padding: .9rem 1.2rem 1rem; border-top: var(--line); color: var(--muted); }
.film figcaption strong { display: block; color: var(--ink); font: 400 1.6rem/1.1 var(--display); letter-spacing: .03em; }

/* Photos: a comic strip of square panels */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 1.1rem; }
.gallery a { display: block; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; background: #fff; }
.gallery li:nth-child(3n + 1) a { rotate: -.8deg; }
.gallery li:nth-child(3n + 2) a { rotate: .6deg; }
.gallery li { position: relative; }
/* a piece of tape on every photo: position, angle and colour vary along the grid */
.gallery li::before { content: ""; position: absolute; z-index: 1; top: -.6rem; left: 50%; width: 4.5rem; height: 1.3rem;
  translate: -50% 0; rotate: -4deg; background: rgb(242 200 31 / .75); border-inline: 2px dashed rgb(0 0 0 / .15); pointer-events: none; }
.gallery li:nth-child(3n + 2)::before { left: 30%; rotate: 6deg; background: rgb(16 136 184 / .55); }
.gallery li:nth-child(3n)::before { left: 68%; rotate: -8deg; }
.gallery li:nth-child(4n)::before { background: rgb(232 48 64 / .5); }
.gallery li:nth-child(7n + 5)::before { background: rgb(18 136 42 / .5); rotate: 3deg; }
#photos .wrap { position: relative; }
.boom-photos { --size: 6rem; --turn: 10deg; --fill: var(--blue); --word: #fff; top: -1.5rem; left: 13rem; }
/* the frame (and its tape) stays put; the photo moves inside it */
.gallery a:hover { background: #fff; }
.gallery a:hover img { transform: scale(1.08) rotate(-1deg); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.gallery.collapsed li:nth-child(n + 21) { display: none; }
.show-all { display: block; margin: 1.8rem auto 0; cursor: pointer; }
.more-insta { text-align: center; margin: 1.5rem 0 0; font-weight: 800; }

/* Presse: clippings as panels, a coloured paper sticker, date, title */
#presse .wrap { position: relative; }
.boom-presse { --size: 7rem; --turn: -12deg; --fill: var(--red); --word: var(--yellow); top: -2.2rem; left: 21rem; }
.press { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 1.5rem; }
.press a { position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.press li:nth-child(3n + 1) a { rotate: -.7deg; }
.press li:nth-child(3n + 2) a { rotate: .5deg; }
.press a:hover { background: #fff; rotate: 0deg; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--ink); }
.press img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: var(--line);
  filter: grayscale(.15) contrast(1.05); }
.paper { position: absolute; top: .7rem; left: -.5rem; padding: .25rem .6rem .1rem; border: 2px solid var(--ink); border-radius: 4px;
  font: 400 1.05rem/1 var(--display); letter-spacing: .04em; color: #fff; box-shadow: 2px 2px 0 var(--ink); rotate: -4deg; }
.paper.red { background: #c41e2e; }     /* darker than the logo red/blue: white text at AA */
.paper.blue { background: #0b6790; }
.paper.green { background: var(--green); }
.press time { display: block; padding: .8rem 1rem 0; font-size: .85rem; color: var(--muted); }
.press b { display: block; padding: .15rem 1rem 1rem; font: 400 1.45rem/1.1 var(--display); letter-spacing: .02em; }
.press b i { font: italic 700 .8rem/1 var(--text); letter-spacing: 0; color: var(--muted); }
.press-quote { margin: 2.5rem auto 0; max-width: 40rem; text-align: center; }
.press-quote p { margin: 0; font: 400 clamp(1.5rem, 3vw, 2rem)/1.2 var(--display); letter-spacing: .02em; }
.press-quote footer { margin-top: .5rem; color: var(--muted); font-size: .9rem; }

/* Nous y étions : stickers beside a costume photo */
.scenes-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.scenes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.scenes li { background: #fff; border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow-s); padding: .7rem 1.1rem .8rem; }
.scenes li:nth-child(4n + 1) { border-top: 10px solid var(--red); rotate: -1deg; }
.scenes li:nth-child(4n + 2) { border-top: 10px solid var(--yellow); rotate: .8deg; }
.scenes li:nth-child(4n + 3) { border-top: 10px solid var(--green); rotate: -.5deg; }
.scenes li:nth-child(4n + 4) { border-top: 10px solid var(--blue); rotate: 1deg; }
.scenes b { display: block; font: 400 1.7rem/1.1 var(--display); letter-spacing: .03em; }
.scenes-photo { position: relative; overflow: visible; }
.scenes-photo img { border-radius: calc(var(--radius) - 3px); }
.boom-scenes { --size: 8rem; --turn: 9deg; --fill: var(--red); --word: var(--yellow); top: -3rem; left: -2.5rem; }
.scenes span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact-photo { position: relative; overflow: visible; }
.contact-photo img { border-radius: calc(var(--radius) - 3px); }
.boom-contact { --size: 7rem; --turn: -14deg; --fill: var(--green); --word: var(--yellow); top: -2.5rem; right: -2rem; }
.contact-in { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact .caption { margin-bottom: 1.5rem; }
.bubble-static { position: relative; display: inline-block; margin: 0 0 1.8rem; border-radius: 1.6rem; }
.contact p { max-width: 34em; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 2rem 0; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
.foot p { margin: 0; }
.foot-in { align-items: center; }
.narration-end { margin: 0; color: var(--ink); background: var(--yellow); font-size: 1.1rem; rotate: 2deg; }
.foot a { color: var(--paper); }
.foot a:hover { background: none; color: var(--yellow); }
.foot :focus-visible { outline-color: var(--yellow); }

/* Back to top */
.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.3rem; height: 3.3rem; display: grid; place-items: center; border-radius: 50%; background: var(--yellow);
  border: var(--line); box-shadow: var(--shadow-s); opacity: 0; visibility: hidden; transform: translateY(1rem);
  transition: opacity .3s, transform .3s, visibility 0s .3s; }
.to-top:not(.is-hidden) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { background: var(--yellow); transform: translate(-2px, -2px); }
.to-top svg { width: 1.6rem; height: 1.6rem; fill: var(--ink); }

/* Viewer */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgb(20 20 20 / .96); color: #fff; overscroll-behavior: contain; }
.viewer::backdrop { background: rgb(20 20 20 / .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;
  border: var(--line); border-color: #fff; border-radius: var(--radius); }
.viewer figcaption { position: fixed; inset: auto 0 0; min-height: 3.5rem; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: center; gap: .3rem 1rem; padding: .5rem 1rem; font-size: .95rem; }
.viewer figcaption .pos { opacity: .7; }
.v-btn { position: fixed; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: var(--yellow); color: var(--ink); border: var(--line); font: 400 2rem/1 var(--text); }
.viewer :focus-visible { outline-color: var(--yellow); }
.v-prev { left: .75rem; top: 50%; translate: 0 -50%; }
.v-next { right: .75rem; top: 50%; translate: 0 -50%; }
.v-close { right: .75rem; top: .75rem; }

/* ---------- Motion: the logo lands, the bubble pops, once ---------- */

@keyframes throb { 0%, 100% { scale: 1; } 50% { scale: 1.07; } }
@keyframes fly { from { opacity: 1; transform: translate(-50%, -50%) scale(.4) rotate(0); }
  to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--rot)); } }
@keyframes land { from { opacity: 0; transform: translateY(-1.5rem) rotate(-8deg) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 70% { opacity: 1; transform: scale(1.12); } 100% { transform: scale(1); } }
/* The badge comes last, like a record thrown onto the page: small and far away, it spins in,
   growing, overshoots a little, then settles back with a slight zoom out while its shadow lands. */
@keyframes spin-in {
  0%   { opacity: 0; transform: scale(.12) rotate(-900deg); }
  15%  { opacity: 1; }
  70%  { transform: scale(1.1) rotate(10deg); }
  86%  { transform: scale(.98) rotate(-2deg); }
  100% { opacity: 1; transform: none; }
}
/* the shadow stays light while the disc is in the air, and lands with it */
@keyframes shadow-in {
  0%, 60% { filter: drop-shadow(2px 2px 0 rgb(20 20 20 / .15)); }
  100%    { filter: drop-shadow(5px 5px 0 var(--ink)); }
}
.hero-logo { animation: spin-in 1.3s cubic-bezier(.15, .6, .25, 1) 1.5s both; }
.hero .badge { animation: shadow-in 1.3s ease-in 1.5s both; }
/* once it has landed, a hover or a tap spins it round once (spin() in site.js) */
@keyframes spin-once { from { transform: rotate(0); } 80% { transform: rotate(372deg); } to { transform: rotate(360deg); } }
.hero-logo.ready { animation: none; cursor: pointer; }
.hero-logo.ready.spin { animation: spin-once .9s cubic-bezier(.3, .1, .3, 1); }
.hero-photo .bubble { transform-origin: 30% 110%; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .8s both; }
.boom { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) var(--delay, 1.1s) both, throb 2.4s ease-in-out 2s infinite; }
.boom-hero-2 { --delay: 1.35s; }
.brand:hover img { animation: land .5s cubic-bezier(.2, 1.4, .4, 1); }
.sfx-fly { position: fixed; z-index: 50; pointer-events: none; font: 400 1.8rem/1 var(--display); letter-spacing: .03em;
  color: var(--c); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink);
  animation: fly .9s cubic-bezier(.2, .7, .3, 1) forwards; }

/* ---------- Tablet ---------- */

@media (max-width: 60rem) {
  .hero-in, .contact-in, .scenes-in { grid-template-columns: 1fr; }
  .strip, .press { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .hero-text { text-align: center; }
  .hero-logo { width: 13rem; }
  .badge { margin-block: 1rem 1.4rem; }
  .hero-lead { margin-inline: auto; }
  .actions { justify-content: center; }
  .contact-photo { max-width: 22rem; }
}

/* ---------- Phone ---------- */

@media (max-width: 40rem) {
  .wrap { width: min(100% - 2rem, var(--wrap)); }
  .brand { display: none; }   /* the hero shows the logo; the six entries need the width */
  .top-in { gap: .5rem; }
  .top nav { flex: 1; }
  .top ul { justify-content: space-between; gap: 0; }
  .top nav a { padding: .4rem .25rem .25rem; font-size: 1rem; }
  .hero-logo { width: 11rem; }
  .badge { margin-block: .8rem 1.1rem; }
  .hero-photo .bubble { left: -.4rem; }
  .boom-hero-1 { --size: 6rem; bottom: -2.4rem; right: -.6rem; }
  .boom-hero-2 { --size: 5.2rem; bottom: -2rem; }
  .boom-photos { --size: 4.6rem; left: auto; right: .5rem; top: -1rem; }
  .boom-contact { --size: 5.5rem; right: -.4rem; }
  .boom-scenes { --size: 6rem; left: -.4rem; top: -2.2rem; }
  .boom-presse { --size: 5rem; left: auto; right: .3rem; top: -1.4rem; }
  .boom-strip { --size: 4.6rem; right: -.4rem; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: .55rem; }
  .press { gap: 1.4rem .9rem; }
  .press b { font-size: 1.2rem; padding-inline: .7rem; }
  .press time { padding-inline: .7rem; }
  .gallery a { border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
  .members > li { flex-basis: calc(50% - .4rem); }
  .gallery li::before { width: 2.8rem; height: .9rem; top: -.4rem; }
  .v-prev, .v-next { display: none; }
}
@media (max-width: 23rem) {
  .top nav a { font-size: .86rem; padding-inline: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .sfx-fly { display: none; }
}
@media print {
  .top, .viewer, .to-top, .film { display: none; }
}

/* 404 */
.lost { min-height: 100vh; padding: 3rem 0; text-align: center; border: 0; }
.lost .badge { margin: 0 auto 1rem; animation: shadow-in 1.3s ease-in .3s both; }
.lost .hero-logo { width: 10rem; animation: spin-in 1.3s cubic-bezier(.15, .6, .25, 1) .3s both; }
.lost { position: relative; }
.boom-lost { --size: 10rem; --fill: var(--blue); --word: #fff; position: relative; margin: 0 auto .5rem; }
.lost .narration { display: table; margin: 0 auto 1rem; }
.lost .hero-lead { margin-inline: auto; }
.lost .actions { justify-content: center; }

/* 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)); }
