/* Pubs! Pubs! Pubs! — built from the Figma page “Website · pubspubspubs.com · v1”.
   Seven colours, Roc Grotesk Regular and Medium, 12-column grid. No rules, no radii, no shadows. */

@font-face {
  font-family: "Roc Grotesk";
  src: url("../fonts/roc-grotesk-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk";
  src: url("../fonts/roc-grotesk-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --white: #ffffff;
  --orange: #ee5a2e;
  --pink: #d5546f;
  --amber: #e8931f;
  --peach: #fab293;
  --red: #b92819;

  --margin: 48px;
  --gutter: 24px;
  --max: 1344px;

  /* Type scale at 1440, the three largest scale fluidly */
  --statement: clamp(76px, 11.667vw, 168px);
  --cover: clamp(50px, 7.778vw, 112px);
  --display: clamp(40px, 4.444vw, 64px);
  --head: 34px;
  --sub: 20px;
  --row: 15px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Roc Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: var(--row);
  line-height: 26px;
  letter-spacing: -0.004em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--peach); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 8px 16px;
}
.skip:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band--ink :focus-visible, .band--red :focus-visible { outline-color: var(--white); }

/* ---------- Type ---------- */
.statement { font-weight: 500; font-size: var(--statement); line-height: 0.905; letter-spacing: -0.034em; }
.cover     { font-weight: 500; font-size: var(--cover); line-height: 0.929; letter-spacing: -0.032em; }
.figure    { font-weight: 500; font-size: var(--cover); line-height: 0.929; letter-spacing: -0.036em; font-variant-numeric: tabular-nums; }
.display   { font-weight: 500; font-size: var(--display); line-height: 1; letter-spacing: -0.022em; }
.head      { font-weight: 500; font-size: var(--head); line-height: 38px; letter-spacing: -0.014em; }
.sub       { font-weight: 400; font-size: var(--sub); line-height: 28px; letter-spacing: -0.006em; }
.sub-m     { font-weight: 500; font-size: var(--sub); line-height: 28px; letter-spacing: -0.006em; }
.row       { font-weight: 400; font-size: var(--row); line-height: 26px; letter-spacing: -0.004em; }
.row-m     { font-weight: 500; font-size: var(--row); line-height: 26px; letter-spacing: -0.004em; }

.t-orange { color: var(--orange); }
.t-pink   { color: var(--pink); }
.t-red    { color: var(--red); }
.t-amber  { color: var(--amber); }
.t-peach  { color: var(--peach); }
.t-ink    { color: var(--ink); }

/* ---------- Bands and grid ---------- */
.band { position: relative; width: 100%; }
.band--orange { background: var(--orange); color: var(--ink); }
.band--ink    { background: var(--ink); color: var(--white); }
.band--white  { background: var(--white); color: var(--ink); }
.band--pink   { background: var(--pink); color: var(--ink); }
.band--amber  { background: var(--amber); color: var(--ink); }
.band--red    { background: var(--red); color: var(--white); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--margin));
  margin: 0 auto;
  padding: 0 var(--margin);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}
.section { padding: 96px 0 120px; overflow: hidden; }
.kicker { margin-bottom: 16px; }

.c-1-13 { grid-column: 1 / 13; }
.c-1-9  { grid-column: 1 / 9; }
.c-1-8  { grid-column: 1 / 8; }
.c-1-7  { grid-column: 1 / 7; }
.c-1-6  { grid-column: 1 / 6; }
.c-1-5  { grid-column: 1 / 5; }
.c-1-4  { grid-column: 1 / 4; }
.c-4-7  { grid-column: 4 / 7; }
.c-5-9  { grid-column: 5 / 9; }
.c-7-10 { grid-column: 7 / 10; }
.c-7-13 { grid-column: 7 / 13; }
.c-8-13 { grid-column: 8 / 13; }
.c-9-13 { grid-column: 9 / 13; }
.c-10-13 { grid-column: 10 / 13; }

.r-1 { grid-row: 1; }

/* Headings whose lines slide sideways */
.fx .line { display: block; }
.fx .w { display: inline-block; white-space: nowrap; }
.fx .ch { display: inline-block; }

/* 03 — the heading pours in like a pint: outlined, then filled from the bottom */
.js-motion [data-fx="pour"] .line {
  width: max-content;
  color: transparent;
  -webkit-text-stroke: 0.022em var(--ink);
  background-image: linear-gradient(to top, var(--ink) var(--fill, 0%), transparent var(--fill, 0%));
  -webkit-background-clip: text;
  background-clip: text;
}

/* 04 — read along: words light up one by one */
.js-motion [data-fx="read"] .w { opacity: .16; transition: opacity .25s; }

/* 05 — dealt like cards: letters fly in from scattered spots */
.js-motion [data-fx="deal"] .ch { will-change: transform; }

/* 06 — the line squeezes itself smaller */
.js-motion [data-fx="squeeze"] .line { white-space: nowrap; }

/* 07 — change one thing: one letter at a time changes */
[data-fx="change"] .ch { transition: color .25s, transform .5s var(--ease-spring); }
[data-fx="change"] .ch.is-changed { color: var(--orange); transform: translateY(-0.08em) rotate(-8deg) scale(1.08); }

/* 08 — the social network sways when you move */
.js-motion [data-fx="wave"] .w { will-change: transform; }

/* ---------- 01 · Hero ---------- */
.hero {
  --wheel: clamp(600px, 66.667vw, 1080px);
  min-height: max(912px, 100svh);
  overflow: hidden;
}
.hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-top: 40px;
  padding-bottom: 48px;
  pointer-events: none;
}
.hero__inner > * { pointer-events: auto; }
.hero__nav  { grid-column: 1 / 4; grid-row: 1; }
.hero__date { grid-column: 4 / 9; grid-row: 1; }
.hero__title {
  grid-column: 1 / 7; grid-row: 2;
  margin-top: 52px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  width: max-content;
}
.hero__line { display: block; will-change: transform; }
.hero__line--1 { color: var(--white); }
.hero__line--2 { color: var(--ink); }
.hero__line--3 { color: var(--peach); }
.hero__strap { grid-column: 1 / 6; grid-row: 3; margin-top: 56px; }
.hero__intro { grid-column: 1 / 6; grid-row: 4; margin-top: 66px; max-width: 546px; }

.hero__line { transition: opacity .9s var(--ease-out); }
.hero__title { overflow: visible; }

.wheel {
  position: absolute;
  left: 50%;
  top: -24px;
  width: var(--wheel);
  height: var(--wheel);
  z-index: 1;
}
.wheel__disc {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  will-change: transform;
}
.wheel__svg { width: 100%; height: 100%; }
.wheel__label { font-family: "Roc Grotesk", sans-serif; font-weight: 500; font-size: 24px; letter-spacing: -0.006em; }
.wheel__wedge { transition: filter .3s; }
.wheel__wedge.is-hit { animation: wedge-hit 1.2s ease-out 2; }
@keyframes wedge-hit { 0%, 100% { filter: none; } 50% { filter: brightness(1.15) saturate(1.1); } }

.wheel__pointer {
  position: absolute;
  left: calc(50% - 22px);
  top: 24px;
  width: 44px; height: 52px;
  z-index: 3;
  transform-origin: 50% 20%;
}
.wheel__pointer.tick { animation: tick .18s ease-out; }
@keyframes tick { 0% { transform: rotate(0); } 40% { transform: rotate(-18deg); } 100% { transform: rotate(0); } }

.wheel__spin {
  position: absolute;
  left: 50%; top: 50%;
  width: calc(var(--wheel) * 0.2417);
  height: calc(var(--wheel) * 0.2417);
  margin: calc(var(--wheel) * -0.12085) 0 0 calc(var(--wheel) * -0.12085);
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  z-index: 3;
  line-height: 38px;
  white-space: nowrap;
  transition: transform .4s var(--ease-spring), background-color .2s;
}
.wheel__spin:hover { transform: scale(1.06); background: var(--red); }
.wheel__spin:active { transform: scale(.94); }
.wheel__spin[disabled] { cursor: progress; }

.result {
  position: absolute;
  z-index: 4;
  left: calc(50% + var(--wheel) * 0.1313);
  bottom: 32px;
  width: 432px;
  min-height: 144px;
  padding: 20px 24px 20px;
  background: var(--ink);
  color: var(--white);
}
.result__name { margin-top: 2px; }
.result__desc { margin-top: 6px; }
.result.pop { animation: pop .6s var(--ease-spring); }
@keyframes pop { 0% { transform: scale(.92) rotate(-2deg); } 100% { transform: none; } }

/* ---------- 02 · Ticker ---------- */
.ticker {
  height: 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker__track { display: flex; white-space: pre; will-change: transform; }
.ticker__track span { flex: none; padding-right: 0; }

/* ---------- 03 · The pub ---------- */
.pub .cover { grid-row: 2; }
.pub .kicker.c-1-7 { grid-row: 1; }
.pub__side { grid-row: 1 / 3; }
.pub__verbs .verb { display: block; will-change: transform; }
.pub__body { margin-top: 64px; max-width: 546px; }

/* ---------- Photo bands ---------- */
.photos { display: grid; overflow: hidden; }
.photos--three { grid-template-columns: repeat(3, 1fr); height: clamp(320px, 38.9vw, 640px); }
.photos--two { grid-template-columns: repeat(2, 1fr); height: clamp(320px, 41.7vw, 680px); }
.photo { position: relative; overflow: hidden; }

/* “A place to …” — one word that keeps flipping */
.place { margin-top: 0; }
.place__slot {
  margin-top: 12px;
  perspective: 900px;
  white-space: nowrap;
  height: 1.05em;
  overflow: visible;
}
.place__word {
  display: inline-block;
  transform-origin: 50% 55% -0.45em;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.photo img {
  position: absolute;
  left: 0; top: -15%;
  width: 100%; height: 130%;
  object-fit: cover;
  will-change: transform;
}

/* ---------- 04 · Why now ---------- */
.why .display { margin-bottom: 136px; }
.stat .figure { margin-bottom: 24px; }
.stat .sub { max-width: 360px; }
.stat .source { margin-top: 24px; max-width: 300px; }

/* ---------- 05 · The season ---------- */
.season .cover { grid-row: 2; }
.season__note { grid-row: 2; align-self: end; max-width: 432px; padding-bottom: 8px; }
.cards {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.card {
  aspect-ratio: 1 / 1;
  perspective: 1400px;
  container-type: inline-size;
  will-change: transform;
}
.card__button {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  text-align: left;
  transform-style: preserve-3d;
  transition: transform .8s var(--ease-out);
}
.card__button:hover { transform: rotateY(-8deg) rotateX(4deg); }
.card.is-flipped .card__button { transform: rotateY(180deg); }
.card__face {
  position: absolute; inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  padding: 7.55cqmin;
}
.card__back { transform: rotateY(180deg); }
.card__icon { width: 17.6cqmin; height: 17.6cqmin; }
.card__title {
  position: absolute; left: 7.55cqmin; right: 7.55cqmin; top: 35.2cqmin;
  font-weight: 500; font-size: 10.69cqmin; line-height: 1.118; letter-spacing: -0.014em;
}
.card__desc {
  position: absolute; left: 7.55cqmin; right: 7.55cqmin; top: 76.1cqmin;
  font-size: max(13px, 4.72cqmin); line-height: 1.73; letter-spacing: -0.004em;
}
.card__q {
  position: relative; z-index: 1;
  font-weight: 500; font-size: 10.69cqmin; line-height: 1.118; letter-spacing: -0.014em;
  margin-top: -1.2cqmin;
}
.card__for {
  position: absolute; z-index: 1; left: 7.55cqmin; right: 7.55cqmin; top: 67.9cqmin;
  font-weight: 500; font-size: max(13px, 4.72cqmin); line-height: 1.73;
}
.card__line {
  position: absolute; z-index: 1; left: 7.55cqmin; right: 7.55cqmin; top: 76.1cqmin;
  font-size: max(13px, 4.72cqmin); line-height: 1.73;
}
.card__ghost {
  position: absolute; left: 54.7cqmin; top: 54.7cqmin;
  width: 52.8cqmin; height: 52.8cqmin;
  opacity: .22;
}
.bg-orange { background: var(--orange); color: var(--ink); }
.bg-pink   { background: var(--pink); color: var(--ink); }
.bg-amber  { background: var(--amber); color: var(--ink); }
.bg-peach  { background: var(--peach); color: var(--ink); }
.bg-red    { background: var(--red); color: var(--white); }
.bg-ink    { background: var(--ink); color: var(--white); }

/* ---------- 05 · A turned-over card, full size ---------- */
html.part-open, html.part-open body { overflow: hidden; }
.part {
  position: fixed; inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  perspective: 1800px;
}
.part[hidden] { display: none; }
.part__backdrop { position: absolute; inset: 0; background: rgba(26, 26, 26, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.part__panel {
  position: relative;
  width: min(1240px, 100%);
  height: min(760px, calc(100svh - 64px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  transform-origin: 50% 50%;
  backface-visibility: hidden;
}
.part__media { margin: 0; position: relative; overflow: hidden; background: var(--ink); }
.part__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: kenburns 14s ease-in-out infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
/* Artworks and cut-outs sit whole, with breathing room, and barely move */
.part__media img.is-whole { inset: 6%; width: 88%; height: 88%; animation-name: kenburns-soft; }
@keyframes kenburns-soft { from { transform: scale(1); } to { transform: scale(1.03); } }
.part__body {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px 40px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.part__top { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.part__top .part__close { margin-left: 8px; }
.part__icon svg { width: 44px; height: 44px; display: block; }
.part__num { flex: 1; }
.part__close, .part__arrow {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: transform .35s var(--ease-spring), background-color .2s, color .2s;
}
.part__close:hover { transform: rotate(90deg); }
.part__arrow:hover { transform: scale(1.1); }
.part__tag { opacity: .85; }
.part__title {
  margin: 6px 0 20px;
  font-weight: 500;
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: .98;
  letter-spacing: -0.03em;
}
.part__more { max-width: 54ch; }
.part__q {
  margin-top: 28px;
  padding: 20px 24px 24px;
  background: var(--ink);
  color: var(--white);
}
.part__q .row-m { opacity: .7; }
.part__qtext {
  margin-top: 6px;
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.014em;
}
.q-orange .part__q { background: var(--orange); color: var(--ink); }
.part__partner {
  margin-top: 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}
.part__partner .row-m { opacity: .75; }
.part__cta {
  flex: none;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  transition: transform .35s var(--ease-spring);
}
.q-orange .part__cta { background: var(--orange); color: var(--ink); }
.part__cta:hover { transform: translateY(-3px) rotate(-2deg); }
.part__nav { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; }

/* Panel contents rise in one after another */
.part .stagger { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease-out); }
.part.is-in .stagger { opacity: 1; transform: none; }
.part.is-in .stagger:nth-of-type(2) { transition-delay: .06s; }
.part.is-in .part__title { transition-delay: .1s; }
.part.is-in .part__more { transition-delay: .18s; }
.part.is-in .part__q { transition-delay: .28s; }
.part.is-in .part__partner { transition-delay: .38s; }

/* While a card lifts off, it shows its back */
.card.is-flipped .card__button { transform: rotateY(180deg); }

@media (max-width: 899px) {
  .part { padding: 0; }
  .part__panel { width: 100%; height: 100svh; grid-template-columns: 1fr; grid-template-rows: 34svh 1fr; }
  .part__body { padding: 20px 24px 24px; }
  .part__top { margin-bottom: 16px; }
  .part__partner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 06 · The World’s Smallest Pub ---------- */
.smallest .cover { grid-row: 2; }
.smallest__stage {
  grid-row: 1 / 3;
  position: relative;
  height: 264px;
  margin-top: 16px;
}
.smallest__pub {
  position: absolute;
  left: 0; bottom: 0;
  width: 264px; height: 242px;
  transform-origin: 50% 100%;
  will-change: transform;
}
.fact { margin-top: 72px; }
.fact .sub { margin-top: 14px; max-width: 294px; }

/* ---------- 07 · The Social Health Lab ---------- */
.lab .cover { grid-row: 2; margin-bottom: 56px; }
.lab__intro { grid-row: 3; }
.lab__intro .sub { max-width: 546px; }
.lab__figure { margin-top: 88px; margin-bottom: 8px; }
.lab__intro .row { max-width: 432px; }
.scene {
  grid-row: 3;
  background: var(--peach);
  color: var(--ink);
  padding: 16px 24px 20px;
}
.scene__svg { width: 100%; height: auto; overflow: visible; }
.scene__foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 15px; }
.scene * { transform-box: fill-box; }
.scene .mover { transition: transform .9s var(--ease-spring), opacity .5s; }
.scene .bubble { transition: opacity .35s, transform .5s var(--ease-spring); transform-origin: 50% 100%; }
.scene .bubble.is-off { opacity: 0; transform: scale(.3); }
.scene .glow { transition: opacity .4s; }
.scene .dots circle { animation: dot 1.2s infinite ease-in-out; }
.scene .dots circle:nth-child(2) { animation-delay: .15s; }
.scene .dots circle:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
.scene .cat-tail { transform-origin: 0% 100%; animation: tail 1.6s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }

.switches {
  grid-row: 4;
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.switch {
  padding: 10px 22px;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease-spring);
}
.switch:hover { transform: translateY(-2px); }
.switch:active { transform: scale(.96); }
.switch[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.switch-cell .sub { margin-top: 18px; max-width: 318px; }
.lab__note { grid-row: 5; margin-top: 48px; }

/* ---------- 08 · Get involved ---------- */
.involved .cover { grid-row: 2; position: relative; z-index: 1; }
.spiral {
  grid-row: 1 / 4;
  align-self: center;
  width: 100%;
  max-width: 640px;
  justify-self: end;
  aspect-ratio: 1;
}
.spiral svg { width: 100%; height: 100%; overflow: visible; will-change: transform; }
.spiral__text { font-family: "Roc Grotesk", sans-serif; font-weight: 400; font-size: 25px; letter-spacing: -0.004em; }
.offers { grid-row: 3; margin-top: 64px; position: relative; z-index: 1; }
.offers div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.offers dt { grid-column: 1 / 4; font-weight: 500; font-size: var(--sub); line-height: 44px; }
.offers dd { grid-column: 4 / 8; font-size: var(--sub); line-height: 44px; }
.emails {
  grid-row: 4;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.emails li { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.emails a { color: var(--orange); background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease-out); }
.emails a:hover { background-size: 100% 2px; }
.copy {
  padding: 0 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  line-height: 22px;
  transition: background-color .2s, color .2s;
}
.copy:hover { background: var(--ink); color: var(--white); }

/* ---------- 09 · Footer ---------- */
.footer { padding-bottom: 96px; }
.footer__sign { cursor: pointer; user-select: none; -webkit-user-select: none; width: max-content; max-width: 100%; }
.footer .head { margin-top: 32px; }
.footer .sub { margin-top: 50px; max-width: 774px; }
.footer__links {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}
.footer__links a { background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .35s var(--ease-out); }
.footer__links a:hover { background-size: 100% 2px; }

/* ---------- 10 · Partners ---------- */
.partners__row {
  height: 256px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
}
.partners__row a { display: block; transition: transform .4s var(--ease-spring); }
.partners__row a:hover { transform: translateY(-4px) rotate(-2deg); }
.partners__row img { width: auto; height: 31px; }
.partners__row a:nth-child(2) img { height: 52px; }

/* ---------- Scroll pint ---------- */
.pint {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 50;
  width: 54px; height: 78px;
  transform-origin: 50% 100%;
  pointer-events: none;
}
.pint.wobble { animation: wobble .9s ease-in-out; }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-12deg); }
  40% { transform: rotate(9deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(2deg); }
}
.last-orders {
  position: fixed;
  right: 96px; bottom: 36px;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 999px;
  opacity: 0;
  transform: translateX(16px) scale(.9);
  transition: opacity .3s, transform .5s var(--ease-spring);
  pointer-events: none;
}
.last-orders.is-on { opacity: 1; transform: none; }

/* ---------- Title press: thrown “Pubs!” ---------- */
.thrown {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-weight: 500;
  font-size: var(--display);
  line-height: 1;
  letter-spacing: -0.022em;
  white-space: nowrap;
  animation: throw 1s cubic-bezier(.2, .7, .3, 1) forwards;
}
@keyframes throw {
  0%   { transform: translate(-50%, -50%) rotate(0) scale(.4); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 0; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  z-index: 70;
  background: var(--ink); color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  transform: translate(-50%, 24px);
  opacity: 0;
  transition: opacity .25s, transform .4s var(--ease-spring);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Editorial layer — magazine furniture after Müller-Brockmann:
   running heads, section numbers, standfirsts, drop caps, captions,
   footnotes, hairline rules, and asymmetric placement on the 12-column grid.
   ===================================================================== */
.c-1-3  { grid-column: 1 / 3; }
.c-1-10 { grid-column: 1 / 10; }
.c-3-12 { grid-column: 3 / 12; }
.c-3-13 { grid-column: 3 / 13; }
.c-3-11 { grid-column: 3 / 11; }
.c-5-13 { grid-column: 5 / 13; }
.c-1-11 { grid-column: 1 / 11; }
.c-4-9  { grid-column: 4 / 9; }
.c-6-13 { grid-column: 6 / 13; }

.ed.section { padding: 28px 0 160px; }
.ed .runhead { grid-row: 1; }
.ed .ed-r2 { grid-row: 2; }
.ed .ed-r3 { grid-row: 3; }
.ed .ed-r4 { grid-row: 4; }
.ed .ed-r5 { grid-row: 5; }
.ed .ed-r6 { grid-row: 6; }

/* Small capitals-style labels */
.eyebrow {
  display: block;
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Running head: a hairline and four fixed positions on the grid */
.runhead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  border-top: 1px solid currentColor;
  padding-top: 10px;
  margin-bottom: 120px;
  font-weight: 500; font-size: 12px; line-height: 18px; letter-spacing: .1em; text-transform: uppercase;
}
.runhead span:nth-child(1) { grid-column: 1 / 3; }
.runhead span:nth-child(2) { grid-column: 3 / 7; }
.runhead span:nth-child(3) { grid-column: 7 / 10; opacity: .6; }
.runhead span:nth-child(4) { grid-column: 10 / 13; text-align: right; }

.ed .cover, .ed .display { position: relative; z-index: 1; }

/* Section numerals: huge, outlined, sitting behind the headline */
.bignum {
  grid-row: 2 / span 2;
  align-self: start;
  justify-self: end;
  margin-top: -110px;
  font-weight: 500;
  font-size: clamp(180px, 28vw, 420px);
  line-height: .8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--peach);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

.standfirst {
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -0.012em;
  font-weight: 500;
}
.dropcap::first-letter {
  float: left;
  font-weight: 500;
  font-size: 104px;
  line-height: 80px;
  margin: 6px 12px 0 -4px;
  color: var(--orange);
}
.caption {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .01em;
}
.caption b { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-right: .8em; }
sup { font-size: .55em; line-height: 0; vertical-align: super; margin-left: .15em; font-weight: 500; }
.footnotes {
  margin-top: 28px;
  padding-left: 1.4em;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px var(--gutter);
  font-size: 12px;
  line-height: 18px;
}
.footnotes li::marker { font-weight: 500; }

/* 03 · Essay */
.margin-note { margin-top: 72px; display: flex; flex-direction: column; opacity: .55; }
.essay { margin-top: 64px; }
.essay .standfirst { margin-bottom: 28px; max-width: 18em; }
.essay .sub + .sub { margin-top: 16px; }
.ed .pub__side {
  margin-top: 72px;
  border-top: 1px solid var(--ink);
  padding-top: 12px;
}
.ed .place__slot { margin-top: 18px; height: 1.1em; }
.pub__side .caption { margin-top: 18px; opacity: .55; max-width: 26ch; }

/* Photo spreads: figures offset on the grid, not a flat band */
.spread { padding: 24px 0 160px; overflow: hidden; }
.spread--ink { padding-top: 140px; }
.fig { margin: 0; will-change: transform; }
.fig .photo { position: relative; overflow: hidden; }
.fig figcaption { margin-top: 12px; }
.fig--tall .photo { height: clamp(420px, 50vw, 760px); }
.fig--down { margin-top: clamp(120px, 16vw, 260px); }
.fig--down .photo { height: clamp(300px, 30vw, 460px); }
.fig--up { margin-top: clamp(40px, 6vw, 90px); }
.fig--up .photo { height: clamp(220px, 21vw, 320px); }
.spread--ink .fig--wide { grid-row: 1; }
.fig--wide .photo { height: clamp(360px, 44vw, 660px); }
.spread--ink .pull { grid-row: 1; align-self: start; }
.spread--ink .fig--late { grid-row: 1; align-self: end; }
.fig--late .photo { height: clamp(240px, 24vw, 380px); }
.pull {
  margin: 0;
  color: var(--peach);
  font-weight: 500;
  font-size: var(--display);
  line-height: 1;
  letter-spacing: -0.024em;
  will-change: transform;
}

/* 04 · Data table */
.why__stand { align-self: end; padding-bottom: 8px; }
.datatable { margin-top: 96px; border-top: 1px solid var(--ink); }
.datarow {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--ink);
}
.datarow .figure { grid-column: 1 / 7; font-size: clamp(88px, 13vw, 200px); line-height: .82; }
.datarow .sub { grid-column: 8 / 12; padding-bottom: 8px; }

/* 05 · An irregular index of cards */
.ed .season__note { align-self: end; }
.ed .cards {
  margin-top: 88px;
  grid-auto-flow: dense;
  grid-auto-rows: calc((100cqw - 3 * var(--gutter)) / 4);
}
.season .wrap { container-type: inline-size; }
@media (max-width: 899px) { .ed .cards { grid-auto-rows: calc((100cqw - 16px) / 2); } }
@media (max-width: 439px) { .ed .cards { grid-auto-rows: 100cqw; } }
.card { container-type: size; }
.card--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.card--wide { grid-column: span 2; aspect-ratio: auto; }
.card__no {
  position: absolute; right: 7.55cqmin; top: 7.55cqmin;
  font-weight: 500; font-size: max(12px, 4cqmin); letter-spacing: .1em;
}

/* 06 · Spec sheet */
.spec {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gutter);
}
.spec > div { border-top: 1px solid var(--ink); padding-top: 12px; }
.spec dd { margin: 0; }
.spec .head { margin-top: 40px; }
.spec .sub { margin-top: 12px; max-width: 294px; }

/* 07 · Lab */
.ed .lab__intro .standfirst { margin-bottom: 20px; }
.lab__stat { margin-top: 56px; border-top: 1px solid rgba(255, 255, 255, .5); padding-top: 16px; }
.lab__stat .figure { margin-bottom: 12px; }
.scene-fig { margin: 0; }
.scene-fig figcaption { margin-top: 12px; }
.switch-cell .eyebrow { margin-bottom: 14px; opacity: .6; }
.ed .switches { margin-top: 96px; }
.ed .footnotes { color: inherit; }

/* 08 · The partner menu, with dot leaders */
.ed .menu { margin-top: 96px; }
.menu__head { border-bottom: 1px solid var(--ink); padding-bottom: 10px; margin-bottom: 8px; }
.ed .offers { margin-top: 0; }
.ed .offers div { display: flex; align-items: baseline; gap: 12px; }
.ed .offers div::before {
  content: "";
  order: 2;
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted currentColor;
  opacity: .5;
  transform: translateY(-7px);
}
.ed .offers dt { order: 1; }
.ed .offers dd { order: 3; text-align: right; }
.tap { display: inline-block; width: 64px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .5; }
.menu .caption { margin-top: 16px; opacity: .6; }
.ed .spiral { grid-row: 2 / 4; align-self: start; }
.contacts { margin-top: 96px; border-top: 1px solid var(--ink); padding-top: 12px; }
.ed .emails { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ed .emails li .eyebrow { width: 100%; opacity: .55; margin-bottom: 4px; }

/* 09 · Colophon */
.footer__sign { line-height: .86; }
.ed .footer .standfirst, .footer .standfirst { margin-top: 48px; }
.colophon {
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 var(--gutter);
}
.colophon > div { border-top: 1px solid rgba(255, 255, 255, .6); padding-top: 12px; }
.colophon dd { margin: 12px 0 0; }
.footer .colophon .sub { margin-top: 12px; max-width: none; }
.colophon a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Below 1200: tighten the hero ---------- */
@media (max-width: 1200px) {
  .result { width: 380px; }
  .emails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Below 900: one column ---------- */
@media (max-width: 899px) {
  :root { --margin: 24px; --head: 28px; }
  .head { line-height: 32px; }
  .grid, .hero__inner { grid-template-columns: minmax(0, 1fr); }
  .grid > *, .hero__inner > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .section { padding: 72px 0 88px; }

  .hero { --wheel: min(128vw, 720px); min-height: 0; padding-bottom: 24px; }
  .hero__inner { padding-bottom: 32px; }
  .hero__date { margin-top: 4px; }
  .hero__title { margin-top: 40px; }
  .hero__strap { margin-top: 32px; }
  .hero__intro { margin-top: 20px; }
  .wheel {
    position: relative;
    left: auto; top: auto;
    margin-left: calc(50% - var(--wheel) / 2);
  }
  .wheel__spin { line-height: 30px; font-size: 28px; }
  .result { position: relative; left: auto; bottom: auto; width: auto; margin: -12vw var(--margin) 0; }

  .pub__side { margin-top: 48px; }
  .pub__body { margin-top: 32px; }
  .photos--three { grid-template-columns: repeat(3, 1fr); height: 64vw; }
  .photos--two { height: 72vw; }
  .why .display { margin-bottom: 48px; }
  .stat + .stat { margin-top: 48px; }
  .season__note { margin-top: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .smallest__stage { margin-top: 40px; }
  .fact { margin-top: 40px; }
  .lab__figure { margin-top: 48px; }
  .scene { margin-top: 40px; padding: 12px 16px 16px; }
  .scene__foot { font-size: 16px; }
  .switches { grid-template-columns: 1fr 1fr; margin-top: 40px; row-gap: 32px; }
  .switch { font-size: 16px; padding: 8px 16px; }
  .switch-cell .sub { font-size: 16px; line-height: 22px; margin-top: 12px; }
  .spiral { max-width: 520px; justify-self: center; margin: 48px 0 0; }
  .offers { margin-top: 32px; }
  .offers div { grid-template-columns: 1fr; padding: 10px 0; }
  .offers dt, .offers dd { grid-column: 1 / -1; line-height: 28px; }
  .emails { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr; gap: 8px; }
  .partners__row { grid-template-columns: 1fr; height: auto; padding: 48px 0; row-gap: 40px; }
  .pint { right: 16px; bottom: 16px; transform: scale(.82); }
  .last-orders { right: 80px; bottom: 24px; }
}

@media (max-width: 439px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .switches { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion: everything reads complete, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .thrown { display: none; }
}

/* ---------- Editorial layer on small screens ---------- */
@media (max-width: 899px) {
  .runhead { grid-template-columns: 1fr 1fr; margin-bottom: 56px; }
  .runhead span:nth-child(n) { grid-column: auto; text-align: left; }
  .runhead span:nth-child(2) { text-align: right; }
  .runhead span:nth-child(3), .runhead span:nth-child(4) { display: none; }
  .bignum { position: absolute; right: 16px; top: 64px; margin: 0; font-size: 46vw; }
  .margin-note { display: none; }
  .essay, .ed .pub__side { margin-top: 40px; }
  .standfirst { font-size: 22px; line-height: 30px; }
  .spread { padding-bottom: 96px; }
  .spread--ink { padding-top: 72px; }
  .fig + .fig, .fig--down, .fig--up, .fig--late { margin-top: 40px; }
  .fig--tall .photo { height: 110vw; }
  .fig--down .photo, .fig--up .photo, .fig--late .photo { height: 80vw; }
  .fig--wide .photo { height: 90vw; }
  .spread--ink .pull { margin: 48px 0 0; }
  .datatable { margin-top: 48px; }
  .datarow { grid-template-columns: 1fr; row-gap: 12px; }
  .datarow .figure, .datarow .sub { grid-column: 1 / -1; }
  .footnotes { grid-template-columns: 1fr; }
  .spec, .colophon { grid-template-columns: 1fr; row-gap: 32px; margin-top: 48px; }
  .spec .head { margin-top: 16px; }
  .ed .cards { margin-top: 48px; }
  .ed .switches { margin-top: 48px; }
  .ed .menu, .contacts { margin-top: 56px; }
  .ed .offers div { flex-wrap: wrap; gap: 0 12px; padding: 8px 0; }
  .ed .offers div::before { display: none; }
  .ed .offers dd { width: 100%; text-align: left; padding-left: 76px; line-height: 26px; }
  .ed .offers dt { line-height: 28px; }
  .ed .emails { grid-template-columns: 1fr; }
  .ed.section { padding-bottom: 96px; }
}
@media (max-width: 439px) {
  .card--big, .card--wide { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
}

/* Wide photos shown whole, edge to edge, so nobody gets cropped out */
.part__media img.is-flush { animation-name: kenburns-soft; }

/* ---------- Ticker, quieter ---------- */
.ticker { height: 60px; }
.ticker__track { font-weight: 400; font-size: 24px; line-height: 1; letter-spacing: -0.005em; }
.ticker__track i { font-style: normal; color: var(--orange); margin: 0 .9em; }

/* ---------- Sticky top nav ---------- */
:root { --nav-h: 56px; }
body { padding-top: var(--nav-h); }
[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 70;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 0 var(--margin);
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--ink);
  font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .45s var(--ease-out);
}
.topnav.is-hidden { transform: translateY(-100%); }
.topnav__mark { font-size: 15px; letter-spacing: -0.01em; text-transform: none; white-space: nowrap; }
.topnav__mark:hover { color: var(--orange); }
.topnav__links { display: flex; justify-content: center; gap: 28px; }
.topnav__links a { position: relative; padding: 6px 0; opacity: .55; transition: opacity .2s; white-space: nowrap; }
.topnav__links a:hover, .topnav__links a[aria-current="true"] { opacity: 1; }
.topnav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.topnav__links a[aria-current="true"]::after { transform: scaleX(1); }
.topnav__out { display: flex; align-items: center; gap: 24px; }
.topnav__out a { display: block; transition: transform .35s var(--ease-spring), opacity .2s; }
.topnav__out a:hover { transform: translateY(-2px); }
.topnav__out a:first-child img { height: 15px; width: auto; }
.topnav__out a:last-child img { height: 22px; width: auto; }
html.part-open .topnav { z-index: 10; }

/* ---------- Preface: the motion ---------- */
.band--peach { background: var(--peach); color: var(--ink); }
.motion .runhead { border-color: var(--ink); }
.motions { display: grid; row-gap: 64px; }
.motion__no {
  display: block;
  font-weight: 500; font-size: 12px; letter-spacing: .1em;
  margin-bottom: 14px;
  color: var(--red);
}
.motion__lead { color: var(--red); }
.motion__one {
  font-weight: 500; font-size: var(--cover); line-height: .96; letter-spacing: -0.032em;
  max-width: 11em;
}
.motion__two {
  font-weight: 500; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.16; letter-spacing: -0.014em;
  max-width: 24em;
  margin-left: calc((100% + var(--gutter)) / 10 * 3);
}
.motion__three {
  font-weight: 500; font-size: var(--display); line-height: 1.02; letter-spacing: -0.022em;
  max-width: 14em;
}
.motion__body { margin-top: 120px; column-count: 2; column-gap: var(--gutter); }
.motion__body .sub + .sub { margin-top: 16px; }
.motion__body .dropcap::first-letter { color: var(--red); }
.motion__body b { font-weight: 500; color: var(--red); }
.motion__dim {
  margin-top: 120px;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  font-weight: 500; font-size: var(--display); line-height: 1.02; letter-spacing: -0.022em;
  color: var(--red);
}
.motion__margin { margin-top: 120px; display: flex; flex-direction: column; gap: 2px; }
.motion__overheard { margin-top: 14px; font-weight: 500; font-size: 34px; line-height: 38px; letter-spacing: -0.014em; }
.motion__body--late { margin-top: 120px; }
.motion__close { margin-top: 140px; line-height: .86; }
.js-motion .motion__close .line { -webkit-text-stroke-color: var(--ink); }
.motion__sign { grid-row: 7; margin-top: 24px; text-align: right; }

/* Reveal as you scroll */
.js-motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); }
.js-motion .rv.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .topnav__links { gap: 18px; }
}
@media (max-width: 980px) {
  .topnav__links { display: none; }
  .topnav { grid-template-columns: 1fr auto; }
}
@media (max-width: 899px) {
  :root { --nav-h: 52px; }
  .topnav { gap: 16px; }
  .topnav__out { gap: 14px; }
  .topnav__out a:first-child img { height: 11px; }
  .topnav__out a:last-child img { height: 17px; }
  .ticker { height: 52px; }
  .ticker__track { font-size: 20px; }
  .motions { row-gap: 40px; }
  .motion__two { margin-left: 0; }
  .motion__body { column-count: 1; margin-top: 56px; }
  .motion__dim, .motion__margin, .motion__body--late { margin-top: 56px; }
  .motion__close { margin-top: 72px; }
  .motion__sign { text-align: left; }
}
@media (max-width: 420px) {
  .topnav__mark { font-size: 13px; }
  .topnav__out { gap: 10px; }
  .topnav__out a:first-child img { height: 9px; }
  .topnav__out a:last-child img { height: 15px; }
}

/* ---------- Wheel → season ---------- */
.result__more {
  margin-top: 12px;
  color: var(--peach);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s;
}
.result__more:hover { color: var(--white); }
.result__more span { display: inline-block; transition: transform .35s var(--ease-spring); }
.result__more:hover span { transform: translateY(3px); }
.card.is-called .card__button { animation: called 1s var(--ease-spring); }
@keyframes called {
  0% { transform: scale(1); }
  35% { transform: scale(1.06) rotate(-1.5deg); }
  70% { transform: scale(.98) rotate(.6deg); }
  100% { transform: none; }
}

/* =====================================================================
   07 · The Lab — the whole section is the pub. No box, no edges.
   ===================================================================== */
.ed .ed-r7 { grid-row: 7; }
.lab { transition: background-color 3s ease; }

.lab .runhead, .lab .lab__stat { border-color: var(--ink); }
.lab [data-fx="change"] .ch.is-changed { color: var(--red); }
.lab .lab__stat { border-top: 1px solid var(--ink); }
.lab .switch { border-color: var(--ink); color: var(--ink); }
.lab .switch[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.lab .scene { background: none; padding: 0; margin-top: 40px; }
.lab .scene-fig { margin-top: 40px; }
.lab .scene__svg { width: 100%; height: auto; overflow: visible; display: block; }
.lab .scene__foot { margin-top: 28px; align-items: baseline; }
#scene-count { white-space: nowrap; }
#scene-mood { text-align: right; }
.ed .lab__intro { grid-row: 4; }

/* Everything in the scene moves around its own centre */
#scene * { transform-box: fill-box; }
#scene .mover { transition: transform .9s var(--ease-spring), opacity .5s; }
#scene .bubble { transition: opacity .35s, transform .5s var(--ease-spring); transform-origin: 50% 100%; }
#scene .bubble.is-off { opacity: 0; transform: scale(.3); }
#scene .glow { transition: opacity .4s; }
#scene .dots circle { animation: dot 1.2s infinite ease-in-out; }
#scene .dots circle:nth-child(2) { animation-delay: .15s; }
#scene .dots circle:nth-child(3) { animation-delay: .3s; }
#scene .sing { font-size: 22px; font-weight: 500; fill: var(--ink); opacity: 0; }
#scene .shut, #scene .halo, #scene .rays, #scene .ha, #scene .polish, #scene .cat-happy { opacity: 0; }
#scene .ha { font-size: 20px; font-weight: 500; fill: var(--ink); }
#scene .cat-tail { transform-origin: 0% 100%; animation: tail 1.6s ease-in-out infinite alternate; }
#scene .pint__beer { transform-origin: 50% 100%; transition: transform 1.2s ease; }
#scene .life { opacity: 0; transition: opacity .6s; pointer-events: none; }

/* Dancing: heads bop and sway, each on its own beat; bodies bounce */
#scene.is-dance .person .head { animation: bop .5s ease-in-out infinite alternate; }
#scene.is-dance .person:nth-of-type(2n) .head { animation-duration: .44s; animation-direction: alternate-reverse; }
#scene.is-dance .person:nth-of-type(3n) .head { animation-duration: .58s; }
#scene.is-dance .person .body { animation: bounce .5s ease-in-out infinite alternate; transform-origin: 50% 100%; }
#scene.is-dance #barperson .head { animation: bop .6s ease-in-out infinite alternate; }
@keyframes bop { from { transform: translate(0, 0) rotate(-8deg); } to { transform: translate(0, -12px) rotate(8deg); } }
@keyframes bounce { from { transform: scaleY(1); } to { transform: scaleY(1.08); } }
#scene.is-dance #notes { opacity: 1; }
#scene .note { font-size: 30px; font-weight: 500; fill: var(--ink); animation: note 2.4s ease-in-out infinite; }
@keyframes note { 0% { transform: translateY(18px) rotate(-6deg); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-30px) rotate(14deg); opacity: 0; } }

/* The mirror ball drops in, spins, and throws light round the room */
#scene #ball { transform: translateY(-300px); transition: transform 1.6s cubic-bezier(.3,1.4,.5,1), opacity .4s; }
#scene.is-ball #ball { opacity: 1; transform: none; }
#scene .ball__spin { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#scene.is-ball #spots { opacity: 1; }
#scene .spot { animation: twinkle 2s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .1; transform: translate(-10px, 4px) scale(.6); } to { opacity: .95; transform: translate(10px, -4px) scale(1.2); } }

/* Love: the pair lean in, a heart beats, little hearts rise */
#scene .lean { transition: transform .9s var(--ease-spring); }
#scene.is-love .is-lover-l .lean { transform: translate(10px, -2px) rotate(9deg); }
#scene.is-love .is-lover-r .lean { transform: translate(-10px, -2px) rotate(-9deg); }
#scene.is-love #love { opacity: 1; }
#scene.is-love .love__h { animation: beat 1.1s ease-in-out infinite; }
#scene .love__mini { opacity: 0; }
#scene.is-love .love__mini { animation: rise 1.8s ease-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.3); } 30% { transform: scale(1); } 45% { transform: scale(1.16); } }
@keyframes rise { 0% { opacity: 0; translate: 0 10px; } 25% { opacity: 1; } 100% { opacity: 0; translate: 0 -46px; } }
#scene.is-love .is-lover .eyeballs { opacity: 0; }
#scene.is-love .is-lover .shut { opacity: 1; }

/* Petting: a hand strokes, the cat shuts its eyes and purrs hearts */
#scene .arm { transform-box: view-box; transform-origin: 0 0; }
#scene.is-pet #pet { opacity: 1; }
#scene.is-pet .arm { animation: stroke .7s ease-in-out infinite alternate; }
@keyframes stroke { from { transform: rotate(-10deg); } to { transform: rotate(6deg); } }
#scene.is-pet .cat-eyes { opacity: 0; }
#scene.is-pet .cat-happy { opacity: 1; }
#scene .purr__h { opacity: 0; }
#scene.is-pet .purr__h { animation: purr 1.8s ease-out infinite; }
#scene.is-pet .purr__h:nth-child(2) { animation-delay: .6s; }
#scene.is-pet .purr__h:nth-child(3) { animation-delay: 1.2s; }
@keyframes purr { 0% { opacity: 0; translate: 0 8px; } 25% { opacity: 1; } 100% { opacity: 0; translate: 0 -30px; } }
#scene.is-pet .cat-tail { animation-duration: .45s; }

/* The cat goes for a wander along the bar */
#scene.is-roam .cat-walk { animation: wander 11s ease-in-out infinite; }
@keyframes wander {
  0% { transform: translateX(0) scaleX(1); }
  45% { transform: translateX(460px) scaleX(1); }
  50% { transform: translateX(460px) scaleX(-1); }
  95% { transform: translateX(0) scaleX(-1); }
  100% { transform: translateX(0) scaleX(1); }
}

/* One on the house: the pint fills with a head, then slides down the bar */
#scene.is-pour #onhouse { opacity: 1; }
#scene .onhouse__beer { transform-origin: 50% 100%; transform: scaleY(0); }
#scene .onhouse__head { opacity: 0; }
#scene.is-pour .onhouse__beer { animation: fillup 2s cubic-bezier(.3,.7,.3,1) .2s forwards; }
#scene.is-pour .onhouse__head { animation: froth .6s ease-out 2s forwards; }
#scene.is-pour .onhouse__slide { animation: slide 1.6s cubic-bezier(.2,.8,.2,1) 3s forwards; }
@keyframes fillup { to { transform: scaleY(1); } }
@keyframes froth { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes slide { to { transform: translateX(var(--slide, 120px)); } }

/* Singalong: every bubble becomes a note, and they sway */
#scene.is-sing .bubble .dots { opacity: 0; }
#scene.is-sing .bubble .sing { opacity: 1; }
#scene.is-sing .bubble:not(.is-off) { animation: sway 1s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* Enlightenment: one of them rises, eyes closed, halo on, light turning behind */
#scene .float { transition: transform 2.5s cubic-bezier(.3,.7,.2,1); }
#scene.is-zen .is-zen .float { transform: translateY(-34px); animation: hover 3s ease-in-out 2.5s infinite alternate; }
@keyframes hover { from { transform: translateY(-34px); } to { transform: translateY(-44px); } }
#scene.is-zen .is-zen .halo { opacity: 1; transition: opacity 1.5s; }
#scene.is-zen .is-zen .rays { opacity: .55; transition: opacity 2s; animation: spin 14s linear infinite; transform-origin: 50% 50%; }
#scene.is-zen .is-zen .eyeballs { opacity: 0; }
#scene.is-zen .is-zen .shut { opacity: 1; }

/* Small screens: the pub scrolls sideways so the regulars stay a decent size */
@media (max-width: 899px) {
  .lab .scene { overflow-x: auto; overflow-y: visible; margin-left: calc(-1 * var(--margin)); margin-right: calc(-1 * var(--margin)); padding: 0 var(--margin); -webkit-overflow-scrolling: touch; }
  .lab .scene__svg { min-width: 760px; }
  .lab .scene__foot { flex-direction: column; gap: 4px; }
  #scene-mood { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  #scene.is-pour .onhouse__beer { transform: scaleY(1); }
  #scene.is-pour .onhouse__head { opacity: 1; }
}

.lab .cover { margin-top: 18px; }

/* The cat's walk: side-on, a diagonal gait, a bob in its step, tail up */
#scene .cat-stride { opacity: 0; transition: opacity .3s; }
#scene .cat-sit { transition: opacity .3s; }
#scene.is-roam .cat-sit { opacity: 0; }
#scene.is-roam .cat-stride { opacity: 1; }
#scene .cat-stride .leg { transform-origin: 50% 0%; }
#scene.is-roam .cat-stride .leg { animation: gait .62s ease-in-out infinite alternate; }
#scene.is-roam .leg--fl, #scene.is-roam .leg--br { animation-delay: -.62s; }
@keyframes gait { from { transform: rotate(24deg); } to { transform: rotate(-24deg); } }
#scene.is-roam .stride__body { animation: catbob .31s ease-in-out infinite alternate; }
@keyframes catbob { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
#scene .stride__head { transform-origin: 20% 80%; }
#scene.is-roam .stride__head { animation: nod .62s ease-in-out infinite alternate; }
@keyframes nod { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
#scene .stride__tail { transform-origin: 100% 100%; }
#scene.is-roam .stride__tail { animation: tailup 1.4s ease-in-out infinite alternate; }
@keyframes tailup { from { transform: rotate(-8deg); } to { transform: rotate(12deg); } }
/* A slower stroll with a pause and a turn at each end */
#scene.is-roam .cat-walk { animation: stroll 16s linear infinite; }
@keyframes stroll {
  0%   { transform: translateX(0) scaleX(1); }
  42%  { transform: translateX(440px) scaleX(1); }
  46%  { transform: translateX(440px) scaleX(1); }
  48%  { transform: translateX(440px) scaleX(-1); }
  90%  { transform: translateX(0) scaleX(-1); }
  94%  { transform: translateX(0) scaleX(-1); }
  96%  { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(0) scaleX(1); }
}

#scene .pump__handle { transform-origin: 50% 100%; }

/* Lock-in: a sign swings down from the ceiling; the room stays the same colour */
#scene #lockin { transform: translateY(-160px); transition: transform 1.4s cubic-bezier(.3,1.5,.5,1), opacity .4s; }
#scene.is-lockin #lockin { opacity: 1; transform: none; }
#scene .lockin__sign { transform-origin: 50% -60px; }
#scene.is-lockin .lockin__sign { animation: swing 2.6s ease-in-out 1.2s infinite alternate; }
@keyframes swing { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
#scene .lockin__text { fill: #FFFFFF; font-size: 26px; font-weight: 500; letter-spacing: .12em; }
#scene.is-lockin #ball { transform: translate(260px, 0); }

/* ---------- Mouths: small, cute, and they move when people talk ---------- */
#scene .mouth__flat, #scene .mouth__open, #scene .blush { opacity: 0; transition: opacity .3s; }
#scene .mouth__smile { transition: opacity .3s; }
#scene .is-phoned .mouth__flat { opacity: 1; }
#scene .is-phoned .mouth__smile { opacity: 0; }
#scene .is-talking .mouth__smile { opacity: 0; }
#scene .is-talking .mouth__open { opacity: 1; transform-origin: 50% 20%; animation-name: chatter; animation-iteration-count: infinite; animation-timing-function: ease-in-out; }
@keyframes chatter {
  0% { transform: scaleY(.25) scaleX(.9); } 14% { transform: scaleY(1); } 26% { transform: scaleY(.35); }
  40% { transform: scaleY(.85) scaleX(1.1); } 52% { transform: scaleY(.25); } 72% { transform: scaleY(.25); }
  84% { transform: scaleY(.9); } 100% { transform: scaleY(.25) scaleX(.9); }
}
#scene.is-sing .is-talking .mouth__open { animation-name: belt; }
@keyframes belt { from { transform: scale(1.1, .9); } to { transform: scale(1.35, 1.5); } }
#scene.is-love .is-lover .mouth__open { opacity: 0; }
#scene.is-love .is-lover .mouth__smile { opacity: 1; }
#scene.is-love .is-lover .blush { opacity: .75; }
#scene.is-pet .is-petter .blush { opacity: .6; }
#scene.is-zen .is-zen .mouth__open { opacity: 0; }
#scene.is-zen .is-zen .mouth__smile { opacity: 1; }

/* ---------- The barperson walks the bar ---------- */
#scene #barperson { transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45,0,.3,1), ease; }
#scene #barperson.is-walking .float { animation: stride .32s ease-in-out infinite alternate; }
@keyframes stride { from { transform: translateY(0); } to { transform: translateY(-5px); } }

/* Mirror ball: tiles slide across the face (it turns), the glint twinkles */
#scene .ball__tiles { animation: turn 3.2s linear infinite; }
@keyframes turn { to { transform: translateX(calc(-1 * var(--tw))); } }
#scene .ball__glint { transform-origin: 50% 50%; animation: glint 1.6s ease-in-out infinite; }
@keyframes glint { 0%, 100% { transform: scale(.4) rotate(0); opacity: .3; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
#scene.is-ball #ball { animation: dangle 3.4s ease-in-out 1.6s infinite alternate; }
@keyframes dangle { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
#scene.is-lockin.is-ball #ball { animation: none; }
