/* Self-hosted fonts (SIL Open Font License): same origin, no render-blocking Google request.
   fraunces-v1.woff2 = Fraunces trimmed to the characters a French page uses, SOFT axis 50-100. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/fraunces-v1.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0-00FF, U+0152-0153, U+2013-2014, U+2018-201A, U+201C-201E, U+2026, U+20AC;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin-ext-v16.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/dm-mono-400-latin-v16.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: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin-ext-v16.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/dm-mono-500-latin-v16.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;
}

/* =========================================================
   MOSSA — matcha & coffee
   Layout: playful editorial shop — full-bleed illustrated hero,
   hairline product grid, split feature, oversized wordmark.
   ========================================================= */
:root {
  --cream: #fbf2e3;
  --cream-2: #f4e6cf;
  --ink: #26150c;            /* espresso */
  --ink-2: rgba(38, 21, 12, 0.66);
  --matcha: #a8d672;
  --matcha-deep: #3f6b2b;
  --matcha-pale: #d6ecb4;
  --yuzu: #f3f65b;
  --latte: #e9c9a3;
  --pink: #f6b8cb;
  --sky: #bfe3f2;
  --line: rgba(38, 21, 12, 0.85);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);   /* bouncy */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yuzu); color: var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }   /* can drawings, see canSVG() */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yuzu); padding: 12px 16px; border-radius: 99px; }
.skip:focus { top: 8px; }
.center { text-align: center; display: flex; justify-content: center; }
.mono, .mono-p { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.02em; }
.mono { text-transform: uppercase; letter-spacing: 0.08em; }

.chunky, .hero__title, .h2, .h3, .h4, .statement, .logo, .footer__word, .rise__word, .product__name, .recipe h3, .review blockquote, .story__text, .sticker {
  font-family: var(--f-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}
.h2 { font-weight: 800; font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -0.02em; }
.h4 { font-weight: 600; font-size: 1.15rem; }

/* ---------- pill buttons (oval) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 14px; font-weight: 500;
  text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
  white-space: nowrap;
  transition: transform 0.5s var(--ease), background 0.3s, box-shadow 0.3s;
}
.pill svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease); }
.pill--yuzu { background: var(--yuzu); }
.pill:hover { transform: rotate(-4deg) scale(1.06); box-shadow: 4px 4px 0 var(--ink); }
.pill:hover svg { transform: translateX(4px); }
.pill:active { transform: scale(0.97); box-shadow: none; }

/* ---------- stickers ---------- */
.sticker {
  --bg: var(--yuzu);
  position: absolute;
  display: grid; place-items: center;
  width: 108px; aspect-ratio: 1;
  background: var(--bg);
  clip-path: polygon(50% 0, 61% 12%, 77% 6%, 80% 22%, 96% 26%, 90% 41%, 100% 54%, 88% 63%, 92% 79%, 76% 81%, 70% 96%, 56% 88%, 43% 99%, 35% 85%, 19% 90%, 18% 74%, 3% 68%, 11% 54%, 1% 40%, 15% 31%, 13% 15%, 29% 15%, 36% 1%);
  font-weight: 800; font-size: 15px; line-height: 1.02; text-align: center; text-transform: uppercase;
  animation: spin-wobble 9s linear infinite;
}
.sticker span { transform: rotate(-12deg); text-decoration: underline; text-underline-offset: 2px; }
.sticker--pink { --bg: var(--pink); }
.sticker--sm { width: 84px; font-size: 12px; }
@keyframes spin-wobble { 0% { transform: rotate(0); } 50% { transform: rotate(14deg) scale(1.04); } 100% { transform: rotate(0); } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; will-change: transform; }
.marquee__track span { flex-shrink: 0; }
[class^="ico-"] { display: inline-block; flex-shrink: 0; width: 18px; height: 18px; background: currentColor; }
.ico-leaf { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 9 11 4 21 3c0 11-6 17-17 17zm2-2c4-5 7-8 11-11' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20C4 9 11 4 21 3c0 11-6 17-17 17zm2-2c4-5 7-8 11-11' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.ico-bean { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='7' ry='9.5' transform='rotate(-25 12 12)' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M10 4c4 4-2 8 3 16' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='12' rx='7' ry='9.5' transform='rotate(-25 12 12)' fill='none' stroke='black' stroke-width='1.8'/%3E%3Cpath d='M10 4c4 4-2 8 3 16' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat; }

/* =========================================================
   Top bar + nav
   ========================================================= */
.topbar {
  background: var(--matcha);
  padding: 8px 0;
  font-size: 14px;
}
.topbar .ico-leaf { width: 16px; height: 16px; }

.nav {
  position: sticky; top: 0;
  z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 14px var(--gutter);
  background: transparent;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s;
}
.nav.is-solid { background: var(--cream); box-shadow: 0 1px 0 var(--line); }
.nav__links { display: flex; gap: 22px; font-size: 15px; }
.nav__links a { text-underline-offset: 4px; transition: color 0.3s; }
.nav__links a:hover { text-decoration-thickness: 2px; }
.logo {
  font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--matcha-deep);
  display: inline-block;
  transition: transform 0.5s var(--ease);
}
.logo:hover { transform: rotate(-6deg) scale(1.08); }
.nav__icons { display: flex; gap: 10px; justify-content: flex-end; }
.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  display: grid; place-items: center;
  transition: transform 0.4s var(--ease), background 0.3s;
}
.icon-btn:hover { transform: translateY(-2px) rotate(-8deg); background: var(--yuzu); }
.icon-btn[hidden] { display: none; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart__count {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 99px;
  background: var(--matcha-deep); color: var(--cream);
  font: 500 11px/20px var(--f-mono);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.cart.has-items .cart__count { transform: scale(1); }
.nav__menu { display: none; }   /* phone menu button, shown below 768px */

/* the hero sits under the transparent nav */
.hero { margin-top: -68px; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 150px;
  color: var(--cream);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 70% at 72% 45%, #c4e88f 0%, transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(38, 21, 12, 0.12) 1.5px, transparent 2px) 0 0 / 26px 26px,
    linear-gradient(160deg, #8cc45a, #5c9a3a 70%, #4b8530);
}
.hero__can {
  position: absolute;
  right: 9%; top: 50%;
  width: clamp(170px, 22vw, 330px);
  transform: translateY(-50%) rotate(12deg);
}
.hero__float { position: absolute; inset: 0; pointer-events: none; }
.fl {
  position: absolute; left: var(--x); top: var(--y);
  width: 70px; height: 70px;
  rotate: var(--r);
}
.fl--ice { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Crect x='5' y='5' width='50' height='50' rx='12' fill='%23ffffff' fill-opacity='.55' stroke='%2326150c' stroke-width='2.5'/%3E%3Cpath d='M15 16h10M15 23h5' stroke='%2326150c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fl--leaf { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M8 52C8 24 24 10 54 6c0 30-16 46-46 46z' fill='%23d6ecb4' stroke='%2326150c' stroke-width='2.5'/%3E%3Cpath d='M12 48c10-12 20-22 32-32' fill='none' stroke='%2326150c' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.fl--bean { width: 52px; height: 52px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cellipse cx='30' cy='30' rx='18' ry='25' transform='rotate(-25 30 30)' fill='%238b5a3c' stroke='%2326150c' stroke-width='2.5'/%3E%3Cpath d='M26 8c10 10-6 20 8 44' fill='none' stroke='%2326150c' stroke-width='2.5'/%3E%3C/svg%3E") center / contain no-repeat; }

.hero__content { position: relative; z-index: 2; max-width: 1500px; }
.doodle-burst {
  position: absolute; left: -10px; top: -70px;
  width: 92px; fill: none; stroke: var(--yuzu); stroke-width: 6; stroke-linecap: round;
  animation: burst 2.4s var(--ease-out) infinite;
}
@keyframes burst { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.12) rotate(10deg); } }
.hero__title {
  font-weight: 900;
  font-size: clamp(3.6rem, 13vw, 14rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-shadow: 0 6px 0 rgba(38, 21, 12, 0.15);
}
.hero__title .line { display: block; }
.hero__title .ch { display: inline-block; }
.hero__sub { margin-top: 26px; font-weight: 700; font-size: clamp(1.25rem, 2.3vw, 2rem); letter-spacing: -0.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
/* centred with auto margins, not translate: GSAP folds a CSS translate into its transform and read it
   mid-transition, so the button entered half its width off-centre and then jumped into place */
.hero__cta { position: absolute; left: 0; right: 0; bottom: 48px; z-index: 3; width: max-content; margin-inline: auto; color: var(--ink); }
.hero__sticker { right: 6%; bottom: 12%; z-index: 3; color: var(--ink); }

/* =========================================================
   Shop
   ========================================================= */
.shop { padding: clamp(80px, 11vw, 150px) 0 clamp(60px, 8vw, 110px); overflow-x: clip; }   /* cards tilt while popping in */
.statement {
  max-width: 900px; margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 var(--gutter);
  text-align: center;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
.statement .w { display: inline-block; opacity: 0.15; }

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  margin-bottom: 56px;
}
.product {
  position: relative;
  display: flex; flex-direction: column;
  background: #fff;
  border-right: 1.5px solid var(--line);
  overflow: hidden;
}
.product:last-child { border-right: 0; }
.products.show-all .product:nth-child(4) { border-right: 0; }
.product.is-extra { display: none; }
.shop__hint, .m-cta { display: none; }   /* phone only */
.products.show-all .product.is-extra { display: flex; border-top: 1.5px solid var(--line); }
.product__stage {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  background: var(--bg, #fff);
  transition: background 0.5s var(--ease-out);
}
.product__stage::before {
  content: ""; position: absolute; inset: 0;
  background: var(--tint);
  clip-path: circle(0% at 50% 60%);
  transition: clip-path 0.7s var(--ease-out);
}
.product:hover .product__stage::before { clip-path: circle(75% at 50% 60%); }
.product__can { position: relative; width: 44%; transition: transform 0.7s var(--ease); }
.product:hover .product__can { transform: translateY(-14px) rotate(-8deg) scale(1.05); }
.product__add {
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.product__add svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.product__add:hover { transform: rotate(90deg) scale(1.12); background: var(--yuzu); }
.product__add.is-done { background: var(--matcha); }
.product__meta {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px;
  padding: 14px 14px 16px;
  border-top: 1.5px solid var(--line);
  background: var(--cream);
}
.product__name { font-weight: 600; font-size: 16px; }
.product__price { font-family: var(--f-mono); font-size: 12px; align-self: center; }
.product__notes { grid-column: 1 / -1; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); }

/* =========================================================
   Feature
   ========================================================= */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 90px) var(--gutter) clamp(80px, 10vw, 140px);
}
.feature__art { position: relative; width: 100%; max-width: 580px; justify-self: end; }
.scene {
  position: relative;
  aspect-ratio: 1 / 1;
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  display: grid; place-items: center;
}
.scene--glass {
  background:
    radial-gradient(circle at 1px 1px, rgba(38, 21, 12, 0.14) 1.5px, transparent 2px) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--pink), #f9d3df);
}
.scene svg, .recipe__img svg { width: 48%; height: auto; }
.feature__art .sticker { right: -18px; top: -24px; }
.feature__copy { max-width: 560px; }
.accordion { margin-top: 36px; border-top: 1.5px solid var(--line); }
.acc { border-bottom: 1.5px solid var(--line); }
.acc__head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0;
  font-size: 17px; text-align: left;
}
.acc__head i { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.acc__head i::before, .acc__head i::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 1.6px; background: var(--ink); transition: transform 0.5s var(--ease); }
.acc__head i::after { transform: rotate(90deg); }
.acc.is-open .acc__head i::after { transform: rotate(0); }
.acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease-out); }
.acc.is-open .acc__body { grid-template-rows: 1fr; }
.acc__body > div { overflow: hidden; }
.acc__body p { padding: 0 0 20px; font-family: var(--f-mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

/* =========================================================
   Reviews
   ========================================================= */
.reviews {
  position: relative;
  border-top: 1.5px solid var(--line);
  padding: clamp(64px, 8vw, 110px) var(--gutter) clamp(72px, 9vw, 120px);
  background:
    radial-gradient(circle at 1px 1px, rgba(38, 21, 12, 0.09) 1.5px, transparent 2px) 0 0 / 24px 24px,
    var(--cream-2);
}
.reviews__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  max-width: 1240px; margin: 0 auto clamp(32px, 4vw, 56px);
}
.reviews__wall {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  max-width: 1240px; margin: 0 auto;
  align-items: start;
}
.review {
  --bg: #fff;
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(22px, 2.4vw, 32px);
  background: var(--bg);
  border: 1.5px solid var(--ink); border-radius: 22px;
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -1.5deg;
  transition: rotate 0.5s var(--ease), translate 0.5s var(--ease);
}
.review:nth-child(2) { rotate: 1.2deg; margin-top: 28px; }
.review:nth-child(3) { rotate: -0.6deg; margin-top: 8px; }
.review:hover { rotate: 0deg; translate: 0 -6px; }
.review__stars { font-size: 15px; letter-spacing: 3px; color: var(--matcha-deep); }
.review blockquote {
  font-weight: 800; font-size: clamp(1.3rem, 1.75vw, 1.6rem); line-height: 1.15; letter-spacing: -0.015em;
  text-wrap: pretty;
}
.review figcaption { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); margin-top: auto; }
.review figcaption b { display: block; font: 600 15px var(--f-display); color: var(--ink); }
.avatar {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1.5px solid var(--ink);
  background: var(--c);
  display: grid; place-items: center;
  font: 500 13px var(--f-mono); color: var(--ink);
}
.arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.arrow:hover { background: var(--yuzu); transform: scale(1.1); }
.arrow svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* mascots */
.mascot { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.mascot .pupil { fill: var(--ink); stroke: none; }
.mascot .eyes ellipse { fill: #fff; }
.mascot--cup { flex-shrink: 0; width: clamp(84px, 9vw, 130px); margin-bottom: -6px; }
.mascot--cup .cup { fill: #fff; }
.mascot--cup .cup-top { fill: var(--matcha); }
.mascot--cup .steam path { stroke-width: 4; animation: steam 2.6s ease-in-out infinite; }
.mascot--cup .steam path:nth-child(2) { animation-delay: 0.4s; }
.mascot--cup .steam path:nth-child(3) { animation-delay: 0.8s; }
.mascot--cup .cheek { stroke: var(--pink); stroke-width: 6; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-12px); } }
.mascot .eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

/* =========================================================
   Band marquee
   ========================================================= */
.band {
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  padding: 16px 0;
  font-size: 15px;
  background: var(--cream);
}
.band .ico-bean, .band .ico-leaf { width: 30px; height: 30px; }

/* =========================================================
   Rise
   ========================================================= */
.rise {
  background:
    radial-gradient(circle at 1px 1px, rgba(38, 21, 12, 0.12) 1.5px, transparent 2px) 0 0 / 26px 26px,
    radial-gradient(60% 60% at 50% 55%, #e8f5d3 0%, transparent 70%),
    var(--matcha-pale);
  border-bottom: 1.5px solid var(--line);
}
.rise__pin {
  position: relative;
  height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
}
.rise__word {
  display: flex; gap: 0; white-space: nowrap;
  font-weight: 900; font-size: 30vw; line-height: 0.8; letter-spacing: -0.05em;
  color: var(--ink);
}
.rise__word span { display: inline-block; }
.rise__can {
  position: absolute; left: 50%; top: 50%;
  width: clamp(150px, 17vw, 260px);
  translate: -50% -50%;
}
/* scroll scene (class added by main.js, so without JS or with reduced motion the section is one plain screen):
   the scene sticks to the top while the section scrolls 75 % of a screen past it (60 % on phones). */
.rise--scroll { height: calc(max(100svh, 560px) + 75svh); }
.rise--scroll .rise__pin { position: sticky; top: 0; }

/* =========================================================
   Story
   ========================================================= */
.story {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(90px, 10vw, 150px);
}
.story__panel {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1.5px solid var(--ink); border-radius: 22px;
  overflow: hidden;
  background: var(--latte);
}
.pattern {
  position: absolute; inset: -20%;
  background:
    repeating-linear-gradient(90deg, var(--latte) 0 60px, #dcb487 60px 120px);
  transform: rotate(-8deg);
}
.story__cans { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6%; }
.story__cans > div { width: 18%; }
.story__cans > div:nth-child(1) { transform: rotate(-10deg) translateY(6%); }
.story__cans > div:nth-child(2) { transform: translateY(-6%); }
.story__cans > div:nth-child(3) { transform: rotate(9deg) translateY(4%); }
.story__copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.mascot--bean { width: clamp(150px, 15vw, 220px); }
.mascot--bean .bean { fill: #a86f45; }
.mascot--bean .crease { stroke-width: 4.5; }
.mascot--bean .hand { fill: #fff; }
.mascot--bean .shoe { fill: #fff; }
.mascot--bean .leg--a, .mascot--bean .shoe--a { transform-origin: 96px 168px; animation: run 0.6s ease-in-out infinite alternate; }
.mascot--bean .leg--b, .mascot--bean .shoe--b { transform-origin: 124px 168px; animation: run 0.6s ease-in-out infinite alternate-reverse; }
.mascot--bean .arm--wave, .mascot--bean .hand--wave { transform-origin: 168px 104px; animation: wave 1.2s ease-in-out infinite; }
@keyframes run { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes wave { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
.story__text { font-weight: 600; font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.35; max-width: 34ch; }

/* =========================================================
   Recipes
   ========================================================= */
.recipes { border-top: 1.5px solid var(--line); padding: clamp(70px, 9vw, 120px) var(--gutter); background: #fff; }
.recipes .h2 { margin-bottom: clamp(36px, 5vw, 64px); font-size: clamp(2.2rem, 4vw, 3.6rem); }
.recipes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.recipe { display: flex; flex-direction: column; gap: 6px; }
.recipe__img {
  position: relative;
  aspect-ratio: 1 / 1.08;
  border: 1.5px solid var(--ink); border-radius: 20px;
  overflow: hidden;
  display: grid; place-items: end center;
  margin-bottom: 12px;
  transition: transform 0.6s var(--ease);
}
.recipe:hover .recipe__img { transform: rotate(-1.5deg) translateY(-6px); }
.recipe__img svg { width: 46%; margin-bottom: -2%; transition: transform 0.8s var(--ease); }
.recipe:hover .recipe__img svg { transform: translateY(-10px) rotate(4deg); }
.sky {
  background:
    radial-gradient(40% 18% at 22% 22%, #fff 60%, transparent 62%),
    radial-gradient(30% 14% at 34% 26%, #fff 60%, transparent 62%),
    radial-gradient(34% 15% at 78% 40%, #fff 60%, transparent 62%),
    radial-gradient(24% 12% at 68% 36%, #fff 60%, transparent 62%),
    linear-gradient(180deg, #7cc4e8, var(--sky));
}
.recipe .sticker { left: 14px; top: 14px; }
.recipe h3 { font-weight: 600; font-size: 19px; }
.recipe__meta { font: 13px/1.55 var(--f-mono); color: var(--ink-2); max-width: 38ch; }

/* =========================================================
   Wild
   ========================================================= */
.wild { border-top: 1.5px solid var(--line); padding: clamp(70px, 9vw, 120px) 0 70px; overflow: hidden; }
.wild__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 var(--gutter); margin-bottom: 40px; align-items: start; }
.mono-p { max-width: 46ch; line-height: 1.6; font-size: 13px; }
.wild__strip {
  display: flex; gap: 14px;
  padding: 4px var(--gutter) 30px;   /* room for the staggered cards */
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}
.wild__strip::-webkit-scrollbar { display: none; }
.wild__strip.is-dragging { cursor: grabbing; user-select: none; }
.post {
  position: relative;
  flex-shrink: 0;
  width: clamp(200px, 19vw, 280px);
  aspect-ratio: 4 / 5;
  border: 1.5px solid var(--ink); border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
  display: grid; place-items: center;
  transition: transform 0.6s var(--ease);
}
.post:nth-child(odd) { transform: translateY(18px); }
.post:hover { transform: rotate(-3deg) scale(1.03); }
.post .post__can { width: 40%; transform: rotate(var(--rot)); }
.post .post__tag { position: absolute; left: 12px; bottom: 12px; background: var(--cream); border: 1.5px solid var(--ink); border-radius: 99px; padding: 4px 10px; font: 500 11px var(--f-mono); }
.post .post__big { position: absolute; inset: auto 0 18% 0; text-align: center; font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1; font-weight: 900; font-size: 2.6rem; line-height: 0.9; color: var(--cream); transform: rotate(-8deg); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 60px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; transition: transform 0.4s var(--ease), background 0.3s; }
.socials a:hover { transform: translateY(-3px) rotate(-10deg); background: var(--yuzu); }
.socials svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1.5px solid var(--line); }
.footer__top {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 40px;
  padding: 28px var(--gutter) 30px;
  border-bottom: 1.5px solid var(--line);
}
.news { display: flex; align-items: center; border-bottom: 1.5px solid var(--ink); margin-top: 18px; max-width: 380px; }
.news input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; font: 13px var(--f-mono); color: var(--ink); outline: 0; }
.news input::placeholder { color: var(--ink-2); }
.news button { width: 36px; height: 36px; display: grid; place-items: center; transition: transform 0.4s var(--ease); }
.news button:hover { transform: translateX(4px); }
.news button svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.news__msg { min-height: 1.6em; margin-top: 8px; color: var(--matcha-deep); text-transform: none; letter-spacing: 0; }
.news__msg.is-error { color: #b4361f; }
.mascot--ice { width: 120px; margin-top: 16px; stroke-width: 4; }
.mascot--ice .cube { fill: #fff; transform-origin: 78px 90px; animation: melt 3.5s ease-in-out infinite; }
.mascot--ice .puddle { fill: var(--sky); stroke-width: 3; }
.mascot--ice .sparkle { stroke: var(--matcha-deep); }
@keyframes melt { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.95) scaleX(1.03); } }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; font-size: 14px; }
.footer__cols div { display: flex; flex-direction: column; gap: 8px; }
.footer__cols a { text-decoration: none; width: max-content; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1.5px no-repeat; transition: background-size 0.4s var(--ease-out); }
.footer__cols a:hover { background-size: 100% 1.5px; }
.footer__word {
  padding: clamp(24px, 3vw, 40px) var(--gutter) 0;
  font-weight: 900;
  font-size: clamp(3rem, 12.2vw, 13rem);
  line-height: 1; letter-spacing: -0.04em;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  padding-bottom: 0.14em;
}
.footer__word .ch { display: inline-block; transition: transform 0.5s var(--ease), color 0.3s; }
.footer__word .ch:hover { transform: translateY(-0.12em) rotate(-6deg); color: var(--matcha-deep); }
.footer__legal { padding: 20px var(--gutter) 34px; text-align: center; display: flex; flex-direction: column; gap: 12px; text-transform: none; letter-spacing: 0.01em; font-size: 11px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product:nth-child(2n) { border-right: 0; }
  .product:nth-child(n + 3) { border-top: 1.5px solid var(--line); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav__links { display: none; }
  .logo { font-size: 30px; }
  .nav__icons { grid-column: 3; }
  .icon-btn { width: 36px; height: 36px; }
  .hero { padding-top: 110px; padding-bottom: 170px; justify-content: flex-start; }
  .hero__can { right: -4%; top: auto; bottom: 120px; transform: rotate(14deg); width: 46vw; }
  .hero__sticker { width: 86px; font-size: 12px; left: 6%; right: auto; bottom: 120px; }
  .hero__title { font-size: 21vw; }
  .doodle-burst { width: 64px; top: -48px; }
  .hero__cta { bottom: 34px; }
  .feature, .story { grid-template-columns: 1fr; }
  .feature__art .sticker { right: -6px; }
  .recipes__grid { grid-template-columns: 1fr; gap: 28px; }
  .wild__head { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================
   Bag + checkout (demo)
   ========================================================= */
.cartd { z-index: 65; }
.cartd__panel { overflow: hidden; }
.cartd__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px 12px;
  padding: 18px clamp(18px, 4vw, 30px) 14px;
  border-bottom: 1.5px solid var(--ink);
  background: var(--cream);
}
.cartd__head #cartBack[hidden] + .cartd__title { grid-column: 1 / 3; }
.cartd__title { font-weight: 900; font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
.cartd__steps {
  grid-column: 1 / -1; display: flex; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none;
  font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2);
}
.cartd__steps li { flex: 1; padding-top: 8px; border-top: 3px solid rgba(38, 21, 12, 0.15); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartd__steps li.is-past { border-color: var(--matcha); }
.cartd__steps li.is-on { border-color: var(--ink); color: var(--ink); }
.cartd__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px clamp(18px, 4vw, 30px) 24px; }
.cartd__step[hidden] { display: none; }

.ship-meter { margin-bottom: 14px; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 16px; background: var(--matcha-pale); font-size: 15px; }
.ship-meter[hidden] { display: none; }
.ship-meter__track { display: block; height: 8px; margin-top: 8px; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; overflow: hidden; }
.ship-meter__track i { display: block; height: 100%; background: var(--matcha-deep); transform-origin: left; transition: transform 0.6s var(--ease-out); }

.lines { list-style: none; margin: 0; padding: 0; }
.bline { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.bline__thumb { width: 64px; aspect-ratio: 1; display: grid; place-items: center; background: var(--bg); border: 1.5px solid var(--ink); border-radius: 14px; }
.bline__thumb svg { width: 46%; height: auto; rotate: -8deg; }
.bline__info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.bline__info b { font-weight: 700; font-size: 16px; line-height: 1.15; }
.bline__meta { font: 12.5px var(--f-mono); color: var(--ink-2); }
.bline__end { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; }
.bline__end b { font-weight: 500; }
.bline__rm { font: 12px var(--f-mono); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 6px 0; }
.qty--sm { margin-top: 4px; }
.qty--sm button { width: 36px; min-height: 36px; font-size: 18px; }
.qty--sm span { min-width: 20px; font-size: 14px; }

.cartd__empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 0; }
.cartd__empty[hidden] { display: none; }
.cartd__empty-cans { display: flex; align-items: flex-end; gap: 10px; margin-bottom: 8px; }
.cartd__empty-cans svg { width: 52px; height: auto; }
.cartd__empty-cans svg:nth-child(1) { rotate: -10deg; }
.cartd__empty-cans svg:nth-child(2) { width: 62px; }
.cartd__empty-cans svg:nth-child(3) { rotate: 9deg; }
.cartd__empty-title { font-weight: 800; font-size: 1.5rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.cartd__empty-text { color: var(--ink-2); max-width: 30ch; margin-bottom: 8px; }

/* checkout form */
.co { border: 0; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.co legend { padding: 0; margin-bottom: 10px; }
.co__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co__row--zip { grid-template-columns: 0.8fr 1.2fr; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font: 500 12px var(--f-mono); color: var(--ink-2); }
.field small { font-size: inherit; opacity: 0.8; }
.field input {
  width: 100%; min-width: 0; padding: 12px 14px;
  border: 1.5px solid var(--ink); border-radius: 12px; background: #fff;
  font: 16px var(--f-display); color: var(--ink);   /* 16px: iOS does not zoom on focus */
  transition: box-shadow 0.2s, border-color 0.2s;
}
.field input:focus { outline: 0; box-shadow: 3px 3px 0 var(--ink); }
.field.is-error input { border-color: #b4361f; background: #fff6f3; }
.field__err { min-height: 0; font: 12px var(--f-mono); font-style: normal; color: #b4361f; }
.co__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.co__choices--pay { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co__choices .fmt__box small { font: 11px var(--f-mono); color: var(--ink-2); }
.co__note { font: 12px/1.5 var(--f-mono); color: var(--ink-2); padding: 10px 12px; border: 1.5px dashed rgba(38, 21, 12, 0.4); border-radius: 12px; }

/* totals + footer */
.totals { margin: 0; display: flex; flex-direction: column; gap: 6px; font: 14px var(--f-mono); font-variant-numeric: tabular-nums; }
.totals:empty { display: none; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals dd { margin: 0; }
.totals .is-total { padding-top: 8px; margin-top: 2px; border-top: 1.5px solid var(--line); font-weight: 500; font-size: 16px; color: var(--ink); }
.cartd__foot { display: flex; flex-direction: column; gap: 12px; padding: 14px clamp(18px, 4vw, 30px) calc(14px + env(safe-area-inset-bottom)); border-top: 1.5px solid var(--ink); background: var(--cream); }
.cartd__foot[hidden] { display: none; }
.cartd__cta { width: 100%; }
.cartd__cta:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.cartd__cta.is-busy { background: var(--matcha-deep); }
.cartd__demo { font: 11px var(--f-mono); color: var(--ink-2); text-align: center; }

/* confirmation */
.done { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 8px; outline: 0; }
.done__sticker { position: relative; width: 104px; font-size: 18px; margin-bottom: 4px; }
.done__title { font-weight: 900; font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; text-wrap: balance; }
.done__text { color: var(--ink-2); }
.done__text b { color: var(--ink); }
.lines--recap { margin: 6px 0; border-top: 1.5px solid var(--line); }
.done__more { align-self: center; margin-top: 14px; }

/* "added to bag" toast */
.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  display: flex; align-items: center; gap: 14px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 12px 12px 16px;
  background: var(--ink); color: var(--cream);
  border-radius: 16px; box-shadow: 4px 4px 0 var(--matcha);
  font-size: 15px;
  opacity: 0; translate: 0 20px; pointer-events: none;
  transition: opacity 0.3s, translate 0.5s var(--ease);
}
.toast.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.toast button { flex-shrink: 0; padding: 8px 12px; border-radius: 99px; background: var(--yuzu); color: var(--ink); font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; }

@media (max-width: 767px) {
  .cartd__title { font-size: 1.45rem; }
  .co__choices--pay { grid-template-columns: 1fr; }
  .co__choices--pay .fmt__box { flex-direction: row; justify-content: space-between; align-items: center; }
  .toast { left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: none; }
  .bline { grid-template-columns: 56px 1fr auto; gap: 12px; }
  .bline__thumb { width: 56px; }
}

/* looping decorations pause while their section is off screen (set in main.js) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* short phones (iPhone SE, mini…): smaller can so it stays clear of the subtitle */
@media (max-width: 767px) and (max-height: 740px) {
  .hero__title { font-size: 19vw; }
  .hero__can { width: 36vw; bottom: 96px; }
  .hero__sticker { bottom: 96px; }
}

/* in-page links stop below the sticky header (the glide itself is done in main.js: a CSS
   scroll-behavior on <html> would also animate every scripted scroll) */
html { scroll-padding-top: 76px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* split wordmark: the gap between the halves is always centred on the can */
.rise__word { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.rise__word span:first-child { justify-self: end; }
.rise__word span:last-child { justify-self: start; }
/* no scroll scene (reduced motion, no JS): the halves already stand apart around the can */
.rise:not(.rise--scroll) .rise__word { column-gap: 16vw; }
@media (max-width: 767px) { .rise:not(.rise--scroll) .rise__word { column-gap: 22vw; } }

/* =========================================================
   Product cards: open the detail drawer
   ========================================================= */
.product__open { position: absolute; inset: 0; z-index: 1; cursor: pointer; border-radius: 0; }
.product__open:focus-visible { outline-offset: -6px; }
.product__can, .product__hint { pointer-events: none; }
.product__add { z-index: 2; }
.product__hint {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  padding: 7px 12px; border: 1.5px solid var(--ink); border-radius: 99px;
  background: var(--cream);
  font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: 0.06em;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.5s var(--ease);
}
.product:hover .product__hint, .product__open:focus-visible ~ .product__hint { opacity: 1; transform: none; }
[data-art="can"][data-flavor] { cursor: pointer; }

/* =========================================================
   Drawer
   ========================================================= */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
html.drawer-open, html.drawer-open body { overflow: hidden; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(38, 21, 12, 0.45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(560px, 100%);
  display: flex; flex-direction: column;
  background: var(--cream);
  border-left: 1.5px solid var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer__hero {
  position: relative; flex-shrink: 0;
  height: clamp(280px, 42vh, 380px);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 1px 1px, rgba(38, 21, 12, 0.13) 1.5px, transparent 2px) 0 0 / 22px 22px,
    var(--d-tint, #e6f4d2);
  border-bottom: 1.5px solid var(--ink);
  transition: background-color 0.5s;
  overflow: hidden;
}
.drawer__hero::before {
  content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: var(--d-bg); border: 1.5px solid var(--ink);
  transition: background 0.5s;
}
.drawer__can { position: relative; width: clamp(110px, 26%, 150px); transform: rotate(-6deg); }
.drawer__close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.drawer__close svg { stroke-width: 1.8; }
.drawer__nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; background: var(--cream); border: 1.5px solid var(--ink); }
.drawer__nav--prev { left: 14px; }
.drawer__nav--next { right: 14px; }
.drawer__caf { left: 18px; top: 16px; width: 86px; font-size: 12px; }
.drawer__body { padding: 26px clamp(18px, 4vw, 34px) 40px; display: flex; flex-direction: column; gap: 26px; }
.drawer__text { display: flex; flex-direction: column; gap: 6px; }
.drawer__name { font-family: var(--f-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 900; font-size: clamp(2rem, 6vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; margin-top: 6px; }
.drawer__tagline { font-weight: 700; font-size: 1.2rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.drawer__desc { color: var(--ink-2); max-width: 46ch; }
.drawer__block { display: flex; flex-direction: column; gap: 12px; }
.drawer__block h3 { font-weight: 500; }

.picker { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.pick {
  aspect-ratio: 3 / 4;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 14px;
  background: #fff;
  transition: transform 0.4s var(--ease), background 0.3s, box-shadow 0.3s;
}
.pick svg { width: 46%; height: auto; pointer-events: none; }
.pick:hover { transform: translateY(-3px) rotate(-3deg); }
.pick[aria-checked="true"] { background: var(--bg); box-shadow: 3px 3px 0 var(--ink); transform: translateY(-3px); }

.taste { display: flex; flex-direction: column; gap: 10px; }
.meter { display: grid; grid-template-columns: 110px 1fr; align-items: center; font-size: 15px; }
.meter__dots { display: flex; gap: 6px; }
.meter__dots i { width: 22px; height: 12px; border-radius: 99px; border: 1.5px solid var(--ink); background: transparent; transition: background 0.4s; }
.meter__dots i.on { background: var(--d-bg, var(--matcha)); }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fmt { position: relative; cursor: pointer; }
.fmt input { position: absolute; opacity: 0; pointer-events: none; }
.fmt__box {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px; height: 100%;
  border: 1.5px solid var(--ink); border-radius: 14px;
  background: #fff;
  transition: background 0.3s, box-shadow 0.3s, transform 0.4s var(--ease);
}
.fmt__box b { font-weight: 600; font-size: 14px; }
.fmt__price { font: 500 12px var(--f-mono); }
.fmt__box em { position: absolute; top: -10px; right: 8px; font: 500 10px/1 var(--f-mono); font-style: normal; background: var(--yuzu); border: 1.5px solid var(--ink); border-radius: 99px; padding: 4px 6px; }
.fmt input:checked + .fmt__box { background: var(--yuzu); box-shadow: 3px 3px 0 var(--ink); transform: translateY(-2px); }
.fmt input:focus-visible + .fmt__box { outline: 2px solid var(--ink); outline-offset: 3px; }

.buy { display: flex; gap: 10px; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--ink); border-radius: 99px; background: #fff; }
.qty button { width: 42px; height: 100%; min-height: 52px; font-size: 20px; border-radius: 99px; transition: background 0.3s; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 24px; text-align: center; font: 500 15px var(--f-mono); font-variant-numeric: tabular-nums; }
.btn-add {
  flex: 1;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 22px; min-height: 52px;
  border: 1.5px solid var(--ink); border-radius: 99px;
  background: var(--ink); color: var(--cream);
  font: 500 14px var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em;
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s;
}
.btn-add:hover { transform: rotate(-1.5deg) scale(1.02); background: var(--matcha-deep); }
.btn-add.is-done { background: var(--matcha); color: var(--ink); }
.btn-add__total { font-variant-numeric: tabular-nums; }

.facts { border-top: 1.5px solid var(--line); }
.facts details { border-bottom: 1.5px solid var(--line); }
.facts summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0; font-size: 16px;
}
.facts summary::-webkit-details-marker { display: none; }
.facts summary::after { content: "+"; font: 400 20px var(--f-mono); transition: transform 0.4s var(--ease); }
.facts details[open] summary::after { transform: rotate(45deg); }
.facts p { padding-bottom: 14px; font: 13px/1.6 var(--f-mono); color: var(--ink-2); }
.facts p b { color: var(--ink); font-weight: 500; }
.table-wrap { overflow-x: auto; padding-bottom: 16px; }
.facts table { width: 100%; border-collapse: collapse; font: 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }
.facts th, .facts td { padding: 8px 6px; text-align: right; border-bottom: 1px dashed rgba(38, 21, 12, 0.3); white-space: nowrap; }
.facts th[scope="row"], .facts thead th:first-child { text-align: left; font-weight: 500; }
.facts thead th { font-weight: 500; color: var(--ink-2); }

@media (max-width: 767px) {
  .drawer__panel { top: auto; left: 0; height: 92dvh; width: 100%; border-left: 0; border-top: 1.5px solid var(--ink); border-radius: 22px 22px 0 0; }
  .drawer__hero { height: 250px; }
  .picker { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .pick { border-radius: 10px; }
  .meter { grid-template-columns: 96px 1fr; }
  .meter__dots i { width: 18px; }
  .fmt__box { padding: 10px; }
  .fmt__box b { font-size: 13px; }
}

/* =========================================================
   Phones: menu, touch targets, readable sizes
   ========================================================= */
@media (max-width: 767px) {
  /* menu button + dropdown for the hidden nav links */
  .nav__menu { display: grid; }
  .nav__menu path { transform-box: fill-box; transform-origin: center; transition: transform 0.4s var(--ease); }
  .nav__menu[aria-expanded="true"] .l1 { transform: translateY(3px) rotate(45deg); }
  .nav__menu[aria-expanded="true"] .l2 { transform: translateY(-3px) rotate(-45deg); }
  .nav.is-menu-open { background: var(--cream); box-shadow: 0 1px 0 var(--line); }
  .nav.is-menu-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: calc(100% + 8px); left: var(--gutter); right: var(--gutter);
    padding: 6px 20px;
    background: var(--cream);
    border: 1.5px solid var(--ink); border-radius: 22px;
    box-shadow: 4px 4px 0 var(--ink);
    font-weight: 700; font-size: 22px;
    font-variation-settings: "SOFT" 100, "WONK" 1;
  }
  .nav.is-menu-open .nav__links a { padding: 12px 0; text-decoration: none; }
  .nav.is-menu-open .nav__links a + a { border-top: 1.5px solid var(--line); }

  /* 44px touch targets */
  .icon-btn { width: 44px; height: 44px; }
  .nav__icons { gap: 8px; }
  .logo { padding-block: 7px; }
  .hero { margin-top: -72px; min-height: max(600px, calc(100svh - 36px)); }   /* minus the top bar, so the CTA sits inside the first screen */
  .product__add { width: 44px; height: 44px; right: 10px; bottom: 10px; }
  .socials { gap: 12px; }
  .socials a { width: 44px; height: 44px; }
  .news button { width: 44px; height: 44px; }
  .footer__cols { font-size: 15px; }
  .footer__cols div { gap: 0; }
  .footer__cols a { padding: 12px 0; min-width: 44px; background-position: 0 calc(100% - 9px); }

  /* readable text; inputs at 16px so iOS does not zoom on focus */
  .news input { font-size: 16px; padding: 12px 0; }
  .fmt input { font-size: 16px; }
  .acc__body p, .mono-p { font-size: 15px; }
  .product__notes { font-size: 12.5px; }
  .product__price { font-size: 13px; }
  .review figcaption { font-size: 13px; }
  .footer__legal { font-size: 12px; }
  .facts p { font-size: 15px; }
  .facts table { font-size: 13.5px; }
  .fmt__box em { font-size: 11px; }

  /* keep tilted/wobbling decorations inside the screen */
  .feature__art .sticker { right: 8px; }

  /* nav: menu left, logo centred, cart right (search/account have no page yet) */
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav__icons { display: contents; }
  .nav__extra { display: none; }
  .nav__menu { grid-area: 1 / 1; justify-self: start; }
  .logo { grid-area: 1 / 2; }
  .cart { grid-area: 1 / 3; justify-self: end; }

  /* giant split word: both halves stay on screen once the can pushes them apart */
  /* giant word: same pinned scene as on desktop, sized for a phone. Split as "mo|ssa" so
     both halves are about as wide and stay on screen when they part. */
  .rise__word { font-size: 27vw; }
  .rise__pin { height: 100svh; min-height: 520px; }
  .rise--scroll { height: calc(max(100svh, 520px) + 60svh); }   /* shorter run: the scene was two screens of scrolling */
  .rise__can { width: 27vw; }   /* slimmer can, wider split (main.js): it sits in the gap instead of hiding two letters */

  /* shorter feature card */
  .scene { aspect-ratio: 5 / 4; }
  .scene svg { width: 40%; }

  /* reviews: heading + mascot side by side, cards swipe sideways */
  .reviews__head { align-items: center; }
  .reviews__head .h2 { font-size: 1.85rem; }
  .reviews__wall {
    display: flex; gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 18px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .reviews__wall::-webkit-scrollbar { display: none; }
  .review, .review:nth-child(2), .review:nth-child(3) { flex: 0 0 84%; scroll-snap-align: start; margin-top: 0; rotate: 0deg; box-shadow: 4px 4px 0 var(--ink); }
  .review blockquote { font-size: 1.3rem; }

  /* footer: the ice cube sits next to the club heading instead of on its own row */
  .footer__top { gap: 8px; }
  .footer__club { position: relative; padding-right: 96px; }
  .mascot--ice { position: absolute; right: 0; top: -4px; width: 84px; margin: 0; }
  .footer__cols div:last-child { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; column-gap: 24px; border-top: 1.5px solid var(--line); margin-top: 6px; }

  /* shop: all six drinks in one swipeable row instead of a tall 2-column grid */
  .shop { padding-top: 64px; padding-bottom: 56px; }
  .statement { margin-bottom: 18px; font-size: 1.75rem; }
  .shop__hint {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin: 0 0 18px; color: var(--ink-2);
  }
  .shop__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateX(5px); } }
  .products {
    display: flex; gap: 12px;
    padding: 6px var(--gutter) 14px; margin-bottom: 8px;
    border: 0;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .products::-webkit-scrollbar { display: none; }
  .product, .product.is-extra, .product:nth-child(n) {
    display: flex; flex: 0 0 64%;
    scroll-snap-align: start;
    border: 1.5px solid var(--ink); border-radius: 20px;
    box-shadow: 4px 4px 0 var(--ink);
  }
  .product__stage { aspect-ratio: 1 / 1.05; }
  .product__can { width: 38%; }
  .product__meta { grid-template-columns: 1fr; gap: 2px; padding: 12px 14px 14px; }
  .product__name { font-size: 17px; }
  .product__price { order: 3; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
  .shop .center { display: none; }   /* "Tout voir": everything is already in the row */

  /* story: the bean mascot sits beside the text instead of taking a screen of its own */
  .story { gap: 28px; padding-bottom: 72px; }
  .story__copy { display: grid; grid-template-columns: 96px 1fr; align-items: center; text-align: left; gap: 16px 18px; }
  .mascot--bean { width: 96px; grid-row: 1; }
  .story__text { font-size: 1.05rem; }
  .story__copy .pill { grid-column: 1 / -1; justify-self: center; }

  /* hero subtitle keeps to the left, clear of the tilted can */
  .hero__sub { max-width: 64vw; }

  /* tighter vertical rhythm: desktop paddings read as empty screens on a phone */
  .shop { padding-bottom: 20px; }
  .feature { padding-top: 24px; padding-bottom: 56px; }
  .accordion { margin-top: 24px; }
  .reviews { padding-top: 48px; padding-bottom: 52px; }
  .reviews__head { margin-bottom: 20px; }
  .story { padding-bottom: 56px; }
  .recipes { padding-top: 52px; padding-bottom: 52px; }
  .recipes .h2 { margin-bottom: 24px; }
  .wild { padding-top: 52px; padding-bottom: 44px; }
  .wild__head { gap: 12px; margin-bottom: 20px; }
  .socials { margin-top: 28px; }

  /* floating shortcut to the shop, shown once the hero is out of view */
  .m-cta {
    display: inline-flex; align-items: center; gap: 10px;
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
    padding: 10px 18px 10px 12px;
    background: var(--yuzu); color: var(--ink);
    border: 1.5px solid var(--ink); border-radius: 99px;
    box-shadow: 3px 3px 0 var(--ink);
    font: 500 14px var(--f-mono); text-transform: uppercase; letter-spacing: 0.04em; text-decoration: none;
    white-space: nowrap;
    translate: -50% 160%;
    transition: translate 0.5s var(--ease);
    pointer-events: none;
  }
  .m-cta.is-on { translate: -50% 0; pointer-events: auto; }
  .m-cta:active { scale: 0.96; }
  .m-cta__from { text-transform: none; letter-spacing: 0; color: var(--ink-2); }
  .m-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .m-cta__cans { display: flex; }
  .m-cta__cans i { width: 12px; height: 22px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--c); }
  .m-cta__cans i + i { margin-left: -4px; }

  /* recipes: swipe sideways instead of three full-height cards */
  .recipes__grid {
    display: flex; gap: 14px;
    margin-inline: calc(-1 * var(--gutter));
    padding: 6px var(--gutter) 10px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .recipes__grid::-webkit-scrollbar { display: none; }
  .recipe { flex: 0 0 76%; scroll-snap-align: start; }

  /* product sheet: grab handle, and "Ajouter" pinned to the bottom of the sheet */
  .drawer__hero::after {
    content: ""; position: absolute; top: 8px; left: 50%; translate: -50% 0;
    width: 42px; height: 5px; border-radius: 99px; background: rgba(38, 21, 12, 0.35);
  }
  .drawer__hero { touch-action: pan-y; }
  .drawer__body { padding-bottom: 0; }
  .buy {
    order: 99;
    position: sticky; bottom: 0; z-index: 3;
    margin-inline: calc(-1 * clamp(18px, 4vw, 34px));
    padding: 12px clamp(18px, 4vw, 34px) calc(12px + env(safe-area-inset-bottom));
    background: var(--cream);
    border-top: 1.5px solid var(--ink);
  }
  .qty button { width: 46px; }
}

/* touch screens: no hover state left stuck after a tap */
@media (hover: none) {
  .pill:hover, .logo:hover, .icon-btn:hover, .socials a:hover, .btn-add:hover,
  .product__add:hover, .product:hover .product__can, .pick:not([aria-checked="true"]):hover,
  .recipe:hover .recipe__img, .recipe:hover .recipe__img svg, .footer__word .ch:hover { transform: none; }
  .pill:hover { box-shadow: none; }
  .icon-btn:hover, .socials a:hover { background: var(--cream); }
  .product:hover .product__stage::before { clip-path: circle(0% at 50% 60%); }
  .product:hover .product__hint { opacity: 0; }
  .pill:active { transform: scale(0.97); }
  /* a tap leaves :hover on the element: no stuck colour, lift or tilt either */
  .arrow:hover, .news button:hover, .post:nth-child(even):hover { transform: none; }
  .post:nth-child(odd):hover { transform: translateY(18px); }
  .review:hover { translate: none; }
  .drawer__nav:hover { background: var(--cream); }
  .product__add:not(.is-done):hover { background: #fff; }
  .qty button:hover { background: transparent; }
  .btn-add:not(.is-done):not(.is-busy):hover { background: var(--ink); }
  .footer__cols a:hover { background-size: 0 1.5px; }
}

/* touch tablets (iPad…): desktop layout, finger-sized targets, no zoom on the e-mail field */
@media (pointer: coarse) and (min-width: 768px) {
  .icon-btn, .product__add, .socials a, .news button { width: 44px; height: 44px; }
  .nav__links a { padding: 11px 0; }
  .logo { padding-block: 5px; }
  .news input { font-size: 16px; padding: 12px 0; }
  .footer__cols div { gap: 0; }
  .footer__cols a { padding: 12px 0; min-width: 44px; background-position: 0 calc(100% - 9px); }
}

/* tablets: the two-column product grid gets square stages instead of tall 4:5 cards */
@media (min-width: 768px) and (max-width: 1024px) {
  .product__stage { aspect-ratio: 1 / 1; }
  .product__can { width: 34%; }
}
