/* O for Orange — brand palette from the colour usage guide */
:root {
  --orange: #fd6802;
  --orange-deep: #e35400;
  --leaf: #93cd23;
  --cream: #ffe9d2;
  --peach: #ffd8b0;
  --forest: #213520;
  --white: #ffffff;
  --ink: #2a1a0e;

  --f-display: "Anton", "Impact", sans-serif;
  --f-serif: "Fraunces", Georgia, serif;
  --f-body: "DM Sans", system-ui, sans-serif;

  --pad: max(clamp(20px, 5vw, 72px), (100vw - 1840px) / 2); /* content stops at 1840px on 27" and ultrawide screens */
  --nav-h: clamp(64px, 9vh, 88px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; } /* the build stamps width/height on every image; let CSS size them */
picture { display: contents; } /* responsive <picture> wrappers stay layout-neutral */
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

#track { width: 1px; }

/* ---------- Nav ---------- */
#nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  pointer-events: none;
}
#nav > * { pointer-events: auto; }
.nav-left { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.brand { position: relative; display: block; height: clamp(30px, 4.4vh, 42px); aspect-ratio: 1736 / 532; }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s; }
.logo-dark { opacity: 0; }
body[data-theme="dark"] .logo-light { opacity: 0; }
body[data-theme="dark"] .logo-dark { opacity: 1; }

#counter {
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .04em;
  color: var(--orange); transition: color .4s;
}
#counter i { font-style: normal; opacity: .5; }
#counter em { font-style: normal; opacity: .5; }
#counter span {
  margin-left: 12px; font-family: var(--f-body); font-weight: 700;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
body[data-theme="dark"] #counter { color: var(--white); }

#dots {
  position: fixed; right: clamp(10px, 2vw, 28px); top: 50%; z-index: 60;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 12px;
}
#dots button {
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--orange); background: transparent;
  transition: background .3s, transform .3s, border-color .4s;
}
#dots button[aria-current="true"] { background: var(--orange); transform: scale(1.25); }
body[data-theme="dark"] #dots button { border-color: var(--white); }
body[data-theme="dark"] #dots button[aria-current="true"] { background: var(--white); }
#dots button:focus-visible, .again:focus-visible, .brand:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

/* ---------- The orange ---------- */
#orange, #orange-shadow, #reveal-ring {
  position: fixed; left: 0; top: 0; z-index: 50;
  will-change: transform;
}
#orange {
  width: 400px; height: 400px;
  transform-origin: 50% 50%;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
  touch-action: none; /* a finger on the orange grabs it, instead of scrolling the page */
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; /* no long-press menu while squeezing */
}
#orange .squash { position: absolute; inset: 0; transform-origin: 50% 100%; }
#orange .squash::before {
  content: ""; position: absolute; inset: 6% 6% 2% 6%; border-radius: 50%;
  box-shadow: 0 28px 60px rgba(70, 22, 0, .35), 0 8px 18px rgba(70, 22, 0, .25);
}
#orange .spin { position: absolute; inset: 0; transform-origin: 50% 50%; }
#orange .peel, #orange .light { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
#orange .navel {
  position: absolute; left: 47%; top: 1.6%; width: 6%; height: 3.4%; border-radius: 50%;
  background: radial-gradient(closest-side, #6b3d08 0%, #a85a06 55%, rgba(200, 90, 0, 0) 100%);
}
#orange .leaves { position: absolute; left: 22.5%; top: -24%; width: 55%; height: auto; overflow: visible; filter: drop-shadow(0 3px 3px rgba(40, 60, 0, .25)); }

#orange-shadow {
  z-index: 49; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 20, 0, .55), rgba(60, 20, 0, .18) 55%, rgba(60, 20, 0, 0));
  opacity: 0; pointer-events: none;
}
#reveal-ring {
  z-index: 48; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 clamp(4px, .6vmin, 8px) rgba(255, 255, 255, .9), 0 0 60px 6px rgba(80, 30, 0, .35);
}

/* ---------- Panels ---------- */
.panel {
  position: fixed; inset: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  visibility: hidden;
  --o: 1; --l: 0;
}
.panel.is-visible { visibility: visible; }
.panel::after { /* darkens the page being left behind */
  content: ""; position: absolute; inset: 0; background: #1a0d03;
  opacity: calc(var(--l) * .45); pointer-events: none; z-index: 5;
}
.panel > .inner, .panel > .split, .panel > .bleed, .panel > picture > .bleed {
  transform: scale(calc(1 - var(--l) * .07));
  transform-origin: 50% 70%;
}
.inner {
  position: relative; z-index: 2; height: 100%;
  padding: calc(var(--nav-h) + 8px) calc(var(--pad) + 18px) var(--pad) var(--pad);
}
.bleed { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* scroll-linked entrance: --o is page openness (0→1), --d is the stagger */
.rv {
  --k: clamp(0, calc((var(--o) - var(--d, 0)) * 2.6), 1);
  opacity: var(--k);
  transform: translate3d(0, calc((1 - var(--k)) * 42px), 0);
}

.kicker {
  font-weight: 700; font-size: clamp(.7rem, 1.1vw, .82rem);
  letter-spacing: .2em; text-transform: uppercase; color: var(--orange);
  margin-bottom: 14px;
}
.display {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.5rem, 6.6vw, 6.4rem); line-height: .93; letter-spacing: .005em;
  color: var(--orange);
}
.accent { color: var(--leaf); }
.lede { font-size: clamp(1rem, 1.45vw, 1.28rem); line-height: 1.5; max-width: 34ch; margin-top: 22px; }
.spot { display: block; aspect-ratio: 1; pointer-events: none; }

/* 01 Hero */
.hero {
  background:
    repeating-radial-gradient(circle at 74% 46%, rgba(253, 104, 2, .07) 0 2px, transparent 2px 64px),
    var(--cream);
}
.hero .inner { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4vw; }
.hero-logo { width: min(470px, 82%, 62vh); height: auto; } /* keeps its real proportions and fits short screens */
.hero .kicker { margin: clamp(22px, 4vh, 40px) 0 10px; }
.hero-line {
  font-family: var(--f-serif); font-weight: 600; font-variation-settings: "SOFT" 100;
  font-size: clamp(1.8rem, 3.6vw, 3.4rem); line-height: 1.05; color: var(--ink);
}
.hero-line em { font-style: italic; color: var(--orange); }
.hero-orange { display: grid; place-items: center; }
.hero-orange .spot { width: min(42vmin, 440px); }
.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(16px, 4vh, 36px); z-index: 3;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange);
  opacity: calc(1 - var(--l) * 3);
}
.scroll-cue i { width: 2px; height: 42px; background: linear-gradient(var(--orange), transparent); animation: cue 1.6s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.stats { display: flex; gap: clamp(24px, 4vw, 56px); margin-top: clamp(20px, 3.5vh, 34px); }
.stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.8rem); color: var(--orange); line-height: 1; }
.stats span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(18px, 3vh, 30px); }
.chips li {
  font-family: var(--f-serif); font-style: italic; font-weight: 700; font-variation-settings: "SOFT" 100;
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  padding: 6px 16px; border: 1.5px solid var(--leaf); border-radius: 999px; color: var(--leaf);
}

/* 03 Grove */
.grove { background: var(--cream); }
.grove .inner { display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.card {
  pointer-events: auto;
  width: min(400px, 100%);
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 22px;
  background: rgba(20, 14, 8, .62);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  color: var(--cream);
  border: 1px solid rgba(255, 233, 210, .14);
}
.card .kicker { color: var(--orange); margin-bottom: 8px; }
.card h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; color: var(--white); }
.card > p { margin-top: 10px; line-height: 1.5; font-size: .98rem; opacity: .9; }
.feature-list { margin-top: 16px; display: grid; gap: 10px; }
.feature-list li { font-size: .92rem; line-height: 1.4; padding-left: 18px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.feature-list b { display: block; font-weight: 700; }

/* 04 Hello, Mr. O */
/* One photo (16:9) fills the page from the right, its top fading into the page's cream; its giant O begins 55% of the
   way across it and its middle sits 43.5% of the way down. HELL ends exactly there, sized to fill the room to the left of the O (or, on very wide screens,
   to the O's height), so the photo's O finishes the word. The line and "Introducing Mr. O." sit under HELL, lined up
   with its left edge, the orange landing as the full stop. All measured in the panel's own units (cqw, cqh). */
.hello {
  container-type: size;
  background: #fcf0e4; color: var(--orange);
}
.hello .inner {
  --sw: max(100cqw, 177.78cqh);             /* the photo's width and height */
  --sh: calc(var(--sw) * .5625);
  --ol: calc(100cqw - var(--sw) * .45);     /* where the O begins, from the left */
  /* the photo's top: low enough that the O (6.8% down it) clears the bar, but not so low that his shoes (88.7%) leave */
  --st: min(calc(var(--nav-h) + 10px - var(--sh) * .068), calc(100cqh - var(--sh) * .9));
  --om: calc(var(--st) + var(--sh) * .435); /* the O's middle, from the top */
  --hs: min(calc((var(--ol) - var(--pad)) / 2.62), calc(var(--sh) * .52)); /* HELL's size */
  --hl: calc(var(--ol) - var(--hs) * 2.62); /* HELL's left edge */
}
.hello-stage { position: absolute; z-index: 0; right: 0; top: var(--st); width: var(--sw); height: var(--sh);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 7%); mask-image: linear-gradient(to bottom, transparent, #000 7%); }
.hello-stage img { display: block; width: 100%; height: 100%; }
.hello-word {
  position: absolute; z-index: 2; left: var(--hl); top: var(--om); translate: 0 -50%;
  margin: 0; font-family: "Archivo Black", var(--f-display); font-weight: 400; font-size: var(--hs);
  line-height: .74; letter-spacing: -.035em; white-space: nowrap; color: var(--orange);
}
.hello-o { display: none; }
.hello-copy { position: absolute; z-index: 2; left: var(--hl); top: calc(var(--om) + var(--hs) * .37 + var(--hs) * .09); }
.hello-line, .hello-intro { margin: 0; font-family: "Archivo Black", var(--f-display); text-transform: uppercase; color: var(--orange); white-space: nowrap; }
.hello-line { font-size: calc(var(--hs) * .148); line-height: 1; letter-spacing: -.01em; }
.hello-intro { margin-top: calc(var(--hs) * .1); font-size: calc(var(--hs) * .25); line-height: .9; letter-spacing: -.02em; }
.hello-intro small { display: block; margin-bottom: .08em; font-size: .42em; letter-spacing: 0; }
.hello .o-stop { display: inline-block; width: .36em; aspect-ratio: 1; margin-left: .06em; vertical-align: baseline; }
.hello .o-stop .spot { width: 100%; }

/* 05 Every pack */
.every-pack { background: var(--white); }
.every-pack .inner, .crew .inner { display: flex; flex-direction: column; gap: clamp(16px, 3vh, 32px); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.head .display { font-size: clamp(2.2rem, 5vw, 4.8rem); }
.head .spot { width: clamp(70px, 13vmin, 140px); flex: none; margin-right: 4vw; }
.tiles {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}
.tiles li { position: relative; border-radius: 18px; overflow: hidden; background: var(--peach); min-height: 0; }
.tiles img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tiles li:hover img { transform: scale(1.05); }
.tiles span {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  font-family: var(--f-display); text-transform: uppercase; font-size: clamp(.9rem, 1.5vw, 1.3rem); letter-spacing: .02em;
  color: var(--white); text-shadow: 0 2px 14px rgba(90, 30, 0, .55);
}

/* 06 Beverage */
.beverage { background: var(--white); }
.split { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; height: 100%; }
.split .copy {
  position: relative;
  padding: calc(var(--nav-h) + 8px) var(--pad) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
.beverage .feature-list { max-width: 40ch; }
.beverage .feature-list li { color: var(--ink); }
.split .copy .spot { position: absolute; right: 8%; bottom: 9%; width: clamp(70px, 14vmin, 150px); }
.split .media { position: relative; overflow: hidden; }
.split .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }

/* 07 Crew */
.crew {
  background:
    repeating-radial-gradient(circle at 12% 110%, rgba(253, 104, 2, .08) 0 3px, transparent 3px 90px),
    var(--cream);
}
.cards {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px);
}
.cards li { position: relative; border-radius: 18px; overflow: hidden; background: var(--peach); min-height: 0; }
.cards img { width: 100%; height: 100%; object-fit: cover; object-position: 17% 30%; }
.cards span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
}

/* 08 Colours */
.colours { background: var(--cream); }
.colours .inner { display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 6vh, 64px); }
.colours .head { display: block; }
.colours .display { font-size: clamp(2.2rem, 5.4vw, 5.2rem); }
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(12px, 2.2vw, 32px); }
.swatches li { display: flex; flex-direction: column; gap: 4px; }
.chip {
  display: block; width: 100%; max-width: 220px; aspect-ratio: 1; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(42, 26, 14, .12);
  margin-bottom: 12px;
}
.chip.slot { box-shadow: inset 0 0 0 2px rgba(253, 104, 2, .5); display: grid; place-items: center; }
.chip.slot .spot { width: 94%; }
.swatches b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.1rem, 1.8vw, 1.6rem); color: var(--ink); }
.swatches code { font-family: var(--f-body); font-weight: 700; font-size: .9rem; color: var(--orange); }
.swatches small { font-size: .74rem; opacity: .7; }

/* 09 Finale */
.finale {
  background:
    repeating-radial-gradient(circle at 50% 42%, rgba(253, 104, 2, .07) 0 2px, transparent 2px 70px),
    var(--cream);
}
.finale .inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.say {
  font-family: var(--f-serif); font-style: italic; font-weight: 700; font-variation-settings: "SOFT" 100;
  font-size: clamp(3rem, 11vw, 10.5rem); line-height: 1; color: var(--orange); letter-spacing: -.01em;
  white-space: nowrap;
}
.o-slot {
  display: inline-block; vertical-align: -.08em;
  width: .86em; height: .86em; margin: 0 .04em;
  border-radius: 50%; border: 3px dashed rgba(253, 104, 2, .45);
}
.o-slot .spot { width: 100%; }
.finale .lede { margin: clamp(16px, 3vh, 28px) auto 0; text-align: center; max-width: 30ch; }
.finale-logo { width: min(300px, 60vw); height: auto; margin-top: clamp(24px, 5vh, 48px); }
.finale footer {
  position: absolute; left: var(--pad); right: var(--pad); bottom: var(--pad);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px;
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: rgba(42, 26, 14, .62);
}
.again {
  border: 0; border-radius: 999px; padding: 10px 18px;
  background: var(--orange); color: var(--white);
  font-weight: 700; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, transform .25s;
}
.again:hover { background: var(--forest); transform: translateY(-2px); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .inner { padding: calc(var(--nav-h) + 4px) var(--pad) var(--pad); }
  #dots { display: none; }
  #counter span { display: none; }

  .hero .inner { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; text-align: center; gap: 2vh; }
  .hero-orange { order: -1; }
  .hero-orange .spot { width: min(46vw, 30vh); }
  .hero-logo { width: min(64vw, 32vh); margin: 0 auto; }

  .grove .bleed { object-position: 46% 50%; } /* the O gate stays centred on phones */
  .grove .inner { justify-content: center; }
  .card { padding: 16px 18px; }
  .card .feature-list { display: none; }

  /* phones: HELLO spelt out across the top, the line and the introduction under it, the photo along the bottom with
     Mr. O and his O in the middle of the screen */
  .hello .inner { --sh: 61cqh; --sw: calc(var(--sh) * 1.7778); --hs: 20cqw; padding-top: calc(var(--nav-h) + 3cqh); }
  .hello-stage { top: auto; bottom: 0; right: auto; left: calc(50cqw - var(--sw) * .755); }
  .hello-word { position: relative; left: auto; top: auto; translate: none; letter-spacing: -.03em; }
  .hello-o { display: inline; }
  .hello-copy { position: relative; left: auto; top: auto; margin-top: calc(var(--hs) * .16); }
  .hello-line { font-size: calc(var(--hs) * .3); }
  .hello-intro { font-size: calc(var(--hs) * .42); }

  .head .spot { margin-right: 0; width: 18vw; }
  .tiles { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .tiles li { border-radius: 12px; }

  .split { grid-template-columns: 1fr; grid-template-rows: 1fr 34%; }
  .split .copy { padding: calc(var(--nav-h) + 4px) var(--pad) 16px; justify-content: flex-start; }
  .beverage .feature-list { display: none; }
  .split .copy .spot { right: var(--pad); bottom: 14px; width: 16vw; }

  .cards { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .cards img { object-position: 17% 25%; }

  .swatches { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .swatches small { display: none; }

  .finale footer { font-size: .62rem; gap: 8px 16px; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .card .feature-list { display: none; }
  .beverage .feature-list { display: none; }
}

/* ---------- Interaction layer ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

#gl, #fx {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none;
}
#gl { z-index: 50; }
#fx { z-index: 51; }
#orange { z-index: 52; }
body.gl #orange .squash { opacity: 0; }
body.dragging, body.dragging * { user-select: none; }

/* custom cursor (fine pointers only) */
#cursor { display: none; }
body.has-cursor #cursor {
  display: grid; place-items: center;
  position: fixed; left: 0; top: 0; z-index: 80;
  width: 0; height: 0; pointer-events: none;
}
#cursor::before {
  content: ""; position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; left: 0; top: 0;
  border-radius: 50%; background: var(--orange);
  transform: scale(var(--s, 1)); transition: background .3s;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7);
}
#cursor span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  font-weight: 700; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  color: var(--white);
}
#cursor.hidden { opacity: 0; }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor #orange,
body.has-cursor [role="button"] { cursor: none; }

/* 3D tilt + glare */
.tiles, .cards { perspective: 900px; }
.tiles li, .cards li { transition: rotate .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; will-change: rotate; }
.tiles li.tilting, .cards li.tilting { transition: rotate .08s linear, box-shadow .4s; box-shadow: 0 24px 50px -18px rgba(120, 40, 0, .45); }
.tiles li::after, .cards li::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), transparent 55%);
}
.tiles li.tilting::after, .cards li.tilting::after { opacity: 1; }

/* swatches are buttons */
.swatches li { cursor: pointer; border-radius: 16px; outline: none; }
.swatches li .chip { transition: transform .5s cubic-bezier(.2, 1.6, .4, 1); }
.swatches li:hover .chip:not(.slot), .swatches li:focus-visible .chip:not(.slot) { transform: scale(1.06) rotate(-4deg); }
.swatches li:focus-visible { box-shadow: 0 0 0 3px var(--leaf); }

.magnetic { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }

#toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 20px; border-radius: 999px;
  background: var(--forest); color: var(--cream);
  font-weight: 700; font-size: .82rem; letter-spacing: .08em;
  transition: opacity .3s, transform .4s cubic-bezier(.2, 1.4, .4, 1);
  pointer-events: none;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* pointer parallax on decorative layers */
.hero { background-position: calc(var(--mx, 0) * -30px) calc(var(--my, 0) * -30px), 0 0; }
.hero-copy { translate: calc(var(--mx, 0) * -12px) calc(var(--my, 0) * -8px); }

.every-pack .head > div, .crew .head > div, .colours .head { translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -6px); }
.hero-copy, .head > div, .colours .head { transition: translate .6s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) {
  .magnetic, .tiles li, .cards li, .hero-copy { transition: none; }
}

/* ---------- Personality ---------- */
#bubble { position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none; will-change: transform; }
#bubble .b {
  position: absolute; left: 0; bottom: 0;
  transform: translate(-50%, 0) scale(.4); transform-origin: 50% 120%;
  opacity: 0;
  padding: 9px 15px; border-radius: 18px;
  background: var(--white); color: var(--ink);
  font-family: var(--f-serif); font-style: italic; font-weight: 700; font-variation-settings: "SOFT" 100;
  font-size: clamp(.95rem, 1.4vw, 1.15rem); white-space: nowrap;
  box-shadow: 0 10px 30px -8px rgba(60, 20, 0, .35), 0 0 0 1.5px rgba(253, 104, 2, .25);
  transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1);
}
#bubble .b::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px;
  background: var(--white); transform: rotate(45deg); border-radius: 0 0 4px 0;
}
#bubble.show .b { opacity: 1; transform: translate(-50%, 0) scale(1); animation: pop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes pop { 0% { transform: translate(-50%, 0) scale(.4); } 100% { transform: translate(-50%, 0) scale(1); } }

#orange:focus { outline: none; }
#orange:focus-visible::after {
  content: ""; position: absolute; inset: -5%; border-radius: 50%;
  box-shadow: 0 0 0 14px var(--leaf);
}

#glass {
  position: relative; height: 40px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1.5px solid var(--orange); background: transparent; color: var(--orange);
  display: flex; align-items: center; gap: 6px;
  transition: border-color .4s, color .4s, translate .35s cubic-bezier(.2, .8, .2, 1);
}
#glass svg { width: 16px; height: 20px; overflow: visible; }
#glass .juice {
  fill: var(--orange);
  transform: translateY(calc((1 - var(--fill, 0)) * 27px));
  transition: transform .25s ease-out;
}
#glass .glass-count { font-family: var(--f-display); font-weight: 400; font-size: 1rem; line-height: 1; }
#glass.cheers { animation: cheers .7s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes cheers { 0% { rotate: 0deg; scale: 1; } 30% { rotate: -14deg; scale: 1.18; } 60% { rotate: 10deg; } 100% { rotate: 0deg; scale: 1; } }
body[data-theme="dark"] #glass { border-color: var(--white); color: var(--white); }
#glass:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

.recap {
  margin: clamp(10px, 2vh, 18px) auto 0; max-width: 46ch; text-align: center;
  font-weight: 700; font-size: .86rem; letter-spacing: .02em; color: var(--forest);
}

@media (max-width: 760px) {
  .nav-right { gap: 8px; }
  #glass { height: 36px; padding: 0 9px 0 8px; }
  #bubble .b { font-size: .9rem; padding: 7px 12px; }
}

/* ---------- Tricks checklist ---------- */
#tricks {
  height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--orange); background: transparent; color: var(--orange);
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-display); font-size: 1rem; line-height: 1;
  transition: border-color .4s, color .4s, background .25s, translate .35s cubic-bezier(.2, .8, .2, 1);
}
#tricks span { font-size: .95rem; }
#tricks b { font-weight: 400; }
#tricks[aria-expanded="true"] { background: var(--orange); color: var(--white); }
#tricks.cheers { animation: cheers .7s cubic-bezier(.2, 1.6, .4, 1); }
body[data-theme="dark"] #tricks { border-color: var(--white); color: var(--white); }
body[data-theme="dark"] #tricks[aria-expanded="true"] { background: var(--white); color: var(--orange); }
#tricks:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }

#tricks-panel {
  position: fixed; top: calc(var(--nav-h) - 4px); right: var(--pad); z-index: 65;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - var(--nav-h) - 24px); overflow: auto;
  padding: 18px 18px 14px;
  border-radius: 20px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 24px 60px -18px rgba(60, 20, 0, .45), 0 0 0 1px rgba(253, 104, 2, .2);
  animation: panelIn .35s cubic-bezier(.2, 1.3, .4, 1);
}
#tricks-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
#tricks-panel .kicker { margin-bottom: 10px; }
#tricks-panel ul { display: grid; gap: 10px; }
#tricks-panel li { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
#tricks-panel li i {
  grid-row: span 2; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  border: 2px solid rgba(253, 104, 2, .45);
}
#tricks-panel li.done i { background: var(--orange); border-color: var(--orange); box-shadow: inset 0 0 0 3px var(--cream); }
#tricks-panel li b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 1rem; letter-spacing: .02em; }
#tricks-panel li span { font-size: .8rem; line-height: 1.4; opacity: .72; }
#tricks-panel li.done b { color: var(--orange); }
#tricks-panel li.done span { text-decoration: line-through; opacity: .45; }
#tricks-panel .tp-foot { margin-top: 12px; font-size: .7rem; opacity: .5; }

@media (max-width: 760px) {
  #tricks { height: 36px; padding: 0 9px; }
  #tricks-panel { right: 16px; }
  #counter { display: none; }
}

/* ---------- Slice ---------- */
.panel { touch-action: pan-y; } /* sideways swipes stay with the page, so phones can slice */
#halves i {
  display: none; position: fixed; left: 0; top: 0; z-index: 50;
  background: url("assets/orange-cross.png") center / contain no-repeat;
  filter: drop-shadow(0 14px 22px rgba(80, 25, 0, .35));
  will-change: transform; pointer-events: none;
}
#halves i:first-child { clip-path: inset(0 0 50% 0); }
#halves i:last-child { clip-path: inset(50% 0 0 0); }

/* ---------- Live squeeze counter ---------- */
#live {
  position: fixed; left: var(--pad); top: calc(var(--nav-h) - 4px); z-index: 60;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); color: var(--ink);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(253, 104, 2, .25);
  font-size: .74rem; font-weight: 700; letter-spacing: .04em;
}
#live[hidden] { display: none; }
#live i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(253, 104, 2, .6); animation: livePulse 2s infinite; }
#live b { font-family: var(--f-display); font-weight: 400; font-size: .95rem; color: var(--orange); }
#live.bump b { animation: bump .5s cubic-bezier(.2, 1.8, .4, 1); display: inline-block; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(253, 104, 2, .55); } 70% { box-shadow: 0 0 0 8px rgba(253, 104, 2, 0); } 100% { box-shadow: 0 0 0 0 rgba(253, 104, 2, 0); } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (max-width: 760px) {
  #live { font-size: .66rem; padding: 5px 10px 5px 8px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .scroll-cue { display: none; } /* no room under the tagline on short phones */
}

/* ---------- Split: data pieces ---------- */
.pieces { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.pieces:not(.on) { visibility: hidden; }
.piece {
  --k: 0;
  position: absolute; pointer-events: auto;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  padding: 7px 13px 8px; border: 0; border-radius: 14px;
  background: rgba(255, 249, 241, .94); color: var(--ink);
  box-shadow: 0 10px 28px -10px rgba(60, 20, 0, .4), 0 0 0 1px rgba(253, 104, 2, .18);
  text-align: left; white-space: nowrap;
  opacity: min(1, calc(var(--k) * 1.6));
  /* --dx/--dy: how far its mini orange still is from the resting spot, so the
     label travels out of the orange with it */
  transform: translate(calc(var(--dx, 0) * 1px), calc(-50% + var(--dy, 0) * 1px)) scale(calc(.2 + var(--k) * .8));
  transform-origin: 0 50%;
}
.piece.left { transform: translate(calc(-100% + var(--dx, 0) * 1px), calc(-50% + var(--dy, 0) * 1px)) scale(calc(.2 + var(--k) * .8)); transform-origin: 100% 50%; align-items: flex-end; text-align: right; }
.piece b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.05rem, 1.9vw, 1.7rem); line-height: 1; color: var(--orange); }
.piece span { font-size: clamp(.68rem, .9vw, .8rem); font-weight: 700; letter-spacing: .02em; opacity: .75; }
.piece:hover, .piece:focus-visible { box-shadow: 0 14px 32px -10px rgba(60, 20, 0, .5), 0 0 0 2px var(--orange); outline: none; }
.piece.pop { animation: piecePop .45s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes piecePop { 0% { scale: 1; } 40% { scale: 1.12; } 100% { scale: 1; } }

/* what sits under the pieces steps back while they're out */
[data-dim] { transition: opacity .5s; }
.panel.is-split [data-dim] { opacity: .3; }
body.orange-split #orange { pointer-events: none; }

@media (max-width: 760px) {
  .panel > .inner, .panel > .split { transition: opacity .5s; }
  .panel.is-split > .inner, .panel.is-split > .split { opacity: .14; }
  .piece { padding: 6px 10px 7px; border-radius: 11px; }
  .piece b { font-size: 1rem; }
  .piece span { font-size: .66rem; white-space: normal; max-width: 30vw; }
}

/* ---------- Drop boxes ---------- */
.drops { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(10px, 1.8vh, 16px); }
.drop-box { will-change: transform; cursor: pointer; }

.drop-box.pop { animation: boxPop .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes boxPop { 0% { translate: 0 0; } 35% { translate: 0 -10px; } 100% { translate: 0 0; } }

@media (max-width: 760px) {
  .drops { gap: 8px; }

}

/* ---------- Beverages: a bottle rises out of each mini orange ---------- */
.media.stage {
  background:
    radial-gradient(circle at 50% 30%, #fff6ea 0%, #ffe3c4 45%, #ffcf9c 100%);
}
.media.stage::before { /* soft window light */
  content: ""; position: absolute; inset: 0;
  background: repeating-radial-gradient(circle at 50% 40%, rgba(253, 104, 2, .06) 0 2px, transparent 2px 60px);
}
.media.stage::after { /* the shelf the bottles stand on (top edge at 72%) */
  content: ""; position: absolute; left: 6%; right: 6%; top: 72%; height: 16px; border-radius: 8px;
  background: linear-gradient(#f0d1ae, #d9ad80);
  box-shadow: 0 22px 34px -14px rgba(120, 50, 0, .4);
}
.piece.bottle-piece {
  opacity: 1; transform: translate(-50%, 0); transform-origin: 50% 0;
  padding: 0; background: none; box-shadow: none; border-radius: 0;
  align-items: center; text-align: center; gap: 2px;
}
.piece.bottle-piece:hover, .piece.bottle-piece:focus-visible { box-shadow: none; }
.piece.bottle-piece:focus-visible .bottle { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 12px; }
.bottle-piece .bottle-wrap { /* clipped at the shelf, so the bottle comes up out of its orange */
  display: block; height: var(--bh, 200px); overflow: hidden; opacity: 1; max-width: none;
}
.bottle-piece .bottle {
  height: 100%; width: auto; max-width: none;
  transform-origin: 50% 100%;
  transform: translateY(calc((1 - var(--b, 0)) * 100%)) scale(calc(.7 + var(--b, 0) * .3));
  filter: drop-shadow(0 16px 18px rgba(110, 40, 0, .28));
  transition: translate .3s;
}
.bottle-piece:hover .bottle { translate: 0 -6px; }
.bottle-piece b, .bottle-piece > span:not(.bottle-wrap) {
  opacity: clamp(0, calc((var(--b, 0) - .6) * 2.5), 1);
}
.bottle-piece b { margin-top: 18px; font-size: clamp(.95rem, 1.5vw, 1.35rem); }
.bottle-piece.pop { animation: none; }
.bottle-piece.pop .bottle { animation: bottleWiggle .55s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bottleWiggle { 0% { rotate: 0deg; } 30% { rotate: -6deg; } 60% { rotate: 4deg; } 100% { rotate: 0deg; } }

@media (max-width: 760px) {
  .bottle-piece b { margin-top: 12px; font-size: .9rem; }
  .bottle-piece > span:not(.bottle-wrap) { max-width: 40vw; }
}

/* ---------- Natural scroll: sections stack and move with the page ---------- */
#track, #reveal-ring { display: none; }
.panel {
  position: relative; inset: auto;
  height: 100vh; height: 100svh;
  visibility: visible;
}

/* ---------- One continuous background ---------- */
html { background: #ffe9d2; }
body { background-color: transparent; background-repeat: no-repeat; } /* the page-long gradient is set from main.js */
.panel { background-color: transparent !important; } /* decorative patterns stay, solid fills go */
.panel::after { display: none; } /* no more dark overlay on the section being left */
/* sections meet on clean edges: no fading of photos or content between them */

/* ---------- Mascot (Packaging page) ---------- */
/* he stands in the ring, his shoes a little over its lower edge; every pose is drawn on the same 578 x 899 canvas */
.mascot {
  position: absolute; z-index: 2; padding: 0; border: 0; background: none;
  height: calc(var(--rh) * .9); aspect-ratio: 578 / 899;
  left: calc(var(--rx) - var(--rh) * .45 * 578 / 899); top: calc(var(--ry) + var(--rh) * .5 - var(--rh) * .9 + var(--rh) * .04);
  opacity: 0; cursor: pointer; transform-origin: 50% 80%; will-change: transform;
}
.mascot picture { display: contents; }
.mascot .pose {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 22px 24px rgba(90, 20, 0, .35));
  opacity: 0; transform: scale(.9) translateY(3%); transform-origin: 50% 100%;
  transition: opacity .16s, transform .5s cubic-bezier(.2, 1.6, .4, 1);
}
.mascot .pose.on { opacity: 1; transform: none; }
.mascot.out .pose.on { animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { scale: 1 1; } 50% { scale: 1 1.015; } }
.mascot.hop .pose.on { animation: mascotHop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes mascotHop { 0% { translate: 0 0; rotate: 0deg; } 35% { translate: 0 -7%; rotate: -4deg; } 70% { rotate: 2deg; } 100% { translate: 0 0; rotate: 0deg; } }
.mascot:focus-visible { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 20px; }

/* ---------- Crew: open line-up with drifting brand vectors ---------- */
.crew .inner { position: relative; z-index: 2; }
.vectors { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.vectors .v {
  transform-box: fill-box; transform-origin: center;
  translate: calc(var(--mx, 0) * var(--depth, 10) * -1px) calc(var(--my, 0) * var(--depth, 10) * -1px);
  transition: translate .8s cubic-bezier(.2, .8, .2, 1);
}
.v-spin { animation: vSpin 38s linear infinite; }
.v-spin-rev { animation: vSpin 52s linear infinite reverse; }
.v-float { animation: vFloat var(--dur, 7s) ease-in-out var(--delay, 0s) infinite; }
.v-drift { animation: vDrift var(--dur, 10s) ease-in-out var(--delay, 0s) infinite; }
.v-wave { animation: vWave 6s linear infinite; }
@keyframes vSpin { to { rotate: 360deg; } }
@keyframes vFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }
@keyframes vDrift { 0% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(18px, -14px) rotate(14deg); } 66% { transform: translate(-12px, 10px) rotate(-10deg); } 100% { transform: translate(0, 0) rotate(0deg); } }
@keyframes vWave { to { stroke-dashoffset: -64; } }

/* the whole crew in one line-up photo, a name under each person; whoever you point at gets a warm light behind them */
.crew-group { flex: 1; min-height: 0; margin: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: clamp(34px, 5.5vh, 50px); container-type: size; }
/* as big as its space allows, in both directions (the names sit in the padding below); names scale with the photo */
.crew-team { position: relative; width: min(100cqw, 100cqh * 1158 / 932); aspect-ratio: 1158 / 932; container-type: inline-size; }
.crew-team img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; filter: drop-shadow(0 22px 22px rgba(90, 40, 0, .2)); }
.crew-team::before {
  content: ""; position: absolute; z-index: 0; left: var(--spot, 50%); bottom: 0; width: 34%; height: 100%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, rgba(253, 104, 2, .32), rgba(253, 104, 2, 0));
  opacity: 0; transition: opacity .35s, left .45s cubic-bezier(.2, .8, .2, 1);
}
.crew-team[data-on]::before { opacity: 1; }
.crew-who { all: unset; position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--l); width: var(--w); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.crew-who span {
  position: absolute; top: calc(100% + 10px); left: var(--lx); translate: -50% 0; white-space: nowrap;
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em;
  font-size: clamp(.58rem, 3.1cqi, 1.3rem); color: var(--ink);
  padding-bottom: 4px; border-bottom: 3px solid var(--orange);
  transition: color .25s, translate .35s cubic-bezier(.2, 1.4, .4, 1);
}
.crew-who.on span { color: var(--orange); translate: -50% -4px; }
.crew-who:focus-visible span { outline: 3px solid var(--leaf); outline-offset: 4px; border-radius: 2px; }
/* wide screens: the headline on the left with the orange landing below it, the crew standing tall beside them */
@media (min-width: 761px) and (min-aspect-ratio: 1/1) {
  .crew .inner { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: clamp(20px, 3vw, 56px); }
  .crew .head { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 0; padding-bottom: clamp(34px, 5.5vh, 50px); }
  .crew .head .spot { margin: 0 0 0 clamp(10px, 4vw, 70px); width: clamp(80px, 15vmin, 160px); }
}
@media (max-width: 760px) {
  .crew-who span { letter-spacing: .02em; border-bottom-width: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .vectors .v, .v-wave { animation: none; transition: none; }
}

/* ---------- Every pack: the range on a curved wall ---------- */
/* The headline across the top with the orange's spot beside it; the WebGL wall (packwall.js) full width across the
   middle, grabbed and spun; under it the middle pack's line, big, wiped in as each pack arrives, with its name, number
   and the arrows. The real list of packs stays for keyboards and screen readers (hidden from view; focusing one turns
   the wall and rings it), and becomes a swipeable strip of photos where there's no WebGL. */
.every-pack { background: radial-gradient(120% 70% at 50% 56%, #fffdf9 0%, var(--cream) 64%); }
.every-pack .inner {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: clamp(6px, 1.6vh, 20px);
  padding: calc(var(--nav-h) + 4px) 0 clamp(18px, 4vh, 40px);
}
.every-pack .head { flex-direction: row; align-items: flex-end; justify-content: flex-start; gap: clamp(16px, 3vw, 48px); padding: 0 var(--pad); }
.every-pack .head .display { font-size: clamp(2rem, 4vw, 4.4rem); max-width: 14ch; text-wrap: balance; }
.every-pack .head .spot { width: clamp(60px, 8vmin, 108px); margin: 0 0 .5vh; }
.ep-stage { position: relative; min-height: 0; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ep-stage:active { cursor: grabbing; }
.ep-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s; }
.every-pack.has-gl .ep-gl { opacity: 1; }
.ep-now { grid-row: 3; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--pad); }
.ep-line { margin: 0; max-width: 20ch; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 4.4rem); line-height: .95; color: var(--orange); }
.ep-meta { flex: none; display: grid; grid-template-columns: auto auto auto; grid-template-areas: "name name name" "count prev next"; align-items: center; justify-items: end; gap: 8px 10px; }
.ep-name { grid-area: name; margin: 0; font-weight: 700; font-size: clamp(.7rem, 1vw, .82rem); letter-spacing: .2em; text-transform: uppercase; color: var(--orange-deep); }
.ep-count { grid-area: count; margin: 0 8px 0 0; font-family: var(--f-display); font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1; color: rgba(227, 84, 0, .4); }
.ep-count b { font-weight: 400; color: var(--orange); }
.ep-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%;
  border: 2px solid var(--orange); background: transparent; color: var(--orange); cursor: pointer;
  transition: background .25s, color .25s;
}
.ep-btn:hover { background: var(--orange); color: var(--white); }
.ep-btn:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.ep-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ep-prev { grid-area: prev; }
.ep-next { grid-area: next; }
.ep-now.swap .ep-line q { display: inline-block; animation: epWipe .7s cubic-bezier(.2, .8, .2, 1) both; }
.ep-now.swap .ep-name, .ep-now.swap .ep-count b { animation: epFade .5s ease both; }
@keyframes epWipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes epFade { from { opacity: 0; translate: 0 6px; } }
.every-pack:has(.lineup li:focus-visible) .ep-stage { outline: 3px solid var(--leaf); outline-offset: -3px; border-radius: 18px; }
/* the list, there for keyboards and screen readers while the wall is up */
.every-pack .lineup { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; list-style: none; }
.every-pack .lineup li.pz-from { visibility: hidden; } /* its card is out, opened up big */
.ep-ghost { position: fixed; pointer-events: none; visibility: hidden; border-radius: 18px; } /* where the middle card is */
/* no WebGL: the list itself is the range, a strip of photos to swipe through */
.every-pack.no-gl .ep-stage, .every-pack.no-gl .ep-count, .every-pack.no-gl .ep-btn { display: none; }
.every-pack.no-gl .lineup {
  position: static; grid-row: 2; align-self: center; width: auto; height: auto; clip-path: none; white-space: normal;
  display: flex; gap: 14px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory;
}
.every-pack.no-gl .lineup li { flex: 0 0 min(72vw, 560px); scroll-snap-align: center; overflow: hidden; border-radius: 18px; cursor: pointer; }
.every-pack.no-gl .lineup img { display: block; width: 100%; height: auto; }
/* short windows: the words make room so the wall keeps most of the height */
@media (max-height: 620px) {
  .every-pack .kicker, .ep-name { display: none; }
  .every-pack .head .display { font-size: clamp(1.6rem, 7vh, 3rem); max-width: none; }
  .every-pack .head .spot { width: clamp(40px, 9vh, 70px); }
  .ep-line { font-size: clamp(1.4rem, 6.5vh, 2.8rem); }
  .ep-meta { grid-template-areas: "count prev next"; }
  .ep-btn { width: 40px; height: 40px; }
}
@media (max-width: 760px) {
  .every-pack .head { gap: 12px; }
  .every-pack .head .display { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .every-pack .head .spot { width: 15vw; }
  .ep-now { flex-direction: column; align-items: stretch; gap: 14px; }
  .ep-line { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .ep-meta { grid-template-columns: 1fr auto auto; grid-template-areas: "name name name" "count prev next"; justify-items: start; }
}

/* A card opened up big: main.js sizes and places it (and grows it there from its place on the wall); the page is dimmed
   behind it, and the buttons sit round it, following its place (--zx, --zy, --zw, --zh). */
#pack-zoom { position: fixed; inset: 0; z-index: 70; touch-action: pinch-zoom; }
#pack-zoom::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(30, 15, 5, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
#pack-zoom.is-open::before { opacity: 1; }
.pz-card {
  position: absolute; overflow: hidden; border-radius: clamp(24px, 2.6vw, 44px);
  background: var(--tone);
  background: radial-gradient(ellipse 34% 44% at 50% 50%, transparent 64%, color-mix(in srgb, var(--txt) 14%, transparent) 65% 78%, transparent 79%), var(--tone);
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .55);
}
.pz-pack { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: inherit; }
.pz-pack picture { display: contents; }
.pz-pack img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pz-btn {
  position: absolute; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .1); color: var(--white);
  opacity: 0; scale: .6;
  transition: opacity .2s, scale .2s, background-color .25s, color .25s, translate .35s cubic-bezier(.2, .8, .2, 1);
}
#pack-zoom.is-open .pz-btn {
  opacity: 1; scale: 1;
  transition: opacity .3s .3s, scale .5s .3s cubic-bezier(.2, 1.6, .4, 1), background-color .25s, color .25s, translate .35s cubic-bezier(.2, .8, .2, 1);
}
.pz-btn:hover { background-color: var(--white); color: var(--orange); }
.pz-btn:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.pz-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pz-prev, .pz-next { top: calc(var(--zy) + var(--zh) / 2 - 27px); }
.pz-prev { left: calc(var(--zx) - 76px); }
.pz-next, .pz-close { left: calc(var(--zx) + var(--zw) + 22px); }
.pz-close { top: var(--zy); }
@media (max-width: 760px) {
  .pz-btn { width: 46px; height: 46px; }
  .pz-prev, .pz-next { top: calc(var(--zy) + var(--zh) + 16px); }
  .pz-prev { left: calc(50% - 54px); }
  .pz-next { left: calc(50% + 8px); }
  .pz-close { left: calc(var(--zx) + var(--zw) - 46px); top: calc(var(--zy) - 60px); }
}
@media (prefers-reduced-motion: reduce) {
  .pz-pack img { animation: none; }
}

/* ---------- Nav: tricks + juice glass side by side ---------- */
.nav-right { display: flex; align-items: center; }
@media (min-width: 761px) { .nav-right { gap: clamp(10px, 2vw, 22px); } }

@media (max-width: 760px) {
  #bubble .b { white-space: normal; width: max-content; max-width: 64vw; text-align: center; }
}

@media (max-width: 760px) {
  /* Beverages: keep the headline readable above the bottles */
  .beverage.is-split > .split { opacity: 1; }
}

@media (max-width: 760px) {
  /* Beverages: the bottles have their own grid on phones, so no stage/shelf behind them */
  .beverage .split { grid-template-rows: 1fr; }
  .beverage .split .media { display: none; }
}

/* Back to Grit Fox: the agency's own chip on every brand page. The fox blinks now and then, and tilts its head and
   glances back when you point at it. */
.bar-back.fox-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 12px;
  border-radius: 999px; background: #1A1A1A; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; opacity: 1;
  transition: translate .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s;
}
.bar-back.fox-back:hover { color: #fff; text-decoration: none; opacity: 1; translate: -2px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.bar-back.fox-back:focus-visible { outline: 3px solid #F0AC1D; outline-offset: 3px; }
.fox-back i { font-style: normal; font-weight: 400; font-size: 14px; color: #F0AC1D; transition: translate .3s cubic-bezier(.2, 1.4, .4, 1); }
.fox-back:hover i { translate: -3px 0; }
.fox-back .fx { width: 24px; height: 24px; flex: none; overflow: visible; }
.fox-back .fx-head { transform-box: view-box; transform-origin: 500px 430px; transition: rotate .5s cubic-bezier(.2, 1.6, .4, 1); }
.fox-back:hover .fx-head { rotate: -12deg; }
.fox-back .fx-iris { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.fox-back:hover .fx-iris { translate: -24px 6px; }
.fox-back .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.2s ease-in-out infinite; }
.fox-back:active .fx-eye { animation: none; scale: 1 .08; }
@keyframes fxBlink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .08; } }
/* a wink when pointed at: it stays even with reduced motion, as it is tiny and only follows the pointer */
.fox-back:hover .fx-eye { animation: fxWink .34s ease-in-out; }
@keyframes fxWink { 0%, 100% { scale: 1 1; } 50% { scale: 1 .08; } }
@media (max-width: 760px) { .bar-back.fox-back { gap: 5px; padding: 0 11px 0 10px; } .fox-back span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fox-back .fx-eye { animation: none; } }
