/* Slugbunny — desktop + phone styles
   Every size is written in Figma pixels (1920-wide artboard) and scaled to the
   browser width with u(): calc(N * var(--u)). At 1920px wide, 1 unit = 1px. */

/* Brand font in the design is Gotham Rounded. The site uses Proxima Soft (Adobe Fonts web
   project nzt4ues, loaded in each page's <head>); M PLUS Rounded 1c is the self-hosted backup. */
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 300; font-style: normal; font-display: swap; src: url(assets/fonts/mplus-rounded-300.woff2) format("woff2"); }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 400; font-style: normal; font-display: swap; src: url(assets/fonts/mplus-rounded-400.woff2) format("woff2"); }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 500; font-style: normal; font-display: swap; src: url(assets/fonts/mplus-rounded-500.woff2) format("woff2"); }
@font-face { font-family: "M PLUS Rounded 1c"; font-weight: 700; font-style: normal; font-display: swap; src: url(assets/fonts/mplus-rounded-700.woff2) format("woff2"); }

:root {
  --font: "proxima-soft", "M PLUS Rounded 1c", "Nunito", system-ui, sans-serif;
  --blue: #00a6dd;      /* buttons, dividers, menu */
  --sky: #00b2e3;       /* Our Story background */
  --ink: #000;
  --ink-soft: #221f1c;  /* logo + menu labels */
  --paper: #fff;
  --mist: #f8f8f8;      /* footer */
  --light: 300; --book: 400; --medium: 500; --bold: 700;
  --heading: 700;  /* section headings: Proxima Soft Bold (between Medium and Black) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body {
  container-type: inline-size;   /* lets --u track the page width (no scrollbar error) */
  font-family: var(--font);
  font-weight: var(--light);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body > * { --u: calc(100cqw / 1920); }   /* declared once at the top, so a part can rescale its own --u (phone) */
[id] { scroll-margin-top: calc(180 * var(--u)); }
img { display: block; }
a { color: inherit; }

/* ---------- Top nav pill + dropdown menu ---------- */
.nav {
  position: fixed; z-index: 50;
  top: calc(67 * var(--u)); left: 50%;
  width: calc(324 * var(--u));
  transform: translateX(-50%);
}
.nav__panel {
  background: var(--paper);
  border-radius: calc(35 * var(--u));
  box-shadow: 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.16);
  height: calc(70 * var(--u));
  overflow: hidden;
  transition: height .35s cubic-bezier(.2,.8,.2,1);
}
.nav.is-open .nav__panel { height: calc(332 * var(--u)); }
.nav__toggle {
  position: relative; display: block;
  width: 100%; height: calc(70 * var(--u));
  border: 0; background: none; cursor: pointer;
}
.nav__chevron {
  position: absolute; left: calc(55.5 * var(--u)); top: calc(29.5 * var(--u));
  width: calc(28.75 * var(--u));
  transition: transform .35s;
}
.nav.is-open .nav__chevron { transform: rotate(180deg); }
.nav__logo {
  position: absolute; left: calc(101 * var(--u)); top: calc(19 * var(--u));
  width: calc(164.13 * var(--u));
}
.nav__list { list-style: none; padding: calc(28 * var(--u)) calc(46 * var(--u)) 0; }
.nav__list li + li { margin-top: calc(8 * var(--u)); }
.nav__list a {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: calc(42 * var(--u));
  border-radius: calc(35 * var(--u));
  font-size: calc(20 * var(--u)); font-weight: var(--medium);
  color: var(--ink-soft); text-decoration: none;
  isolation: isolate;
  transition: color .2s;
}
/* tinted pill behind each label (the design fades the blue from 30% to 100%) */
.nav__list a::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; background: var(--blue); opacity: var(--tint, 1);
  transition: opacity .2s, background-color .2s;
}
.nav__list li:nth-child(1) a { --tint: .3; }
.nav__list li:nth-child(2) a { --tint: .55; }
.nav__list li:nth-child(3) a { --tint: .8; }
.nav__list li:nth-child(4) a { --tint: 1; }
/* roll over: each pill steps one shade darker; Customer Care goes to a deeper blue */
.nav__list li:nth-child(1) a:is(:hover, :focus-visible) { --tint: .55; }
.nav__list li:nth-child(2) a:is(:hover, :focus-visible) { --tint: .8; }
.nav__list li:nth-child(3) a:is(:hover, :focus-visible) { --tint: 1; }
.nav__list li:nth-child(4) a:is(:hover, :focus-visible)::before { background: #0083b0; }
.nav__list li:nth-child(4) a:is(:hover, :focus-visible):not([aria-current]) { color: var(--paper); }
/* the page you're on: black pill, white text */
.nav__list a[aria-current="page"] { color: var(--paper); }
.nav__list a[aria-current="page"]::before { background: var(--ink); opacity: 1; }

.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav.is-open + .scrim { opacity: 1; pointer-events: auto; }

/* ---------- Shared type ---------- */
.t-display { font-size: calc(100 * var(--u)); line-height: calc(100 * var(--u)); font-weight: var(--heading); white-space: nowrap; }
.t-sub     { font-size: calc(60 * var(--u));  line-height: calc(100 * var(--u)); font-weight: var(--light); white-space: nowrap; }
.t-body    { font-size: calc(30 * var(--u));  line-height: calc(40 * var(--u));  font-weight: var(--light); }
.t-huge    { font-size: calc(150 * var(--u)); line-height: calc(150 * var(--u)); font-weight: var(--light); }
.t-lead    { font-size: calc(60 * var(--u));  line-height: calc(80 * var(--u));  font-weight: var(--light); }
.t-lead b  { font-weight: var(--book); }

.btn {
  position: absolute; display: flex; align-items: center; justify-content: center;
  width: calc(281 * var(--u)); height: calc(70 * var(--u));
  border-radius: calc(35 * var(--u));
  font-size: calc(38 * var(--u)); font-weight: var(--medium); letter-spacing: .01em;
  color: var(--paper); text-decoration: none;
  transform-origin: 50% 60%;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: transform .3s cubic-bezier(.3,.7,.4,1), box-shadow .3s ease, filter .2s;   /* easing back out */
}
/* roll over: springy grow with a little overshoot + settle, soft lift shadow */
.btn:hover, .btn:focus-visible {
  transform: scale(1.07);
  box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) rgba(0,0,0,.18);
  filter: brightness(1.06);
  transition: box-shadow .35s ease, filter .2s;
  animation: btn-bounce .6s cubic-bezier(.3,.6,.4,1);
}
@keyframes btn-bounce {            /* grow, overshoot, dip, small second bob, settle at 1.07 */
  0%   { transform: scale(1); }
  30%  { transform: scale(1.11, 1.09); }
  52%  { transform: scale(1.03, 1.05); }
  72%  { transform: scale(1.085); }
  86%  { transform: scale(1.06); }
  100% { transform: scale(1.07); }
}
.btn:active { transform: scale(.97); transition: transform .08s ease; }      /* squish on press */
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover, .btn:active { transition: none; transform: none; animation: none; } }
.btn--black { background: var(--ink); }
.btn--blue  { background: var(--blue); }

/* absolutely placed pieces: set --x, --y, --w in design px */
.at { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); z-index: 2; }
.at[style*="--w"] { width: calc(var(--w) * var(--u)); }
img.at { height: auto; }
/* bunny icon: Figma drop shadow (x 2, y 10, blur 20, 16% black) */
.badge { filter: drop-shadow(calc(2 * var(--u)) calc(10 * var(--u)) calc(10 * var(--u)) rgba(0,0,0,.16)); }

/* ---------- Home ---------- */
.home { position: relative; overflow: hidden; }
.sec {
  position: relative;
  height: calc(var(--h) * var(--u));
  background: center / cover no-repeat;
}
.divider { height: calc(10 * var(--u)); background: var(--blue); position: relative; z-index: 3; }
/* slug trails: sit on top of every photo (incl. the next section's) but under text (.at = z 2) */
.trail { position: absolute; z-index: 1; pointer-events: none; max-width: none; }

.social { display: flex; gap: calc(14 * var(--u)); align-items: center; }
.social a { display: block; transition: opacity .2s; }
.social a:hover { opacity: .6; }
.rule { position: absolute; height: 1px; background: #707070; z-index: 2; right: 0; }

/* Habitat carousel: photos crossfade under the trail (z 1) and text (z 2) */
.slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; filter: brightness(.93); }   /* a touch darker so the white bunny + trail read */
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }
.dots { display: flex; gap: calc(22 * var(--u)); }
.dots button {
  width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.1); transition: background-color .25s, transform .2s;
}
.dots button:hover { background: rgba(0,0,0,.25); transform: scale(1.12); }
.dots button[aria-current="true"] { background: var(--blue); }
.dots button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.card { background: var(--paper); box-shadow: 0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.16); height: calc(473 * var(--u)); }
.small-note { font-size: calc(20 * var(--u)); line-height: calc(20 * var(--u)); font-weight: var(--light); white-space: nowrap; }

/* ---------- Story / Care (flowing column pages) ---------- */
.flow { position: relative; overflow: hidden; text-align: center; color: var(--paper); }
.flow > * { margin-top: calc(var(--mt, 0) * var(--u)); }
.flow h1, .flow h2 { font-size: calc(100 * var(--u)); line-height: calc(100 * var(--u)); font-weight: var(--medium); }
.flow .art { margin-left: calc(var(--x) * var(--u)); width: calc(var(--w) * var(--u)); height: auto; }

.story { background: var(--sky); padding-top: calc(272 * var(--u)); padding-bottom: calc(300 * var(--u)); }   /* room for the bunny's tongue */
.story h1, .story h2 { color: var(--ink); }

.care { background: var(--ink); padding-top: calc(272 * var(--u)); }
.care .intro { font-size: calc(50 * var(--u)); line-height: calc(80 * var(--u)); font-weight: var(--book); width: calc(1556 * var(--u)); margin-left: auto; margin-right: auto; }
.care .intro a { text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .15em; }
.care .intro a:hover { color: var(--blue); }
.care .intro__links { margin-top: calc(80 * var(--u)); }
.care .carrot-box { height: calc(912 * var(--u)); overflow: hidden; }
.care .legal {
  text-align: left; width: calc(1556 * var(--u)); margin-left: calc(182 * var(--u));
  font-size: calc(50 * var(--u)); line-height: calc(60 * var(--u)); font-weight: var(--book);
}
.care .legal h3 { font: inherit; font-weight: var(--bold); }
.care .legal p + h3, .care .legal p + p { margin-top: calc(60 * var(--u)); }
.care .legal a { color: inherit; }
.care .carrot { margin-left: calc(673 * var(--u)); width: calc(573.15 * var(--u)); }

/* contact block (shared) — 1255 x 884 design box */
.contact { position: relative; width: calc(1255 * var(--u)); height: calc(884 * var(--u)); margin-left: calc(var(--x) * var(--u)); text-align: left; }
.contact h2 { position: absolute; left: 0; right: 0; top: 0; text-align: center; }
.contact .ico { position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); width: calc(var(--w) * var(--u)); transition: transform .25s; }
.contact a:hover .ico { transform: translateY(calc(-6 * var(--u))); }
.contact .info {
  position: absolute; left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u));
  font-size: calc(30 * var(--u)); line-height: calc(50 * var(--u)); font-weight: var(--book); white-space: nowrap;
}
.contact .info strong { font-weight: var(--bold); display: block; }
.contact a { color: var(--paper); text-decoration: none; }
.care .contact h2 { color: var(--paper); }

/* ---------- Unfold the art: folding booklet (Lottie) ---------- */
/* static card + copy sit in full-section layers ABOVE the slug trail (z 1), always */
.booklet__static, .booklet__copy { position: absolute; inset: 0; z-index: 5; pointer-events: none; transition: opacity .35s ease; }
.booklet__static .booklet__card, .booklet__static .booklet__arrow { pointer-events: auto; }
.booklet__card { border: 0; padding: 0; cursor: pointer; }
.booklet__deco { pointer-events: none; }
.booklet__arrow {
  width: calc(81 * var(--u)); height: calc(101 * var(--u));
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; background: none; cursor: pointer;
  color: rgba(4,5,5,.22);                    /* resting: light grey */
  transition: color .2s, transform .2s;
}
.booklet__arrow svg { width: calc(22.8 * var(--u)); height: auto; overflow: visible; }
.booklet__arrow:hover, .booklet__arrow:focus-visible { color: #040505; }   /* roll over: black */
.booklet__arrow[data-side="front"]:hover { transform: translateX(calc(4 * var(--u))); }
.booklet__arrow[data-side="back"]:hover  { transform: translateX(calc(-4 * var(--u))); }
.booklet__arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

.booklet__scroller {
  position: absolute; inset: 0; z-index: 3;
  overflow-x: auto; overflow-y: hidden;
  display: none; cursor: grab;
  scrollbar-width: thin; scrollbar-color: rgba(0,0,0,.25) transparent;
  outline: none;
}
.booklet__scroller.is-dragging { cursor: grabbing; user-select: none; }
.booklet__stage { position: relative; height: 100%; width: calc(3246 * var(--u)); }   /* 3126 booklet + right margin */
.booklet__lottie {
  position: absolute; left: 0; top: calc(-1 * var(--u));
  width: calc(3126.1 * var(--u)); height: calc(819.8 * var(--u));   /* 6700 x 1757 canvas at 1920/4115 */
  pointer-events: none;
  filter: drop-shadow(0 calc(3 * var(--u)) calc(6 * var(--u)) rgba(0,0,0,.16));   /* same shadow as the card */
}
.booklet__hint {
  display: flex; align-items: center; gap: calc(24 * var(--u));
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 4;
}

/* states set by nav.js: is-active (animation showing) / is-open (fully unfolded) */
.booklet.is-active .booklet__static { opacity: 0; pointer-events: none; }
.booklet.is-active .booklet__copy { opacity: 0; pointer-events: none; }
.booklet.is-active .booklet__scroller { display: block; }
.booklet:not(.is-active) .booklet__scroller { z-index: 3; }
/* hand-off at the end of the fold: the static card fades in ON TOP of the animation's last frame */
.booklet.is-returning .booklet__static { z-index: 47; opacity: 1; transition: opacity .25s ease; }
.booklet.is-returning .booklet__copy { opacity: 1; }
.booklet.is-hint .booklet__hint { opacity: 1; pointer-events: auto; }

/* booklet out: same blur + darken as the menu, booklet floats above it */
.booklet-scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; pointer-events: none; transition: opacity .35s ease;   /* fold-back duration set by nav.js */
}
.booklet-scrim.is-on { opacity: 1; pointer-events: auto; }
.booklet.is-active .booklet__scroller { z-index: 45; }
.booklet.is-active .booklet__hint { z-index: 46; }
.booklet.is-active .booklet__hint .small-note { color: var(--paper); }
.booklet__fold {
  border: 0; cursor: pointer; border-radius: calc(35 * var(--u));
  padding: calc(8 * var(--u)) calc(22 * var(--u));
  font: inherit; font-size: calc(20 * var(--u)); font-weight: var(--medium);
  background: var(--paper); color: var(--ink); transition: background-color .2s, color .2s;
}
.booklet__fold:hover, .booklet__fold:focus-visible { background: var(--blue); color: var(--paper); }
.booklet__fold:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* ---------- Home footer: the face winks + sticks its tongue out when scrolled into view ---------- */
.wink {                                 /* clipped to the footer (keeps the blue divider above clear) */
  position: absolute; z-index: 3; left: calc(136.4 * var(--u)); top: 0;
  width: calc(1652.6 * var(--u)); height: calc(900.4 * var(--u));
  overflow: hidden;
}
.wink__anim {                           /* 1920x1080 Lottie at 0.8607x: eyes + mouth sit on the footer face */
  position: absolute; left: 0; top: calc(-29.2 * var(--u));
  width: calc(1652.6 * var(--u)); height: calc(929.6 * var(--u));
}

/* ---------- Contents: the bunny + slug trail run off the page on scroll ---------- */
.trail--booklet { clip-path: inset(0 0 14.302% 0); }        /* old trail stops at the Contents edge; the moving one takes over there */
.trail-ext { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.trail-ext--top { z-index: 4; }   /* Habitat bunny rides above the "Stow for safe-keeping" icon + text; its trail stays below */

/* Our Story footer bunny: same wink, blue masks, sized to the big face (1.3529x), kept below the head outline */
.bunfoot { position: relative; }
.wink--story { left: calc(141 * var(--u)); top: calc(915 * var(--u)); width: calc(1650 * var(--u)); height: calc(766.8 * var(--u)); }
.wink--story .wink__anim { left: calc(-474.23 * var(--u)); top: calc(-430.9 * var(--u)); width: calc(2597.55 * var(--u)); height: calc(1461.12 * var(--u)); }

/* ---------- Our Story: two peas in a pod - hover to make them rock, hop and snuggle ---------- */
.peas-wrap { cursor: pointer; }
.peas { display: block; width: 100%; height: auto; overflow: visible; }
.peas__cradle { transform-origin: 417px 425px; }
.peas.is-playing .peas__cradle { animation: peas-rock 1.8s ease-in-out; }
.peas.is-playing .peas__pea--l { animation: peas-hop-l 1.8s ease-in-out; }
.peas.is-playing .peas__pea--r { animation: peas-hop-r 1.8s ease-in-out; }
@keyframes peas-rock {
  0% { transform: rotate(0); } 18% { transform: rotate(-3deg); } 42% { transform: rotate(2.5deg); }
  66% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); }
}
@keyframes peas-hop-l {           /* hop, hop, then lean in to the right pea */
  0% { transform: none; } 10% { transform: translateY(-34px) rotate(-5deg); }
  20% { transform: translateY(0) scale(1.05, .95); } 28% { transform: none; }
  38% { transform: translateY(-20px) rotate(-3deg); } 48% { transform: none; }
  62%, 82% { transform: rotate(7deg) translateX(10px); } 100% { transform: none; }
}
@keyframes peas-hop-r {           /* same, a beat later, leaning back toward the left pea */
  0%, 8% { transform: none; } 18% { transform: translateY(-30px) rotate(5deg); }
  28% { transform: translateY(0) scale(1.05, .95); } 36% { transform: none; }
  46% { transform: translateY(-18px) rotate(3deg); } 56% { transform: none; }
  66%, 84% { transform: rotate(-6deg) translateX(-8px); } 100% { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .peas.is-playing * { animation: none !important; } }

/* ---------- Our Story: the scissors snip open and shut as you scroll ---------- */
.tools { display: block; width: 100%; height: auto; overflow: visible; }
.scissors__blade { will-change: transform; }
/* "Unfold the art": tone the backdrop down to match "Stow for safe-keeping" (~#EBEBEB); sits under trail, card and text */
.booklet::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(0,0,0,.045); pointer-events: none; }
/* Unfold the art: the right arrow beckons (nudge right x2 + darken) until someone opens the booklet */
.booklet:not(.is-discovered) .booklet__arrow[data-side="front"] { animation: arrow-beckon 2.6s ease-in-out 1s infinite; }
.booklet .booklet__arrow[data-side="front"]:hover, .booklet .booklet__arrow[data-side="front"]:focus-visible { animation: none; }
@keyframes arrow-beckon {
  0%, 52%, 100% { transform: none; color: rgba(4,5,5,.22); }
  62% { transform: translateX(calc(12 * var(--u))); color: rgba(4,5,5,.75); }
  70% { transform: translateX(calc(2 * var(--u)));  color: rgba(4,5,5,.5); }
  78% { transform: translateX(calc(10 * var(--u))); color: rgba(4,5,5,.75); }
  90% { transform: none; color: rgba(4,5,5,.3); }
}
@media (prefers-reduced-motion: reduce) { .booklet .booklet__arrow[data-side="front"] { animation: none !important; } }

/* ---------- Heart = video button (Slugbunny section) ---------- */
.heart-btn {
  width: calc(64.97 * var(--u)); padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 55%;
  animation: heart-beat 2.4s ease-in-out 1.2s infinite;          /* lub-dub, then rest: come press me */
}
.heart-btn img { width: 100%; height: auto; display: block; }
.heart-btn:hover, .heart-btn:focus-visible { animation: btn-bounce .6s cubic-bezier(.3,.6,.4,1) forwards; }   /* same pop as ADOPT ME */
.heart-btn:active { transform: scale(.94); }
.heart-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 50%; }
@keyframes heart-beat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  18% { transform: scale(.98); }
  26% { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .heart-btn, .heart-btn:hover { animation: none; } }

/* ---------- Video lightbox: page blurs + darkens behind the player ---------- */
.vbox { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.vbox[hidden] { display: none; }
.vbox__scrim {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .35s ease;
}
.vbox__frame {
  --ratio: 1.894;   /* set per video by nav.js */
  position: relative; width: min(82vw, calc((100vh - 140px) * var(--ratio)), 1364px); aspect-ratio: var(--ratio);
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45);
  opacity: 0; transform: scale(.92); transition: opacity .35s ease, transform .45s cubic-bezier(.34,1.5,.6,1);
}
.vbox__video { width: 100%; height: 100%; display: block; border-radius: inherit; background: #000; object-fit: cover; }
.vbox.is-open .vbox__scrim { opacity: 1; }
.vbox.is-open .vbox__frame { opacity: 1; transform: none; }
.vbox__close {
  position: absolute; top: -22px; right: -22px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
  background: var(--paper); color: var(--ink); box-shadow: 0 3px 10px rgba(0,0,0,.3);
  transition: background-color .2s, color .2s, transform .2s;
}
.vbox__close svg { width: 46%; height: 46%; }
.vbox__close:hover, .vbox__close:focus-visible { background: var(--blue); color: var(--paper); transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .vbox__scrim, .vbox__frame { transition: none; } }

/* Our Story: the big heart beside the sleepy bunny is the spotlight-video button */
.heart-bunny { position: relative; }
.heart-bunny > img { display: block; width: 100%; height: auto; }
.heart-btn--big { position: absolute; left: 0; top: calc(142.03 * var(--u)); width: calc(208.06 * var(--u)); }

/* ---------- Home footer: wide awake -> sleepy as you scroll to the bottom ---------- */
.sleepy { display: block; width: 100%; height: auto; overflow: visible; }

/* "Watch the video" pill: fades + slides in beside a heart on rollover / keyboard focus */
.heart-tip {
  position: absolute; z-index: 3; pointer-events: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: calc(10 * var(--u));
  padding: calc(10 * var(--u)) calc(22 * var(--u)); border-radius: calc(35 * var(--u));
  background: var(--ink); color: var(--paper);
  font-size: calc(22 * var(--u)); font-weight: var(--medium); letter-spacing: .01em;
  box-shadow: 0 calc(4 * var(--u)) calc(12 * var(--u)) rgba(0,0,0,.18);
  opacity: 0; transform: translate(calc(-10 * var(--u)), -50%);
  transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.6,.6,1);
}
.heart-tip svg { width: calc(10 * var(--u)); height: auto; }
.heart-btn:hover + .heart-tip, .heart-btn:focus-visible + .heart-tip { opacity: 1; transform: translate(0, -50%); }
/* Our Story: the bunny is to the right of the big heart, so the pill sits on its left */
.heart-tip--left { right: calc(100% + 26 * var(--u)); top: calc(250.13 * var(--u)); transform: translate(calc(10 * var(--u)), -50%); }
.heart-btn:hover + .heart-tip--left, .heart-btn:focus-visible + .heart-tip--left { transform: translate(0, -50%); }
/* the pill also pops in by itself when the heart scrolls into view, lingers, then fades out slowly (nav.js) */
.heart-tip.heart-tip.is-prompt { opacity: 1; transform: translate(0, -50%); }
.heart-tip.is-fading { transition: opacity .9s ease, transform .9s ease; }
@media (prefers-reduced-motion: reduce) { .heart-tip { transition: opacity .2s; } }

/* =====================================================================================
   PHONE (< 768px): one 375-wide column, from the Figma "HOME PAGE MOBILE" / "ABOUT US MOBILE"
   frames. Every size below is in 375-wide Figma px: --m = 1px at 375 wide, and --u is
   switched to --m, so the shared rules above keep working. Parts that keep their desktop
   drawing (booklet card, big Our Story art, nav pill) just rescale their own --u.
   Placement on phones comes from --mx / --my / --mw (and --mh / --mbg / --mmt) set in the HTML.
   ===================================================================================== */
@media (min-width: 768px) { .mo { display: none !important; } }

@media (max-width: 767px) {
  body > * { --m: calc(100cqw / 375); --u: var(--m); }
  .dk { display: none !important; }
  [id] { scroll-margin-top: 20px; }

  /* nav: the same pill, at the bottom of the screen (thumb reach); the menu grows upward */
  .nav { --u: calc(var(--m) * .7284); top: auto; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .nav__panel { display: flex; flex-direction: column-reverse; }
  .nav.is-open .nav__panel { height: calc(236 * var(--m)); }
  .nav__toggle { flex: none; }
  .nav__list { padding: calc(24 * var(--m)) calc(24 * var(--m)) calc(13 * var(--m)); }
  .nav__list li + li { margin-top: calc(8 * var(--m)); }
  .nav__list a { height: calc(31 * var(--m)); font-size: calc(18 * var(--m)); }

  /* type (Figma mobile sizes) */
  .t-display { font-size: calc(50 * var(--u)); line-height: calc(60 * var(--u)); }
  .t-sub     { font-size: calc(30 * var(--u)); line-height: calc(36 * var(--u)); }
  .t-body    { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); }
  .t-huge    { font-size: calc(50 * var(--u)); line-height: calc(50 * var(--u)); }
  .t-lead    { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); }
  .small-note { font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); white-space: normal; }
  .note-m { display: inline-flex; align-items: flex-start; gap: calc(4 * var(--u)); text-align: left; }
  .note-carrot { flex: none; width: calc(17 * var(--u)); height: auto; margin-top: calc(1 * var(--u)); }
  .btn { width: calc(171 * var(--u)); height: calc(44 * var(--u)); border-radius: calc(22 * var(--u)); font-size: calc(24 * var(--u)); }

  /* placement */
  .at { left: calc(var(--mx, 0) * var(--u)); top: calc(var(--my, 0) * var(--u)); }
  .at[style*="--mw"] { width: calc(var(--mw) * var(--u)); }
  .mc { left: 0; right: 0; width: auto !important; text-align: center; }
  .sec { height: calc(var(--mh) * var(--u)); }
  .sec[style*="--mbg"] { background-image: var(--mbg) !important; }
  .divider { height: calc(5 * var(--u)); }

  .social img { width: calc(14.6 * var(--u)) !important; }
  .rule { right: auto; width: calc(41 * var(--u)); }
  .heart-btn:not(.heart-btn--big) { width: calc(32.4 * var(--u)); }
  .heart-btn::after { content: ""; position: absolute; inset: -10px; }      /* bigger tap target */
  .heart-tip { font-size: calc(13 * var(--u)); padding: calc(6 * var(--u)) calc(12 * var(--u)); gap: calc(6 * var(--u)); border-radius: calc(20 * var(--u)); }
  .heart-tip svg { width: calc(6 * var(--u)); }
  .heart-tip--onhead { left: auto; right: calc(111 * var(--u)); top: calc(600.9 * var(--u)); }   /* just left of the heart */
  .heart-bunny .heart-tip--left {                                                             /* above the big heart (no room to its left) */
    --u: var(--m); right: auto; left: calc(-14 * var(--u)); top: auto; bottom: calc(100% - 20 * var(--u));
    transform: translateY(calc(6 * var(--u)));
  }
  .heart-bunny .heart-tip--left.is-prompt { transform: none; }

  /* carousel dots: small like the design, with a finger-sized hit area */
  .dots { gap: calc(8 * var(--u)); }
  .dots button { position: relative; width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
  .dots button::after { content: ""; position: absolute; inset: -9px -4px; }
  .carousel { touch-action: pan-y; }

  /* booklet: the desktop card drawing, scaled to the 218px phone card */
  .booklet__static { --u: calc(var(--m) * .4609); transform: translate(calc(-67.6 * var(--m)), calc(248.2 * var(--m))); }
  .booklet__static .at { left: calc(var(--x) * var(--u)); top: calc(var(--y) * var(--u)); }
  .booklet__static .at[style*="--w"] { width: calc(var(--w) * var(--u)); }
  .booklet__card { height: calc(461.3 * var(--u)); }          /* = the phone animation's first frame (218 x 212.6) */
  .booklet__shadow { top: calc(632.3 * var(--u)) !important; }
  .booklet__arrow[data-side="front"] { margin-left: calc(32 * var(--u)); }
  .booklet__stage { width: calc(1470 * var(--m)); }
  .booklet__lottie {
    left: calc(-33.6 * var(--m)); top: calc(255.7 * var(--m));
    width: calc(1528.1 * var(--m)); height: calc(359.3 * var(--m));   /* 5103 x 1200 phone animation */
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.16));
  }
  .booklet__scroller { scrollbar-width: none; }
  .booklet__scroller::-webkit-scrollbar { display: none; }
  .booklet__hint { justify-content: center; gap: calc(12 * var(--m)); }
  .booklet__fold { font-size: calc(15 * var(--m)); padding: calc(7 * var(--m)) calc(16 * var(--m)); border-radius: calc(20 * var(--m)); }
  .trail--booklet-m { clip-path: inset(0 0 5.145% 0); }     /* hands over to the moving Contents trail at y = -27 */

  /* Our Story + Customer Care */
  .flow > * { margin-top: calc(var(--mmt, var(--mt, 0)) * var(--m)); }
  .flow .art { margin-left: calc(var(--mx) * var(--m)); width: calc(var(--mw) * var(--m)); }
  .flow h1, .flow h2 { font-size: calc(15 * var(--u)); line-height: calc(19 * var(--u)); }
  .story { padding-top: calc(58 * var(--u)); padding-bottom: calc(66 * var(--u)); }
  .heart-bunny { --u: calc(var(--m) * .193729); }             /* 207 / 1068.5 */
  .bunfoot { --u: calc(var(--m) * .194243); }                 /* 373 / 1920.27: wink overlay scales with it */
  .bunfoot > .art { margin-left: var(--m); width: calc(373 * var(--m)); }

  .contact { width: 100%; height: calc(986 * var(--u)); margin-left: 0; }
  .contact .ico { left: calc(var(--mx) * var(--u)); top: calc(var(--my) * var(--u)); width: calc(var(--mw) * var(--u)); }
  .contact .info { left: calc(var(--mx) * var(--u)); top: calc(var(--my) * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(25 * var(--u)); }

  .care { padding-top: calc(58 * var(--u)); }
  .care > h2 { font-size: calc(20 * var(--u)); line-height: calc(24 * var(--u)); }
  .care .intro { font-size: calc(15 * var(--u)); line-height: calc(22 * var(--u)); width: calc(311 * var(--u)); }
  .care .intro__links { margin-top: calc(20 * var(--u)); }
  .care .legal { width: calc(311 * var(--u)); margin-left: calc(32 * var(--u)); font-size: calc(15 * var(--u)); line-height: calc(20 * var(--u)); }
  .care .legal p + h3, .care .legal p + p { margin-top: calc(18 * var(--u)); }
  .care .carrot { margin-left: calc(115.9 * var(--u)); width: calc(143.3 * var(--u)); }
  .care .carrot-box { height: calc(228 * var(--u)); }

  /* video: nearly full width, close button above the player */
  .vbox__frame { width: min(calc(100vw - 24px), calc((100vh - 160px) * var(--ratio))); border-radius: 10px; }
  .vbox__close { top: -56px; right: 0; width: 44px; height: 44px; }
}

/* touch screens: no sticky hover states after a tap */
@media (hover: none) {
  .btn:hover, .btn:focus-visible { transform: none; animation: none; box-shadow: none; filter: none; }
  .btn:active { transform: scale(.95); }
  .heart-btn:hover, .heart-btn:focus-visible { animation: heart-beat 2.4s ease-in-out 1.2s infinite; }
  .heart-btn:hover + .heart-tip, .heart-btn:focus-visible + .heart-tip { opacity: 0; }
  .dots button:hover { transform: none; }
  .contact a:hover .ico { transform: none; }
  .booklet__arrow:hover { color: rgba(4,5,5,.22); transform: none; }
  .booklet__fold:hover { background: var(--paper); color: var(--ink); }
}
