/* 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 */
.slide-lines .line { display: block; 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;
  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.55cqw;
}
.card__back { transform: rotateY(180deg); }
.card__icon { width: 17.6cqw; height: 17.6cqw; }
.card__title {
  position: absolute; left: 7.55cqw; right: 7.55cqw; top: 35.2cqw;
  font-weight: 500; font-size: 10.69cqw; line-height: 1.118; letter-spacing: -0.014em;
}
.card__desc {
  position: absolute; left: 7.55cqw; right: 7.55cqw; top: 76.1cqw;
  font-size: max(13px, 4.72cqw); line-height: 1.73; letter-spacing: -0.004em;
}
.card__q {
  position: relative; z-index: 1;
  font-weight: 500; font-size: 10.69cqw; line-height: 1.118; letter-spacing: -0.014em;
  margin-top: -1.2cqw;
}
.card__for {
  position: absolute; z-index: 1; left: 7.55cqw; right: 7.55cqw; top: 67.9cqw;
  font-weight: 500; font-size: max(13px, 4.72cqw); line-height: 1.73;
}
.card__line {
  position: absolute; z-index: 1; left: 7.55cqw; right: 7.55cqw; top: 76.1cqw;
  font-size: max(13px, 4.72cqw); line-height: 1.73;
}
.card__ghost {
  position: absolute; left: 54.7cqw; top: 54.7cqw;
  width: 52.8cqw; height: 52.8cqw;
  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); }

/* ---------- 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); }

/* ---------- 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; }
}
