/* Els Cafès del Manel — sistema visual
   Fons clar i càlid, text en marró cafè molt fosc i el marró de la marca (#68452d) als botons i a la
   secció dels cafès, amb la sorra (#f0e3d2) de la seva web actual. Un color per cafè. Tipografia gran
   (Bricolage Grotesque) i text en Geist. */

:root {
  --bg: #f6f3ef;
  --paper: #fdfbf8;
  --ink: #2b1d14;
  --ink-2: #4a3a2e;
  --mute: #7d6b5d;
  --line: rgba(104, 69, 45, 0.16);
  --brand: #68452d;
  --brand-2: #4f3321;
  --sand: #f0e3d2;
  --dark: #2b1d14;
  --tone: #b5473a;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --pad: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 20px;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --card: linear-gradient(180deg, #f8f8f7 0%, #ebebe8 100%);
  --card-on: linear-gradient(180deg, #ffffff 0%, #f5f5f3 100%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.label { font: 500 13px/1.3 var(--sans); color: var(--mute); }
.display {
  font: 650 clamp(40px, 5.4vw, 84px)/0.95 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.045em;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }

/* ---------- Botons ----------
   Píndola. Microinteraccions: el fons s'omple de baix a dalt, el text puja i en surt un altre,
   la fletxa s'avança, es tensa en prémer i segueix una mica el cursor (site.js). */
.btn {
  --fill: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 99px;
  background: var(--brand); color: #fff; text-decoration: none;
  font: 500 15px/1 var(--sans);
  transition: transform 0.5s var(--ease), translate 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.5s var(--ease), background 0.3s;
  will-change: transform;
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--fill); transform: translateY(102%); transition: transform 0.6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover { box-shadow: 0 14px 28px -16px rgba(43, 29, 20, 0.55); }
.btn:active { transform: scale(0.96) !important; transition-duration: 0.15s; }
.btn .lbl { display: inline-grid; overflow: hidden; line-height: 1.25; }
.btn .lbl > span { grid-area: 1 / 1; transition: transform 0.55s var(--ease); }
.btn .lbl > span + span { transform: translateY(105%); }
.btn:hover .lbl > span:first-child, .btn:focus-visible .lbl > span:first-child { transform: translateY(-105%); }
.btn:hover .lbl > span + span, .btn:focus-visible .lbl > span + span { transform: none; }
.btn .arr { display: inline-block; transition: transform 0.55s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover .arr.down { transform: translateY(3px); }
.btn.light { --fill: var(--brand); background: rgba(255, 255, 255, 0.78); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--brand), 0 14px 28px -16px rgba(43, 29, 20, 0.45); }
.btn.wide { width: 100%; justify-content: space-between; min-height: 58px; font-size: 16px; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn.added { --fill: #2f6b45; }
.btn.added::before { transform: none; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.5s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* ---------- Capçalera ----------
   Marca a l'esquerra en majúscules condensades, navegació centrada,
   compte i cistella a la dreta, línia fina a sota. */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  height: 72px; padding: 0 var(--pad);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.brand { justify-self: start; display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 24px; width: auto; }
.brand span { font: 700 23px/1 var(--display); font-stretch: 75%; font-variation-settings: "opsz" 96; text-transform: uppercase; letter-spacing: 0.005em; }
.nav { display: flex; gap: clamp(22px, 2.6vw, 40px); }
.nav a, .bar-link { position: relative; text-decoration: none; font: 500 13px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink); }
.nav a::after, .bar-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after, .bar-link:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-end { justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2vw, 30px); }
.cart-btn b { font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-btn.bump b { display: inline-block; animation: bump 0.6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.6); } }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); place-items: center; }
.menu-btn i, .menu-btn i::before { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-btn i { position: relative; transform: translateY(-3px); }
.menu-btn i::before { content: ""; position: absolute; top: 6px; }
.menu-open .menu-btn i { transform: translateY(0) rotate(45deg); }
.menu-open .menu-btn i::before { transform: translateY(-6px) rotate(-90deg); }

.menu {
  position: fixed; inset: 0; z-index: 25; background: var(--bg);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 32px;
  padding: 100px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.7s var(--ease); visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu nav { display: grid; }
.menu nav a { font: 650 clamp(44px, 12vw, 72px)/1.02 var(--display); letter-spacing: -0.045em; text-decoration: none; padding: 4px 0; }
.menu .menu-foot { display: grid; gap: 6px; color: var(--mute); }
.menu .menu-foot a { text-decoration: none; color: var(--ink); }

/* ---------- Portada: barra isomètrica ---------- */
.story { position: relative; height: 470vh; }
.story-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #e7e6e3; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.story-fallback { display: none; }
.no-3d .story-fallback { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-pin::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    radial-gradient(140% 85% at 0% 100%, rgba(231, 230, 227, 0.9) 0%, rgba(231, 230, 227, 0.6) 34%, rgba(231, 230, 227, 0) 60%);
}
.hero-copy { position: absolute; z-index: 2; left: calc(var(--pad) + clamp(0px, 3.4vw, 64px)); bottom: clamp(64px, 13vh, 132px); width: min(1100px, 72vw); display: grid; gap: 20px; justify-items: start; }
.hero-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; animation: heroUp 1.1s 0.1s var(--ease) both; }
.hero-brand img { height: 26px; width: auto; }
.hero-name { font: 700 clamp(22px, 1.9vw, 30px)/1 var(--display); font-stretch: 75%; font-variation-settings: "opsz" 96; text-transform: uppercase; letter-spacing: 0.005em; }
.hero-tag { font-size: 14px; color: var(--ink-2); padding-left: 12px; border-left: 1px solid var(--line); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; width: 100%; }
.hero-title { font: 700 clamp(56px, 7.6vw, 136px)/0.86 var(--display); font-variation-settings: "opsz" 96; letter-spacing: -0.06em; white-space: nowrap; }
.hero-title i { font-style: normal; color: var(--tone); transition: color 0.6s; }
.hero-title .w { display: inline-block; }
.hero-sub { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
/* entrada de la portada (CSS: no depèn dels fotogrames del 3D) */
.hero-title .w { animation: heroIn 1.4s var(--ease) both; }
.hero-title .w:nth-child(2) { animation-delay: 0.07s; }
.hero-title .w:nth-child(3) { animation-delay: 0.14s; }
.hero-title .w:nth-child(4) { animation-delay: 0.21s; }
.hero-sub { animation: heroUp 1.1s 0.45s var(--ease) both; }
.hero-ctas { animation: heroUp 1.1s 0.55s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(0.5em); } }
@keyframes heroUp { from { opacity: 0; transform: translateY(24px); } }

.journey { position: absolute; z-index: 2; left: calc(var(--pad) + clamp(0px, 3.4vw, 64px)); bottom: clamp(64px, 13vh, 132px); width: min(400px, 40vw); pointer-events: none; }
.journey-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 24px; }
.journey-bar i { height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.journey-bar i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
.journey ol { list-style: none; margin: 0; padding: 0; display: grid; }
.journey li { grid-area: 1 / 1; display: grid; gap: 8px; align-content: end; opacity: 0; transform: translateY(14px); filter: blur(4px); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease), filter 0.6s var(--ease); }
.journey li.on { opacity: 1; transform: none; filter: none; }
.journey h2 { font: 600 clamp(26px, 2.4vw, 36px)/1.05 var(--display); letter-spacing: -0.035em; }
.journey p { color: var(--ink-2); font-size: 16px; max-width: 34ch; }
.journey .btn { pointer-events: auto; margin-top: 10px; justify-self: start; }

/* ---------- Seccions ---------- */
.sec { padding: clamp(96px, 13vw, 180px) 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .label { margin-bottom: 14px; }

/* La idea */
.idea { padding: clamp(120px, 18vw, 260px) 0 clamp(80px, 12vw, 170px); }
.idea .label { margin-bottom: 26px; }
.idea-text {
  font: 550 clamp(32px, 4.6vw, 74px)/1.04 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.04em;
  max-width: 19ch;
}
.idea-text .wd { display: inline-block; will-change: transform, opacity, filter; }
.idea-text .chips { display: inline-block; vertical-align: -0.1em; width: 1.9em; height: 0.82em; margin: 0 0.08em; border-radius: 99px; overflow: hidden; background: #2a1a10; }
.idea-text .chips img { width: 100%; height: 100%; object-fit: cover; }
.idea-text em { font-style: normal; color: var(--tone); transition: color 0.6s; }

/* ---------- Targetes de cafè ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: end; padding-top: 28px; }
.card {
  --tint: color-mix(in srgb, var(--c) 16%, #ebebe8);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  min-height: clamp(500px, 42vw, 600px); padding: clamp(20px, 2vw, 28px);
  border-radius: var(--radius); background: linear-gradient(180deg, #f8f8f7 0%, #efefec 46%, var(--tint) 100%);
  overflow: hidden; isolation: isolate;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, #ffffff 0%, #f6f6f4 50%, color-mix(in srgb, var(--c) 22%, #f1f1ee) 100%); opacity: 0; transition: opacity 0.6s var(--ease); }
.card::after { content: ""; position: absolute; z-index: -2; left: 50%; bottom: -30%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 30%, transparent), transparent); opacity: 0.55; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.card.on::after { opacity: 0.9; transform: scale(1.08); }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card .num { font: 500 13px/1 var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.card h3 { font: 650 clamp(26px, 2.3vw, 34px)/1 var(--display); letter-spacing: -0.04em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; } /* tota la targeta porta a la fitxa */
.card p { color: var(--mute); font-size: 15px; line-height: 1.45; max-width: 28ch; }
.card .origin { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.card .origin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.card-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.card-price b { font: 650 clamp(26px, 2.2vw, 32px)/1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.card-price span { font-size: 13px; color: var(--mute); }
.card-row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.card-row .btn.light { background: #fff; }
.card .shot { position: absolute; z-index: -1; left: 8%; width: 84%; bottom: -19%; aspect-ratio: 9 / 11; pointer-events: none; transform-origin: 50% 90%; transition: transform 0.9s var(--ease); }
.card .shot img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.card.on { transform: translateY(-26px); box-shadow: inset 0 1px 0 #fff, 0 34px 64px -30px rgba(20, 10, 4, 0.5); }
.card.on::before { opacity: 1; }
.card.on .shot { transform: translateY(-4%) rotate(-2.5deg) scale(1.05); }

/* La secció dels cafès, a l'inici: fons fosc propi, perquè es distingeixi */
.coffees { position: relative; background: var(--brand); color: var(--sand); border-radius: 32px 32px 0 0; padding: clamp(90px, 11vw, 150px) 0 clamp(110px, 13vw, 180px); overflow: hidden; isolation: isolate; --mute: rgba(240, 227, 210, 0.72); }
.coffees::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.07; background-size: 120px 120px; background-image: var(--panot); }
.coffees::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 45%; width: 90vw; height: 70vw; translate: -50% 0; background: radial-gradient(closest-side, rgba(240, 227, 210, 0.16), transparent 70%); pointer-events: none; }
.coffees .link { color: var(--sand); }
.coffees .card { color: var(--ink); --mute: #7d6b5d; }
.coffees + .sec { padding-top: clamp(110px, 13vw, 180px); }

/* La idea: pantalla sencera, fixa mentre es llegeix */
.idea { position: relative; height: 170vh; padding: 0; }
.idea-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-content: center; }
.idea .label { margin-bottom: 30px; }
.idea-text { font-size: clamp(40px, 6.2vw, 104px); max-width: 17ch; line-height: 1.02; }
.idea-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 2px; background: var(--line); max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto; }
.idea-progress i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (prefers-reduced-motion: reduce) { .idea { height: auto; } .idea-pin { position: static; height: auto; padding: 140px 0; } .idea-progress { display: none; } }

/* ---------- Preguntes ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.faq-side { position: sticky; top: 110px; display: grid; gap: 22px; justify-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font: 500 clamp(18px, 1.5vw, 22px)/1.25 var(--display); letter-spacing: -0.02em; }
.qa .pm { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.4s, transform 0.6s var(--ease); }
.qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.qa .pm::after { transform: rotate(90deg); }
.qa.open .pm { background: var(--ink); color: var(--bg); transform: rotate(180deg); }
.qa.open .pm::after { transform: rotate(0deg); }
.qa .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa.open .ans { grid-template-rows: 1fr; }
.qa .ans > div { overflow: hidden; }
.qa .ans p { padding: 0 60px 26px 0; color: var(--ink-2); max-width: 60ch; }

/* ---------- Peu ---------- */
.foot { background: var(--dark); color: var(--sand); margin-top: clamp(40px, 6vw, 80px); border-radius: 28px 28px 0 0; overflow: hidden; --line: rgba(240, 227, 210, 0.16); --mute: rgba(240, 227, 210, 0.6); }
.foot-tiles { height: 96px; background-size: 96px 96px; opacity: 0.16; }
.foot-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.foot-big { font: 700 clamp(56px, 9vw, 150px)/0.84 var(--display); letter-spacing: -0.06em; }
.foot-big i { font-style: normal; color: var(--tone); }
.foot-top .btn { --fill: #fff; background: var(--sand); color: var(--ink); }
.foot-top .btn:hover { color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding: 48px 0; }
.foot-cols h2 { font: 500 13px/1.3 var(--sans); color: var(--mute); margin-bottom: 16px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-cols .big a { font: 500 19px/1.3 var(--display); letter-spacing: -0.01em; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.foot-bottom a { color: inherit; }

/* ---------- Pàgines interiors ---------- */
.page-head { padding: 150px 0 clamp(40px, 5vw, 70px); display: grid; gap: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--mute); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

/* Producte */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); padding-top: 96px; align-items: start; }
.pdp-media { position: sticky; top: 88px; height: calc(100svh - 112px); min-height: 520px; border-radius: 24px; background: var(--card); overflow: hidden; }
.pdp-media canvas, .pdp-media .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.pdp-media canvas { cursor: grab; touch-action: pan-y; }
.pdp-media canvas.grabbing { cursor: grabbing; }
.pdp-media .ph { object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.pdp-media .ph.on { opacity: 1; }
.pdp-media .fallback { position: absolute; inset: 8% 10% 0; width: 80%; height: 92%; object-fit: contain; object-position: 50% 100%; }
.media-tabs { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 4px; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.media-tabs button { height: 34px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--mute); transition: background 0.3s, color 0.3s; }
.media-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.media-hint { position: absolute; right: 18px; bottom: 26px; z-index: 2; font-size: 13px; color: var(--mute); transition: opacity 0.4s; }
.pdp-info { display: grid; gap: 28px; padding: 24px 0 40px; }
.pdp-info h1 { font: 700 clamp(48px, 5.6vw, 92px)/0.88 var(--display); letter-spacing: -0.055em; font-variation-settings: "opsz" 96; }
.pdp-origin { display: inline-flex; align-items: center; gap: 10px; color: var(--mute); font-weight: 500; }
.pdp-origin::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.pdp-price { font: 600 30px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pdp-price small { font: 400 14px var(--sans); color: var(--mute); letter-spacing: 0; margin-left: 8px; }
.notes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.notes li { padding: 7px 13px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.opt { display: grid; gap: 12px; }
.opt-head { display: flex; justify-content: space-between; gap: 16px; }
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: rgba(104, 69, 45, 0.08); }
.seg button { position: relative; z-index: 1; height: 44px; border-radius: 99px; font-weight: 500; transition: color 0.3s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="false"] { color: var(--mute); }
.seg .pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 14px rgba(0, 0, 0, 0.06); transition: transform 0.55s var(--ease); }
.seg[data-i="1"] .pill { transform: translateX(100%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 42px; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chip .rec { margin-left: 7px; padding: 2px 7px; border-radius: 99px; background: var(--tone); color: #fff; font-size: 11px; font-weight: 600; }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: inline-flex; align-items: center; height: 58px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); }
.qty button { width: 44px; height: 100%; font-size: 18px; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.assure { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; color: var(--mute); font-size: 14px; }
.assure li { display: flex; gap: 10px; align-items: center; }
.assure li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: radial-gradient(circle, var(--ink) 0 2.5px, transparent 3px), rgba(104, 69, 45, 0.1); }

.pdp-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.pdp-more h2 { font: 600 24px/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 18px; }
.spec { margin: 0; }
.spec div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec div:first-child { border-top: 1px solid var(--line); }
.spec dt { color: var(--mute); }
.spec dd { margin: 0; text-align: right; }
.meter { display: flex; gap: 5px; margin: 6px 0 18px; }
.meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.meter i.f { background: var(--ink); }
.quote { font: 500 clamp(22px, 2vw, 28px)/1.25 var(--display); letter-spacing: -0.025em; }
.quote::before { content: ""; display: block; width: 36px; height: 3px; border-radius: 2px; background: var(--tone); margin-bottom: 18px; }

/* Catàleg: com el prepares + comparativa */
.method { background: var(--dark); color: var(--sand); border-radius: 28px; padding: clamp(36px, 5vw, 72px); --line: rgba(243, 243, 241, 0.16); --mute: rgba(243, 243, 241, 0.6); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 32px); margin-top: 40px; }
.method-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mopt { display: grid; align-content: space-between; gap: 30px; min-height: 160px; padding: 20px; border-radius: 16px; text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.5s var(--ease), color 0.4s; }
.mopt:hover { background: rgba(243, 243, 241, 0.06); }
.mopt svg { width: 42px; height: 42px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mopt span { font: 500 clamp(19px, 1.8vw, 24px)/1 var(--display); letter-spacing: -0.03em; }
.mopt[aria-checked="true"] { background: var(--bg); color: var(--ink); }
.method-result { position: relative; overflow: hidden; display: grid; align-content: space-between; gap: 32px; min-height: 330px; padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: var(--c, #2a241f); color: #fff; transition: background 0.7s var(--ease); }
.method-result h3 { font: 650 clamp(44px, 5vw, 80px)/0.88 var(--display); letter-spacing: -0.055em; }
.method-result p { opacity: 0.9; max-width: 30ch; margin-top: 12px; font-size: 17px; }
.method-result .mr-buy { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.method-result .btn { --fill: var(--bg); background: #fff; color: var(--ink); }
.method-result .btn:hover { color: var(--ink); }
.method-result .swap { animation: rise 0.7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 13px var(--sans); color: var(--mute); }
.compare tbody th { font: 600 20px/1.1 var(--display); letter-spacing: -0.02em; }
.compare tbody th a { text-decoration: none; }
.compare .meter { width: 110px; margin: 6px 0 0; }
.scroll-x { overflow-x: auto; }

/* Qui som */
.about-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-photo { border-radius: 24px; overflow: hidden; aspect-ratio: 900 / 638; background: #e9e6e1; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose { display: grid; gap: 18px; max-width: 64ch; font-size: 17px; color: var(--ink-2); }
.prose h2 { font: 600 clamp(26px, 2.6vw, 38px)/1.05 var(--display); letter-spacing: -0.035em; color: var(--ink); margin-top: 30px; }
.prose h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose a { text-underline-offset: 3px; }
.prose mark.pending, mark.pending { background: #fff2b8; color: #6a5200; padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.about-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 80px); }
.big-quote { font: 650 clamp(36px, 5vw, 80px)/0.98 var(--display); letter-spacing: -0.05em; max-width: 16ch; }

/* Contacte */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact-ways { display: grid; gap: 4px; margin-top: 30px; }
.contact-ways a { font: 600 clamp(24px, 2.6vw, 38px)/1.2 var(--display); letter-spacing: -0.03em; text-decoration: none; width: fit-content; }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; background: var(--card-on); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 16px; border: 0; border-radius: 12px; background: rgba(104, 69, 45, 0.07); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 0.3s, background 0.3s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.form small { color: var(--mute); }

/* Legal */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); align-items: start; }
.legal-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.legal-nav a { padding: 8px 12px; margin-left: -12px; border-radius: 10px; text-decoration: none; color: var(--mute); }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current="page"] { background: rgba(104, 69, 45, 0.08); color: var(--ink); font-weight: 500; }

/* ---------- Cistella ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(43, 29, 20, 0.4); opacity: 0; transition: opacity 0.5s var(--ease); }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(480px, 100vw);
  display: flex; flex-direction: column; background: var(--bg);
  transform: translateX(104%); transition: transform 0.7s var(--ease); box-shadow: -30px 0 80px rgba(0, 0, 0, 0.12);
}
.drawer.on { transform: none; }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-top h2 { font: 600 22px/1 var(--display); letter-spacing: -0.03em; }
.x { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 17px; transition: transform 0.4s var(--ease); }
.x:hover { transform: rotate(90deg); }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px; }
.item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.item .thumb { width: 72px; height: 84px; border-radius: 12px; background: var(--card); overflow: hidden; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; transform: scale(1.5); }
.item h3 { font: 600 18px/1.1 var(--display); letter-spacing: -0.02em; }
.item h3 a { text-decoration: none; }
.item p { color: var(--mute); font-size: 13px; margin-top: 4px; }
.item .rm { margin-top: 6px; font-size: 13px; color: var(--mute); text-decoration: underline; text-underline-offset: 2px; }
.item .pr { display: grid; gap: 8px; justify-items: end; font-weight: 600; font-variant-numeric: tabular-nums; }
.item .qty { height: 34px; }
.item .qty button { width: 32px; font-size: 15px; }
.drawer-foot { padding: 20px 22px 24px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer-foot .tot { display: flex; justify-content: space-between; align-items: baseline; }
.drawer-foot .tot b { font: 600 30px var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.drawer-foot small { color: var(--mute); }
.empty { padding: 50px 0; display: grid; gap: 18px; justify-items: start; }
.empty p { font: 500 28px/1.08 var(--display); letter-spacing: -0.03em; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform 0.6s var(--ease), opacity 0.4s, visibility 0s 0.6s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform 0.6s var(--ease), opacity 0.4s; }

/* Aparicions suaus */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Mòbil ---------- */
@media (max-width: 900px) {
  .nav, .account { display: none; }
  .menu-btn { display: grid; }
  .bar { grid-template-columns: 1fr auto; height: 64px; }
  .brand span { font-size: 19px; }

  .story { height: 430vh; }
  .story-pin::after { background: linear-gradient(0deg, rgba(231, 230, 227, 0.96) 0%, rgba(231, 230, 227, 0.82) 38%, rgba(231, 230, 227, 0) 62%); }
  .hero-copy { left: calc(var(--pad) + 4px); bottom: 44px; width: auto; right: var(--pad); gap: 14px; }
  .hero-title { font-size: clamp(48px, 14.5vw, 84px); white-space: normal; }
  .hero-tag { display: none; }
  .hero-row { flex-direction: column; align-items: flex-start; }
  .hero-sub { font-size: 16px; }
  .journey { left: calc(var(--pad) + 4px); width: auto; right: var(--pad); bottom: 44px; }
  .journey h2 { font-size: 26px; }
  .journey p { font-size: 15px; }

  .cards { grid-template-columns: 1fr; gap: 14px; padding-top: 0; }
  .card { min-height: 420px; }
  .card .shot { left: auto; right: -8%; width: 70%; bottom: -14%; }
  .card.on { transform: none; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .qa .ans p { padding-right: 0; }
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }

  .pdp { grid-template-columns: minmax(0, 1fr); padding-top: 76px; }
  .pdp-media { position: relative; top: 0; height: 64svh; min-height: 400px; }
  .pdp-more { grid-template-columns: 1fr; }
  .media-hint { display: none; }
  .btn.wide { padding: 0 18px; white-space: nowrap; }
  .hide-s { display: none; }
  .hero-ctas .btn.light { background: rgba(255, 255, 255, 0.92); }
  .method-grid, .about-hero, .about-blocks, .contact { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-nav a { margin: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; padding: 6px 12px; font-size: 14px; }
  .page-head { padding-top: 120px; }
}
@media (max-width: 520px) {
  .foot-cols { grid-template-columns: 1fr; }
  .method-opts { grid-template-columns: 1fr 1fr; }
  .mopt { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Afegits */
.drawer[hidden], .scrim[hidden] { display: none; }
.has-3d .fallback { display: none; }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #b5473a; }

/* Franja d'enllaç (catàleg → mòltes) */
.strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 36px); border-radius: 24px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background 0.4s var(--ease); }
.strip > span:first-child { display: grid; gap: 8px; }
.strip strong { font: 600 clamp(20px, 2vw, 28px)/1.15 var(--display); letter-spacing: -0.025em; }
.strip:hover { background: #fff; }

/* Guia de mòltes */
.grinds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.grinds li { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.9fr); gap: clamp(16px, 3vw, 44px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.grain { width: 88px; height: 88px; border-radius: 18px; background: var(--card); display: grid; place-items: center; }
.grain svg { width: 64px; height: 64px; }
.grinds h2 { font: 650 clamp(26px, 2.6vw, 40px)/1 var(--display); letter-spacing: -0.04em; margin-bottom: 8px; }
.grinds li > p { color: var(--ink-2); }
.grind-ideal { font-weight: 500; }
.grind-ideal a { text-underline-offset: 3px; }

/* Per a empreses */
.b2b { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.b2b > div { display: grid; gap: 14px; align-content: start; padding: 28px 28px 40px 0; }
.b2b > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.b2b h2 { font: 650 clamp(26px, 2.4vw, 36px)/1.02 var(--display); letter-spacing: -0.04em; }
.b2b p { color: var(--ink-2); max-width: 34ch; }
.b2b-n { font: 500 13px/1 var(--sans); letter-spacing: 0.12em; color: var(--mute); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.steps h3 { font: 600 22px/1.15 var(--display); letter-spacing: -0.025em; }
.steps p { color: var(--ink-2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; background-color: rgba(104, 69, 45, 0.07); }

@media (max-width: 900px) {
  .strip { flex-direction: column; align-items: flex-start; }
  .grinds li { grid-template-columns: 72px 1fr; }
  .grinds li > p { grid-column: 1 / -1; }
  .grain { width: 72px; height: 72px; }
  .b2b, .steps { grid-template-columns: 1fr; }
  .b2b > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Per a empreses: títol i formulari a la primera pantalla */
.b2b-hero { min-height: calc(100svh - 72px); margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 90px); align-items: center; padding: clamp(24px, 3vw, 40px) 0; }
.b2b-intro { display: grid; gap: 22px; justify-items: start; }
.b2b-intro .display { font-size: clamp(40px, 4.8vw, 76px); }
.b2b-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.b2b-points li { position: relative; padding-left: 18px; color: var(--ink-2); }
.b2b-points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); }
.b2b-points b { color: var(--ink); font-weight: 600; }
.contact-ways.sm { margin-top: 4px; }
.contact-ways.sm a { font-size: clamp(18px, 1.6vw, 22px); }
.form.compact { grid-template-columns: 1fr 1fr; gap: 12px 14px; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(43, 29, 20, 0.4); }
.form.compact .full, .form.compact .form-title { grid-column: 1 / -1; }
.form-title { font: 600 24px/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 4px; }
.form.compact .field input, .form.compact .field select { padding: 12px 14px; }
.form.compact .field textarea { min-height: 80px; }
.form.compact { gap: 10px 14px; }
@media (max-width: 900px) {
  .b2b-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 64px; padding-top: 40px; }
  .form.compact { grid-template-columns: 1fr; }
}

/* Mòltes: "Com el prepares?" amb l'escena 3D */
.method-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.method-result { min-height: 520px; align-content: space-between; isolation: isolate; background: radial-gradient(120% 90% at 70% 80%, color-mix(in srgb, var(--c, #2a241f) 70%, #fff) 0%, var(--c, #2a241f) 70%); }
.method-result #brew { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.method-result .mr-text, .method-result .mr-buy { position: relative; z-index: 1; pointer-events: none; }
.method-result .mr-buy > * { pointer-events: auto; }
.method-result .mr-text { display: grid; gap: 10px; max-width: 46%; }
.method-result .mr-text h3 { margin-top: 4px; }
.method-result .mr-text .why { margin-top: 0; }
.method-result .mr-buy .link { color: #fff; padding: 8px 14px; border-radius: 99px; background: rgba(43, 29, 20, 0.3); }
.method-opts { align-content: start; }
@media (max-width: 900px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-result { min-height: 560px; }
  .method-result .mr-text { max-width: none; }
}

/* Peu en persiana: el contingut es queda quiet i el peu hi puja per sobre */
main { position: sticky; top: var(--stick, 0px); z-index: 0; }
main::after { content: ""; position: absolute; inset: 0; z-index: 20; background: #0d0b09; opacity: var(--shade, 0); pointer-events: none; }
.foot { position: relative; z-index: 2; margin-top: 0; box-shadow: 0 -30px 60px -30px rgba(0, 0, 0, 0.35); }
main > :last-child { margin-bottom: 0; }
.faq-side { top: 104px; }
@media (prefers-reduced-motion: reduce) { main { position: static; } main::after { display: none; } }

/* Els cafès: filtre, perfil en tassa */
.cat-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 40px; }
.cat-head > div:first-child { display: grid; gap: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.card.dim { opacity: 0.32; filter: grayscale(0.6); transform: scale(0.97); }
.card { transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.profile { background: #eae9e5; margin-top: clamp(80px, 10vw, 140px); padding: clamp(80px, 10vw, 140px) 0; border-radius: 32px; }
.prof-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.prof { display: grid; align-content: start; gap: 0; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius); background: var(--bg); box-shadow: inset 0 3px 0 var(--c); }
.prof header { display: grid; gap: 6px; padding-bottom: 20px; }
.prof .num { font-size: 13px; font-weight: 500; color: var(--mute); }
.prof h3 { font: 650 clamp(28px, 2.6vw, 38px)/1 var(--display); letter-spacing: -0.04em; }
.prof h3 a { text-decoration: none; }
.prof h3 a:hover { color: var(--c); }
.prof header p { color: var(--mute); }
.prof-row { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--line); }
.prof-row .meter { margin: 0; }
.prof-row .meter i.f { background: var(--c); }
.sca { font: 650 44px/1 var(--display); letter-spacing: -0.04em; color: var(--c); }
.alt { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--line); }
.alt i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c); min-width: 8px; }
.alt-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--mute); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) {
  .cat-head { grid-template-columns: 1fr; }
  .prof-grid, .duo { grid-template-columns: 1fr; }
  .profile { border-radius: 24px; }
}
.filters { flex-wrap: nowrap; }
.filters .chip, .strip .btn { flex: none; white-space: nowrap; }
@media (max-width: 520px) { .filters { flex-wrap: wrap; } }

/* Mòltes: l'escena 3D és la portada de la pàgina */
.brew-hero { --c: #b5473a; position: relative; min-height: 100vh; min-height: 100svh; padding-top: 72px; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 90% at 68% 72%, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 58%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  transition: background 0.8s var(--ease); --mute: rgba(255, 255, 255, 0.75); --line: rgba(255, 255, 255, 0.3); }
.brew-hero #brew { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.brew-ui { position: relative; z-index: 1; min-height: calc(100svh - 72px); display: grid; align-items: center; pointer-events: none; }
.brew-copy { width: min(500px, 42vw); display: grid; gap: 18px; justify-items: start; pointer-events: auto; padding: 40px 0 90px; }
.brew-copy .lead { color: rgba(255, 255, 255, 0.85); }
.brew-hero .method-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.brew-hero .mopt { min-height: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); color: #fff; transition: background 0.4s var(--ease), color 0.4s, transform 0.4s var(--ease); }
.brew-hero .mopt:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
.brew-hero .mopt svg { width: 28px; height: 28px; }
.brew-hero .mopt span { font: 500 15px/1 var(--sans); letter-spacing: 0; }
.brew-hero .mopt[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.brew-hero .mr-text { display: grid; gap: 8px; margin-top: 18px; }
.brew-hero .mr-text p:first-child { font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.brew-hero .mr-text h3 { font: 650 clamp(44px, 4.6vw, 72px)/0.9 var(--display); letter-spacing: -0.05em; }
.brew-hero .mr-text .why { font-size: 17px; max-width: 32ch; }
.brew-hero .mr-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brew-hero .mr-buy .btn { --fill: var(--bg); background: #fff; color: var(--ink); }
.brew-hero .mr-buy .btn:hover { color: var(--ink); }
.brew-hero .mr-buy .link { color: #fff; }
.brew-hero .swap { animation: rise 0.7s var(--ease) both; }
.brew-down { position: absolute; z-index: 1; left: var(--pad); bottom: 26px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; gap: 8px; }
.brew-down span { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
.bar { transition: background 0.4s, border-color 0.4s, color 0.4s; }

/* Guia de mòltes: cinc columnes, de fina a gruixuda */
.grind-scale { display: grid; grid-template-columns: 1fr 4fr; align-items: center; gap: 0; margin-bottom: 18px; font-size: 13px; color: var(--mute); position: relative; }
.grind-scale i { grid-column: 2; grid-row: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #d9c6b4, #4a2c1b); }
.grind-scale span:first-child { grid-column: 1; grid-row: 1; }
.grind-scale span:nth-of-type(2) { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 8px; }
.grind-scale span:nth-of-type(3) { grid-column: 2; grid-row: 2; justify-self: end; margin-top: 8px; }
#guia .grinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; border: 0; }
#guia .grinds li { display: grid; grid-template-columns: 1fr; align-content: start; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--card-on); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
#guia .grain { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 10px; }
#guia .grain svg { width: 70%; height: 70%; }
#guia .grade { font-size: 13px; font-weight: 600; color: var(--tone); }
#guia h3 { font: 650 clamp(22px, 1.8vw, 28px)/1.05 var(--display); letter-spacing: -0.035em; }
#guia .for { font-size: 14px; color: var(--mute); }
#guia .txt { font-size: 15px; color: var(--ink-2); }
#guia .grind-ideal { font-size: 14px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { #guia .grinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .brew-ui { align-items: start; }
  .brew-copy { width: auto; padding: 28px 0 0; gap: 12px; }
  .brew-hero .mr-text h3 { font-size: 40px; }
  .brew-hero .mopt span { font-size: 14px; }
  #guia .grinds { grid-template-columns: 1fr 1fr; }
  .grind-scale { display: none; }
}
@media (max-width: 520px) { #guia .grinds { grid-template-columns: 1fr; } #guia .grain { aspect-ratio: 2.4; } }
@media (max-width: 900px) { .brew-down { display: none; } }

/* Targetes de l'inici: entren de seguida (sense esperar disparadors de scroll) */
.coffees .card { opacity: 0; translate: 0 48px; transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), opacity 0.7s var(--ease), translate 0.9s var(--ease); }
.coffees .card:nth-child(2) { transition-delay: 0s, 0s, 0.08s, 0.08s; }
.coffees .card:nth-child(3) { transition-delay: 0s, 0s, 0.16s, 0.16s; }
.coffees.in .card { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .coffees .card { opacity: 1; translate: none; } }

/* Inici: la capçalera és transparent mentre som a sobre del 3D */
body.home .bar:not(.solid) { background: transparent; border-bottom-color: transparent; }

/* Final del recorregut: l'últim pas ("Tria el teu") es queda una estona */
.story { height: 540vh; }
@media (max-width: 900px) { .story { height: 500vh; } }

/* Abans que pugi el peu: el final de cada pàgina es queda quiet una estona */
.foot-hold { height: 38vh; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .foot-hold { display: none; } }

/* Pantalla de càrrega: només la primera vegada de cada visita, mentre es prepara el 3D */
.loader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg); transition: clip-path 1s var(--ease), visibility 0s 1s; clip-path: inset(0 0 0 0); }
.loader-in { display: grid; justify-items: center; gap: 18px; transition: opacity 0.4s, transform 0.8s var(--ease); }
.loader img { height: 48px; width: auto; animation: loaderPulse 1.6s var(--ease) infinite; }
.loader-name { font: 700 26px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: 0.01em; color: var(--ink); }
.loader-bar { width: 160px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; background: var(--brand); transform: scaleX(var(--p, 0.04)); transform-origin: left; transition: transform 0.5s var(--ease); }
@keyframes loaderPulse { 50% { transform: translateY(-4px); } }
html.ready .loader { display: none; }
html.leaving .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
html.leaving .loader-in { opacity: 0; transform: translateY(-20px); }

/* Mòltes, més net: quatre botons i una sola recomanació */
.brew-hero .method-opts { gap: 6px; margin-top: 14px; }
.brew-hero .mopt { padding: 8px 15px 8px 10px; background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.brew-hero .mopt svg { width: 24px; height: 24px; }
.brew-hero .mopt span { font-size: 14px; }
.brew-pick { display: grid; gap: 10px; justify-items: start; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.3); width: min(440px, 100%); }
.pick-k { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.pick-v { font: 500 clamp(30px, 2.8vw, 44px)/1 var(--display); letter-spacing: -0.04em; }
.pick-v b { font-weight: 700; }
.pick-v span { opacity: 0.75; font-size: 0.6em; letter-spacing: -0.02em; }
.pick-a { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 8px; }
.pick-a .btn { --fill: var(--sand); background: #fff; color: var(--ink); }
.pick-a .btn:hover { color: var(--ink); }
.pick-a .link { color: #fff; }

/* Menú del mòbil: marca en una línia, pàgina actual marcada, entrada esglaonada i botó de compra */
.brand span { white-space: nowrap; }
@media (max-width: 400px) { .brand span { font-size: 17px; } .brand { gap: 8px; } .brand img { height: 21px; } }
.menu nav a { opacity: 0; transform: translateY(26px); transition: opacity 0.5s var(--ease), transform 0.8s var(--ease); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: 0.04s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: 0.08s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: 0.12s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: 0.16s; }
.menu-open .menu nav a:nth-child(6) { transition-delay: 0.2s; }
.menu nav a[aria-current="page"] { color: var(--brand); }
.menu nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 0.18em; height: 0.18em; margin-left: 0.18em; border-radius: 50%; background: var(--tone); vertical-align: 0.2em; }
.menu .menu-foot { gap: 10px; }
.menu .menu-foot .btn { justify-self: start; margin-bottom: 10px; color: #fff; }

/* Mòbil: la barra de pestanyes de Chrome s'amaga i ensenya; les seccions fixes fan l'alçada gran
   (lvh), que no canvia, i el text de baix es separa el que ocupa la barra, perquè mai no quedi tapat
   ni aparegui una franja buida a sota. */
:root { --ui: 0px; }
@supports (height: 100lvh) { :root { --ui: calc(100lvh - 100svh); } }
.story-pin { height: 100vh; height: 100lvh; }
.idea-pin { height: 100vh; height: 100lvh; padding-bottom: var(--ui); }
.hero-copy, .journey { bottom: calc(clamp(64px, 13vh, 132px) + var(--ui)); }
@media (max-width: 900px) { .hero-copy, .journey { bottom: calc(44px + var(--ui)); } }

/* Sense barres de desplaçament visibles (el scroll segueix funcionant igual) */
html, body, .drawer-body, .scroll-x, .gallery { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, .drawer-body::-webkit-scrollbar, .scroll-x::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; width: 0; height: 0; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }

/* Menú del mòbil: una línia entre opció i opció i una fletxa, perquè es vegi clar on toques */
.menu nav { border-top: 1px solid var(--line); }
.menu nav a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: clamp(30px, 8.6vw, 44px); line-height: 1.08; }
.menu nav a::after { content: "→"; flex: none; font: 400 0.5em/1 var(--sans); color: var(--mute); transition: transform 0.5s var(--ease), color 0.3s; }
.menu nav a:hover::after, .menu nav a:active::after { transform: translateX(4px); color: var(--ink); }
.menu nav a:active { background: rgba(104, 69, 45, 0.06); }
.menu nav a[aria-current="page"]::after { content: "→"; display: inline; width: auto; height: auto; margin: 0; border-radius: 0; background: none; vertical-align: baseline; color: var(--tone); }
.menu { padding-bottom: calc(32px + var(--ui)); }

/* Afegir a la cistella: es nota. La bossa vola fins a la capçalera, el comptador es marca i surt
   una targeta amb el producte i accés directe a la cistella i al pagament. */
.fly { position: fixed; left: 0; top: 0; z-index: 90; width: 72px; height: 88px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(43, 29, 20, 0.28)); }
.cart-btn b { display: inline-block; transition: background 0.3s, color 0.3s; }
.cart-btn.has b { min-width: 1.6em; padding: 2px 7px; margin: 0 1px; border-radius: 99px; background: var(--brand); color: #fff; text-align: center; letter-spacing: 0; }
.cart-btn.bump b { animation: cartBump 0.7s var(--ease); }
@keyframes cartBump { 0% { transform: scale(1); } 30% { transform: scale(1.7); background: var(--tone); } 100% { transform: scale(1); } }
.added {
  position: fixed; z-index: 35; top: 84px; right: var(--pad); width: min(400px, calc(100vw - 2 * var(--pad)));
  display: grid; gap: 14px; padding: 16px; border-radius: 20px; background: var(--paper); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(43, 29, 20, 0.45);
  opacity: 0; transform: translateY(-14px) scale(0.98); transition: opacity 0.35s var(--ease), transform 0.6s var(--ease);
}
.added.on { opacity: 1; transform: none; }
.added[hidden] { display: none; }
.added-row { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding-right: 26px; }
.added-img { width: 64px; height: 76px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #fff, color-mix(in srgb, var(--c) 18%, #f1ede7)); }
.added-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.45); }
.added-k { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #2f6b45; }
.added-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2f6b45; color: #fff; font-size: 11px; animation: okPop 0.6s var(--ease) 0.15s both; }
@keyframes okPop { from { transform: scale(0); } 60% { transform: scale(1.25); } }
.added-n { font: 650 22px/1.1 var(--display); letter-spacing: -0.03em; margin-top: 4px; }
.added-d { font-size: 13px; color: var(--mute); margin-top: 2px; }
.added-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.added-a .btn { width: 100%; padding: 0 12px; font-size: 13px; }
.added-x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; color: var(--mute); }
.added-x:hover { background: rgba(104, 69, 45, 0.08); color: var(--ink); }
.added-t { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c, var(--brand)); transform-origin: left; }
.added.on .added-t { animation: addedTime 5s linear forwards; }
.added:hover .added-t { animation-play-state: paused; }
@keyframes addedTime { to { transform: scaleX(0); } }
@media (max-width: 900px) { .added { top: 72px; left: var(--pad); right: var(--pad); width: auto; } }
@media (prefers-reduced-motion: reduce) { .added { transition: none; } .added.on .added-t { animation: none; } }

/* Mòltes, mínim: fons clar i càlid, el títol, quatre pestanyes de text i una sola recomanació.
   El plat 3D fa de protagonista; el color del cafè només marca la pestanya i el nom. */
.brew-hero.min { background: radial-gradient(90% 80% at 70% 70%, #f3eee8 0%, #e9e2d9 100%); color: var(--ink); --mute: #7d6b5d; --line: rgba(104, 69, 45, 0.16); }
.brew-hero.min .brew-copy { gap: 0; padding: 40px 0 60px; }
.brew-hero.min h1 { font-size: clamp(44px, 5.6vw, 92px); max-width: 9ch; }
.brew-tabs { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 36px; }
.brew-tab { position: relative; padding: 6px 0; font: 500 19px/1.2 var(--display); letter-spacing: -0.01em; color: var(--mute); transition: color 0.3s; }
.brew-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.brew-tab:hover { color: var(--ink); }
.brew-tab[aria-checked="true"] { color: var(--ink); }
.brew-tab[aria-checked="true"]::after { transform: scaleX(1); }
.brew-hero.min .brew-pick { margin-top: 44px; padding: 0; border: 0; gap: 18px; }
.brew-hero.min .pick-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; font: 650 clamp(32px, 3vw, 46px)/1 var(--display); letter-spacing: -0.04em; }
.brew-hero.min .pick-v a { text-decoration: none; color: var(--c); transition: opacity 0.3s; }
.brew-hero.min .pick-v a:hover { opacity: 0.8; }
.brew-hero.min .pick-v span { font: 500 16px/1.2 var(--sans); letter-spacing: 0; color: var(--mute); }
.brew-hero.min .brew-pick .btn { --fill: var(--ink); background: var(--brand); color: #fff; }
.brew-hero.min .brew-pick .btn:hover { color: #fff; }
@media (max-width: 900px) {
  .brew-hero.min .brew-copy { padding-top: 24px; }
  .brew-tabs { margin-top: 22px; gap: 2px 20px; }
  .brew-tab { font-size: 17px; }
  .brew-hero.min .brew-pick { margin-top: 24px; gap: 14px; }
}
@media (max-width: 900px) { .brew-hero.min h1 { max-width: none; font-size: clamp(40px, 11vw, 60px); } }
