/* ==========================================================================
   LEVL — "Find your fresh."  ·  styles/main.css
   Layer stack (contract): liquid z0 · backtype z1 · can-stage z2 · scenes z3
   · nav/gauge z10 · loader z50. <main> never creates a stacking context.
   ========================================================================== */

/* ---------- Fonts ------------------------------------------------------- */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-full-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-full-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-wdth.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

/* ---------- Registered tokens (so the pour can interpolate them) -------- */
@property --v-wght { syntax: "<number>"; inherits: true; initial-value: 360; }
@property --v-soft { syntax: "<number>"; inherits: true; initial-value: 100; }
@property --v-wonk { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --v-opsz { syntax: "<number>"; inherits: true; initial-value: 144; }
/* Tracking is registered as a <length> in the brief, but a registered length
   declared in em on <html> computes to px against 16px and would flatten the
   display tracking (-0.56px on 24vw type). --v-track stays registered for
   compatibility but is unused; the animatable voice is --v-track-em, a
   unitless em multiplier resolved at the use site (see the .display rule). */
@property --v-track { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --v-track-em { syntax: "<number>"; inherits: true; initial-value: -0.035; }

@property --field   { syntax: "<color>"; inherits: true; initial-value: #D8C6EE; }
@property --deep    { syntax: "<color>"; inherits: true; initial-value: #B597DE; }
@property --air     { syntax: "<color>"; inherits: true; initial-value: #F4EEFB; }
@property --ink     { syntax: "<color>"; inherits: true; initial-value: #34092E; }
@property --display { syntax: "<color>"; inherits: true; initial-value: #C8177F; }
@property --accent  { syntax: "<color>"; inherits: true; initial-value: #C8177F; }
@property --cta-bg  { syntax: "<color>"; inherits: true; initial-value: #34092E; }
@property --cta-fg  { syntax: "<color>"; inherits: true; initial-value: #F4EEFB; }
@property --can     { syntax: "<color>"; inherits: true; initial-value: #C9B3E3; }

/* ---------- Root tokens -------------------------------------------------- */
:root {
  /* grid */
  --pad: clamp(20px, 4vw, 64px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --col: calc((100vw - 2 * var(--pad) - 11 * var(--gutter)) / 12);
  --span4: calc(var(--col) * 4 + var(--gutter) * 3);
  --span5: calc(var(--col) * 5 + var(--gutter) * 4);
  --nav-py: clamp(12px, 1.8vw, 26px);
  --nav-h: calc(44px + 2 * var(--nav-py));

  /* motion */
  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-pour: cubic-bezier(.55, 0, .18, 1);
  --d1: .35s;
  --d2: .6s;
  --d-pour: .9s;
  --d-hold: .7s;

  /* type */
  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-ui: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* world defaults (açaí) */
  --field: #D8C6EE; --deep: #B597DE; --air: #F4EEFB; --ink: #34092E;
  --display: #C8177F; --accent: #C8177F; --cta-bg: #34092E; --cta-fg: #F4EEFB; --can: #C9B3E3;
  --v-style: italic; --v-wght: 360; --v-soft: 100; --v-wonk: 0; --v-opsz: 144; --v-track-em: -0.035;

  /* derived */
  --hair: color-mix(in srgb, var(--ink) 35%, transparent);
  --ink-80: color-mix(in srgb, var(--ink) 80%, transparent);
  --ink-70: color-mix(in srgb, var(--ink) 70%, transparent);

  /* flavor swatch colours (literal, never themed) */
  --c-acai: #C8177F;
  --c-pineapple: #F0C64B;
  --c-lime: #2DBA4E;
}

html[data-world="acai"] {
  --field: #D8C6EE; --deep: #B597DE; --air: #F4EEFB; --ink: #34092E;
  --display: #C8177F; --accent: #C8177F; --cta-bg: #34092E; --cta-fg: #F4EEFB; --can: #C9B3E3;
}
html[data-world="pineapple"] {
  --field: #F8E37F; --deep: #F0C64B; --air: #FFF7D6; --ink: #07393C;
  --display: #0B7F86; --accent: #0B7F86; --cta-bg: #07393C; --cta-fg: #FFF1A8; --can: #5FC6C9;
}
html[data-world="lime"] {
  --field: #4CD467; --deep: #2DBA4E; --air: #E4F9B8; --ink: #062A0E;
  --display: #0A4A17; --accent: #F1F27E; --cta-bg: #062A0E; --cta-fg: #F1F27E; --can: #EEEE8C;
}
/* The type voice lives on its own attribute, set one frame after the palette,
   so a world change never pays for restyle + text re-shaping in one frame. */
html[data-voice="acai"] {
  --v-style: italic; --v-wght: 360; --v-soft: 100; --v-wonk: 0; --v-opsz: 144; --v-track-em: -0.035;
}
html[data-voice="pineapple"] {
  --v-style: normal; --v-wght: 860; --v-soft: 100; --v-wonk: 0; --v-opsz: 144; --v-track-em: -0.045;
}
html[data-voice="lime"] {
  --v-style: italic; --v-wght: 300; --v-soft: 0; --v-wonk: 1; --v-opsz: 144; --v-track-em: -0.03;
}

html {
  overflow-x: clip;
  background: var(--field);
  color: var(--ink);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--ink) transparent;
  /* Colours ease with the pour; the type voice (--v-*) snaps at the pour's
     midpoint. Interpolating font axes on the root re-shaped and re-laid out
     every display line on every frame for .9s — the main source of jank. */
  transition-property: --field, --deep, --air, --ink, --display, --accent, --cta-bg, --cta-fg, --can;
  transition-duration: var(--d-pour);
  transition-timing-function: var(--e-pour);
}
/* Touch devices: an inherited root colour transition restyles the whole
   document every frame (~55ms on a mid phone). The liquid pour already
   carries the change, so the palette cuts cleanly at the pour's midpoint. */
@media (hover: none), (pointer: coarse) {
  html { transition: none; }
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* ---------- Reset / base ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-ui);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}
.no-webgl body {
  background: linear-gradient(to bottom, var(--air) 0 45%, var(--field) 65%, var(--deep)) fixed;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, canvas { display: block; max-width: 100%; }
img:not([src]) { visibility: hidden; }
a { color: inherit; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
strong { font-weight: 600; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--air); }

/* ---------- World switching ---------------------------------------------- */
.w, .w-block { display: none; }
html[data-world="acai"] .w[data-w="acai"],
html[data-world="pineapple"] .w[data-w="pineapple"],
html[data-world="lime"] .w[data-w="lime"] { display: inline; }
html[data-world="acai"] .w-block[data-w="acai"],
html[data-world="pineapple"] .w-block[data-w="pineapple"],
html[data-world="lime"] .w-block[data-w="lime"] { display: var(--w-display, block); }

/* ---------- Utilities ---------------------------------------------------- */
.sr-only,
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--air);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(calc(-100% - 24px));
  transition: transform var(--d1) var(--e-out);
}
.skip-link:focus-visible,
.skip-link:focus { transform: none; outline: 2px solid var(--air); outline-offset: 2px; }

.eyebrow {
  margin: 0 0 18px;
  font-size: clamp(12px, .9vw, 13px);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-80);
}

.h2 {
  margin: 0 0 .38em;
  font-family: var(--f-ui);
  font-size: clamp(40px, 5vw, 84px);
  font-weight: 600;
  font-stretch: 88%;
  line-height: .95;
  letter-spacing: -.03em;
  text-wrap: balance;
  color: var(--ink);
}

.body {
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--ink);
}

.label-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.label-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  min-width: 32px;
  background: var(--hair);
}

/* ---------- Display type (accent voice per world) ------------------------ */
.display,
.hero-title,
.world-word,
.marquee,
.beat__name,
.pick__name,
.figure dd,
.footer__brand {
  font-family: var(--f-display);
  font-style: var(--v-style);
  font-weight: var(--v-wght);
  font-stretch: normal;
  font-variation-settings: "SOFT" var(--v-soft), "WONK" var(--v-wonk), "opsz" var(--v-opsz);
  letter-spacing: calc(var(--v-track-em) * 1em);
  color: var(--display);
  font-kerning: normal;
}

/* ---------- Layer stack -------------------------------------------------- */
.liquid {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  height: 100lvh;
  z-index: 0;
  pointer-events: none;
}

main { display: block; }

.backtype {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.can-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scene {
  position: relative;
  z-index: 3;
  background: transparent;
}
#hero, #turn, #still, #worlds, #out {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
}
#pick {
  min-height: 100vh;
  min-height: 100svh;
}

/* ---------- Can ---------------------------------------------------------- */
.can-scroll,
.can-rig,
.can-tilt {
  position: relative;
  will-change: transform;
}
.can-rig { /* perspective comes from gsap transformPerspective on .can-tilt */ }
.can-tilt { transform-style: preserve-3d; }

.can {
  position: relative;
  height: min(70svh, 760px);
  aspect-ratio: 320 / 810;
  overflow: hidden;           /* keeps the travelling shine inside the can box */
}
.can__view {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.can__view[data-view="side"],
.can__view[data-view="back"] { opacity: 0; }

.can__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  mix-blend-mode: soft-light;
  -webkit-mask-image: var(--can-mask);
  mask-image: var(--can-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transform: translateX(-130%);
  pointer-events: none;
}

.can__shadow {
  position: absolute;
  left: -5%;
  width: 110%;
  bottom: -11px;
  height: 18px;
  z-index: -1;
  border-radius: 50%;
  /* soft falloff baked into the gradient: no blur filter to repaint per frame */
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ink) 26%, transparent), color-mix(in srgb, var(--ink) 10%, transparent) 55%, transparent);
  pointer-events: none;
}

/* ---------- Backtype: hero title ----------------------------------------- */
.hero-title {
  position: absolute;
  inset: 0;
  margin: 0;
  line-height: .82;
  font-size: 1rem;
}
.hero-title__line {
  position: absolute;
  display: block;
  white-space: nowrap;
  line-height: .82;
  /* SplitText animates isolated glyphs. Keep that same spacing when revert()
     restores the text, so kerning/ligatures cannot pull the letters together. */
  font-kerning: none;
  font-variant-ligatures: none;
}
.hero-title__line[data-line="1"] {
  top: 15vh;
  top: 15svh;
  left: var(--pad);
  font-size: 8.4vw;
}
.hero-title__line[data-line="2"] {
  left: calc(var(--pad) - .03em);
  right: 0;
  text-align: left;
  font-size: 22vw;
  /* baseline ≈ 72svh: the baseline sits ~.77em below the top of a .82 line box */
  top: calc(72vh - .77em);
  /* Baseline never lower than the space the meta block leaves: descenders
     (the f of "fresh.") keep clear of the eyebrow on 4:3 tablets. */
  top: calc(min(72svh, 100svh - var(--pad) - 190px - .25em) - .77em);
}

/* SplitText masks: give glyphs (accents, cedillas, descenders) room inside
   the tight .82 line box without moving the layout. */
.hero-title .hero-line-mask {
  padding: .2em .3em .32em .3em;
  margin: -.2em -.3em -.32em -.3em;
}

/* ---------- Backtype: marquee -------------------------------------------- */
.marquee {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: calc(var(--nav-h) + 4svh);
  gap: .04em;
  font-size: 13vw;
  line-height: .9;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
}
.marquee__row {
  display: block;
  margin: 0;
  white-space: nowrap;
  will-change: transform;
}
.marquee__row[data-row="2"] { text-indent: -60vw; }

/* ---------- Backtype: world word ----------------------------------------- */
.world-word {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  grid-template: 1fr / 1fr;
  align-items: start;
  padding-top: calc(var(--nav-h) + 3svh);
  font-size: min(15vw, 25svh); /* capped by height so the word always clears the can */
  line-height: .8;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
}
.world-word__item {
  grid-area: 1 / 1;
  justify-self: start;
  position: relative;
  left: 50%;
  width: max-content;
  translate: -50% 0;
  opacity: 0;
  /* the outgoing word stays up while its characters fall out, then hides */
  transition: opacity 0s linear var(--d-hold);
}
/* Char masks keep room for descenders (p, ç) and for glyphs that overhang
   their advance width (italics, tight tracking, the í accent), so no letter
   is ever sliced by its mask box. Negative margins keep the layout unchanged. */
.world-word .world-word__item > * {
  padding: .2em .3em .34em .3em !important;
  margin: -.2em -.3em -.34em -.3em !important;
}
.world-word .world-word__item > * > * { position: relative; }

/* Each word owns its voice outright, so it rises in its own ink and weight
   from the first frame, never in the previous world's easing variables. */
.beat[data-flavor-beat="acai"] .beat__name {
  font-style: italic; font-weight: 360;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -.035em;
}
.beat[data-flavor-beat="pineapple"] .beat__name {
  font-style: normal; font-weight: 860;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -.045em;
}
.beat[data-flavor-beat="lime"] .beat__name {
  font-style: italic; font-weight: 300; /* 180 read too thin on the green field */
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144; letter-spacing: -.03em;
}
.world-word__item[data-word="acai"] {
  color: #C8177F; font-style: italic; font-weight: 360;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -.035em;
}
.world-word__item[data-word="pineapple"] {
  color: #0B7F86; font-style: normal; font-weight: 860;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144; letter-spacing: -.045em;
  font-size: .82em;
}
.world-word__item[data-word="lime"] {
  color: #0A4A17; font-style: italic; font-weight: 180;
  font-variation-settings: "SOFT" 0, "WONK" 1, "opsz" 144; letter-spacing: -.03em;
}
html[data-world="acai"] .world-word__item[data-word="acai"],
html[data-world="pineapple"] .world-word__item[data-word="pineapple"],
html[data-world="lime"] .world-word__item[data-word="lime"] {
  opacity: 1;
  transition-delay: 0s;
}

/* ---------- Hero ---------------------------------------------------------- */
.hero__meta {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  width: max(320px, var(--span4));
  max-width: calc(100% - 2 * var(--pad));
}
.hero__meta .eyebrow { margin-bottom: 14px; text-wrap: balance; }
.br-m { display: none; }
@media (max-width: 1100px) { .br-m { display: inline; } }
.hero__lede {
  max-width: 36ch;
  font-size: 18px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero__cue {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.hero__cue-line {
  position: relative;
  display: block;
  width: 1px;
  height: 64px;
  margin-right: 4px;
  background: var(--hair);
  overflow: hidden;
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 0;
  animation: cue-pour 2.4s var(--e-pour) infinite;
}
@keyframes cue-pour {
  0%   { transform: scaleY(0); transform-origin: 50% 0; }
  48%  { transform: scaleY(1); transform-origin: 50% 0; }
  52%  { transform: scaleY(1); transform-origin: 50% 100%; }
  100% { transform: scaleY(0); transform-origin: 50% 100%; }
}

/* ---------- Turn ---------------------------------------------------------- */
.turn__intro,
.turn__inside,
.turn__numbers {
  position: absolute;
  inset: 0;
  padding: calc(var(--nav-h) + 3vh) var(--pad) var(--pad);
  display: flex;
  flex-direction: column;
}
.turn__inside,
.turn__numbers {
  opacity: 0;
  visibility: hidden;
}

.turn__intro { justify-content: center; }
.turn__intro > * { max-width: max(340px, var(--span4)); }

/* specs flank the can */
.specs {
  --w-display: grid;
  flex: 1 1 auto;
  grid-template-columns: 1fr min(32vw, 360px) 1fr;
  grid-auto-flow: dense;
  align-content: center;
  row-gap: clamp(14px, 2.4vh, 26px);
  column-gap: var(--gutter);
  margin: 0;
}
.spec {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.spec[data-side="l"] { grid-column: 1; justify-content: flex-end; text-align: right; }
.spec[data-side="r"] { grid-column: 3; justify-content: flex-start; text-align: left; }

.spec__no {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--display) 62%, var(--ink));
}
.spec__name {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.spec__line {
  flex: none;
  display: block;
  width: clamp(40px, 5.2vw, 80px);
  height: 1px;
  background: var(--hair);
}
.spec[data-side="l"] .spec__line { transform-origin: 100% 50%; }
.spec[data-side="r"] .spec__line { order: -1; transform-origin: 0 50%; }

.turn__sweet {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-80);
}

/* numbers flank the can like the specs */
.figures {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr min(32vw, 360px) 1fr;
  grid-auto-flow: dense;
  align-content: center;
  row-gap: clamp(18px, 3.4vh, 40px);
  column-gap: var(--gutter);
}
.figure { margin: 0; min-width: 0; }
.figure[data-side="l"] { grid-column: 1; text-align: right; }
.figure[data-side="r"] { grid-column: 3; text-align: left; }
.figure dt {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-80);
}
.figure dd {
  font-size: clamp(64px, 9vw, 160px);
  line-height: .85;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.figure dd small {
  font-size: .35em;
  margin-left: .06em;
  letter-spacing: 0;
  vertical-align: baseline;
}

.turn__numbers .note {
  max-width: 56ch;
  margin: 18px auto 8px;
  text-align: center;
  font-size: 16px;
  line-height: 1.45;
  text-wrap: balance;
}
.facts-line {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-80);
  text-wrap: balance;
}
.facts-line i {
  font-style: normal;
  margin: 0 .7em;
  color: color-mix(in oklab, var(--display) 70%, var(--ink));
}

/* ---------- Still life ---------------------------------------------------- */
.still__aperture {
  --ap: min(64svh, 46vw);
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--ap);
  height: var(--ap);
  border-radius: 50%;
  overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  background: var(--deep);
}
.still__aperture picture {
  --w-display: block;
  width: 100%;
  height: 100%;
}
.still__aperture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.still__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent);
  pointer-events: none;
}

.still__copy {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  width: max(280px, min(var(--span4), calc(50vw - min(32svh, 23vw) - var(--pad) - var(--gutter))));
  opacity: 0;
  visibility: hidden;
}
.still__copy .h2 { font-size: clamp(40px, 4.2vw, 72px); }

/* ---------- Worlds -------------------------------------------------------- */
.worlds__head {
  position: absolute;
  top: calc(var(--nav-h) + 2vh);
  left: var(--pad);
  width: max(320px, var(--span4));
  z-index: 1;
}
.worlds__head .h2 { font-size: clamp(36px, 3.6vw, 64px); }

.worlds__list {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: var(--nav-h) var(--pad) calc(var(--pad) + 60px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr;
  column-gap: var(--gutter);
  pointer-events: none;
}
.beat {
  grid-area: 1 / 9 / 2 / 13;
  align-self: end;
  margin-bottom: 4svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
}
.beat__index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-80);
}
.beat__index::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--hair);
}
.beat__name {
  margin: 0 0 .28em;
  font-size: clamp(44px, 5.5vw, 100px);
  /* Room for descenders (p, y, ç) between wrapped lines and below the last one. */
  line-height: 1.04;
  padding-bottom: .08em;
  padding-right: .12em; /* italic overhang */
  text-wrap: balance;
}
html[data-world="lime"] .beat__name { color: var(--ink); }
.beat__amp { color: color-mix(in srgb, var(--display) 70%, transparent); font-style: normal; font-weight: 500; }
html[data-world="lime"] .beat__amp { color: var(--ink); }
.beat__taste {
  max-width: 26ch;
  margin-bottom: 14px;
  font-size: 20px;
  line-height: 1.35;
  text-wrap: pretty;
}
.beat__notes {
  margin-bottom: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--hair);
  text-wrap: balance;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-80);
}

.choose {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  background: transparent;
  transition:
    background-color var(--d1) var(--e-out),
    color var(--d1) var(--e-out),
    box-shadow var(--d1) var(--e-out);
}
.choose:hover { background: var(--ink); color: var(--air); }
.choose:active { box-shadow: inset 0 0 0 999px color-mix(in srgb, #000 16%, transparent); }
.choose[aria-pressed="true"] { background: var(--ink); color: var(--air); }
.choose[aria-pressed="true"]::before {
  content: "";
  width: 11px;
  height: 6px;
  margin-top: -3px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.worlds__jump {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3svh;
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 20px);
  z-index: 2;
}
.jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 2px;
}
.jump[data-jump="acai"]      { --dot: var(--c-acai); }
.jump[data-jump="pineapple"] { --dot: var(--c-pineapple); }
.jump[data-jump="lime"]      { --dot: var(--c-lime); }
.jump__dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 1px var(--hair);
  transition: transform var(--d2) var(--e-out), box-shadow var(--d2) var(--e-out);
}
.jump__name {
  text-decoration: underline 1px transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--d1) var(--e-out);
}
.jump:hover .jump__name { text-decoration-color: var(--hair); }
.jump:active .jump__dot { transform: scale(.85); }
.jump[aria-current="true"] .jump__dot {
  transform: scale(1.5);
  box-shadow: 0 0 0 1.5px var(--field), 0 0 0 2.2px var(--ink);
}
.jump[aria-current="true"] .jump__name { text-decoration-color: var(--ink); }

/* ---------- Out there ----------------------------------------------------- */
.out__photo {
  position: absolute;
  inset: 0;
  clip-path: inset(100% 0 0 0);
  background: #1a1416;
}
.out__photo picture,
.out__photo img {
  display: block;
  width: 100%;
  height: 100%;
}
.out__photo img {
  object-fit: cover;
  object-position: 30% 50%;
}
.out__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Graded per world: the scrim is the chosen flavor's ink. */
  --scrim: color-mix(in srgb, var(--ink) 88%, #000);
  background:
    linear-gradient(to right, color-mix(in srgb, var(--scrim) 72%, transparent), transparent 58%),
    linear-gradient(to top, color-mix(in srgb, var(--scrim) 45%, transparent), transparent 40%);
  pointer-events: none;
}
.out__photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--deep);
  mix-blend-mode: soft-light;
  opacity: .38;
  pointer-events: none;
}
.out__photo::after { z-index: 1; }
.out__meniscus {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  margin-top: -2px;
  z-index: 2;
  background: var(--air);
  box-shadow: 0 0 14px 2px color-mix(in srgb, var(--air) 70%, transparent), 0 0 42px 6px color-mix(in srgb, var(--air) 35%, transparent);
  pointer-events: none;
}
.out__copy {
  position: absolute;
  left: var(--pad);
  bottom: var(--pad);
  z-index: 1;
  width: max(320px, var(--span5));
  max-width: calc(100% - 2 * var(--pad));
  color: #fff;
  opacity: 0;
  visibility: hidden;
}
.out__copy .eyebrow { color: rgba(255, 255, 255, .8); }
.out__copy .h2 { color: #fff; font-size: clamp(44px, 6vw, 96px); line-height: .95; letter-spacing: -.035em; }
.out__copy .body { color: rgba(255, 255, 255, .92); font-size: max(17px, 1.2vw); }
.out__copy ::selection { background: #fff; color: #111; }

/* ---------- Pick (conversion) -------------------------------------------- */
#pick {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-content: center;
  row-gap: clamp(28px, 4.5vh, 48px);
  padding: calc(var(--nav-h) + 6vh) var(--pad) 12vh;
}
#pick > * { grid-column: 1 / span 6; min-width: 0; }

.pick__head .h2 {
  margin: 0;
  font-size: clamp(44px, 5.4vw, 88px);
  font-weight: 600;
  font-stretch: 88%;
  line-height: .95;
  letter-spacing: -.035em;
}
.pick__name {
  display: block;
  margin-top: .12em;
  font-size: 1.15em;
  line-height: 1.02;
  padding-bottom: .08em;
  padding-right: .12em;
  text-wrap: balance;
}

.pick__selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}
.option {
  --dot: var(--c-acai);
  position: relative;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 4px;
  min-height: 44px;
  padding: 12px 10px 14px;
  text-align: left;
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: background-color var(--d2) var(--e-out);
}
.option::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--d2) var(--e-out);
}
.option__can {
  display: block;
  width: 100%;
  height: 150px;
  margin-bottom: 10px;
}
.option__can img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transition: transform var(--d2) var(--e-out);
}
.option__name {
  min-height: 2.5em;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}
.option__note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink-70);
}
.option:hover { background: color-mix(in srgb, var(--air) 25%, transparent); }
.option:hover .option__can img { transform: translateY(-3px); }
.option:active .option__can img { transform: translateY(-1px) scale(.985); }
.option[aria-checked="true"] { background: color-mix(in srgb, var(--air) 45%, transparent); }
.option[aria-checked="true"]::after { transform: scaleX(1); }
.option[aria-checked="true"] .option__can img { transform: translateY(-6px); }
.option:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.pick__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 32px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-decoration: none;
  will-change: transform;
  isolation: isolate;
  transition: box-shadow var(--d1) var(--e-out);
}
.cta__fill {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  transition: opacity var(--d2) var(--e-out);
  pointer-events: none;
}
.cta__label { position: relative; }
.cta__arrow {
  position: relative;
  display: inline-block;
  font-size: 1.1em;
  transition: transform var(--d2) var(--e-out);
}
.cta:hover .cta__fill { opacity: 1; }
.cta:hover .cta__arrow { transform: translate(3px, -3px); }
.cta:active { box-shadow: inset 0 0 0 999px rgba(0, 0, 0, .14); }
.cta:active .cta__arrow { transform: translate(1px, -1px); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.cta__hint {
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-70);
}

.copy-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-basis: 100%;
  justify-content: flex-start;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
}
.copy-link__label {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--hair);
  transition: text-decoration-color var(--d1) var(--e-out);
}
.copy-link:hover .copy-link__label { text-decoration-color: var(--ink); }
.copy-link:active { opacity: .75; }
.copy-link[data-state="copied"]::before {
  content: "";
  width: 11px;
  height: 6px;
  margin: -3px 2px 0 1px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}
.copy-link[data-state="copied"] .copy-link__label { text-decoration-color: var(--ink); }

/* label details */
.label-details {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.label-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 6px 0;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.label-details summary::-webkit-details-marker { display: none; }
.label-details summary::marker { content: ""; }
.label-details summary:hover .label-details__icon { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.label-details__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform var(--d2) var(--e-out), background-color var(--d1) var(--e-out);
}
.label-details__icon::before,
.label-details__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 1.5px;
  margin: -.75px 0 0 -7px;
  background: var(--ink);
}
.label-details__icon::after { transform: rotate(90deg); }
.label-details[open] .label-details__icon { transform: rotate(45deg); }

.label-details__body {
  padding: 4px 0 18px;
  font-size: 16px;
  line-height: 1.55;
}
.label-details__body > p { max-width: 62ch; margin-bottom: 20px; text-wrap: pretty; }
.nutrition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--gutter) * 2);
  border-top: 1px solid var(--hair);
}
.nutrition > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 15px;
}
.nutrition dt { color: var(--ink-80); }
.nutrition dd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.label-details__foot {
  padding-bottom: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-70);
}

/* ---------- Nav ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: var(--nav-py) var(--pad);
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: opacity var(--d2) var(--e-out), border-color var(--d2) var(--e-out);
}
.nav.is-scrolled {
  background-color: color-mix(in srgb, var(--field) 45%, var(--air));
  border-bottom-color: var(--hair);
}
.nav.is-dark {
  --ink: #fff;
  --hair: rgba(255, 255, 255, .45);
  background-color: transparent;
  background-image: linear-gradient(rgba(10, 6, 12, .5), rgba(10, 6, 12, 0));
  border-bottom-color: transparent;
}

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-display);
  font-style: normal;
  font-weight: 900;
  font-size: 26px;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 72;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
}

.nav__flavors {
  display: flex;
  align-items: center;
  gap: clamp(2px, .8vw, 12px);
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 2px;
}
.swatch[data-flavor="acai"]      { --dot: var(--c-acai); }
.swatch[data-flavor="pineapple"] { --dot: var(--c-pineapple); }
.swatch[data-flavor="lime"]      { --dot: var(--c-lime); }
.swatch__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 1px var(--ink);
  transition: transform var(--d2) var(--e-out);
}
.swatch__name {
  white-space: nowrap;
  text-decoration: underline 1px transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color var(--d1) var(--e-out);
}
.swatch:hover .swatch__name { text-decoration-color: var(--hair); }
.swatch:active .swatch__dot { transform: scale(.85); }
.swatch[aria-checked="true"] .swatch__dot { transform: scale(1.25); }
.swatch[aria-checked="true"] .swatch__name {
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--ink);
}

.nav__shop {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  white-space: nowrap;
  transition: text-decoration-thickness var(--d1) var(--e-out);
}
.nav__shop:hover { text-decoration-thickness: 2px; }
.nav__shop:active { opacity: .75; }

/* ---------- Gauge --------------------------------------------------------- */
.gauge {
  position: fixed;
  right: calc(var(--pad) / 2);
  top: 50%;
  z-index: 10;
  width: 12px;
  height: 36vh;
  height: 36svh;
  margin-right: -6px;
  translate: 0 -50%;
  pointer-events: none;
  transition: opacity var(--d2) var(--e-out);
}
.gauge__track {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: color-mix(in srgb, var(--ink) 25%, transparent);
}
.gauge__fill {
  position: absolute;
  top: 0; bottom: 0;
  left: -.5px;
  width: 2px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.gauge__tick {
  position: absolute;
  left: calc(50% - 3px);
  bottom: calc(var(--at, 0) * 100%);
  width: 6px;
  height: 1px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

/* ---------- Loader -------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  gap: .28em;
  padding: var(--pad);
  pointer-events: none;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  font-size: clamp(56px, 8vw, 150px);
  line-height: .9;
  letter-spacing: -.03em;
  color: rgba(26, 26, 26, .8);
  transition: opacity .6s var(--e-out), visibility 0s linear 0s;
}
html:not(.is-loading) .loader {
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--e-out), visibility 0s linear .6s;
}
.loader__count { font-variant-numeric: tabular-nums lining-nums; }

.is-loading main,
.is-loading .nav,
.is-loading .gauge { opacity: 0; }

/* ---------- Footer -------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 3;
  padding: 8vh var(--pad) var(--pad);
  background: transparent;
}

/* The pick headline names the visitor's choice, never an in-flight pour. */
html[data-chosen] .pick__name .w { display: none; }
html[data-chosen="acai"] .pick__name .w[data-w="acai"],
html[data-chosen="pineapple"] .pick__name .w[data-w="pineapple"],
html[data-chosen="lime"] .pick__name .w[data-w="lime"] { display: inline; }
.footer__brand {
  margin: 0 0 .12em -.04em;
  font-size: 27vw;
  line-height: .8;
}
.footer__credits,
.footer__legal {
  max-width: 70ch;
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 75%, transparent);
  text-wrap: pretty;
}
.footer__credits { margin-bottom: 10px; }
.footer__legal a {
  display: inline-block;
  padding: 12px 0;
  margin: -12px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  color: var(--ink);
}
.footer__legal a:hover { text-decoration-thickness: 2px; }

/* ---------- Mid widths ---------------------------------------------------- */
@media (max-width: 1100px) and (min-width: 761px) {
  #pick > * { grid-column: 1 / span 7; }
  .beat { grid-area: 1 / 8 / 2 / 13; }
  .spec__name { font-size: 17px; }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero__lede { font-size: 17px; }
  .figure dd { font-size: clamp(56px, 7vw, 120px); }
  .worlds__head .h2 { font-size: clamp(32px, 3vw, 52px); }
}

/* ---------- Mobile (≤ 760px, matches the JS breakpoint) ------------------ */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .body { font-size: 17px; }
  .h2 { font-size: clamp(34px, 10vw, 44px); }

  /* can */
  .can { height: 54svh; }

  /* nav */
  .nav { gap: 6px; }
  .nav__brand { font-size: 22px; }
  .swatch { padding: 0; justify-content: center; }
  .swatch__dot { width: 18px; height: 18px; }
  .swatch__name,
  .nav__shop-name {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav__shop { font-size: 15px; }

  .gauge { display: none; }

  /* hero */
  .hero-title__line[data-line="1"] {
    top: 15svh;
    left: var(--pad);
    font-size: 14vw;
  }
  .hero-title__line[data-line="2"] {
    top: 36svh;
    left: 0;
    text-align: center;
    font-size: 31vw;
  }
  .hero__meta {
    left: var(--pad);
    right: calc(var(--pad) + 36px);
    width: auto;
    bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  }
  .hero__meta .eyebrow { margin: 0; }
  .hero__lede {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hero__cue {
    bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  }
  .hero__cue > span:last-child {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .hero__cue-line { height: 48px; margin-right: 0; }

  /* backtype */
  .marquee { font-size: 17vw; }
  .world-word { font-size: 26vw; }
  .world-word__item[data-word="pineapple"] { font-size: .68em; }

  /* turn: everything in the lower 46% */
  .turn__intro,
  .turn__inside,
  .turn__numbers {
    top: auto;
    height: 46svh;
    padding: 0 var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
    justify-content: flex-end;
  }
  .turn__intro > * { max-width: 34ch; }
  .turn__intro .eyebrow { margin-bottom: 10px; }

  .turn__inside .label-title,
  .turn__numbers .label-title { margin-bottom: 14px; }
  .specs {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 8px;
    align-content: end;
  }
  .spec { gap: 8px; align-items: baseline; }
  .spec[data-side="l"] { grid-column: 1; justify-content: flex-start; text-align: left; }
  .spec[data-side="r"] { grid-column: 2; }
  .spec__line { display: none; }
  .spec__no { font-size: 12px; }
  .spec__name { font-size: 15px; line-height: 1.25; text-wrap: pretty; }
  .turn__sweet { margin-top: 12px; text-align: left; font-size: 13px; }

  .figures {
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
  }
  .figure[data-side="l"],
  .figure[data-side="r"] { grid-column: auto; text-align: left; }
  .figure dt { margin-bottom: 4px; }
  .figure dd { font-size: 15vw; }
  .turn__numbers .note { margin: 14px 0 6px; text-align: left; font-size: 14px; }
  .facts-line { text-align: left; font-size: 12px; letter-spacing: .1em; }
  .facts-line i { margin: 0 .45em; }

  /* still */
  .still__aperture { --ap: 80vw; }
  .still__copy {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    padding: 18svh var(--pad) calc(var(--pad) + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, var(--field) 0 58%, color-mix(in srgb, var(--field) 0%, transparent));
  }
  .still__copy .h2 { font-size: clamp(32px, 9vw, 40px); }
  .still__copy .eyebrow { margin-bottom: 10px; }

  /* worlds */
  .worlds__head {
    top: calc(var(--nav-h) + 4px);
    right: var(--pad);
    width: auto;
  }
  .worlds__head .eyebrow { margin-bottom: 8px; }
  .worlds__head .h2 { font-size: clamp(28px, 8.2vw, 36px); }
  .worlds__list {
    padding: 0 var(--pad) calc(var(--pad) + 52px + env(safe-area-inset-bottom, 0px));
  }
  .beat {
    grid-area: 1 / 1 / 2 / -1;
    align-self: end;
    align-items: center;
    text-align: center;
    margin: 0 calc(var(--pad) * -1);
    padding: 12svh var(--pad) 8px;
    background: linear-gradient(to top, color-mix(in srgb, var(--field) 88%, transparent) 0 62%, color-mix(in srgb, var(--field) 0%, transparent));
  }
  .beat__index { margin-bottom: 10px; }
  .beat__index::before { display: none; }
  .beat__name { font-size: 11vw; }
  .beat__taste { font-size: 17px; margin-bottom: 10px; }
  .beat__notes { margin-bottom: 16px; padding-top: 8px; font-size: 12px; }
  .choose { min-height: 48px; }

  .worlds__jump {
    bottom: calc(var(--pad) * .5 + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .jump { padding: 0; }
  .jump__name {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  /* out */
  .out__photo img { object-position: 74% 0%; transform: translateY(-8%); height: 108%; }
  .out__photo::after {
    background: linear-gradient(to top, color-mix(in srgb, var(--scrim) 94%, transparent) 0%, color-mix(in srgb, var(--scrim) 88%, transparent) 45%, transparent 64%);
  }
  .out__copy {
    left: var(--pad);
    right: var(--pad);
    width: auto;
    max-width: none;
    bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0px));
  }

  /* pick */
  #pick {
    padding: calc(var(--nav-h) + 4svh) var(--pad) 10svh;
    row-gap: 28px;
    align-content: start;
  }
  #pick > * { grid-column: 1 / -1; }
  .pick__head .h2 { font-size: clamp(38px, 11vw, 48px); }
  .pick__selector { gap: 8px; }
  .option { padding: 10px 6px 12px; }
  .option__can { height: 110px; margin-bottom: 8px; }
  .option__name { font-size: 15px; }
  .option__note { font-size: 12px; }
  .cta { flex: 1 1 100%; justify-content: space-between; padding: 0 24px; font-size: 19px; }
  .cta__hint { max-width: none; }
  .nutrition { grid-template-columns: 1fr; }

  /* footer */
  .footer { padding-top: 12vh; }
  .footer__brand { font-size: 30vw; }

  .loader { font-size: 14vw; }
}

@media (max-width: 380px) {
  .option__name { font-size: 14px; }
  .spec__name { font-size: 14px; }
}

/* ---------- Hover-less devices: no sticky hover fills -------------------- */
@media (hover: none) {
  .choose:hover:not([aria-pressed="true"]) { background: transparent; color: var(--ink); }
  .option:hover:not([aria-checked="true"]) { background: transparent; }
  .option:hover:not([aria-checked="true"]) .option__can img { transform: none; }
  .cta:hover .cta__fill { opacity: 0; }
}

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --d1: .2s;
    --d2: .2s;
    --d-pour: .3s;
    --d-hold: .2s;
  }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .hero__cue-line::after { animation: none; transform: none; }
  .loader,
  html:not(.is-loading) .loader { transition-duration: .2s; }
  .loader { transition-delay: 0s; }
  html:not(.is-loading) .loader { transition: opacity .2s linear, visibility 0s linear .2s; }
  .option[aria-checked="true"] .option__can img,
  .option:hover .option__can img { transform: none; }
}

/* ---------- Forced colours ------------------------------------------------ */
@media (forced-colors: active) {
  .choose, .cta, .option { border: 1px solid ButtonText; }
  .swatch__dot, .jump__dot { forced-color-adjust: none; }
}

/* Surface interaction: actual shader impulses, with a keyboard/touch equivalent. */
.wave-control{position:absolute;right:var(--pad);bottom:calc(var(--pad) + 124px);z-index:4;min-height:44px;padding:8px 0;background:none;border:0;border-bottom:1px solid currentColor;color:var(--ink);font:500 13px 'Instrument Sans',sans-serif;cursor:pointer}
.wave-control span{font-size:24px;margin-left:24px;vertical-align:middle}
.wave-control[hidden]{display:none}.wave-control:focus-visible{outline:2px solid currentColor;outline-offset:5px}
@media(max-width:760px){.wave-control{bottom:calc(var(--pad) + 72px);font-size:12px}.wave-control span{margin-left:12px}}

.hero__meta .wave-control{position:static;display:inline-flex;align-items:center;min-height:44px;margin-top:12px;font-size:12px}.hero__meta .wave-control[hidden]{display:none}
@media(min-width:761px){.hero__meta .wave-control{position:absolute;left:calc(100% + 40px);right:auto;bottom:0;white-space:nowrap;margin:0}}
html.can-story-gap #canStage{visibility:hidden!important}
