/* ============================================================
   Red Musik Olesa — Escola de música · v4
   Identitat del bàner oficial d'Olesa: paper crema + taques de pintura,
   logo stencil vermell/negre. Tipografia tranquil·la:
   Fraunces (títols, traç suau) / Montserrat (text i etiquetes)
   ============================================================ */

:root {
  --paper: #fcf6e9;
  --paper-2: #f4ead6;
  --ink: #1a1714;
  --ink-2: #4d463f;
  --dim: #6f675e;
  --line: #e6dccb;
  --line-2: #d3c6b0;
  --red: #ec161b;        /* vermell del logo */
  --red-ink: #c8101a;    /* vermell per a text petit sobre crema (AA) */
  --red-ui: #d0121b;     /* fons de botó amb text blanc (AA) */
  --red-deep: #a80d15;
  --wa: #25d366;

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --sec: clamp(6rem, 13vw, 11rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-weight: 400; font-size: 1.02rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red-ui); color: #fff; padding: .6rem 1rem; z-index: 200; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 3px; }

/* Títols: serif de traç suau, en minúscula, sense crits */
.hero__title, .title, .showroom__name, .irow__name, .madlib__num, .contact__tel, .manifesto,
.pillars h3, .madlib__sentence, .faq summary, .ptable tbody th, .plist li span, .showroom__meta dd {
  font-family: var(--f-display); font-weight: 400; font-optical-sizing: auto;
  font-variation-settings: "SOFT" 100, "WONK" 0; letter-spacing: -.012em;
}
.hero__title, .title, .showroom__name, .irow__name, .madlib__num, .contact__tel { line-height: 1; }
/* Etiquetes: com "ESCOLA DE MÚSICA" del bàner, petites i espaiades */
.kicker {
  font-family: var(--f-body); font-weight: 600; font-size: .74rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--red-ink); margin-bottom: 1.4rem;
}
.title { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.title em, .hero__title em { font-style: italic; color: var(--red-ink); }
.section { padding: var(--sec) 0 0; position: relative; }
.section__lead { color: var(--ink-2); max-width: 26rem; }
.note { margin-top: 2rem; color: var(--dim); font-size: .92rem; }

/* ---------- Botons ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  padding: 1.05rem 1.9rem; border-radius: 999px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--red { background: var(--red-ui); color: #fff; }
.btn--red:hover { background: var(--red-deep); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--wa); color: #052e16; }
.btn--wa:hover { background: #1ebe5b; }
.btn--wa svg { width: 22px; height: 22px; }
.btn--sm { padding: .6rem 1.15rem; font-size: .72rem; }
.btn--block { width: 100%; }
.btn:active { scale: .97; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.link-arrow::after { content: "→"; transition: transform .3s var(--ease); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(252, 246, 233, .84); backdrop-filter: blur(14px);
  transition: transform .5s var(--ease), border-color .3s; border-bottom: 1px solid transparent;
}
.header.is-hidden { transform: translateY(-105%); }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 2.4rem; min-height: 72px; }

.logo { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; line-height: 1; }
.logo__img { height: 30px; width: auto; }
.logo__place { font-family: var(--f-body); font-weight: 600; font-size: .62rem; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--ink); }

.nav { display: flex; gap: 2rem; }
.nav a {
  font-family: var(--f-body); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); transition: color .2s;
}
.nav a:hover, .nav a.is-current { color: var(--ink); }
.nav a.is-current { box-shadow: inset 0 -2px 0 var(--red); }

.header__actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.sound { display: flex; align-items: flex-end; gap: 3px; width: 40px; height: 40px; padding: 11px 10px; background: none; border: 1px solid var(--line-2); border-radius: 50%; cursor: pointer; }
.sound i { flex: 1; height: 25%; background: var(--dim); border-radius: 1px; transition: height .3s; }
.sound.is-on i { background: var(--red); animation: eq 1s ease-in-out infinite alternate; }
.sound.is-on i:nth-child(2) { animation-delay: -.3s; }
.sound.is-on i:nth-child(3) { animation-delay: -.6s; }
.sound.is-on i:nth-child(4) { animation-delay: -.9s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
.lang { display: flex; gap: .2rem; }
.lang__btn {
  background: none; border: 0; padding: .3rem .4rem; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: .78rem; letter-spacing: .12em; color: var(--dim);
}
.lang__btn.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Taques de pintura de fons (tota la web) ---------- */
/* Cada secció té el seu to (colors del bàner); en canviar de secció la
   pintura s'escampa des de les cantonades com a la portada (JS + màscara). */
.paint {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; --p: 0; --g1: 236 22 27; --g2: 30 120 220;
  opacity: clamp(0, (var(--p) - .7) * 3.4, 1); transition: opacity .3s;
}
.paint__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 44% at 10% 18%, rgb(var(--g1) / .13), transparent 72%),
    radial-gradient(46% 42% at 92% 86%, rgb(var(--g2) / .11), transparent 72%);
}
/* Taques grans com les de la portada; el JS les revela amb una màscara */
.paint__img {
  position: absolute; height: auto; width: min(max(40vw, 46vh), 860px);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; visibility: hidden;
}
.paint__tl { left: 0; top: 0; }
.paint__tr { right: 0; top: 0; }
.paint__bl { left: 0; bottom: 0; }
.paint__br { right: 0; bottom: 0; }
/* Barra de progrés de colors */
.scrollbar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; transition: opacity .4s; }
.scrollbar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, #ec161b, #ff8a00, #ffd21f, #2bb673, #1e88e5, #8e44ad, #ec4899);
  clip-path: inset(0 calc(100% - var(--sp, 0) * 100%) 0 0);
}
body.in-intro .scrollbar { opacity: 0; }

/* ============================================================
   INTRO — el bàner oficial; scroll → les taques s'obren
   ============================================================ */
.intro { position: relative; height: 230vh; margin-bottom: -100vh; z-index: 5; pointer-events: none; --p: 0; }
.intro__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center; background: var(--paper);
  opacity: calc(1 - clamp(0, (var(--p) - .62) * 2.8, 1));
}
.intro__paint {
  position: absolute; width: min(max(46vw, 50vh), 980px); height: auto;
  animation: paintIn 1.5s var(--ease) both;
}
.intro__paint--tl { left: 0; top: 0; transform-origin: 0 0; translate: calc(var(--p) * -26vw) calc(var(--p) * -16vh); }
.intro__paint--tr { right: 0; top: 0; transform-origin: 100% 0; translate: calc(var(--p) * 26vw) calc(var(--p) * -16vh); animation-delay: .1s; }
.intro__paint--bl { left: 0; bottom: 0; transform-origin: 0 100%; translate: calc(var(--p) * -26vw) calc(var(--p) * 16vh); animation-delay: .2s; }
.intro__paint--br { right: 0; bottom: 0; transform-origin: 100% 100%; translate: calc(var(--p) * 26vw) calc(var(--p) * 16vh); animation-delay: .3s; }
@keyframes paintIn { from { opacity: 0; scale: .55; } to { opacity: 1; scale: 1; } }

.intro__logo {
  position: relative; z-index: 1;
  transform: scale(calc(1 - var(--p) * .22));
  opacity: calc(1 - clamp(0, (var(--p) - .2) * 1.8, 1));
}
.intro__logo img { width: min(56vw, 780px); height: auto; animation: logoIn 1.3s .45s var(--ease) both; }
@keyframes logoIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.intro__wa {
  position: absolute; right: clamp(1.2rem, 4.5vw, 5rem); top: 50%; z-index: 1; pointer-events: auto;
  display: flex; flex-direction: column; gap: .9rem; transform: translateY(-50%);
  opacity: calc(1 - clamp(0, (var(--p) - .15) * 2.2, 1));
}
.intro__wa a {
  display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink);
  font-family: var(--f-body); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.55rem); letter-spacing: .02em;
  animation: fadeUp 1s 1s var(--ease) both;
}
.intro__wa a + a { animation-delay: 1.12s; }
.intro__wa svg { width: 1.7em; height: 1.7em; fill: var(--wa); flex: none; }
.intro__wa a:hover { color: var(--red-ink); }
.intro__hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-weight: 600; letter-spacing: .4em; text-transform: uppercase; font-size: .66rem; color: var(--dim);
  opacity: calc(1 - var(--p) * 6);
}
.intro__hint > * { animation: fadeUp 1s 1.4s var(--ease) both; }
.intro__hint i { width: 1px; height: 44px; background: linear-gradient(var(--red), transparent); animation: scrollcue 1.6s 2s ease-in-out infinite both !important; transform-origin: top; }
@keyframes scrollcue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ============================================================
   PORTADA
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: clamp(6.5rem, 12vh, 8rem) 0 clamp(2rem, 5vw, 4rem);
  display: flex; align-items: center; --q: 1;
  transform: scale(calc(.94 + var(--q) * .06)); opacity: var(--q); transform-origin: 50% 0;
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero__title { font-size: clamp(3.6rem, 7.6vw, 7.4rem); line-height: .98; letter-spacing: -.025em; }
.hero__lead { margin-top: 1.8rem; max-width: 25rem; color: var(--ink-2); font-size: 1.08rem; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; margin-top: 2.4rem; }

/* Lletres que pugen (data-split) */
[data-split] .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
[data-split] .ch { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 32ms); }
.is-in [data-split] .ch, [data-split].is-in .ch { transform: none; }

/* ---------- Piano clàssic 3D ---------- */
.synth-stage { position: relative; perspective: 1500px; perspective-origin: 50% 20%; padding: 17rem 1.5rem 0; }
.synth3d {
  --rx: 34deg; --ry: -12deg; --rz: 5deg;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(var(--rz));
  transition: transform .6s var(--ease);
}
/* Fusta de caoba envernissada: veta (soroll SVG) + to + brillantor */
.synth3d {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045 0.11' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.06 0 0 0 0 0.02 0 0 0 1.5 -0.6'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --wood: var(--grain), linear-gradient(180deg, #8f4a24 0%, #6e3519 45%, #4f240f 100%);
  --wood-dark: var(--grain), linear-gradient(180deg, #5a2a12, #33170a);
  --gloss: linear-gradient(180deg, rgba(255,226,190,.28), rgba(255,226,190,0) 34%);
}
.piano {
  position: relative; transform-style: preserve-3d;
  background: var(--gloss), var(--wood); background-size: auto, 420px 220px, auto;
  border-radius: 4px 4px 8px 8px; padding: .2rem 1.3rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,236,210,.35), inset 0 -3px 0 rgba(40,15,5,.55);
}
/* Cos del piano de cua, darrere del teclat, amb l'arpa daurada i les cordes */
.piano__body { position: absolute; left: 0; bottom: calc(100% - 2px); width: 100%; height: auto; aspect-ratio: 100 / 66; display: block; pointer-events: none; }
/* Tapa aixecada: frontissa a l'esquerra (costat recte), com un piano de cua obert */
.piano__lid {
  position: absolute; left: 0; bottom: calc(100% - 2px); width: 100%; height: auto; aspect-ratio: 100 / 66; display: block; pointer-events: none;
  transform-origin: 0 50%; transform: rotateY(-38deg) translateZ(1px);
}
/* Faristol amb la partitura: s'aixeca des del fons del piano */
.piano__desk {
  position: absolute; left: 17%; right: 17%; bottom: 100%; height: 160px;
  transform-origin: 50% 100%; transform: rotateX(-78deg); transform-style: preserve-3d; pointer-events: none;
  background: var(--gloss), var(--wood); background-size: auto, 420px 220px, auto; border-radius: 6px 6px 2px 2px; padding: 12px 12px 16px;
  box-shadow: inset 0 1px 0 rgba(255,236,210,.3), 0 2px 0 #3a1a0a;
}
.piano__desk::after { /* llistó on reposa el paper */
  content: ""; position: absolute; left: 6px; right: 6px; bottom: 6px; height: 7px; border-radius: 2px;
  background: linear-gradient(180deg, #a35a2c, #5a2a12); box-shadow: 0 -1px 0 rgba(255,236,210,.25);
}
.sheet {
  --gap: 9px;
  position: relative; height: 100%; border-radius: 2px; overflow: hidden;
  background: linear-gradient(180deg, #fffdf7, #f4ecdc); box-shadow: 0 2px 6px rgba(0,0,0,.45);
}
.sheet__staff, .sheet__notes { position: absolute; left: 7%; right: 5%; top: calc(50% - var(--gap) * 2); height: calc(var(--gap) * 4); }
.sheet__staff {
  background: repeating-linear-gradient(180deg, #3d3630 0 1px, transparent 1px var(--gap));
  height: calc(var(--gap) * 4 + 1px);
  border-left: 1px solid #3d3630; border-right: 1px solid #3d3630;
}
.sheet__clef {
  position: absolute; left: calc(7% + 2px); top: calc(50% - var(--gap) * 3.1);
  font-family: "Times New Roman", "Noto Music", serif; font-size: calc(var(--gap) * 6.6); line-height: 1; color: #2b2520;
}
.sheet__notes { left: calc(7% + var(--gap) * 5.4); }
.sheet__title {
  position: absolute; left: 0; right: 0; top: 9px; text-align: center;
  font-family: var(--f-display); font-style: italic; font-variation-settings: "SOFT" 100; font-size: .78rem; color: #6f675e;
}
.sn {
  position: absolute; left: calc(var(--x) * 9.5%); bottom: calc(var(--pos) * var(--gap) / 2); width: calc(var(--gap) * 1.35);
  height: var(--gap); transform: translateY(50%); transition: left .35s var(--ease), opacity .35s;
}
.sn__head { position: absolute; inset: 0; border-radius: 50%; background: #1f1a16; transform: rotate(-22deg); }
.sn::after { /* plica */
  content: ""; position: absolute; right: 0; bottom: 50%; width: 1.3px; height: calc(var(--gap) * 3.2); background: #1f1a16;
}
.sn.is-down::after { right: auto; left: 0; bottom: auto; top: 50%; }
.sn.is-ledger::before {
  content: ""; position: absolute; left: -35%; right: -35%; top: 50%; height: 1px; background: #3d3630;
}
.sn__acc { position: absolute; right: 115%; top: 50%; transform: translateY(-52%); font: 600 calc(var(--gap) * 1.5)/1 "Times New Roman", serif; color: #1f1a16; }
.sn.is-new { animation: noteIn .45s var(--ease) both; }
.sn.is-new .sn__head { background: var(--red-ink); }
.sn.is-new::after, .sn.is-new .sn__acc { background-color: var(--red-ink); color: var(--red-ink); }
.sn.is-new .sn__acc { background: none; }
@keyframes noteIn { from { opacity: 0; transform: translateY(-30%); } }

/* Tapa del teclat: marca daurada i nota en solfeig */
.piano__fall {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .75rem .3rem .65rem; transform: translateZ(1px);
}
.piano__brand {
  font-family: var(--f-display); font-style: italic; font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.05rem; letter-spacing: .03em;
  background: linear-gradient(180deg, #f1d99a, #b98a3e 60%, #e3c47c); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.piano__brand small { font-family: var(--f-body); font-style: normal; font-weight: 500; font-size: .56rem; letter-spacing: .32em; text-transform: uppercase; margin-left: .7rem; }
.piano__note {
  font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 500; font-size: 1.35rem; line-height: 1;
  color: #e3c47c; min-width: 3.2ch; text-align: right;
}
.piano__face { position: absolute; display: block; pointer-events: none; }
.piano__face--front {
  left: 0; right: 0; top: 100%; height: 30px; transform-origin: 50% 0; transform: rotateX(-90deg);
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.25)), var(--wood-dark); background-size: auto, 420px 220px, auto; border-radius: 0 0 6px 6px;
}
.piano__face--left, .piano__face--right { top: 0; bottom: 0; width: 30px; background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0)), var(--wood-dark); background-size: auto, 420px 220px, auto; }
.piano__face--left { right: 100%; transform-origin: 100% 50%; transform: rotateY(90deg); }
.piano__face--right { left: 100%; transform-origin: 0 50%; transform: rotateY(-90deg); }
.synth__shadow {
  position: absolute; left: 8%; right: 8%; bottom: 3.2rem; height: 60px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70,40,20,.45), transparent); filter: blur(14px);
  transform: translateY(40px) scaleY(.6); z-index: -1;
}
/* Teclat: marfil i banús sobre un llit de fusta, amb el feltre granat al fons */
.keys {
  position: relative; display: flex; height: 190px; background: #2a1309; border-radius: 2px; padding: 5px 2px 0;
  user-select: none; touch-action: none; transform-style: preserve-3d;
  box-shadow: inset 0 3px 0 #6d1412, inset 0 6px 10px rgba(20,6,2,.7);
}
.key { position: relative; cursor: pointer; border: 0; padding: 0; transform-style: preserve-3d; transform-origin: 50% 0; }
.key--w {
  flex: 1; margin: 0 1px; border-radius: 0 0 3px 3px;
  background:
    repeating-linear-gradient(180deg, rgba(150,120,70,.05) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #dccaa3 0%, #f8eed8 9%, #f3e6c9 78%, #e8d7b2 100%);
  box-shadow: inset 0 0 0 1px rgba(120,90,50,.12);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: .55rem;
  font-family: var(--f-body); font-weight: 500; font-size: .6rem; color: #bba67f;
  transition: transform .07s ease-out, background .07s;
}
.key--w::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #e6d3aa, #b59c6d); transform-origin: 50% 0; transform: rotateX(-90deg);
}
.key--b {
  position: absolute; top: 5px; width: 6.2%; height: 61%; z-index: 2; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, rgba(255,240,220,.07), rgba(255,240,220,0) 30%, rgba(255,240,220,0) 70%, rgba(255,240,220,.05)),
    linear-gradient(180deg, #0d0806 0%, #22170f 72%, #3a2a1e 88%, #120b07 100%);
  transform: translateZ(13px); transition: transform .07s ease-out, background .07s;
}
.key--b::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 13px; border-radius: 0 0 3px 3px;
  background: linear-gradient(180deg, #1a100a, #070403); transform-origin: 50% 0; transform: rotateX(-90deg);
}
.key--w.is-on { transform: rotateX(-5deg); background: linear-gradient(180deg, #cdb88f 0%, #eadbb9 14%, #e2d0aa 100%); }
.key--b.is-on { transform: translateZ(8px) rotateX(-4deg); background: linear-gradient(180deg, #050302 0%, #160e09 100%); }
.key:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
@media (hover: none) { .key--w { color: transparent; } .synth__keys { display: none; } }
.synth__hint { margin-top: 4.2rem; font-family: var(--f-body); font-weight: 500; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-align: center; }

/* ============================================================
   ESCOLA — manifest que s'encén paraula a paraula
   ============================================================ */
.manifesto {
  font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.16; letter-spacing: -.018em; max-width: 20ch;
}
.manifesto .w { color: #ddd2bf; transition: color .6s var(--ease); }
.manifesto .w.is-lit { color: var(--ink); }
.manifesto .w.is-lit.is-red { color: var(--red-ink); font-style: italic; }
.escola__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.pillars li { border-top: 1px solid var(--line-2); padding-top: 1.2rem; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: .4rem; }
.pillars li > :not(.pillars__n) { grid-column: 2; }
.pillars__n { padding-top: .5rem; }
.pillars__link { justify-self: start; display: inline-block; margin-top: .55rem; font-weight: 600; color: var(--red-ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s; }
.pillars__link:hover { color: var(--ink); }
.pillars__n { font-family: var(--f-body); font-weight: 600; font-size: .78rem; color: var(--red-ink); letter-spacing: .2em; }
.pillars h3 { font-weight: 500; font-size: 1.4rem; line-height: 1.15; margin: 0 0 .45rem; }
.pillars p { color: var(--ink-2); }

/* ============================================================
   INSTRUMENTS — llista interactiva + lent amb la foto
   ============================================================ */
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: clamp(2rem, 4vw, 3rem) 0 .8rem; }
.filter {
  background: none; border: 0; padding: .35rem 0; cursor: pointer;
  font-family: var(--f-body); font-weight: 500; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
  transition: color .2s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

.ilist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ilist li { border-bottom: 1px solid var(--line-2); overflow: hidden; transition: opacity .35s; }
.ilist li.is-hidden { display: none; }
.ilist li.is-in { animation: rowIn .7s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.irow {
  width: 100%; display: grid; grid-template-columns: 3.4rem 1fr auto auto 2.4rem; align-items: center; gap: 1.4rem;
  background: none; border: 0; padding: clamp(.55rem, 1vw, .8rem) 0; cursor: pointer; text-align: left; color: var(--ink);
}
.irow__n { font-family: var(--f-body); font-weight: 500; font-size: .8rem; color: var(--dim); letter-spacing: .14em; }
.irow__thumb { display: none; }
.irow__name { font-size: clamp(1.45rem, 2.3vw, 2.15rem); line-height: 1.15; transition: transform .6s var(--ease), color .3s; }
.irow__fam, .irow__price { font-family: var(--f-body); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: var(--dim); white-space: nowrap; }
.irow__price { color: var(--ink-2); min-width: 7.5rem; text-align: right; }
/* Dues columnes (ordre vertical: 01–08 a l'esquerra, 09–15 a la dreta) */
@media (min-width: 961px) {
  .ilist { columns: 2; column-gap: clamp(2.5rem, 5vw, 5rem); }
  .ilist li { break-inside: avoid; }
  .irow { grid-template-columns: 2.4rem 1fr auto 1.4rem; gap: 1rem; }
  .irow__fam { display: none; }
  .irow__name { font-size: clamp(1.35rem, 1.8vw, 1.8rem); }
  .irow__price { min-width: 0; }
  .irow:hover .irow__name, .irow:focus-visible .irow__name { transform: translateX(.4rem); }
}
.irow__eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; justify-self: end; width: 20px; }
.irow__eq i { flex: 1; height: 15%; background: var(--line-2); border-radius: 1px; transition: background .2s; }
.ilist:hover .irow { opacity: .42; }
.ilist .irow:hover, .ilist .irow:focus-visible, .ilist .irow.is-playing { opacity: 1; }
.irow { transition: opacity .3s; }
.irow:hover .irow__name, .irow:focus-visible .irow__name { color: var(--red-ink); font-style: italic; transform: translateX(.6rem); }
.irow.is-playing .irow__eq i { background: var(--red); animation: eq .5s ease-in-out infinite alternate; }
.irow.is-playing .irow__eq i:nth-child(2) { animation-delay: -.2s; }
.irow.is-playing .irow__eq i:nth-child(3) { animation-delay: -.35s; }
.irow.is-loading .irow__eq i { background: var(--dim); animation: eq .8s ease-in-out infinite alternate; }

/* Lent (només amb ratolí): disc amb la foto que segueix el cursor */
.lens {
  --x: 50vw; --y: 50vh; --vr: 0deg;
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  transform: translate(var(--x), var(--y));
}
.lens__disc {
  position: absolute; left: -20px; top: -250px; width: 280px; height: 280px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(70% 70% at 50% 40%, #fff 0%, #f6f2ec 55%, #e4ddd2 100%);
  transform: scale(0) rotate(var(--vr)); transition: transform .45s var(--ease);
  box-shadow: 0 24px 50px rgba(90, 60, 30, .22);
}
.lens.is-on .lens__disc { transform: scale(1) rotate(var(--vr)); }
.lens__disc img {
  position: absolute; inset: 9%; width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply;
  transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1));
}
.lens__tip {
  position: absolute; left: 120px; top: 44px; transform: translateX(-50%); white-space: nowrap;
  font-family: var(--f-body); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--red-ui); color: #fff; padding: .45rem .85rem; border-radius: 999px; opacity: 0; transition: opacity .3s;
}
.lens.is-on.needs-unlock .lens__tip { opacity: 1; }
.lens__disc svg { position: absolute; inset: 26%; color: var(--red-ui); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   TARIFES — frase configurable + taula enllaçada
   ============================================================ */
.madlib { margin-top: clamp(3rem, 6vw, 5rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.madlib__sentence { font-size: clamp(1.8rem, 3.5vw, 3.1rem); line-height: 1.3; color: var(--ink); }
.madlib__dur { transition: opacity .35s; }
.madlib__dur.is-off { opacity: .2; pointer-events: none; }
.pick { position: relative; display: inline-block; }
.pick select {
  appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 2px solid var(--red);
  color: var(--red-ink); font: inherit; font-style: italic; padding: 0 1.1em 0 0; cursor: pointer; border-radius: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8101a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .1em center; background-size: .5em;
  transition: color .2s, border-color .2s;
}
.pick select:hover { color: var(--ink); }
.pick select option { background: var(--paper); color: var(--ink); font-size: 1rem; font-style: normal; }
.madlib__result { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.madlib__price { display: flex; align-items: baseline; gap: .8rem; }
.madlib__num { font-size: clamp(5.5rem, 12vw, 10.5rem); line-height: .85; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.madlib__unit { font-family: var(--f-body); font-weight: 600; font-size: clamp(.9rem, 1.3vw, 1.1rem); letter-spacing: .14em; color: var(--red-ink); text-transform: uppercase; }
.madlib__break { color: var(--ink-2); min-height: 1.7em; margin-bottom: .8rem; }

.prices { margin-top: clamp(4rem, 8vw, 6rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ptable { width: 100%; border-collapse: collapse; font-family: var(--f-body); }
.ptable th, .ptable td { padding: 1rem .6rem; border-bottom: 1px solid var(--line-2); text-align: right; }
.ptable thead th { font-weight: 500; letter-spacing: .16em; color: var(--dim); font-size: .74rem; text-transform: uppercase; }
.ptable tbody th { text-align: left; font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
.ptable small, .plist small { display: block; font-family: var(--f-body); font-weight: 400; font-variation-settings: normal; font-size: .8rem; letter-spacing: 0; color: var(--dim); margin-top: .15rem; }
.ptable td { font-weight: 500; font-size: 1.15rem; cursor: pointer; transition: background .2s, color .2s; border-radius: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ptable td:hover { color: var(--red-ink); }
.ptable td.is-na { color: var(--line-2); cursor: default; }
.ptable td.is-sel { background: var(--red-ui); color: #fff; }
.plist { list-style: none; margin: 0; padding: 0; font-family: var(--f-body); }
.plist li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-2); cursor: pointer; transition: color .2s; }
.plist li:first-child { border-top: 1px solid var(--line-2); }
.plist li span { font-weight: 500; font-size: 1.2rem; line-height: 1.2; }
.plist li b { font-weight: 500; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.plist li:hover, .plist li.is-sel { color: var(--red-ink); }
.plist__hl { cursor: default !important; color: var(--red-ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.35rem 0; font-weight: 500; font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.3;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-body); font-weight: 300; font-size: 1.8rem; line-height: 1; color: var(--red); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red-ink); }
.faq details::details-content { height: 0; overflow: clip; transition: height .45s var(--ease), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq__a p { color: var(--ink-2); padding-bottom: 1.5rem; max-width: 40rem; }

/* ============================================================
   CONTACTE
   ============================================================ */
.contact { padding-bottom: var(--sec); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.contact__tel { display: inline-block; margin-top: 2rem; font-size: clamp(2.8rem, 5.4vw, 4.6rem); color: var(--red-ink); text-decoration: none; transition: color .2s; font-variant-numeric: lining-nums; }
.contact__tel:hover { color: var(--ink); }
.contact__list { margin: 2rem 0; display: grid; gap: 1.1rem; }
.contact__list dt { font-family: var(--f-body); font-weight: 600; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); }
.contact__list dd { margin: .1rem 0 0; font-size: 1.08rem; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--red-ink); }
.map { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.25) contrast(.95); }

.form { display: flex; flex-direction: column; gap: 1.6rem; align-self: end; }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-family: var(--f-body); font-weight: 600; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--dim); padding: 0; }
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; padding: .7rem 0; font-size: 1.08rem; font-weight: 400; color: var(--ink);
  transition: border-color .2s;
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8101a' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center; background-size: 12px; }
.field select option { background: var(--paper); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--red); }
.field__err { display: none; color: var(--red-ink); font-size: .88rem; }
.field.is-invalid input { border-bottom-color: var(--red-ink); }
.field.is-invalid .field__err { display: block; }
.pills { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .5rem; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-block; padding: .55rem 1.1rem; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 400; transition: border-color .2s, background .2s; }
.pills input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 2px solid var(--red-ink); outline-offset: 3px; }
.form__legal { color: var(--dim); font-size: .86rem; }
.form.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 1px var(--red); } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 2rem 0 2.4rem; color: var(--dim); font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.footer__brand { height: 26px; width: auto; }
.footer__links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__credits { margin-top: 1.4rem; font-size: .78rem; color: var(--dim); }

/* ---------- Showroom ---------- */
.showroom { position: fixed; inset: 0; z-index: 120; display: grid; grid-template-columns: 1.35fr 1fr; background: var(--paper); animation: srIn .45s var(--ease) both; }
@keyframes srIn { from { opacity: 0; } to { opacity: 1; } }
.showroom__stage {
  position: relative; overflow: hidden; cursor: grab; touch-action: none; display: grid; place-items: center;
  background: radial-gradient(70% 60% at 50% 42%, #ffffff 0%, #f7f1e6 50%, #e6dccb 100%);
}
.showroom__stage:active { cursor: grabbing; }
.showroom__ghost {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 0; padding: 0 2rem;
  font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 400; font-style: italic; line-height: .9; text-align: center;
  font-size: clamp(5rem, 13vw, 14rem); color: transparent; -webkit-text-stroke: 1.5px rgba(200,16,26,.18); letter-spacing: -.02em; word-break: break-word;
}
.showroom__turntable { --ry: 0deg; --rx: 0deg; position: relative; width: min(70%, 520px); height: 74vh; }
.showroom__obj, .showroom__reflect { --turn: scaleX(max(.12, cos(var(--ry)))) skewY(calc(var(--ry) * -.18)) scaleY(calc(1 + var(--rx) / 200deg)); }
.showroom__obj { position: absolute; inset: 0; }
.showroom__obj img, .showroom__obj svg, .showroom__reflect img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply;
  transform: var(--turn) rotate(var(--rot, 0deg)) scale(var(--sc, 1)); transition: transform .6s var(--ease);
}
.showroom__turntable.is-drag img, .showroom__turntable.is-drag svg { transition: none; }
.showroom__obj img, .showroom__obj svg { animation: flyIn .9s var(--ease) both, float 5s 1s ease-in-out infinite; }
.showroom__obj svg { inset: 22%; width: 56%; height: 56%; color: var(--red-ui); fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flyIn { from { opacity: 0; scale: .55; translate: 0 60px; } to { opacity: 1; scale: 1; translate: 0 0; } }
@keyframes float { 50% { translate: 0 -14px; } }
.showroom__reflect {
  position: absolute; left: 0; right: 0; top: 100%; height: 40%; overflow: hidden; opacity: .16; pointer-events: none; mix-blend-mode: multiply;
  transform: scaleY(-1); -webkit-mask-image: linear-gradient(to top, #000, transparent 60%); mask-image: linear-gradient(to top, #000, transparent 60%);
}
.showroom__reflect img { height: 250%; inset: auto 0 0 0; }
.showroom__floor { position: absolute; left: 22%; right: 22%; bottom: 9%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70,40,20,.22), transparent); pointer-events: none; }
.showroom__drag { position: absolute; bottom: 1.4rem; left: 50%; transform: translateX(-50%); font-family: var(--f-body); font-weight: 600; letter-spacing: .3em; text-transform: uppercase; font-size: .66rem; color: var(--dim); }
.showroom__panel { position: relative; padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; background: var(--paper); border-left: 1px solid var(--line); overflow-y: auto; }
.showroom__panel .kicker { margin: 0; }
.showroom__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.showroom__close:hover { border-color: var(--red); color: var(--red-ink); }
.showroom__name { font-size: clamp(3.2rem, 6.4vw, 6.2rem); }
.showroom__desc { color: var(--ink-2); font-size: 1.08rem; max-width: 30rem; }
.showroom__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: .4rem 0; max-width: 30rem; border-top: 1px solid var(--line-2); padding-top: 1.1rem; }
.showroom__meta dt { font-family: var(--f-body); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; font-size: .68rem; color: var(--dim); }
.showroom__meta dd { margin: 0; font-weight: 500; font-size: 1.6rem; }
.showroom__ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }
.showroom__nav { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-family: var(--f-body); font-weight: 600; font-size: .8rem; letter-spacing: .2em; color: var(--dim); }
.showroom__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.showroom__nav button:hover { border-color: var(--red); color: var(--red-ink); }
.showroom__credit { font-size: .76rem; color: var(--dim); margin-top: auto; padding-top: 1rem; }
.showroom__credit a { color: var(--ink-2); }

/* ---------- WhatsApp flotant ---------- */
.wa-float {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 45; width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); display: grid; place-items: center; transition: transform .3s var(--ease), opacity .3s;
  box-shadow: 0 8px 20px rgba(20, 90, 40, .25);
}
.wa-float svg { width: 28px; height: 28px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }
body.in-intro .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Aparició ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   PÀGINES — salt de secció en secció
   ============================================================ */
.is-paged { scroll-behavior: auto; }
.is-paged main > .section {
  min-height: 100vh; min-height: 100svh;
  padding: clamp(6.5rem, 13vh, 9rem) 0 clamp(3.5rem, 8vh, 6rem);
  display: flex; flex-direction: column; justify-content: center;
}
.pager {
  position: fixed; right: clamp(.9rem, 1.6vw, 1.6rem); top: 50%; z-index: 40;
  display: none; flex-direction: column; align-items: flex-end; gap: .2rem;
  transform: translateY(-50%); transition: opacity .5s var(--ease);
}
.is-paged .pager { display: flex; }
body.in-intro .pager { opacity: 0; pointer-events: none; }
.pager button {
  position: relative; display: flex; align-items: center; justify-content: flex-end;
  width: 32px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer;
}
.pager button::after {
  content: ""; width: 10px; height: 2px; background: var(--line-2);
  transition: width .45s var(--ease), background-color .3s;
}
.pager button:hover::after { width: 18px; background: var(--ink); }
.pager button.is-current::after { width: 28px; background: var(--accent, var(--red)); transition: width .3s var(--ease), background-color .6s; }
.pager span {
  position: absolute; right: 40px; white-space: nowrap; pointer-events: none;
  font-family: var(--f-body); font-weight: 600; font-size: .64rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink); opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .35s var(--ease);
}
.pager button:hover span, .pager button:focus-visible span { opacity: 1; transform: none; }
.pager button.is-current span { color: var(--red-ink); }
@media (min-width: 1480px) { .pager button.is-current span { opacity: 1; transform: none; } }
.pager button:focus-visible { outline: 2px solid var(--red-ink); outline-offset: 2px; }

/* Mòbil i tàctils: encaix natiu a l'inici de cada secció */
@media (hover: none) {
  html { scroll-snap-type: y proximity; }
  .intro, .hero, main > .section { scroll-snap-align: start; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .irow__fam { display: none; }
  .irow { grid-template-columns: 3rem 1fr auto 2rem; }
}
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .synth-stage { max-width: 620px; }
  .escola__grid { grid-template-columns: 1fr; }
  .synth-stage { padding-top: 19rem; }
  .madlib, .prices, .faq-wrap, .contact__grid { grid-template-columns: 1fr; }
  .intro__logo img { width: min(84vw, 640px); }
  .intro__wa { top: auto; right: auto; left: 50%; bottom: 17vh; transform: translateX(-50%); flex-direction: row; gap: 1.6rem; white-space: nowrap; }
  .showroom { grid-template-columns: 1fr; grid-template-rows: 52vh 1fr; }
  .showroom__turntable { height: 44vh; }
  .showroom__panel { justify-content: flex-start; padding-top: 1.6rem; border-left: 0; border-top: 1px solid var(--line); }
  .showroom__close { position: fixed; top: 1rem; right: 1rem; z-index: 2; background: rgba(252,246,233,.8); }
  .burger { display: block; z-index: 56; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: .6rem; padding: 0 var(--pad);
    background: var(--paper); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; z-index: 55;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity .3s; }
  .nav a { font-family: var(--f-display); font-variation-settings: "SOFT" 100; font-weight: 400; font-size: 2.8rem; letter-spacing: -.01em; text-transform: none; color: var(--ink); }
  .nav a.is-current { box-shadow: none; color: var(--red-ink); font-style: italic; }
}
@media (max-width: 640px) {
  body { font-size: .98rem; }
  .intro { height: 200vh; }
  .intro__wa { flex-direction: column; gap: .7rem; bottom: 25vh; }
  .logo__img { height: 24px; }
  .header__inner { gap: 1rem; }
  .lang__btn { padding: .3rem .25rem; }
  .hero__title { font-size: clamp(3.4rem, 17vw, 5rem); }
  .synth-stage { padding-inline: .6rem; }
  .synth3d { --rx: 26deg !important; --ry: 0deg !important; --rz: 0deg !important; }
  .synth-stage { padding-top: 11.5rem; }
  .keys { height: 150px; }
  .piano { padding-inline: .8rem; }
  .piano__desk { left: 12%; right: 12%; height: 128px; }
  .sheet { --gap: 7.5px; }
  .piano__brand small { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad); scrollbar-width: none; }
  .filter { flex: none; }
  .irow { grid-template-columns: 46px 1fr auto; gap: .8rem; padding: .45rem 0; }
  .irow__n, .irow__eq { display: none; }
  .irow__thumb {
    display: block; position: relative; width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
    background: radial-gradient(70% 70% at 50% 40%, #fff 0%, #ebe3d6 100%);
  }
  .irow__thumb img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; transform: rotate(var(--rot, 0deg)) scale(var(--sc, 1)); }
  .irow__thumb svg { position: absolute; inset: 22%; color: var(--red-ui); fill: none; stroke: currentColor; stroke-width: 1.5; }
  .irow__name { font-size: clamp(1.2rem, 5.2vw, 1.45rem); }
  .irow__price { min-width: 0; font-size: .7rem; }
  .irow.is-playing .irow__name { color: var(--red-ink); }
  .ptable th, .ptable td { padding: .8rem .3rem; }
  .ptable tbody th { font-size: 1.08rem; }
  .ptable td { font-size: 1rem; }
  .showroom__name { font-size: 3rem; }
  .paint__img { width: 64vw; }
}
@media (hover: none) {
  .ilist:hover .irow { opacity: 1; }
  .irow:hover .irow__name { transform: none; color: inherit; font-style: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-split] .ch { transform: none; }
  .manifesto .w { color: var(--ink); }
}
