/* =========================================================
   Mabel & Fig: one stylesheet (fonts, tokens, page styles)
   ========================================================= */
/* Self-hosted Google Fonts, latin subset (generated) */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/bagel-fat-one-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/fredoka-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/fredoka-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url('../assets/fonts/fredoka-normal-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   Mabel & Fig: design tokens
   primitives (the flavors) -> semantic roles -> components
   ========================================================= */
:root {
  /* ---------- Primitives: the case of ice cream ---------- */
  --cream-50: #fff8ee;
  --cream-100: #fff1de;
  --cream-200: #fbe3c4;
  --cream-300: #f4d2a8;
  --strawberry-200: #ffd3dd;
  --strawberry-400: #ff8faa;
  --strawberry-500: #ff6f91;
  --strawberry-700: #b52e52;
  --pistachio-200: #dcf0c9;
  --pistachio-400: #a6d98a;
  --pistachio-700: #3b6e27;
  --butter-200: #ffeeb8;
  --butter-400: #ffd45c;
  --butter-600: #e2a51f;
  --blueberry-200: #e2dcfb;
  --blueberry-400: #a796e6;
  --blueberry-700: #5b46b0;
  --maple-400: #e0a15e;
  --choc-900: #3b2420;
  --choc-800: #4d2f29;
  --choc-700: #5c3a33;
  --choc-500: #855b51;
  --choc-300: #c9a89d;
  --white: #ffffff;

  /* ---------- Type ---------- */
  --font-display: "Bagel Fat One", "Fredoka", system-ui, sans-serif;
  --font-body: "Fredoka", ui-rounded, system-ui, sans-serif;
  --fs-sm: 0.9375rem;                                   /* 15 */
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);/* 17-19 */
  --fs-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --fs-h2: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);
  --fs-hero: clamp(3rem, 1.5rem + 5.4vw, 6.5rem);

  /* ---------- Space ---------- */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --section: clamp(96px, 12vw, 176px);
  --pad: clamp(16px, 4vw, 48px);
  --max: 1280px;

  /* ---------- Radii: everything is a scoop ---------- */
  --r-sm: 14px;
  --r-md: 24px;
  --r-lg: 36px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* ---------- Depth: soft clay, warm-tinted, never grey ---------- */
  --shadow-soft: 0 18px 40px -22px rgb(91 45 30 / 0.35), 0 2px 6px rgb(91 45 30 / 0.06);
  --shadow-lift: 0 30px 60px -26px rgb(91 45 30 / 0.45), 0 4px 10px rgb(91 45 30 / 0.08);
  --shadow-clay: inset 0 -6px 0 rgb(59 36 32 / 0.08), inset 0 2px 0 rgb(255 255 255 / 0.6);

  /* ---------- Motion: springy ---------- */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring-soft: cubic-bezier(0.22, 1.3, 0.36, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 140ms;
  --t-ui: 260ms;
  --t-pop: 520ms;

  /* ---------- Semantic ---------- */
  color-scheme: light;
  --bg: var(--cream-50);
  --bg-2: var(--cream-100);
  --surface: var(--white);
  --ink: var(--choc-900);
  --ink-2: var(--choc-700);
  --ink-3: var(--choc-500);
  --line: rgb(59 36 32 / 0.12);
  --accent: var(--strawberry-500);
  --accent-ink: var(--strawberry-700);
  --focus: var(--blueberry-700);
  --selection: var(--butter-400);

  /* ---------- Components ---------- */
  --btn-bg: var(--choc-900);
  --btn-ink: var(--cream-50);
  --btn-bg-hover: var(--choc-700);
  --btn-pink-bg: var(--strawberry-500);
  --btn-pink-ink: var(--choc-900);
  --shell-bg: rgb(59 36 32 / 0.05);
  --shell-ring: rgb(59 36 32 / 0.07);
  --nav-bg: rgb(255 248 238 / 0.82);
}

/* =========================================================
   Mabel & Fig: page styles (tokens in tokens.css)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; }
a, button, label { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--cream-50); font-weight: 600; text-decoration: none; transform: translateY(-200%); transition: transform var(--t-ui) var(--ease-out); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

h2 { font-family: var(--font-display); font-weight: 400; font-size: var(--fs-h2); line-height: 0.98; letter-spacing: -0.01em; text-wrap: balance; }
h3 { font-weight: 600; font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }
.sec-head { max-width: 760px; }
.sec-head p { margin-top: var(--sp-4); font-size: var(--fs-lead); color: var(--ink-2); max-width: 46ch; }
.sec-head b { font-weight: 600; color: var(--ink); }

/* ---------- Buttons: pills with a nested icon island ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 6px 8px 6px 26px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-ui) ease, box-shadow var(--t-ui) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: transform var(--t-pop) var(--spring); }
.btn__icon svg { width: 18px; height: 18px; }
.btn--dark { background: var(--btn-bg); color: var(--btn-ink); }
.btn--dark .btn__icon { background: var(--strawberry-400); color: var(--choc-900); }
.btn--pink { background: var(--btn-pink-bg); color: var(--btn-pink-ink); }
.btn--pink .btn__icon { background: var(--choc-900); color: var(--cream-50); }
.btn--ghost { padding: 6px 26px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-soft); }
.btn--sm { min-height: 46px; font-size: 1rem; padding-left: 20px; }
.btn--sm.btn--ghost { padding: 6px 18px; gap: 8px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }
.btn svg:not(.btn__icon svg) { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: var(--btn-bg-hover); }
  .btn--pink:hover { background: var(--strawberry-400); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--choc-300), var(--shadow-lift); }
  .btn:hover .btn__icon { transform: translate(3px, -2px) rotate(-8deg) scale(1.06); }
}
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Floating island nav ---------- */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: 12px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  width: min(1120px, 100%);
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--shadow-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); border-radius: var(--r-pill); }
.brand__mark { width: 40px; height: 40px; flex: none; transition: transform var(--t-pop) var(--spring); }
.brand .wordmark { width: auto; height: 24px; aspect-ratio: 1641 / 351; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); } }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { display: inline-block; padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; transition: background-color var(--t-ui) ease, transform var(--t-press) var(--ease-out); }
.nav__links a:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { background: var(--butter-200); } }
.burger { display: none; position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--choc-900); margin-left: 8px; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2.5px; border-radius: 2px; background: var(--cream-50); transition: transform 380ms var(--spring); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 40;
  background: rgb(255 248 238 / 0.94);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  display: grid; align-content: center; padding: 120px 28px 48px;
}
.menu[hidden] { display: none; }
.menu ul { display: grid; gap: 6px; }
.menu a { font-family: var(--font-display); font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1.1; text-decoration: none; display: inline-block; }
.menu p { margin-top: 40px; color: var(--ink-2); }
.menu li, .menu p { opacity: 0; transform: translateY(28px); transition: opacity 400ms ease, transform 600ms var(--spring); transition-delay: calc(var(--i) * 60ms); }
.menu.is-open li, .menu.is-open p { opacity: 1; transform: none; }
@media (max-width: 880px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(128px, 15vh, 176px) 0 clamp(96px, 10vw, 144px); overflow: hidden; isolation: isolate; }
.hero__blob { position: absolute; z-index: -1; width: 52vw; height: 52vw; max-width: 820px; max-height: 820px; right: -10vw; top: 2vh; background: var(--strawberry-200); border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
/* Bagel Fat One: ink ascent 0.78em, ink descent 0.21em, font box 1.16 + 0.29.
   Every line is one 1.14em box, so baselines sit exactly 1.14em apart. In that box the baseline falls at
   (1.14 - 1.45) / 2 + 1.16 = 1.005em, so the pill (drawn behind, outside the line box math) spans
   1.005 - 0.78 - 0.07 = 0.155em to 1.005 + 0.21 + 0.145 = 1.36em: 0.08em clear of the "g" above it.
   The size is capped by the column so "gone by Sunday." on its pill never runs into the photo. */
.hero__copy { container-type: inline-size; }
.hero__title {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em;
  font-size: min(var(--fs-hero), 12.2cqi); line-height: 1.14;
  text-box: trim-both cap alphabetic;
}
.hero__title .line { display: block; width: fit-content; white-space: nowrap; }
.hero__title .line--pink { position: relative; isolation: isolate; padding-inline: 0.22em; margin-left: -0.04em; color: var(--choc-900); transform: rotate(-1.5deg); transform-origin: 100% 60%; }
.hero__title .line--pink::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0.155em; bottom: -0.22em;
  border-radius: 0.42em; background: var(--strawberry-400); box-shadow: var(--shadow-clay);
}
.hero__lede { margin-top: 44px; font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-2); max-width: 32ch; }
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__photo { position: relative; justify-self: end; width: min(100%, 520px); }
.hero__frame {
  padding: 8px; border-radius: 220px 220px var(--r-xl) var(--r-xl);
  background: rgb(255 255 255 / 0.55); box-shadow: inset 0 0 0 1px var(--shell-ring), var(--shadow-lift);
}
.hero__frame picture, .hero__frame img { display: block; width: 100%; height: auto; border-radius: 212px 212px calc(var(--r-xl) - 8px) calc(var(--r-xl) - 8px); }
.hero__frame img { aspect-ratio: 4 / 5; object-fit: cover; }
.hero__seal { position: absolute; left: -11%; bottom: 7%; width: clamp(112px, 12vw, 164px); height: auto; filter: drop-shadow(0 12px 18px rgb(91 45 30 / 0.22)); }
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__photo { justify-self: center; width: min(88%, 420px); margin-top: 24px; }
  .hero__seal { left: -6%; }
  .hero__blob { width: 110vw; height: 110vw; right: -50vw; top: 46%; }
}

/* ---------- Drip edge ---------- */
.drip-edge { position: absolute; top: -1px; left: 0; width: 100%; height: clamp(44px, 6vw, 80px); pointer-events: none; }

/* ---------- Flavors ---------- */
.flavors { position: relative; background: var(--strawberry-200); padding: calc(var(--section) + 40px) 0 var(--section); }
.chips { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--surface); font-weight: 500; box-shadow: var(--shadow-soft);
  transition: background-color var(--t-ui) ease, color var(--t-ui) ease, transform var(--t-pop) var(--spring);
}
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"] { background: var(--choc-900); color: var(--cream-50); }
@media (hover: hover) and (pointer: fine) { .chip:hover { transform: translateY(-2px) rotate(-1.5deg); } }
.flavor-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.flavor { display: flex; padding: 7px; border-radius: var(--r-lg); background: rgb(59 36 32 / 0.06); box-shadow: inset 0 0 0 1px var(--shell-ring); transition: transform var(--t-pop) var(--spring); }
.flavor[hidden] { display: none; }
.flavor__core {
  position: relative; width: 100%; container-type: inline-size;
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px 26px 26px; border-radius: calc(var(--r-lg) - 7px);
  background: var(--surface); box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 0.9);
}
.flavor__photo { display: block; margin: -12px -16px 8px; overflow: hidden; border-radius: calc(var(--r-lg) - 18px); background: var(--cream-100); }
.flavor__photo img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; filter: saturate(1.06) contrast(1.02); transition: transform 700ms var(--ease-out); }
.flavor__core p { color: var(--ink-2); font-size: 1rem; }
/* The photo spans the content box plus 16px a side at 5:4 and starts 10px from the card top. */
.flavor__scoop { --w: clamp(96px, 34cqw, 132px); --lift: 0px; --tilt: -3deg; position: absolute; z-index: 1; right: 2px; width: var(--w); top: calc(10px + (100cqw + 32px) * 0.8 + 8px); pointer-events: none; transform: translateY(calc(-100% - var(--lift))) rotate(var(--tilt)); transform-origin: 50% 100%; transition: transform var(--t-pop) var(--spring); }
.flavor__scoop img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 10px rgb(59 36 32 / 0.25)); }
.flavor__meta { margin-top: auto; padding-top: 6px; font-size: var(--fs-sm) !important; color: var(--ink-3) !important; font-weight: 500; }
.badge { position: absolute; top: 24px; left: 24px; z-index: 1; padding: 4px 12px; border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 600; transform: rotate(6deg); box-shadow: var(--shadow-soft); }
.badge--new { background: var(--butter-400); color: var(--choc-900); }
.badge--df { background: var(--choc-900); color: var(--cream-50); }
@media (hover: hover) and (pointer: fine) {
  .flavor:hover { transform: translateY(-8px) rotate(-1deg); }
  .flavor:hover .flavor__photo img { transform: scale(1.05); }
  .flavor:hover .flavor__scoop { --lift: 6px; --tilt: -7deg; }
}
.flavor.is-entering { animation: pop-in 520ms var(--spring) both; animation-delay: calc(var(--n, 0) * 50ms); }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(0.94); } }
@media (max-width: 1000px) { .flavor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flavor-grid { grid-template-columns: 1fr; } }

/* ---------- Build a cone ---------- */
.build { background: var(--cream-100); padding-block: var(--section); }
.build__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.build__stage-wrap { position: sticky; top: 108px; padding: 8px; border-radius: var(--r-xl); background: rgb(59 36 32 / 0.05); box-shadow: inset 0 0 0 1px var(--shell-ring); }
.stage {
  /* Desktop CSS px; the inner box scales down on smaller screens.
     --seat: height of the first scoop's bottom edge = the base's rim minus how far the
     scoop's ruffled foot tucks into it. --step is ~62% of a scoop's height, so each foot
     covers the dome beneath it with no gap. */
  --floor: 22px; --sw: 150px; --sh: 111px; --step: 69px; --seat: 266px;
  position: relative; height: 600px; overflow: hidden;
  border-radius: calc(var(--r-xl) - 8px);
  background: var(--butter-200);
  box-shadow: inset 0 2px 0 rgb(255 255 255 / 0.6);
}
.stage[data-base="waffle"] { --seat: 247px; }
.stage[data-base="cup"] { --seat: 148px; }
.stage__inner { position: absolute; left: 0; right: 0; bottom: 0; height: 600px; transform-origin: 50% 100%; }
.stage__floor { position: absolute; left: 50%; bottom: 12px; width: 170px; height: 22px; margin-left: -85px; border-radius: 50%; background: rgb(91 45 30 / 0.14); }
.stage__base { position: absolute; inset: 0; pointer-events: none; }
.base-img { position: absolute; left: 50%; bottom: var(--floor); opacity: 0; transform: translateX(-50%) scale(0.94); transform-origin: 50% 100%; transition: opacity 200ms ease-out, transform 240ms var(--ease-out); }
.base-img.is-on { opacity: 1; transform: translateX(-50%); }
.base-img img { display: block; width: 100%; height: auto; }
.base-img--sugar { width: 116px; }
.base-img--waffle { width: 141px; }
.base-img--cup { width: 193px; }
.stage__scoops .s {
  position: absolute; left: 50%; bottom: 0; width: var(--sw); height: var(--sh); margin-left: calc(var(--sw) / -2);
  z-index: calc(2 + var(--i));
  transform: translateY(calc(-1 * (var(--seat) + var(--i) * var(--step))));
  transition: transform 300ms var(--ease-out);
}
.s__body { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; }
.s__img, .s__img img { display: block; width: 100%; height: 100%; }
.s__img img { object-fit: contain; object-position: 50% 100%; }
.s[data-tall] { --sh: 130px; }
/* drop: falls fast, squashes on contact, settles. Exit is quicker than entry. */
.s.is-dropping .s__body { animation: drop 520ms both; }
.s.is-leaving .s__body { animation: lift 180ms var(--ease-out) forwards; }
@keyframes drop {
  0% { transform: translateY(-240px); opacity: 0; animation-timing-function: cubic-bezier(0.5, 0, 0.9, 0.5); }
  20% { opacity: 1; }
  55% { transform: translateY(0) scale(1.07, 0.9); animation-timing-function: var(--ease-out); }
  78% { transform: translateY(-3px) scale(0.98, 1.02); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}
@keyframes lift { to { transform: translateY(-36px) scale(0.96); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
/* tried a fourth scoop: the top one wobbles */
.stage.is-nudge .s:last-child .s__body { animation: nudge 320ms ease-in-out; }
@keyframes nudge { 25% { transform: rotate(-4deg); } 60% { transform: rotate(3deg); } }

/* Toppings ride on the top scoop. Front to back: cherry, sprinkles, crumble, fudge. */
.s__tops { position: absolute; inset: 0; pointer-events: none; }
.topping { position: absolute; left: 50%; display: block; transform: translateX(-50%); }
.topping img { display: block; width: 100%; height: auto; }
.t-fudge { width: 138px; top: -6px; z-index: 1; }
.t-crumble { width: 116px; top: -16px; z-index: 2; }
.t-sprinkles { width: 112px; top: -9px; z-index: 3; }
.t-crumble ~ .t-sprinkles { top: -20px; width: 100px; }
.t-cherry { width: 38px; top: -62px; z-index: 4; margin-left: 2px; }
.s__tops.has-heap .t-cherry { top: -78px; }
.topping__in { display: block; animation: top-in 240ms var(--ease-out) both; }
@keyframes top-in { from { transform: translateY(-10px) scale(0.9); opacity: 0; } }
.stage__empty { position: absolute; inset: 40px 24px auto; text-align: center; font-weight: 500; color: var(--ink-2); transition: opacity var(--t-ui) ease; }
.stage.has-scoops .stage__empty { opacity: 0; }

.build__panel {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl); background: var(--surface);
  box-shadow: 0 0 0 1px var(--shell-ring), var(--shadow-soft);
}
.build__panel h2 { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 4.25rem); }
.build__lede { margin-top: 14px; color: var(--ink-2); font-size: var(--fs-lead); max-width: 34ch; }
.field { margin-top: 32px; }
.field legend { display: flex; justify-content: space-between; width: 100%; font-weight: 600; font-size: 1.125rem; margin-bottom: 14px; }
.field__count { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.field__note { margin-top: 10px; min-height: 1.5em; color: var(--accent-ink); font-weight: 500; font-size: var(--fs-sm); }
.bases, .tops { display: flex; flex-wrap: wrap; gap: 10px; }
.base, .top { position: relative; cursor: pointer; }
.base input, .top input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.base span, .top span {
  display: grid; padding: 12px 20px; border-radius: var(--r-md);
  background: var(--cream-100); font-weight: 600; line-height: 1.25;
  box-shadow: inset 0 0 0 2px transparent;
  transition: background-color var(--t-ui) ease, box-shadow var(--t-ui) ease, transform var(--t-pop) var(--spring);
}
.top span { border-radius: var(--r-pill); padding: 10px 18px; min-height: 44px; align-content: center; }
.base small { font-weight: 400; font-size: 0.875rem; color: var(--ink-3); }
.base input:checked + span, .top input:checked + span { background: var(--butter-200); box-shadow: inset 0 0 0 2px var(--choc-900); }
.base input:focus-visible + span, .top input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.base:active span, .top:active span { transform: scale(0.95); }
.picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.picks .pick { border-radius: var(--r-md); font-size: 0.9375rem; text-wrap: balance; }
@media (max-width: 1100px) and (min-width: 901px), (max-width: 600px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* nine in two columns: the last one spans both so the grid ends flush */
  .pick:last-child { grid-column: 1 / -1; }
}
.pick {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px 8px 8px;
  border-radius: var(--r-pill); background: var(--cream-100); font-weight: 600; text-align: left; line-height: 1.2;
  transition: transform var(--t-pop) var(--spring), background-color var(--t-ui) ease;
}
.pick__thumb { width: 46px; height: 36px; flex: none; display: grid; place-items: end center; transition: transform var(--t-pop) var(--spring); }
.pick__thumb img { width: 46px; height: auto; filter: drop-shadow(0 2px 2px rgb(59 36 32 / 0.18)); }
.pick:active { transform: scale(0.95); }
.pick[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.pick[aria-disabled="true"]:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .pick:not([aria-disabled="true"]):hover { background: var(--butter-200); }
  .pick:not([aria-disabled="true"]):hover .pick__thumb { transform: translateY(-3px) scale(1.08); }
}
.ticket {
  margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 24px; border-radius: var(--r-md); background: var(--choc-900); color: var(--cream-50);
}
.ticket__name { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.15; }
.ticket__detail { margin-top: 4px; color: var(--cream-300); font-size: var(--fs-sm); }
.ticket__price { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.ticket__price.is-bump { animation: bump 380ms var(--spring); }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }
.build__actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) {
  .build__grid { grid-template-columns: minmax(0, 1fr); }
  .build__stage-wrap { position: relative; top: 0; }
  .stage { height: 560px; }
  .stage__inner { transform: scale(0.92); }
}
@media (max-width: 600px) {
  .build__stage-wrap { position: sticky; top: 84px; z-index: 5; background: var(--cream-100); padding: 6px; }
  .stage { height: 300px; }
  .stage__inner { transform: scale(0.5); }
  .stage__empty { inset: 20px 16px auto; font-size: 0.9375rem; }
  /* keep focused or auto-scrolled controls clear of the sticky stage (84px + 312px) */
  .build__panel :is(button, input, legend, .ticket) { scroll-margin-top: 412px; }
}
@media (max-width: 480px) {
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick { font-size: 0.9375rem; }
  .ticket { flex-direction: column; align-items: flex-start; }
}


/* ---------- How a batch happens ---------- */
.batch { padding-block: var(--section); }
.batch__grid { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.batch__photo { position: relative; padding: 8px; border-radius: var(--r-xl); background: rgb(59 36 32 / 0.05); box-shadow: inset 0 0 0 1px var(--shell-ring); transform: rotate(-1.5deg); }
.batch__photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r-xl) - 8px); }
.batch__photo figcaption { position: absolute; right: -12px; bottom: 28px; max-width: 70%; padding: 10px 16px; border-radius: var(--r-md); background: var(--butter-400); color: var(--choc-900); font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; transform: rotate(2deg); box-shadow: var(--shadow-soft); }
.recipe { display: grid; gap: 20px; }
.card-tilt {
  position: relative; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg);
  background: var(--card); box-shadow: var(--shadow-soft);
  transform: rotate(var(--rot));
  transition: transform var(--t-pop) var(--spring);
}
.card-tilt:nth-child(2) { margin-left: clamp(0px, 4vw, 48px); }
.card-tilt__time { font-weight: 600; color: var(--ink-2); }
.card-tilt h3 { margin-top: 6px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.05; }
.card-tilt p:last-child { margin-top: 10px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .card-tilt:hover { transform: rotate(0deg) translateY(-6px); z-index: 2; } }
.facts { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts div { padding: 24px 0 0; border-top: 3px dotted var(--choc-300); }
.facts dt { font-weight: 500; color: var(--ink-2); }
.facts dd { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 4vw, 5.5rem); line-height: 1; margin-top: 8px; }
@media (max-width: 880px) {
  .batch__grid { grid-template-columns: 1fr; }
  .batch__photo { max-width: 460px; transform: none; }
  .batch__photo figcaption { right: 12px; }
  .card-tilt, .card-tilt:nth-child(2) { margin: 0; transform: none; }
  .facts { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}

/* ---------- Pint Club ---------- */
.pints { background: var(--pistachio-200); padding-block: var(--section); overflow: hidden; }
.pints__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.pints__art { display: flex; justify-content: center; align-items: flex-end; gap: clamp(8px, 1.5vw, 20px); min-height: 340px; padding-bottom: 12px; }
/* Real pints, all on one baseline; the middle one is a touch bigger. */
.tub { --w: clamp(128px, 14vw, 204px); position: relative; width: var(--w); transform: rotate(var(--rot)); transform-origin: 50% 100%; transition: transform var(--t-pop) var(--spring); filter: drop-shadow(0 18px 22px rgb(91 45 30 / 0.2)); }
.tub--mid { --w: clamp(146px, 16.5vw, 232px); z-index: 1; }
.tub img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (pointer: fine) { .pints__art:hover .tub { transform: rotate(calc(var(--rot) * -1)) translateY(-6px); } }
.pints__lede { margin-top: 20px; font-size: var(--fs-lead); color: var(--ink-2); max-width: 32ch; }
.pints__list { margin-top: 28px; display: grid; gap: 12px; }
.pints__list li { display: grid; grid-template-columns: 12px 1fr; gap: 12px; align-items: baseline; }
.pints__list li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--pistachio-700); flex: none; transform: translateY(1px); }
.pints__list b { font-weight: 600; }
.pints__ctas { margin-top: 36px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.pints__note { color: var(--ink-2); font-size: var(--fs-sm); }
@media (max-width: 880px) { .pints__grid { grid-template-columns: minmax(0, 1fr); } .pints__art { min-height: 0; } }
@media (max-width: 480px) { .tub { --w: 28vw; } .tub--mid { --w: 32vw; } .pints__art { gap: 4px; } }

/* ---------- Around the counter ---------- */
.counter { padding-block: var(--section) 0; }
.counter__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); align-items: start; }
.counter__wide { grid-column: 1 / span 8; grid-row: 1 / span 2; align-self: center; padding: 8px; border-radius: var(--r-xl); background: rgb(59 36 32 / 0.05); box-shadow: inset 0 0 0 1px var(--shell-ring); }
.counter__wide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: calc(var(--r-xl) - 8px); filter: brightness(1.06) saturate(1.05); }
.counter__text { grid-column: 9 / -1; align-self: start; }
.counter__text h2 { font-size: clamp(2.25rem, 1.5rem + 2.2vw, 3.5rem); }
.counter__text p { margin-top: 18px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.45; }
.counter__tall { grid-column: 9 / -1; padding: 8px; border-radius: var(--r-xl); background: var(--strawberry-200); transform: rotate(2.5deg); margin-bottom: -48px; box-shadow: var(--shadow-lift); }
.counter__tall img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: calc(var(--r-xl) - 8px); }
@media (max-width: 880px) {
  .counter__wide, .counter__text, .counter__tall { grid-column: 1 / -1; grid-row: auto; }
  .counter__tall { width: 72%; justify-self: end; margin: 8px 6px 0 0; }
}

/* ---------- Visit ---------- */
.visit { padding-block: calc(var(--section) + 24px) var(--section); }
.visit__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.visit address { margin-top: 24px; font-size: var(--fs-lead); font-weight: 600; line-height: 1.35; }
.visit__note { margin-top: 12px; color: var(--ink-2); max-width: 38ch; }
.hours { margin-top: 32px; width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 2px dotted var(--choc-300); font-weight: 400; }
.hours th { font-weight: 600; padding-right: 16px; }
.hours td { color: var(--ink-2); text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--ink); }
.hours tr.is-today th::after { content: "Today"; margin-left: 10px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--butter-400); font-size: 0.8125rem; font-weight: 600; }
.today { margin-top: 18px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.today::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pistachio-700); }
.today.is-closed::before { background: var(--strawberry-700); }
.map svg { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lift); }
.pin { transform-box: fill-box; transform-origin: 50% 100%; }
.map.is-in .pin { animation: pin 900ms var(--spring) 200ms both; }
@keyframes pin { 0% { transform: translateY(-60px) scale(0.8); opacity: 0; } 60% { transform: translateY(0) scale(1.1, 0.88); opacity: 1; } 100% { transform: none; } }
@media (max-width: 880px) { .visit__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { position: relative; background: var(--choc-900); color: var(--cream-100); padding: calc(var(--section) * 0.8) 0 40px; }
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(40px, 5vw, 70px);
  background: var(--cream-50);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v20c-14 0-16 30-30 30s-12-22-28-22-14 40-30 40-14-34-30-34-14 18-30 18-16-26-32-26S64 50 46 50 30 22 0 20Z'/%3E%3C/svg%3E") 0 0 / 240px 100% repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 70' preserveAspectRatio='none'%3E%3Cpath d='M0 0h240v20c-14 0-16 30-30 30s-12-22-28-22-14 40-30 40-14-34-30-34-14 18-30 18-16-26-32-26S64 50 46 50 30 22 0 20Z'/%3E%3C/svg%3E") 0 0 / 240px 100% repeat-x;
}
.foot :focus-visible { outline-color: var(--butter-400); }
.foot__top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; padding-top: 40px; }
.news__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; color: var(--cream-50); }
.news > p:not(.news__msg) { margin-top: 12px; color: var(--cream-300); max-width: 42ch; }
.news__row { margin-top: 24px; display: flex; gap: 8px; padding: 6px; border-radius: var(--r-pill); background: rgb(255 255 255 / 0.08); max-width: 520px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.news input { flex: 1; min-width: 0; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--cream-50); font-size: 1rem; }
.news input::placeholder { color: #c9a89d; }
.news input:focus-visible { outline-offset: 2px; }
.news__msg { margin-top: 12px; min-height: 1.5em; color: var(--butter-400); font-weight: 500; }
.foot__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.foot__cols h2 { font-family: var(--font-body); font-weight: 600; font-size: 1rem; letter-spacing: 0; color: var(--strawberry-400); margin-bottom: 12px; line-height: 1.3; }
.foot__cols p, .foot__cols li { color: var(--cream-200); line-height: 1.7; }
.foot__cols a { text-decoration-color: rgb(255 255 255 / 0.3); text-underline-offset: 3px; }
.foot__cols a:hover { text-decoration-color: currentColor; }
.foot__brand { margin-top: clamp(56px, 7vw, 96px); display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.foot__mark { width: clamp(72px, 10vw, 150px); height: auto; aspect-ratio: 1; flex: none; }
.foot__word { width: min(100%, 980px); height: auto; aspect-ratio: 1641 / 351; color: var(--cream-50); }
.foot__legal { margin-top: 32px; font-size: 0.875rem; color: #c9a89d; }
@media (max-width: 880px) { .foot__top { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .news__row { flex-direction: column; border-radius: 26px; } .news input { min-height: 48px; } }

/* =========================================================
   Motion: springy entrances, all transform/opacity
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__title .line { opacity: 0; transform: translateY(0.5em) rotate(4deg); }
  .js .hero__title .line--pink { transform: translateY(0.5em) rotate(4deg); }
  .js.is-ready .hero__title .line { opacity: 1; transform: none; transition: opacity 400ms ease, transform 900ms var(--spring); transition-delay: calc(var(--i) * 110ms); }
  .js.is-ready .hero__title .line--pink { transform: rotate(-1.5deg); }

  .js .hero__seal { opacity: 0; transform: scale(0.6) rotate(-60deg); }
  .js.is-ready .hero__seal { opacity: 1; transform: none; transition: opacity 300ms ease 700ms, transform 1100ms var(--spring) 700ms; }
  .hero__blob { animation: blob 18s ease-in-out infinite alternate; }
  @keyframes blob { to { transform: translate(-3%, 4%) rotate(8deg) scale(1.04); } }

  .js.is-ready .hero [data-pop] { opacity: 1; transform: none; transition: opacity 500ms ease, transform 800ms var(--spring); transition-delay: calc(var(--i) * 110ms); }
  .js [data-pop] { opacity: 0; transform: translateY(32px) scale(0.97); }
  .js [data-pop].is-in { opacity: 1; transform: none; transition: opacity 500ms ease, transform 800ms var(--spring); transition-delay: calc(var(--n, 0) * 70ms); }
  .js .card-tilt[data-pop] { transform: translateY(40px) rotate(calc(var(--rot) * 3)); }
  .js .card-tilt[data-pop].is-in { transform: rotate(var(--rot)); }
  .js .batch__photo[data-pop].is-in { transform: rotate(-1.5deg); }
  .js .counter__tall[data-pop].is-in { transform: rotate(2.5deg); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 880px) {
  .js .card-tilt[data-pop].is-in, .js .batch__photo[data-pop].is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticket__price.is-bump, .flavor.is-entering, .map.is-in .pin, .stage.is-nudge .s:last-child .s__body { animation: none; }
  .s.is-dropping .s__body, .topping__in { animation: fade-in 160ms ease-out both; }
  .s.is-leaving .s__body { animation: fade-out 120ms ease-out forwards; }
  .stage__scoops .s { transition: none; }
  .base-img { transition: opacity 160ms ease-out; transform: translateX(-50%); }
  .menu li, .menu p { transition: opacity 200ms ease; transform: none; }
}

/* Arriving from the portfolio: the project's frame grows into this page (and back). */
/* ---------- Back to the portfolio + page transitions (shared with the showcase) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(shot) { animation-duration: 640ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
::view-transition-image-pair(shot) { isolation: auto; overflow: hidden; animation: zt-vt-corners 640ms cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes zt-vt-corners { from { border-radius: 12px; } to { border-radius: 0; } }
::view-transition-old(shot), ::view-transition-new(shot) { width: 100%; height: 100%; object-fit: cover; object-position: top; mix-blend-mode: normal; }
::view-transition-old(shot) { animation: none; }
::view-transition-new(shot) { animation: zt-vt-in 340ms ease 90ms both; }
html.vt-fade::view-transition-new(root) { animation: zt-vt-in 280ms ease both; }
@keyframes zt-vt-in { from { opacity: 0; } }
/* arriving from the portfolio: the page is already at rest, as in its screenshot */
html.zt-arrive *, html.zt-arrive *::before, html.zt-arrive *::after { transition-duration: 0s !important; transition-delay: 0s !important; }
/* folded, it is only its arrow, faint in the corner; it opens when you scroll up, come near or press Esc */
.zt-return {
  --zr-bg: var(--ink); --zr-ink: var(--cream-50); --zr-font: var(--font-body); --zr-radius: 999px; --zr-case: none; --zr-track: 0; --zr-weight: 600;
  position: fixed; z-index: 90; left: max(14px, env(safe-area-inset-left)); bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 15px 0 13px;
  background: var(--zr-bg); color: var(--zr-ink); font-family: var(--zr-font); font-size: 13px; font-weight: var(--zr-weight); letter-spacing: var(--zr-track); text-transform: var(--zr-case); line-height: 1; text-decoration: none;
  border-radius: var(--zr-radius); opacity: 0.3; clip-path: inset(0 calc(100% - 40px) 0 0 round var(--zr-radius));
  transition: opacity 220ms ease, clip-path 380ms cubic-bezier(0.23, 1, 0.32, 1), transform 140ms ease-out; -webkit-tap-highlight-color: transparent;
}
.zt-return svg { width: 14px; height: 14px; flex: none; transition: transform 240ms cubic-bezier(0.23, 1, 0.32, 1); }
.zt-return__label { opacity: 0; transition: opacity 180ms ease; white-space: nowrap; }
.zt-return__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zt-return.is-shown, .zt-return:hover, .zt-return:focus-visible { opacity: 1; clip-path: inset(-4px round var(--zr-radius)); }
.zt-return.is-shown .zt-return__label, .zt-return:hover .zt-return__label, .zt-return:focus-visible .zt-return__label { opacity: 1; transition-delay: 60ms; }
.zt-return:focus-visible { outline: 2px solid var(--zr-bg); outline-offset: 3px; }
.zt-return:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .zt-return:hover svg { transform: translateX(-3px); } }
@media (pointer: coarse) { .zt-return { min-height: 44px; clip-path: inset(0 calc(100% - 44px) 0 0 round var(--zr-radius)); padding-left: 15px; } }
@media print { .zt-return { display: none; } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*), ::view-transition-image-pair(*) { animation: none !important; }
  .zt-return, .zt-return svg, .zt-return__label { transition: opacity 120ms ease; }
}

/* the page scrollbar: thin, in the brand accent */
html { scrollbar-width: thin; scrollbar-color: #ff6f91 transparent; }
