/* =========================================================
   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%; }
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; }

.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: 10px 14px; 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 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); }

/* 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);
  filter: drop-shadow(18px 28px 0 rgba(38, 21, 12, 0.18));
}
.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; will-change: transform; }
.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; }
.hero__cta { position: absolute; left: 50%; bottom: 48px; z-index: 3; translate: -50% 0; 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); }
.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; }
.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); filter: drop-shadow(10px 14px 0 rgba(38, 21, 12, 0.12)); }
.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; }
.scene {
  position: relative;
  aspect-ratio: 5 / 6;
  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: 56%; 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(80px, 10vw, 130px) var(--gutter) 70px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
}
.reviews__track { display: grid; }
.review {
  grid-area: 1 / 1;
  text-align: center;
  opacity: 0; visibility: hidden;
  transform: translateY(24px) rotate(1deg);
  transition: opacity 0.5s var(--ease-out), transform 0.8s var(--ease), visibility 0.5s;
}
.review.is-active { opacity: 1; visibility: visible; transform: none; }
.review blockquote {
  max-width: 820px; margin: 0 auto;
  font-weight: 800; font-size: clamp(1.6rem, 3.1vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}
.review figcaption { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--c);
  display: grid; place-items: center;
  font: 500 13px var(--f-mono);
}
.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; }
.dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); transition: background 0.3s, transform 0.4s var(--ease); }
.dots button[aria-selected="true"] { background: var(--ink); transform: scale(1.2); }

/* 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 { position: absolute; right: clamp(8px, 4vw, 70px); top: 30px; width: clamp(90px, 10vw, 150px); }
.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__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%;
  filter: drop-shadow(14px 22px 0 rgba(38, 21, 12, 0.16));
}

/* =========================================================
   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%; filter: drop-shadow(10px 16px 0 rgba(38, 21, 12, 0.15)); }
.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: 18px; }

/* =========================================================
   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; width: max-content; will-change: transform; }
.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)); filter: drop-shadow(8px 12px 0 rgba(38, 21, 12, 0.15)); }
.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; }
  .reviews { grid-template-columns: 1fr; padding-top: 140px; }
  .arrow { display: none; }
  .mascot--cup { left: 50%; right: auto; translate: -50% 0; }
  .recipes__grid { grid-template-columns: 1fr; gap: 28px; }
  .wild__head { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@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; }

/* =========================================================
   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); filter: drop-shadow(10px 16px 0 rgba(38, 21, 12, 0.16)); }
.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; }
}
