@font-face {
  font-family: 'Josefin Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/josefin-sans.woff2) format('woff2');
}

:root {
  --fons: #0b0b0d;
  --fons-2: #141418;
  --text: #f2efe9;
  --text-2: #b9b4ab;
  --vermell: #d12a32;
  --vermell-2: #e8464d;
  --linia: rgba(255, 255, 255, .12);
  --titol: 'Josefin Sans', 'Futura', 'Century Gothic', sans-serif;
  --cos: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --amplada: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--fons);
  color: var(--text);
  font: 17px/1.6 var(--cos);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titol); font-weight: 600; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--vermell-2); outline-offset: 3px; }

.etiqueta {
  font-family: var(--titol);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  color: var(--vermell-2);
  margin-bottom: .8em;
}
.nota { color: var(--text-2); font-size: .92rem; }
.nota a { color: var(--text); }

/* ---- Capçalera ---- */
.cap {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.cap.amb-fons { background: rgba(11, 11, 13, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cap-logo img { width: 104px; height: auto; color: var(--text); filter: invert(1); }
#nav { display: flex; gap: 28px; align-items: center; }
#nav a {
  font-family: var(--titol); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem;
  text-decoration: none; color: var(--text-2); padding-top: 3px;
}
#nav a:hover { color: var(--text); }
#nav .nav-cta { color: var(--text); border: 1px solid var(--vermell); padding: 8px 14px 6px; border-radius: 999px; }
#nav .nav-cta:hover { background: var(--vermell); }
.cap-menu { display: none; }

/* ---- Botons ---- */
.botons, .contacte { display: flex; flex-wrap: wrap; gap: 12px; }
.boto {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--titol); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .9rem;
  text-decoration: none; padding: 15px 24px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45); color: var(--text);
  transition: background .2s, border-color .2s;
}
.boto:hover { background: rgba(255, 255, 255, .08); border-color: var(--text); }
.boto-email { text-transform: none; letter-spacing: .02em; }
.boto-ple { background: var(--vermell); border-color: var(--vermell); }
.boto-ple:hover { background: var(--vermell-2); border-color: var(--vermell-2); }

/* ---- Portada ---- */
.portada { position: relative; }
.portada picture { position: relative; display: block; height: min(88svh, 64vw); min-height: 300px; overflow: hidden; }
.portada picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.portada picture::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,13,.6) 0%, rgba(11,11,13,0) 18%, rgba(11,11,13,0) 62%, var(--fons) 100%);
}
.portada-text { position: relative; z-index: 1; max-width: var(--amplada); margin: -90px auto 0; padding: 0 var(--gutter) clamp(24px, 6vw, 72px); }
.portada h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); max-width: 12ch; }
.portada-sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-2); max-width: 46ch; margin-bottom: 1.6em; }

/* ---- Seccions ---- */
.seccio { padding: clamp(72px, 12vw, 140px) 0; }
.seccio-fosca { background: var(--fons-2); }
.amplada { max-width: var(--amplada); margin: 0 auto; padding: 0 var(--gutter); }

.concerts { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 1px solid var(--linia); }
.concert { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--linia); }
.concert-data { flex: none; width: 64px; text-align: center; font-family: var(--titol); line-height: 1; }
.concert-dia { display: block; font-size: 2.2rem; font-weight: 600; color: var(--text); }
.concert-mes { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--vermell-2); margin-top: 6px; }
.concert-info strong { display: block; font-family: var(--titol); font-weight: 600; font-size: 1.35rem; }
.concert-info { flex: 1; min-width: 0; }
.concert-info span { color: var(--text-2); font-size: .95rem; }
.concert-lloc { color: var(--text); text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
.concert-lloc:hover { text-decoration-color: var(--vermell-2); }
.concert-cartell { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.concert-cartell img { width: 64px; height: 88px; object-fit: cover; transition: transform .3s; }
.concert-cartell:hover img { transform: scale(1.05); }
.agenda-buida { color: var(--text-2); font-size: 1.1rem; max-width: 52ch; margin-top: 1.5rem; }
.ocupat { margin-top: clamp(40px, 6vw, 64px); }
.ocupat dl { margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 32px; }
.ocupat dl div { padding: 12px 0; border-top: 1px solid var(--linia); }
.ocupat dt { font-family: var(--titol); text-transform: capitalize; font-size: 1.05rem; }
.ocupat dd { margin: 4px 0 0; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---- Música ---- */
.disc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 2rem; }
.disc-portada { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.disc-info > p:first-child { color: var(--text-2); font-size: 1.1rem; }
.pistes { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--linia); }
.pistes li { border-bottom: 1px solid var(--linia); }
.pistes button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 12px;
  padding: 16px 4px; font-family: var(--titol); font-size: 1.2rem;
}
.pistes button:hover .pista-nom, .pistes button.sona .pista-nom { color: var(--vermell-2); }
.pistes button:focus-visible { outline: 2px solid var(--vermell-2); }
.pista-ico { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); position: relative; }
.pista-ico::before { content: ''; position: absolute; left: 12px; top: 9px; border-left: 11px solid var(--text); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sona .pista-ico { background: var(--vermell); border-color: var(--vermell); }
.sona .pista-ico::before { left: 10px; top: 10px; width: 4px; height: 12px; border: 0; background: var(--text); box-shadow: 7px 0 0 var(--text); }
.pista-dur { color: var(--text-2); font-family: var(--cos); font-size: .9rem; font-variant-numeric: tabular-nums; }
.progres { height: 3px; background: var(--linia); margin-top: -1px; }
.progres div { height: 100%; width: 0; background: var(--vermell-2); }
.escolta { margin: 2rem 0 .6rem; color: var(--text-2); font-size: .9rem; }
.plataformes { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plataformes a {
  display: inline-block; text-decoration: none; font-size: .9rem;
  padding: 8px 14px; border: 1px solid var(--linia); border-radius: 999px; color: var(--text-2);
}
.plataformes a:hover { color: var(--text); border-color: rgba(255,255,255,.4); }
.repertori { margin-top: clamp(56px, 8vw, 96px); padding-top: 2rem; border-top: 1px solid var(--linia); }
.artistes { font-family: var(--titol); font-size: clamp(1.2rem, 2.6vw, 1.65rem); line-height: 1.45; color: var(--text); max-width: 60ch; }

/* ---- Vídeos ---- */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 28px; margin: 2rem 0 1.2rem; }
.video { margin: 0; }
.video-play, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; overflow: hidden; }
.video-play { all: unset; display: block; width: 100%; aspect-ratio: 16 / 9; cursor: pointer; position: relative; border-radius: 4px; overflow: hidden; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .3s; opacity: .85; }
.video-play:hover img { transform: scale(1.03); opacity: 1; }
.video-play::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border-radius: 50%; background: var(--vermell) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") 55% 50% / 34px no-repeat;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.video-play:focus-visible { outline: 2px solid var(--vermell-2); outline-offset: 3px; }
.video figcaption { font-family: var(--titol); font-size: 1.2rem; margin-top: 12px; }
.video figcaption span { font-family: var(--cos); font-size: .85rem; color: var(--text-2); margin-left: .5em; }

/* ---- Galeria ---- */
.galeria { columns: 3 320px; column-gap: 8px; padding: 2rem 8px 0; max-width: 1600px; margin: 0 auto; }
.galeria a { display: block; margin-bottom: 8px; break-inside: avoid; overflow: hidden; border-radius: 2px; }
.galeria img { width: 100%; height: auto; transition: transform .5s, filter .3s; filter: brightness(.92); }
.galeria a:hover img { transform: scale(1.03); filter: none; }

.visor { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.visor::backdrop { background: rgba(0,0,0,.94); }
.visor img { width: 100%; height: 100%; object-fit: contain; }
.visor button {
  position: absolute; border: 0; background: rgba(0,0,0,.4); color: #fff; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; font-size: 32px; line-height: 1;
}
.visor button:hover { background: rgba(255,255,255,.15); }
.visor-tanca { top: 16px; right: 16px; }
.visor.sol .visor-ant, .visor.sol .visor-seg { display: none; }
.visor-ant { left: 16px; top: 50%; margin-top: -26px; }
.visor-seg { right: 16px; top: 50%; margin-top: -26px; }

/* ---- Qui som ---- */
.qui-som { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 80px); align-items: end; }
.qui-som p { color: var(--text-2); font-size: 1.08rem; max-width: 60ch; }
.qui-som em { color: var(--text); font-style: normal; }
.membres { list-style: none; padding: 0; margin: 0; }
.membres li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--linia); }
.membres li:first-child { border-top: 1px solid var(--linia); }
.membres strong { font-family: var(--titol); font-weight: 600; font-size: 1.3rem; }
.membres span { color: var(--text-2); font-size: .92rem; text-align: right; }

/* ---- Contractació ---- */
.contracta { background: radial-gradient(ellipse at 80% 0%, rgba(209,42,50,.22), transparent 60%), var(--fons); }
.contracta-graella { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); margin-top: 2rem; }
.ofereix { list-style: none; padding: 0; margin: 0 0 2rem; }
.ofereix li { padding: 0 0 1.2rem; color: var(--text-2); }
.ofereix strong { display: block; color: var(--text); font-family: var(--titol); font-size: 1.25rem; font-weight: 600; margin-bottom: .2em; }
.boto-wa::before {
  content: ''; width: 18px; height: 18px; margin-top: -3px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.3-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.xarxes { margin-top: 1.6rem; color: var(--text-2); }
.llocs { border-left: 1px solid var(--linia); padding-left: clamp(24px, 4vw, 48px); }
.llocs p { font-family: var(--titol); font-size: 1.15rem; line-height: 1.7; color: var(--text-2); }

/* ---- Peu ---- */
.peu { padding: 56px var(--gutter) 64px; text-align: center; border-top: 1px solid var(--linia); color: var(--text-2); font-size: .9rem; }
.peu img { width: 96px; height: auto; margin: 0 auto 16px; filter: invert(1); opacity: .9; }
.plataformes-peu { justify-content: center; margin-top: 16px; }

/* ---- Mòbil ---- */
@media (max-width: 820px) {
  .cap-menu {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer; padding: 10px;
  }
  .cap-menu span { display: block; height: 2px; background: var(--text); transition: transform .25s; }
  .cap-menu[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .cap-menu[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  #nav {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--fons); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--linia);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  #nav.obert { transform: none; opacity: 1; pointer-events: auto; }
  #nav a { padding: 16px 0; border-bottom: 1px solid var(--linia); font-size: 1rem; }
  #nav .nav-cta { margin-top: 16px; text-align: center; border-radius: 999px; padding: 14px; background: var(--vermell); border: 0; }
  .cap:has(#nav.obert) { background: var(--fons); }
  .portada picture { height: auto; aspect-ratio: 1; min-height: 0; }
  .portada picture img { object-position: 50% 30%; }
  .portada-text { margin-top: -48px; }
  .disc, .qui-som, .contracta-graella { grid-template-columns: 1fr; }
  .disc-portada { max-width: 420px; }
  .llocs { border-left: 0; padding-left: 0; border-top: 1px solid var(--linia); padding-top: 2rem; }
  .galeria { columns: 2 160px; column-gap: 6px; padding: 1.5rem 6px 0; }
  .galeria a { margin-bottom: 6px; }
  .visor-ant, .visor-seg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
