/* ES GORDIÀ — web pública · v6
   Sistema net: quatre mides de lletra i un sol ritme.
     · etiqueta   11 px  Geist Mono, majúscules, espaiada
     · text       14–15 px Geist Mono
     · titular    17–22 px Inter 800, majúscules, vermell
     · display    títol de portada, WAGYU i es comptador (són imatge, no text)
   Tot centrat a una columna, amb sa mateixa separació entre blocs. */

@font-face { font-family: 'Geist Mono'; src: url('geist-mono-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('oswald-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #151618;
  --ink: #f2f0ec;
  --soft: rgba(242, 240, 236, .6);
  --mute: rgba(242, 240, 236, .42);
  --line: rgba(242, 240, 236, .14);
  --field: rgba(242, 240, 236, .3);
  --red: #9b0808;
  --red2: #b30f11;
  --red-hi: #b80d0d;
  --paper: #efece5;
  --err: #ff7a6e;

  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;

  --f-label: 11px;
  --f-txt: clamp(14px, .25vw + 12.5px, 15px);
  --f-head: clamp(17px, 1.1vw + 12px, 22px);

  --side: clamp(20px, 5vw, 72px);
  --gap: clamp(96px, 11vw, 168px);   /* entre seccions */
  --s: clamp(22px, 2.2vw, 30px);     /* entre elements d'una secció */
  --wide: 960px;
  --barh: clamp(60px, 5.6vw, 80px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barh) + 16px); }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--mono);
  font-size: var(--f-txt);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* sa textura: quieta, suau, darrere de tot (no damunt ses fotos) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('textura.webp') 0 0 / 1100px auto;
  opacity: .32;
  pointer-events: none;
}
::selection { background: var(--red); color: #fff; }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.red { color: var(--red2); white-space: nowrap; }
.br { white-space: pre-line; }

.vista { display: none; }
.vista.on { display: block; }

/* ─────────────────────────────  TIPOGRAFIA  ───────────────────────────── */

.txt { max-width: 56ch; font-size: var(--f-txt); line-height: 1.7; text-wrap: pretty; }
.txt--soft { color: var(--soft); }
.label {
  font-family: var(--mono);
  font-size: var(--f-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--soft);
}
.label--ink { color: var(--ink); }
.head, .split {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--f-head);
  line-height: 1.1;
  letter-spacing: -.005em;
  text-transform: uppercase;
  color: var(--red2);
}

/* titulars partits: un a cada costat, amb una ratlla fina enmig */
.split { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.split span { flex: none; }
.split::after { content: ''; order: 1; flex: 1 1 auto; height: 1px; min-width: 24px; background: var(--line); }
.split span:last-child { order: 2; }
/* si no hi cap a una línia (JS posa .apila): escalonat, un a cada costat */
.split.apila { flex-direction: column; align-items: stretch; gap: 4px; }
.split.apila::after { display: none; }
.split.apila span:last-child { align-self: flex-end; text-align: right; }

/* ─────────────────────────────  CAPÇALERA  ───────────────────────────── */

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: calc(var(--barh) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--side) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, -webkit-backdrop-filter .4s, backdrop-filter .4s;
}
.bar.solida {
  background: rgba(21, 22, 24, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.bar__logo img { width: clamp(90px, 8.2vw, 122px); }
.bar__r { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 26px); }

.langs { display: flex; }
.langs button {
  background: none; border: 0; cursor: pointer;
  padding: 8px 5px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--mute);
  transition: color .2s;
}
.langs button:hover { color: var(--ink); }
.langs button[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* botó de dalt: un botó de veres */
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 18px;
  border: 1px solid rgba(242, 240, 236, .6);
  border-radius: 3px;
  background: rgba(21, 22, 24, .28);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  color: var(--ink);
  font-family: var(--mono); font-size: var(--f-label); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-line::after { content: '→'; font-weight: 400; letter-spacing: 0; transition: transform .25s var(--ease); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-line:hover::after { transform: translateX(3px); }
body[data-vista="wagyu"] .btn-line { padding: 11px 18px 11px 16px; }
body[data-vista="wagyu"] .btn-line::after { content: none; }
body[data-vista="wagyu"] .btn-line::before { content: '←'; font-weight: 400; letter-spacing: 0; transition: transform .25s var(--ease); }
body[data-vista="wagyu"] .btn-line:hover::before { transform: translateX(-3px); }

/* botó vermell */
.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 26px;
  border: 0; border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s;
}
.btn-red::after { content: '→'; font-weight: 400; letter-spacing: 0; transition: transform .25s var(--ease); }
.btn-red:hover { background: var(--red-hi); }
.btn-red:hover::after { transform: translateX(3px); }
.btn-block { width: 100%; padding: 19px 24px; }

/* ─────────────────────────────  SECCIONS  ───────────────────────────── */

.sec {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s);
  padding: var(--gap) var(--side) 0;
  text-align: center;
}
.wide { width: min(var(--wide), 100%); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.media { margin: 0; }
.media--wide { width: min(var(--wide), calc(100% - 2 * var(--side))); margin: calc(var(--s) * 2) auto 0; }
.media img { width: 100%; }

/* ═════════════════════════════  ES GORDIÀ  ═════════════════════════════ */

.hero { position: relative; }
.hero__pic { position: relative; }
.hero__img {
  width: 100%;
  aspect-ratio: 1677 / 938;
  max-height: 100svh;
  object-fit: cover;
  /* sa foto es fon amb so fons: cap tall */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.82) 68%, rgba(0,0,0,.38) 86%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 52%, rgba(0,0,0,.82) 68%, rgba(0,0,0,.38) 86%, transparent 100%);
}
.hero__pic::before {           /* ombra suau perquè es menú es llegeixi */
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  z-index: 1;
  background: linear-gradient(rgba(10, 10, 11, .5), transparent);
  pointer-events: none;
}
.hero__title {
  position: absolute; left: 0; right: 0; top: 45%;
  z-index: 2;
  transform: translateY(-50%);
  margin: 0;
  text-align: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: min(calc(58vw / (var(--n, 16) * .6)), 76px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--red);
}
.hero__btn { position: absolute; left: 50%; top: 60%; z-index: 2; transform: translate(-50%, -50%); }

.sec--first { padding-top: calc(var(--gap) * .72); }

.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble::after {
  content: '';
  position: absolute; left: -.1em; right: -.45em; bottom: -.3em; height: .3em;
  background: url('underline.png') left center / 100% 100% no-repeat;
  pointer-events: none;
}

/* ── vídeo: marc fosc fins que hi hagi enllaç; no carrega res de fora fins al play ── */
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  background: #1b1c1f;
  border: 1px solid var(--line);
  overflow: hidden;
}
.video__soon { font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--mute); display: inline-flex; align-items: center; gap: 10px; }
.video__soon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--red2); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.video__play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink);
}
.video__ico { width: 58px; height: 58px; border: 1px solid rgba(242, 240, 236, .7); border-radius: 50%; position: relative; transition: background .25s, border-color .25s; }
.video__ico::after { content: ''; position: absolute; left: 50%; top: 50%; margin: -7px 0 0 -4px; border-left: 12px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.video__play:hover .video__ico { background: var(--red); border-color: var(--red); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ═════════════════════════════  WAGYU  ═════════════════════════════ */

.sec--top { padding-top: calc(var(--barh) + clamp(48px, 6vw, 96px)); }

/* títol: s'oval es dibuixa tot sol i sa paraula cau a dins */
.w-title { position: relative; width: clamp(210px, 22vw, 320px); margin: 0 0 6px; aspect-ratio: 910 / 344; }
.w-title svg, .w-title img { position: absolute; inset: 0; width: 100%; height: 100%; }
.w-title .traç { fill: none; stroke: #fff; stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.w-title.go .traç { animation: dibuixa 1.25s cubic-bezier(.55,.1,.35,1) .45s forwards; }
.w-title .w-word { opacity: 0; transform: scale(1.35) rotate(-4deg); }
.w-title.go .w-word { animation: segell .5s cubic-bezier(.2,1.6,.4,1) .05s forwards; }
@keyframes dibuixa { to { stroke-dashoffset: 0; } }
@keyframes segell {
  0% { opacity: 0; transform: scale(1.35) rotate(-4deg); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* es wagyu que gira, sense fons */
.w-gira { width: clamp(220px, 22vw, 320px); aspect-ratio: 676 / 442; }
.w-gira video { width: 100%; height: 100%; mix-blend-mode: lighten; }

/* sa campanya: sa mà de sa factura surt sempre des cantó esquerre de sa pantalla */
.w-camp { z-index: 2; }
.factura {
  position: absolute;
  left: 0;
  bottom: calc(-1 * clamp(70px, 8vw, 130px));
  width: clamp(150px, 20vw, 300px);
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
  pointer-events: none;
}

/* foto de'n Tomeu */
.polaroid {
  position: relative;
  width: min(460px, 100%);
  margin: 0;
  background: var(--paper);
  padding: clamp(9px, 1vw, 13px) clamp(9px, 1vw, 13px) clamp(36px, 4vw, 54px);
  transform: rotate(-1.6deg);
  box-shadow: 0 22px 40px rgba(0, 0, 0, .5), 0 2px 0 rgba(0, 0, 0, .25);
}
.polaroid__img { position: relative; aspect-ratio: 4 / 3; background: #10181c; overflow: hidden; }
.polaroid__img img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: var(--f-label); letter-spacing: .22em; color: var(--mute); }
.stamp {
  position: absolute; right: 3.2%; bottom: 4%; z-index: 2;
  font-family: 'Courier New', var(--mono); font-weight: 700;
  font-size: clamp(11px, 1.1vw, 15px); letter-spacing: .06em;
  color: #ff9b33; text-shadow: 0 0 6px rgba(255,140,30,.8), 0 0 1px #ffb060;
}
.w-prod .tag { transform: translateX(min(110px, 16vw)) rotate(2deg); }
.w-prod .tag:active { transform: translateX(min(110px, 16vw)) scale(.97); }

/* per què quinze */
.ratlla { display: block; width: min(var(--wide), 100%); height: 6px; overflow: visible; margin-bottom: calc(var(--s) * .6); }
.ratlla path { fill: none; stroke: var(--ink); stroke-opacity: .55; stroke-width: 1.6; stroke-linecap: round; }

/* s'escut: entra girant com es wagyu de dalt i li passa una llum */
.escut { position: relative; width: clamp(84px, 7vw, 104px); perspective: 700px; cursor: pointer; }
.escut img { width: 100%; transform-origin: 50% 50%; backface-visibility: visible; }
.escut::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 160% 0;
  -webkit-mask: url('wagyu15-escut.webp') center / 100% 100% no-repeat;
          mask: url('wagyu15-escut.webp') center / 100% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}
.escut.prep img { opacity: 0; }
.escut.go img { animation: escut-entra 1.5s cubic-bezier(.22,.9,.28,1) forwards; }
.escut.go::after { animation: lluu .9s ease-out 1.25s forwards; }
.escut.gira img { animation: escut-gira .9s cubic-bezier(.3,.8,.3,1); }
@keyframes escut-entra {
  0%   { opacity: 0; transform: translateY(-60px) rotateY(-720deg) scale(.55); }
  25%  { opacity: 1; }
  72%  { transform: translateY(6px) rotateY(14deg) scale(1.06); }
  86%  { transform: translateY(-2px) rotateY(-5deg) scale(.99); }
  100% { opacity: 1; transform: none; }
}
@keyframes escut-gira { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
@keyframes lluu { 0% { opacity: 1; background-position: 160% 0; } 100% { opacity: 1; background-position: -60% 0; } }

/* comptador */
.counter { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.counter__n { font-family: 'Oswald', var(--sans); font-weight: 700; font-size: clamp(64px, 6.4vw, 96px); line-height: .78; letter-spacing: -.02em; color: var(--red2); }

/* ── mapa ── */
.mapa { width: min(640px, 100%); display: flex; flex-direction: column; gap: var(--s); }
.mapa__box { position: relative; }
.mapa__box svg { display: block; width: 100%; height: auto; overflow: hidden; }
.illa { fill: rgba(17, 18, 20, .82); stroke: var(--ink); stroke-width: 1.3; stroke-linejoin: round; }
.illa--eco { fill: none; stroke: rgba(242, 240, 236, .2); stroke-width: 1; }
.km0 circle { fill: var(--ink); }
.km0 text { font-family: var(--mono); fill: var(--ink); letter-spacing: .08em; }
.pin { cursor: pointer; }
.pin .hit { fill: transparent; }
.pin .dot { fill: var(--red2); }
.pin .num { font-family: var(--mono); fill: var(--red2); transition: opacity .2s; }
.pin .ring { fill: none; stroke: var(--red2); stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .2s; }
.pin .nom { font-family: var(--mono); fill: var(--ink); text-anchor: middle; opacity: 0; transition: opacity .2s; paint-order: stroke; stroke: var(--bg); stroke-linejoin: round; }
.pin:hover .ring { opacity: .45; }
.pin:hover .nom, .pin.on .nom { opacity: 1; }
.pin.on .ring { opacity: 1; }
.pin.on .dot { fill: var(--ink); }
.pin.on .num { opacity: 0; }
.zoomout {
  position: absolute; left: 0; bottom: 0;
  padding: 8px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
}
.zoomout:hover { text-decoration: underline; text-underline-offset: 4px; }

.lloc { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lloc .head { margin-top: 2px; }
.lloc .video { margin-top: 10px; }
.lloc__web { margin-top: 4px; font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 4px; }
.llista { width: min(560px, 100%); margin: 0 auto; border-top: 1px solid var(--line); text-align: left; }
.llista:empty { display: none; }
.llista__it {
  display: flex; align-items: baseline; gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px; line-height: 1.3;
  cursor: pointer;
  transition: color .2s, padding .25s var(--ease);
}
.llista__it b { font-weight: 500; color: var(--red2); }
.llista__it .fill { flex: 1; min-width: 16px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.llista__it span:last-child { font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.llista__it:hover, .llista__it.on { padding-left: 8px; }
.llista__it.on b::before { content: '→ '; }

/* ═════════════════  SOL·LICITUD: un full de paper, com un albarà  ═════════════════
   Paper clar damunt es fons fosc: es veu a la primera que és un formulari.
   Tinta negra per escriure, vermell només per numerar, marcar i enviar. */

#formulari .wide { gap: 0; }
.full {
  --p-ink: #151618;
  --p-soft: #5d5c57;
  --p-mute: #8b8982;
  --p-line: rgba(21, 22, 24, .13);
  --p-field: rgba(21, 22, 24, .32);
  --p-err: #b30f11;
  --pad: clamp(22px, 4.6vw, 52px);
  position: relative;
  width: min(720px, 100%);
  margin-top: calc(var(--s) * 1.3);
  background: var(--paper);
  color: var(--p-ink);
  text-align: left;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05), 0 44px 80px -34px rgba(0, 0, 0, .8), 0 14px 28px -14px rgba(0, 0, 0, .55);
}
.full :focus-visible { outline-color: var(--p-ink); }

/* s'etiqueta "Què miram" penja des cantó des full */
.full .full__tag { position: absolute; z-index: 2; top: 0; right: var(--pad); transform: translateY(-56%) rotate(3deg); }
.full .full__tag:active { transform: translateY(-56%) scale(.97); }

/* matriu */
.full__cap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; padding: calc(var(--pad) * .85) var(--pad) calc(var(--pad) * .7); }
.full__escut { width: 40px; }
.full__tit b { display: block; font-family: var(--sans); font-weight: 800; font-size: 17px; line-height: 1.1; letter-spacing: .01em; text-transform: uppercase; }
.full__tit span, .full__data span { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--p-mute); }
.full__tit span { margin-top: 7px; }
.full__data { text-align: right; }
.full__data b { display: block; margin-top: 5px; font-weight: 500; font-size: 13px; letter-spacing: .06em; }

/* trepat, amb ses dues osques d'un tiquet */
.full__trepat {
  position: relative;
  height: 1px;
  margin: 0 20px;
  background: linear-gradient(90deg, var(--p-field) 50%, transparent 0) 0 0 / 8px 1px repeat-x;
}
.full__trepat::before, .full__trepat::after {
  content: '';
  position: absolute; top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg);
}
.full__trepat::before { left: -31px; }
.full__trepat::after { right: -31px; }

.full__cos { padding: calc(var(--pad) * .2) var(--pad) var(--pad); }
.avis { margin-top: 26px; padding: 11px 14px; border-left: 2px solid var(--red2); background: rgba(155, 8, 8, .05); font-size: 13px; }

/* passes 01 · 02 · 03 */
.pas { margin: 0; padding: 34px 0 0; border: 0; min-width: 0; }
.pas + .pas { margin-top: 34px; border-top: 1px solid var(--p-line); }
.pas__t {
  float: left; width: 100%;
  display: flex; align-items: baseline; gap: 14px;
  margin: 0 0 4px; padding: 0;
  font-family: var(--sans); font-weight: 800; font-size: 12.5px;
  letter-spacing: .1em; text-transform: uppercase; line-height: 1.3;
  color: var(--p-ink);
}
.pas__t b { flex: none; font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .04em; color: var(--red); }
.pas__t + * { clear: both; }

/* 01 · dades: dues columnes, s'etiqueta puja quan escrius */
.graella { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 32px; }
.camp { position: relative; padding-top: 20px; }
.camp input {
  width: 100%;
  padding: 9px 0 8px;
  border: 0; border-bottom: 1px solid var(--p-field); border-radius: 0;
  background: transparent;
  color: var(--p-ink);
  font-family: var(--mono); font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.camp input:focus { border-bottom-color: var(--p-ink); box-shadow: 0 1px 0 var(--p-ink); }
.camp input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--paper) inset; -webkit-text-fill-color: var(--p-ink); }
.camp label {
  position: absolute; left: 0; top: 30px;
  font-size: 13.5px; color: var(--p-soft);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .2s var(--ease), color .2s;
}
.camp.ple label, .camp:focus-within label, .camp input:not(:placeholder-shown) + label { transform: translateY(-23px) scale(.76); color: var(--p-mute); }
.camp:focus-within label { color: var(--red); }
.camp.err input { border-bottom-color: var(--p-err); box-shadow: 0 1px 0 var(--p-err); }
.camp.err label { color: var(--p-err); }

/* 02 · preguntes: les marques com en paper, amb un cercle vermell fet a mà */
#preguntes { display: flow-root; }
.pregunta { margin: 26px 0 0; padding: 0; border: 0; min-width: 0; }
.pregunta:first-child { margin-top: 18px; }
.pregunta legend { float: left; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0; margin: 0 0 12px; font-size: 14px; line-height: 1.4; }
.pregunta legend small { flex: none; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--p-mute); }
.pregunta .ops { clear: both; }
.pregunta.err legend span { color: var(--p-err); }
.ops { display: flex; flex-wrap: wrap; gap: 10px 8px; }
.op { position: relative; display: inline-block; cursor: pointer; }
.op input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.op span {
  position: relative;
  display: inline-block;
  padding: .68em 1.1em .7em;
  border: 1px solid var(--p-field);
  border-radius: 999px;
  font-size: 12.5px; line-height: 1.1;
  color: var(--p-ink);
  transition: color .15s, border-color .15s, background .15s;
}
.op span::after {
  content: '';
  position: absolute;
  inset: -.55em -.7em -.62em -.62em;
  background: var(--red);
  -webkit-mask: url('oval-white.png') center / 100% 100% no-repeat;
          mask: url('oval-white.png') center / 100% 100% no-repeat;
  opacity: 0;
  transform: rotate(var(--r, -2deg)) scale(.86);
  transition: opacity .18s, transform .26s cubic-bezier(.2,1.5,.4,1);
  pointer-events: none;
}
.op:nth-child(2n) span::after { --r: 2deg; }
.op:nth-child(3n) span::after { --r: -3deg; }
.op:hover span { border-color: var(--p-ink); }
.op input:focus-visible + span { outline: 1px solid var(--p-ink); outline-offset: 4px; }
.op input:checked + span { color: var(--red); border-color: transparent; background: rgba(155, 8, 8, .06); }
.op input:checked + span::after { opacity: 1; transform: rotate(var(--r, -2deg)) scale(1); }
.pregunta.err .op span { border-color: rgba(179, 15, 17, .55); }

/* 03 · sa pregunta oberta, en paper de ratlles */
.oberta textarea {
  --linia: var(--p-line);
  display: block;
  width: 100%; min-height: 150px;
  margin-top: 10px; padding: 0;
  border: 0; border-radius: 0;
  background: linear-gradient(transparent 29px, var(--linia) 29px, var(--linia) 30px, transparent 30px) 0 -5px / 100% 30px repeat-y local;
  color: var(--p-ink);
  font-family: var(--mono); font-size: 15px; line-height: 30px;
  resize: vertical; outline: none;
}
.oberta textarea::placeholder { color: var(--p-mute); }
.oberta textarea:focus { --linia: var(--p-field); }
.oberta.err textarea { --linia: rgba(179, 15, 17, .55); }
.oberta.err .pas__t span { color: var(--p-err); }

/* peu des full: consentiment, enviar i sa lletra petita */
.full__peu { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--p-line); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--p-soft); cursor: pointer; }
.consent input {
  -webkit-appearance: none; appearance: none;
  flex: none;
  width: 17px; height: 17px; margin: 1px 0 0;
  border: 1px solid var(--p-ink); border-radius: 2px;
  background: transparent center / 11px 11px no-repeat;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.consent input:checked {
  background-color: var(--red); border-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4 4.8 9 10 3' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E");
}
.consent a { color: var(--p-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.consent.err { color: var(--p-err); }
.consent.err input { border-color: var(--p-err); }
.full .btn-red { margin-top: 24px; }
.full__revisa { margin-top: 12px; font-size: 12px; text-align: center; color: var(--p-err); }
.info1 { margin-top: 20px; font-size: 10px; line-height: 1.7; color: var(--p-mute); }

/* trampa per a robots: invisible per a persones */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.full .btn-red:disabled { opacity: .6; cursor: progress; }

/* enviat: es full queda segellat */
.gracies { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 44px 0 10px; text-align: center; font-size: var(--f-txt); line-height: 1.65; }
.gracies p { max-width: 42ch; text-wrap: balance; }
.gracies__no { color: var(--p-soft); }
.rebut {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 22px;
  padding: 13px 28px 11px;
  border: 3px solid var(--red2); border-radius: 6px;
  outline: 1px solid var(--red2); outline-offset: 4px;
  color: var(--red2);
  mix-blend-mode: multiply;
  transform: rotate(-7deg);
}
.rebut span { font-family: var(--sans); font-weight: 800; font-size: clamp(26px, 4vw, 38px); line-height: 1; letter-spacing: .12em; text-transform: uppercase; }
.rebut small { font-size: 11px; letter-spacing: .22em; }
.rebut.go { animation: estampa .55s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes estampa {
  0% { opacity: 0; transform: rotate(-13deg) scale(2.2); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* ═════════════════  CONTACTE: de punta a punta  ═════════════════ */

.contacte {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(360px, 38vw, 540px);
  margin-top: var(--gap);
  overflow: hidden;
  clip-path: inset(0 7% round 4px);
  transition: clip-path 1.3s var(--ease);
}
.contacte.vist { clip-path: inset(0 0 round 0); }
.contacte__bg {
  position: absolute; inset: 0; z-index: -2;
  background: #3d3a35 center 42% / cover no-repeat;
  transform: scale(1.16);
  filter: saturate(.7) brightness(.75) blur(10px);
  transition: transform 9s cubic-bezier(.15,.6,.2,1), filter 2.4s ease;
}
.contacte.cerca .contacte__bg { background-image: url('vaques.webp'); }
.contacte.vist .contacte__bg { transform: scale(1.02); filter: saturate(.9) brightness(.9) blur(3.5px); }
.contacte::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, var(--bg) 0%, rgba(21,22,24,0) 18%, rgba(21,22,24,0) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,11,.62) 0%, rgba(10,10,11,.2) 55%, rgba(10,10,11,.5) 100%);
}
.contacte__in {
  width: min(var(--wide), calc(100% - 2 * var(--side)));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.contacte__title {
  margin: 0;
  min-height: 1em;
  font-family: var(--mono); font-weight: 500;
  font-size: clamp(32px, 4.2vw, 60px);
  line-height: 1;
  letter-spacing: .02em;
  color: var(--ink);
  white-space: nowrap;
}
.tw__cur {
  display: inline-block;
  width: .5em; height: .82em;
  margin-left: .1em;
  vertical-align: -.04em;
  background: var(--red2);
  animation: parpella 1.05s steps(1) infinite;
}
@keyframes parpella { 50% { opacity: 0; } }
.contacte__dades { margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contacte__dades > div { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.contacte.escrit .contacte__dades > div { opacity: 1; transform: none; }
.contacte.escrit .contacte__dades > div:nth-child(2) { transition-delay: .12s; }
.contacte.escrit .contacte__dades > div:nth-child(3) { transition-delay: .24s; }
.contacte__dades dt { font-size: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.contacte__dades dd { margin: 4px 0 0; font-size: var(--f-txt); }
.contacte__dades a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.contacte__dades a:hover { background-size: 100% 1px; }

/* peu */
.peu {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 24px;
  padding: 28px var(--side) calc(28px + env(safe-area-inset-bottom));
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute);
}
.peu nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.peu a { text-decoration: none; transition: color .2s; }
.peu a:hover { color: var(--ink); }

/* ═════════════════  ETIQUETA + FULLA (fitxa tècnica i què miram)  ═════════════════ */

/* botó-etiqueta, com sa que penja d'una peça de carn */
.tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 13px 20px 13px 38px;
  border: 0;
  background: var(--paper);
  color: #151618;
  font-family: var(--mono); font-weight: 600; font-size: 11.5px;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1;
  cursor: pointer;
  clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 50%);
  transform: rotate(-1.5deg);
  transition: transform .25s cubic-bezier(.2,1.4,.4,1), background .15s;
  -webkit-tap-highlight-color: transparent;
}
.tag::before {           /* es forat de s'etiqueta */
  content: '';
  position: absolute;
  left: 15px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.5);
}
.tag::after { content: '+'; font-weight: 400; font-size: 16px; margin-top: -1px; transition: transform .25s var(--ease); }
.tag:hover { background: #fff; }
.tag:hover::after { transform: rotate(90deg); }
.tag:active { transform: rotate(0deg) scale(.97); }
.tag--red { background: var(--red); color: #fff; transform: rotate(1.5deg); }
.tag--red:hover { background: var(--red-hi); }

/* fulla que puja des de baix, com un tiquet */
.sheet {
  width: min(540px, 100%);
  max-width: 100%;
  max-height: 100%;
  margin: auto auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #151618;
  overflow: visible;
}
.sheet::backdrop { background: rgba(6, 6, 7, .66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open]::backdrop { animation: fosc .3s ease; }
.sheet.surt::backdrop { animation: clar .23s ease forwards; }
.sheet__paper {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 86svh;
  padding: 10px 24px 0;
  background: var(--paper);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  transition: transform .22s ease;
}
.sheet__paper::before {  /* vora estripada */
  content: '';
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 10px;
  background:
    linear-gradient(135deg, transparent 50%, var(--paper) 50%) 0 0 / 14px 10px repeat-x,
    linear-gradient(225deg, transparent 50%, var(--paper) 50%) 0 0 / 14px 10px repeat-x;
}
.sheet[open] .sheet__paper { animation: puja .4s cubic-bezier(.2,.9,.3,1); }
.sheet.surt .sheet__paper { animation: baixa .23s ease-in forwards; }
@keyframes puja { from { transform: translateY(105%); } to { transform: none; } }
@keyframes baixa { to { transform: translateY(105%); } }
@keyframes fosc { from { opacity: 0; } }
@keyframes clar { to { opacity: 0; } }

.sheet__grip { width: 42px; height: 4px; margin: 2px auto 8px; border-radius: 2px; background: rgba(21, 22, 24, .22); }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 4px; }
.sheet__head h2 { margin: 0; font-family: var(--sans); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -.005em; text-transform: uppercase; color: var(--red); }
.sheet__x { width: 40px; height: 40px; margin-right: -10px; border: 0; background: none; cursor: pointer; font-size: 28px; line-height: 1; color: #151618; }
.sheet__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.sheet__sub { padding: 6px 0 12px; border-bottom: 1.5px solid #151618; font-size: var(--f-label); letter-spacing: .14em; text-transform: uppercase; color: #6a6964; }
.sheet__row { display: grid; grid-template-columns: 34px 1fr; gap: 4px; padding: 14px 0; border-bottom: 1px dashed rgba(21, 22, 24, .28); }
.sheet__row b { padding-top: 1px; font-weight: 600; font-size: 12px; color: var(--red); }
.sheet__row h4 { margin: 0 0 4px; font-family: var(--sans); font-weight: 800; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.sheet__row p { font-size: 13.5px; line-height: 1.5; color: #2b2c2f; }
.sheet__nota { margin-top: 14px; font-size: 12px; line-height: 1.55; color: #6a6964; }
html.fulla-oberta { overflow: hidden; }

/* ─────────────────────────────  TAULETA  ───────────────────────────── */

@media (max-width: 900px) {
  /* sa factura entra des de sa vora, davall des vídeo */
  .factura {
    position: relative;
    bottom: auto;
    align-self: flex-start;
    width: clamp(150px, 44vw, 290px);
    margin: calc(-1 * var(--s) - clamp(40px, 12vw, 100px)) 0 0 calc(-1 * var(--side));
  }
  .w-camp + .sec { padding-top: calc(var(--gap) * .55); }
}

/* ─────────────────────────────  MÒBIL  ───────────────────────────── */

@media (max-width: 640px) {
  :root { --barh: 58px; --f-label: 10px; --f-txt: 13px; --f-head: 16px; }
  body, .txt { line-height: 1.65; }

  .bar__logo img { width: 86px; }
  .langs button { padding: 8px 4px; font-size: 10px; }
  .btn-line { gap: 8px; padding: 9px 11px 9px 13px; font-size: 10px; letter-spacing: .14em; }
  body[data-vista="wagyu"] .btn-line { padding: 9px 13px 9px 11px; }

  /* portada: sa foto sencera davall sa barra, es títol a una línia */
  .hero { padding-top: var(--barh); }
  .hero__pic::before { display: none; }
  .hero__title { top: 44%; font-size: calc(84vw / (var(--n, 16) * .6)); }
  .hero__btn { top: auto; bottom: 0; transform: translate(-50%, 35%); padding: 13px 20px; font-size: 10.5px; }
  .sec--first { padding-top: 96px; }

  .w-prod .tag { transform: translateX(14vw) rotate(2deg); }
  .w-prod .tag:active { transform: translateX(14vw) scale(.97); }

  .full { --pad: 20px; }
  .full__cap { grid-template-columns: auto 1fr; gap: 14px; padding-top: 34px; }
  .full__escut { width: 34px; }
  .full__tit b { font-size: 15px; }
  .full__data { grid-column: 2; display: flex; align-items: baseline; gap: 8px; margin-top: -6px; text-align: left; }
  .full__data b { margin-top: 0; font-size: 12px; }
  .full__trepat { margin: 0 14px; }
  .full__trepat::before { left: -25px; }
  .full__trepat::after { right: -25px; }
  .graella { grid-template-columns: 1fr; gap: 2px; }
  .camp label { font-size: 13px; }
  .pas { padding-top: 28px; }
  .pas + .pas { margin-top: 28px; }
  .pas__t { font-size: 11.5px; gap: 10px; }
  .pregunta legend { flex-direction: column; gap: 2px; font-size: 13px; }
  .op span { font-size: 11.5px; }
  .consent { font-size: 11.5px; }
  .gracies { font-size: 13px; }
  .contacte__dades dd { font-size: 13px; }

  .contacte { min-height: 0; clip-path: inset(0 4% round 4px); }
  .contacte__in { grid-template-columns: 1fr; gap: 30px; padding: 84px 0; }
  .contacte__title { font-size: 30px; }

  .peu { flex-direction: column; align-items: flex-start; }
}

/* pantalles tàctils: 16 px perquè l'iPhone no faci zoom en escriure */
@media (pointer: coarse) {
  .camp input, .oberta textarea { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-title .traç { stroke-dashoffset: 0 !important; animation: none !important; }
  .w-title .w-word { opacity: 1 !important; transform: none !important; animation: none !important; }
  .escut img { opacity: 1 !important; animation: none !important; }
  .escut::after { display: none; }
  .sheet[open] .sheet__paper, .sheet.surt .sheet__paper, .sheet::backdrop { animation: none !important; }
  .tag, .camp label, .contacte, .contacte__bg, .contacte__dades > div, .op span::after { transition: none !important; }
  .rebut.go { animation: none; }
  .contacte { clip-path: none; }
  .contacte__dades > div { opacity: 1; transform: none; }
  .tw__cur, .video__soon::before { animation: none; }
}

/* avís quan es mira sa web amb ?prova (canvis des panell sense publicar) */
.prova {
  position: fixed; left: 50%; bottom: 16px; z-index: 60;
  transform: translateX(-50%);
  padding: 10px 16px;
  background: #e8b931; color: #151618;
  font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  border-radius: 3px; box-shadow: 0 8px 24px rgba(0,0,0,.4);
  pointer-events: none;
}
