/* =========================================================
   AVATA STUDIO — Sistema de disseny compartit
   Estil: clar, minimalista, editorial · accent groc
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Tipografia secundària de marca — Roca (self-hosted) */
@font-face {
  font-family: 'Roca';
  src: url('../fonts/roca.woff2') format('woff2'),
       url('../fonts/roca.otf') format('opentype');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* superfícies — paleta PROVA "Granat càlid" (560216 · ffd398 · c6b9a3 · blanc) */
  --bg:        #ffffff;
  --bg-soft:   #f4efe6;   /* crema càlid (taupe suau) */
  --bg-cream:  #faf6ef;
  --surface:   #ffffff;   /* targetes */
  --surface-2: #f6f1e8;   /* hover targetes */
  --dark:      #560216;   /* granat — seccions/peu */
  --dark-soft: #6c0a20;

  /* tinta */
  --ink:       #2c1013;   /* granat-marró fosc (text) */
  --ink-soft:  #6a574f;   /* taupe-marró */
  --ink-faint: #a99c8b;   /* taupe */
  --on-dark:       #ffe9d2;   /* crema-préssec sobre granat */
  --on-dark-soft:  #d8b79b;   /* taupe sobre granat */

  /* línies */
  --line:       rgba(86, 2, 22, 0.13);
  --line-soft:  rgba(86, 2, 22, 0.07);
  --line-dark:  rgba(255, 225, 200, 0.16);

  /* accent — granat primari + préssec lluminós */
  --accent:      #560216;
  --accent-deep: #7a0a22;
  --accent-soft: rgba(86, 2, 22, 0.10);
  --accent-line: rgba(86, 2, 22, 0.26);
  --accent-glow: rgba(86, 2, 22, 0.40);
  --accent-ink:  #ffd398;   /* préssec: text sobre botó granat */
  --peach:       #ffd398;   /* accent lluminós (sobre granat) */
  --taupe:       #c6b9a3;   /* neutre càlid */

  /* moviment */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* layout */
  --maxw: 1240px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(20,22,26,0.04), 0 2px 8px rgba(20,22,26,0.04);
  --shadow-md: 0 6px 24px -8px rgba(20,22,26,0.12), 0 2px 8px rgba(20,22,26,0.05);
  --shadow-lg: 0 30px 60px -24px rgba(20,22,26,0.22);
}

html { scroll-behavior: smooth; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* tipografies: Inter (titulars en Black) + serif elegant (accents) */
h1, h2, h3, .display, .big-statement, .stat .num, .pcard-title, .hcard-title,
.svc-name, .bigmark-track .svc {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* accent tipogràfic: serif itàlica elegant */
.serif {
  font-family: 'Roca', 'Playfair Display', Georgia, serif;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
}
h1 .serif, h2 .serif { font-size: 1.08em; line-height: 1; }

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.4rem, 5vw, 4.5rem);
}
.section { padding: clamp(4rem, 11vh, 8rem) 0; }
.section-sm { padding: clamp(3rem, 7vh, 5rem) 0; }
.section.alt { background: var(--bg-soft); }
.section.dark { background: var(--dark); color: var(--on-dark); }

/* etiqueta de secció */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1.5px; background: var(--accent);
}
.section.dark .eyebrow { color: var(--on-dark-soft); }

/* títols */
h1 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.07;
}
h3 { font-weight: 600; letter-spacing: -0.02em; }
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-soft); font-weight: 400; line-height: 1.6;
  max-width: 56ch;
}
.section.dark .lead { color: var(--on-dark-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- BOTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  cursor: pointer;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.btn-primary:hover { background: #000; box-shadow: var(--shadow-md); }

.btn-accent {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  font-weight: 600;
}
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 10px 30px -10px var(--accent-glow); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

.section.dark .btn { color: var(--on-dark); border-color: var(--line-dark); }
.section.dark .btn-primary { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.section.dark .btn-ghost:hover { border-color: var(--on-dark); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 500; color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease), color 0.3s ease;
}
.text-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.text-link:hover { gap: 0.7rem; }
.text-link:hover svg { transform: translateX(2px); }

/* =========================================================
   HEADER / NAV (compartit)
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(70,2,18,0.92);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: rgba(255,225,200,0.14);
  padding: 0.55rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; }
.brand img { height: 58px; width: auto; display: block; }
.brand .brand-fallback {
  font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--on-dark);
}
.brand .brand-fallback span { color: var(--peach); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 1.9rem; }
.nav-links a {
  position: relative; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-soft);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0;
  background: var(--peach); transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--on-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--peach); }

/* selector d'idioma: ítems de text com els del menú (CA  ES) */
.lang-switch { display: inline-flex; align-items: center; gap: 0.9rem; margin-left: 1.3rem; }
.lang-switch span { display: none; }
.lang-switch a {
  position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-soft); cursor: pointer;
  transition: color 0.25s ease;
}
.lang-switch a::after {
  content: ""; position: absolute; left: 0; bottom: -7px; height: 2px; width: 0;
  background: var(--peach); transition: width 0.3s var(--ease);
}
.lang-switch a:hover { color: var(--on-dark); }
.lang-switch a.active { color: var(--peach); }
.lang-switch a.active::after, .lang-switch a:hover::after { width: 100%; }
@media (max-width: 420px) { .lang-switch { gap: 0.7rem; margin-left: 0.7rem; } }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-cta .btn-primary { background: var(--peach); color: var(--accent); border-color: var(--peach); margin-left: 0.4rem; }
.nav-cta .btn-primary:hover { background: #fff; border-color: #fff; }
.nav-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,225,200,0.28); color: var(--on-dark);
  transition: border-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.nav-ico:hover { border-color: var(--peach); color: var(--peach); transform: translateY(-2px); }
.nav-ico svg { width: 16px; height: 16px; }
@media (max-width: 540px) { .nav-ico { width: 34px; height: 34px; } }

/* ---------- PROJECTES HOME: graella de quadrats ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; padding: 0 clamp(0.8rem, 2vw, 1.4rem); }
.pcard { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.pcard .pcard-ov {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(180deg, rgba(40,4,14,0) 35%, rgba(40,4,14,0.55) 70%, rgba(40,4,14,0.9) 100%);
  opacity: 0; transition: opacity .4s ease;
}
.pcard:hover img { transform: scale(1.05); }
.pcard:hover .pcard-ov { opacity: 1; }
.pcard-cat { color: var(--peach); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 0.35rem; transform: translateY(8px); transition: transform .45s var(--ease); }
.pcard-title { color: #fff; font-weight: 700; text-transform: lowercase; letter-spacing: -0.025em; font-size: clamp(1.2rem, 1.7vw, 1.7rem); line-height: 1.02; transform: translateY(8px); transition: transform .45s var(--ease) .04s; }
.pcard:hover .pcard-cat, .pcard:hover .pcard-title { transform: translateY(0); }
.pcard-play { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: var(--peach); color: var(--accent); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0.8); transition: opacity .4s ease, transform .4s var(--ease); }
.pcard:hover .pcard-play { opacity: 1; transform: scale(1); }
.pcard-play svg { width: 16px; height: 16px; margin-left: 2px; }
@media (max-width: 900px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pgrid { grid-template-columns: 1fr; gap: 0.9rem; } .pcard { aspect-ratio: 16 / 10; } }

/* ---------- RESSENYES A TOTA AMPLADA (sense degradat) ---------- */
.rev-fullwidth { width: 100%; overflow: hidden; }
.rev-fullwidth .rev-marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: scroll-x 60s linear infinite; animation-direction: reverse; padding-left: 1.4rem; }
.rev-fullwidth:hover .rev-marquee-track { animation-play-state: paused; }
.rev-fullwidth .review { flex: 0 0 340px; padding: 1.5rem 1.6rem; gap: 1rem; }
.rev-fullwidth .review .quote { font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 640px) { .rev-fullwidth .rev-marquee-track { animation-duration: 38s; } .rev-fullwidth .review { flex-basis: 82vw; } }
@media (prefers-reduced-motion: reduce) { .rev-fullwidth .rev-marquee-track { animation: none; flex-wrap: wrap; } }

/* hamburger (mòbil) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); cursor: pointer;
}
.nav-toggle { border-color: rgba(255,225,200,0.3); }
.nav-toggle span { position: relative; width: 18px; height: 1.6px; background: var(--on-dark); transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.6px; background: var(--on-dark);
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* menú mòbil obert */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(1.5rem, 8vw, 5rem);
  opacity: 0; pointer-events: none; transform: translateY(-12px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-nav .m-close {
  position: absolute; top: 1.4rem; right: clamp(1.4rem, 5vw, 4rem);
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.mobile-nav .m-close svg { width: 20px; height: 20px; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 0.2rem; }
.mobile-nav nav a {
  font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -0.03em;
  color: var(--ink); padding: 0.4rem 0;
  transition: color 0.25s ease, transform 0.3s var(--ease);
}
.mobile-nav nav a:hover, .mobile-nav nav a.active { color: var(--accent-deep); transform: translateX(8px); }
.mobile-nav .m-foot { margin-top: 2.5rem; color: var(--ink-faint); font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding-top: clamp(8rem, 16vh, 11rem); padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero-grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); max-width: 16ch; }
.hero .lead { margin-top: 1.6rem; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* mèdia del hero */
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 16/10; box-shadow: var(--shadow-lg); background: var(--bg-soft);
}
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-media .play-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: none; box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.hero-media .play-btn:hover { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.hero-media .play-btn svg { width: 26px; height: 26px; margin-left: 3px; }

/* trust bar sota el hero */
.trust {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: flex; align-items: center; gap: clamp(1.2rem, 4vw, 2.5rem); flex-wrap: wrap;
  color: var(--ink-faint); font-size: 0.85rem;
}
.trust .t-item { display: inline-flex; align-items: center; gap: 0.5rem; }
.trust .t-item svg { width: 16px; height: 16px; color: var(--accent-deep); }

/* ---------- HERO IMMERSIU (pantalla completa amb vídeo) ---------- */
.hero-full {
  position: relative; min-height: 100svh; min-height: 100vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg video, .hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,16,0.35) 0%, rgba(8,10,16,0.18) 38%, rgba(8,10,16,0.96) 100%),
    linear-gradient(90deg, rgba(8,10,16,0.6) 0%, rgba(8,10,16,0.05) 55%);
}
.hero-full .hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 9rem; padding-bottom: clamp(3.5rem, 10vh, 7rem); }
.hero-full h1 { font-size: clamp(2.8rem, 8vw, 6rem); max-width: 17ch; }
.hero-full .lead { margin-top: 1.6rem; max-width: 50ch; }
.hero-full .hero-actions { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-full .trust { color: var(--on-dark-soft); }
.hero-reel {
  display: inline-flex; align-items: center; gap: 0.8rem; cursor: pointer;
  background: none; border: none; color: var(--ink); font-family: inherit; font-size: 0.98rem; font-weight: 500;
}
.hero-reel .rb {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-reel:hover .rb { transform: scale(1.08); box-shadow: 0 8px 26px -6px var(--accent-glow); }
.hero-reel .rb svg { width: 18px; height: 18px; margin-left: 2px; }
.scroll-cue {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 1.6rem; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--on-dark-soft); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.scroll-cue .ln { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 700px) { .scroll-cue { display: none; } }

/* =========================================================
   CARDS / GRID GENÈRIC
   ========================================================= */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease, background 0.4s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--accent-line); background: var(--surface-2); }

/* ---------- SERVEIS ---------- */
.service {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.service .s-num { position: absolute; top: 1.6rem; right: 1.8rem; font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.05em; }
.service .s-icon {
  width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: 1.4rem;
  transition: transform 0.5s var(--ease);
}
.service:hover .s-icon { transform: translateY(-3px) rotate(-4deg); }
.service .s-icon svg { width: 26px; height: 26px; color: var(--accent-deep); }
.service h3 { font-size: 1.45rem; margin-bottom: 0.7rem; }
.service p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.6; }
.service .s-list { margin: 1.3rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.service .s-list span {
  font-size: 0.8rem; color: var(--ink-soft); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 0.3rem 0.8rem;
}
.service .s-foot { margin-top: auto; }

/* =========================================================
   PORTFOLIO
   ========================================================= */
.pf-grid {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem; grid-auto-flow: dense;
}
.pf-item {
  position: relative; border-radius: var(--radius); overflow: hidden; display: block;
  grid-column: span 4; aspect-ratio: 4/3; background: var(--bg-soft);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.pf-item.span-3 { grid-column: span 3; }
.pf-item.span-6 { grid-column: span 6; }
.pf-item.span-8 { grid-column: span 8; aspect-ratio: 16/9; }
.pf-item.tall { aspect-ratio: 3/4; }
.pf-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.pf-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,16,18,0) 40%, rgba(15,16,18,0.78) 100%);
  opacity: 0.85; transition: opacity 0.4s ease;
}
.pf-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pf-item:hover img { transform: scale(1.05); }
.pf-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; z-index: 2; }
.pf-cat { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); font-weight: 600; margin-bottom: 0.35rem; }
.pf-title { font-size: 1.25rem; font-weight: 600; color: #fff; line-height: 1.15; }
.pf-item .pf-play {
  position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.8); transition: opacity 0.3s ease, transform 0.3s var(--ease);
}
.pf-item:hover .pf-play { opacity: 1; transform: scale(1); }
.pf-item .pf-play svg { width: 16px; height: 16px; margin-left: 2px; }
@media (max-width: 820px) {
  .pf-item, .pf-item.span-3, .pf-item.span-6, .pf-item.span-8 { grid-column: span 6; aspect-ratio: 4/3; }
}
@media (max-width: 540px) {
  .pf-item, .pf-item.span-3, .pf-item.span-6, .pf-item.span-8 { grid-column: span 12; }
}

/* filtres de portfolio */
.pf-filters { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.8rem; }
.pf-filter {
  font-family: inherit; font-size: 0.88rem; font-weight: 500; cursor: pointer;
  padding: 0.5rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft); transition: all 0.25s ease;
}
.pf-filter:hover { border-color: var(--ink); color: var(--ink); }
.pf-filter.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* mosaic equilibrat (pàgina Projectes): peces variades amb alçada de fila fixa
   perquè tot encaixi sense forats */
.pf-grid.mosaic {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 215px);
  grid-auto-flow: dense;
}
.mosaic .pf-item { aspect-ratio: auto; height: 100%; grid-column: span 4; grid-row: span 1; }
.mosaic .pf-item.m-big  { grid-column: span 8; grid-row: span 2; }
.mosaic .pf-item.m-tall { grid-column: span 4; grid-row: span 2; }
.mosaic .pf-item.m-wide { grid-column: span 8; grid-row: span 1; }
.mosaic .pf-item.m-half { grid-column: span 6; grid-row: span 1; }
.mosaic .pf-item.m-sm   { grid-column: span 4; grid-row: span 1; }
.mosaic .pf-item.m-full { grid-column: span 12; grid-row: span 1; }
@media (max-width: 820px) {
  .pf-grid.mosaic { grid-auto-rows: clamp(140px, 26vw, 200px); }
  .mosaic .pf-item.m-big, .mosaic .pf-item.m-wide { grid-column: span 12; }
  .mosaic .pf-item.m-tall { grid-column: span 6; grid-row: span 2; }
  .mosaic .pf-item, .mosaic .pf-item.m-half, .mosaic .pf-item.m-sm { grid-column: span 6; grid-row: span 1; }
}
@media (max-width: 540px) {
  .pf-grid.mosaic { grid-auto-rows: clamp(190px, 58vw, 250px); }
  .mosaic .pf-item, .mosaic .pf-item.m-big, .mosaic .pf-item.m-tall,
  .mosaic .pf-item.m-wide, .mosaic .pf-item.m-half, .mosaic .pf-item.m-sm { grid-column: span 12; grid-row: span 1; }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 1rem; }
.stat .num { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat .num .plus { color: var(--accent-deep); }
.stat .label { margin-top: 0.6rem; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.section.dark .stat .num { color: var(--on-dark); }
.section.dark .stat .label { color: var(--on-dark-soft); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* =========================================================
   MARQUEE CLIENTS
   ========================================================= */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: scroll-x 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .client {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 1.6rem;
  font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: var(--ink-faint);
  white-space: nowrap; letter-spacing: -0.01em;
}
.marquee .client::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* =========================================================
   RESSENYES
   ========================================================= */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; box-shadow: var(--shadow-sm); }
.review .stars { display: flex; gap: 0.2rem; color: var(--accent-deep); }
.review .stars svg { width: 16px; height: 16px; }
.review .quote { font-size: 1rem; line-height: 1.6; color: var(--ink); flex: 1; }
.review .author { display: flex; align-items: center; gap: 0.8rem; }
.review .avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: var(--accent-soft); border: 1px solid var(--accent-line); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--accent-deep); }
.review .name { font-weight: 600; font-size: 0.95rem; }
.review .role { color: var(--ink-faint); font-size: 0.82rem; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* =========================================================
   PROCÉS (passos)
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 5vw, 4rem); counter-reset: step; }
.step { position: relative; padding-top: 3rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: 'Inter', sans-serif; font-style: normal; font-weight: 700; font-size: 1.45rem; letter-spacing: -0.01em;
  color: var(--accent-deep);
  position: absolute; top: 0; left: 0;
}
.step h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.6; }
.section.dark .step p { color: var(--on-dark-soft); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 2rem; } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.5rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 500; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-toggle { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ""; position: absolute; top: 50%; left: 50%; background: currentColor; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.faq-toggle::before { width: 13px; height: 1.6px; transform: translate(-50%,-50%); }
.faq-toggle::after { width: 1.6px; height: 13px; transform: translate(-50%,-50%); }
.faq-item[open] .faq-toggle::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }
.faq-item[open] > summary { color: var(--accent-deep); }
.faq-a { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.7; padding: 0 0 1.7rem; max-width: 70ch; }

/* =========================================================
   CTA panel
   ========================================================= */
.cta-band { background: var(--dark); color: var(--on-dark); border-radius: var(--radius-lg); padding: clamp(2.8rem, 7vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 120%; height: 80%; background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none; }
.cta-band h2 { color: var(--on-dark); max-width: 18ch; margin: 0 auto 1.2rem; position: relative; }
.cta-band p { color: var(--on-dark-soft); max-width: 50ch; margin: 0 auto 2.2rem; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* =========================================================
   FORMULARI
   ========================================================= */
.form { display: grid; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 0.98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.form-note { font-size: 0.82rem; color: var(--ink-faint); }
.form-msg { font-size: 0.9rem; min-height: 1.2rem; }
.form-msg.ok { color: #18794e; }
.form-msg.err { color: #d1242f; }

/* =========================================================
   ÀREA DE CLIENTS
   ========================================================= */
.login-panel { max-width: 440px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem); box-shadow: var(--shadow-md); text-align: center; }
.login-panel .lock { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); border: 1px solid var(--accent-line); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1.2rem; }
.login-panel .lock svg { width: 24px; height: 24px; color: var(--accent-deep); }
.login-panel h1 { font-size: 1.7rem; margin-bottom: 0.5rem; }
.login-panel .sub { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.8rem; }
.login-panel .form { text-align: left; }
.login-panel .btn-primary, .login-panel .btn-accent { width: 100%; justify-content: center; }
.shake { animation: shake 0.4s var(--ease); }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }

/* =========================================================
   MAPA
   ========================================================= */
.map-frame { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow-sm); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
a.map-frame { display: block; }
a.map-frame iframe { pointer-events: none; }
a.map-frame:hover .map-cta { background: #fff; }
.map-cta {
  position: absolute; bottom: 0.9rem; right: 0.9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--peach); color: var(--accent);
  padding: 0.45rem 0.9rem; border-radius: 100px;
  font-size: 0.78rem; font-weight: 700; box-shadow: var(--shadow-md);
  transition: background 0.2s ease;
}
.map-cta svg { width: 14px; height: 14px; }

/* =========================================================
   PAGE HERO (capçalera interior de pàgina)
   ========================================================= */
.page-hero { position: relative; padding-top: clamp(9rem, 18vh, 13rem); padding-bottom: clamp(3rem, 7vh, 5rem); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 18ch; font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.page-hero .lead { margin-top: 1.3rem; }
.page-hero .wrap { position: relative; z-index: 2; }
.ph-bg { position: absolute; inset: 0; z-index: 0; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-bg::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(22, 3, 9, 0.68);
}

/* --- Text clar sobre mèdia fosca (hero i capçaleres amb imatge) --- */
.hero-full, .hero-full h1 { color: var(--on-dark); }
.hero-full .lead, .hero-full .eyebrow { color: var(--on-dark-soft); }
.hero-full .eyebrow::before { background: var(--peach); }
.hero-full .trust .t-item svg { color: var(--peach); }
.hero-reel { color: var(--on-dark); }
.hero-reel .rb { background: var(--peach); color: var(--accent); }
.scroll-cue .ln { background: linear-gradient(var(--peach), transparent); }

.page-hero:has(.ph-bg), .page-hero:has(.ph-bg) h1 { color: var(--on-dark); }
.page-hero:has(.ph-bg) .lead { color: rgba(255,255,255,0.9); }
.page-hero:has(.ph-bg) .eyebrow,
.page-hero:has(.ph-bg) .breadcrumb,
.page-hero:has(.ph-bg) .breadcrumb a { color: rgba(255,255,255,0.78); }
.page-hero:has(.ph-bg) .eyebrow::before { background: var(--peach); }
.page-hero:has(.ph-bg) .breadcrumb a:hover { color: var(--on-dark); }

/* capçalera amb degradat corporatiu (sense imatge) */
.page-hero.grad {
  background:
    radial-gradient(90% 120% at 85% 8%, rgba(255,211,152,0.13) 0%, transparent 48%),
    radial-gradient(70% 90% at 8% 100%, rgba(122,10,32,0.5) 0%, transparent 55%),
    linear-gradient(150deg, #6a0a1e 0%, #45071a 40%, #2a0510 72%, #190308 100%);
}
.page-hero.grad, .page-hero.grad h1 { color: var(--on-dark); }
.page-hero.grad .lead { color: rgba(255,255,255,0.9); }
.page-hero.grad .eyebrow,
.page-hero.grad .breadcrumb,
.page-hero.grad .breadcrumb a { color: rgba(255,255,255,0.78); }
.page-hero.grad .eyebrow::before { background: var(--peach); }
.page-hero.grad .breadcrumb a:hover { color: #fff; }

/* --- Accent préssec on el granat no contrastaria (seccions fosques) --- */
.section.dark .eyebrow::before { background: var(--peach); }
.section.dark .btn-accent, .cta-band .btn-accent { background: var(--peach); color: #3a0510; border-color: var(--peach); }
.section.dark .btn-accent:hover, .cta-band .btn-accent:hover { background: #fff; border-color: #fff; }
.section.dark .stat .num .plus { color: var(--peach); }
.section.dark .step::before { color: var(--peach); }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.2rem; display: flex; gap: 0.5rem; align-items: center; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--line); }

/* =========================================================
   FOOTER (compartit)
   ========================================================= */
.site-footer { background: var(--dark); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 2.5rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3.5rem; }
.footer-brand img { height: 46px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--on-dark-soft); font-size: 0.95rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-soft); margin-bottom: 1.1rem; }
.footer-col a, .footer-col span { display: block; color: var(--on-dark); font-size: 0.95rem; margin-bottom: 0.7rem; opacity: 0.85; transition: opacity 0.25s ease, color 0.25s ease; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line-dark); padding-top: 2rem; color: var(--on-dark-soft); font-size: 0.85rem; }
.footer-legal { display: inline-flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--accent); }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; align-items: flex-start; } }

/* =========================================================
   WHATSAPP FLOTANT
   ========================================================= */
.wa-fab {
  position: fixed; bottom: clamp(1.2rem, 3vw, 2rem); right: clamp(1.2rem, 3vw, 2rem); z-index: 120;
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; box-shadow: 0 10px 30px -8px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wa-fab svg { width: 28px; height: 28px; }
.wa-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 38px -8px rgba(37,211,102,0.65); }

/* =========================================================
   COOKIES
   ========================================================= */
.cookie-banner {
  position: fixed; z-index: 200; left: clamp(1rem,4vw,2rem); right: clamp(1rem,4vw,2rem); bottom: clamp(1rem,4vw,2rem);
  max-width: 540px; margin-inline: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; box-shadow: var(--shadow-lg);
  transform: translateY(140%); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); pointer-events: none;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-text { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.55; }
.cookie-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--accent-deep); }
.cookie-actions { display: flex; gap: 0.7rem; justify-content: flex-end; flex-wrap: wrap; }
.cookie-btn { font-family: inherit; font-size: 0.85rem; font-weight: 500; padding: 0.6rem 1.2rem; border-radius: 100px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.cookie-btn.accept { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
@media (max-width: 480px) { .cookie-actions { justify-content: stretch; } .cookie-btn { flex: 1; } }

/* =========================================================
   MODAL VÍDEO
   ========================================================= */
.video-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(15,16,18,0.82); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.video-modal.open { opacity: 1; pointer-events: auto; }
.video-modal .vm-inner { width: min(960px, 100%); aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video-modal iframe { width: 100%; height: 100%; border: 0; }
.video-modal .vm-close { position: absolute; top: 1.4rem; right: 1.4rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.video-modal .vm-close svg { width: 20px; height: 20px; }

/* =========================================================
   REVEAL anim
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   PANTALLA DE CÀRREGA (preloader amb logo)
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background:
    radial-gradient(80% 80% at 50% 45%, rgba(255,211,152,0.07), transparent 60%),
    linear-gradient(160deg, #45071a 0%, #1a0308 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.preloader img { width: clamp(90px, 13vw, 130px); height: auto; }
.preloader .rec { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--on-dark-soft); font-size: 0.7rem; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 700; }
.preloader .rec .dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px 1px rgba(255,59,48,0.8); animation: recblink 1.1s steps(1, end) infinite; }
.preloader .rec .time { font-variant-numeric: tabular-nums; color: var(--on-dark); }
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes recblink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0.12; } }
@media (prefers-reduced-motion: reduce) { .preloader .rec .dot { animation: none; } }

/* =========================================================
   BARRA DE PROGRÉS DE SCROLL (proposta)
   ========================================================= */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); transition: width .1s linear; }

/* =========================================================
   VÍDEO DE FONS (seccions) + FRANJA DE COMPTADORS
   ========================================================= */
.bg-video { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,2,8,0.42) 0%, rgba(18,2,8,0.58) 100%); }

.stats-band { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(2.4rem, 5vw, 3.6rem) 0; }
.stats-band > .wrap { position: relative; z-index: 2; }
.stats-band .stats { gap: 1rem; }
.stats-band .stat { padding: 0.6rem 0.5rem; }
.stats-band .stat .num { font-size: clamp(3.2rem, 8vw, 6rem); color: #fff; letter-spacing: -0.04em; text-shadow: 0 2px 24px rgba(0,0,0,0.55); }
.stats-band .stat .num .plus { color: var(--peach); }
.stats-band .stat .label { color: #fff; margin-top: 0.4rem; text-shadow: 0 1px 14px rgba(0,0,0,0.6); }

/* utils */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; } .mt-4 { margin-top: 4rem; }
.muted { color: var(--ink-faint); }
.hero-grid.split { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) { .hero-grid.split { grid-template-columns: 1fr; } }

/* =========================================================
   KINETIC / RADICAL  —  llenguatge visual nou
   ========================================================= */

/* tipografia statement (bold, minúscules, com el logo) */
.display {
  font-weight: 900;
  text-transform: lowercase;
  letter-spacing: -0.045em;
  line-height: 0.92;
  font-size: clamp(2.8rem, 11vw, 10rem);
}
.display .it { font-family: 'Roca', 'Playfair Display', serif; font-style: normal; font-weight: 400; text-transform: none; letter-spacing: -0.005em; }
.display .ln { display: block; overflow: hidden; }
.display .ln > span { display: block; }

/* reveal de línia (cortina cap amunt) */
.rise .ln > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.rise.in .ln > span { transform: translateY(0); }
.rise .ln:nth-child(2) > span { transition-delay: 0.08s; }
.rise .ln:nth-child(3) > span { transition-delay: 0.16s; }

/* ---------- HERO CINÈTIC ---------- */
.hero-x { position: relative; min-height: 100svh; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; color: var(--on-dark); }
.hero-x .hero-bg::after {
  background:
    linear-gradient(180deg, rgba(40,4,14,0.45) 0%, rgba(40,4,14,0.25) 40%, rgba(20,2,8,0.9) 100%),
    linear-gradient(90deg, rgba(20,2,8,0.55) 0%, transparent 60%);
}
.hero-x .hero-x-inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(2rem, 5vh, 4rem); padding-top: 8rem; }
.hero-x .eyebrow { color: var(--peach); }
.hero-x .eyebrow::before { background: var(--peach); }
.hero-x .display { color: #fff; margin-bottom: 1.6rem; font-size: clamp(2.2rem, 6.4vw, 5.4rem); }
.hero-x .display .ln > span { white-space: nowrap; }
@media (max-width: 560px) { .hero-x .display { font-size: clamp(2rem, 8.4vw, 2.8rem); } .hero-x .display .ln > span { white-space: normal; } }
.hero-x .hero-sub { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 1.6rem; }
.hero-x .hero-sub p { color: var(--on-dark-soft); max-width: 42ch; font-size: 1.02rem; }
.hero-x .hero-actions { margin: 0; }

/* ---------- MARQUEE GEGANT (wordmark) ---------- */
.bigmark {
  overflow: hidden; background: var(--dark); color: var(--on-dark);
  padding: clamp(0.7rem, 1.5vw, 1rem) 0;
  border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
}
.bigmark-track { display: flex; align-items: center; width: max-content; animation: scroll-x 36s linear infinite; }
.bigmark:hover .bigmark-track { animation-play-state: paused; }
.bigmark-track .svc { font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; font-size: clamp(0.8rem, 1.4vw, 1.05rem); padding: 0 1.4rem; white-space: nowrap; }
.bigmark-track .sep { color: var(--peach); font-size: 0.5em; }
@media (prefers-reduced-motion: reduce) { .bigmark-track { animation: none; } }

/* ---------- SCROLL HORITZONTAL (pinned) ---------- */
.hscroll { position: relative; background: var(--bg); }
.hscroll-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hscroll-track { display: flex; align-items: stretch; gap: clamp(1rem, 2vw, 1.8rem); padding: 0 clamp(1.4rem, 6vw, 6rem); will-change: transform; }
.hscroll-head { flex: 0 0 auto; align-self: center; width: min(34vw, 420px); padding-right: 2vw; }
.hscroll-head .eyebrow { color: var(--accent); }
.hcard {
  flex: 0 0 min(72vw, 560px); position: relative; border-radius: 22px; overflow: hidden;
  height: min(74vh, 660px); background: var(--surface); box-shadow: var(--shadow-md);
}
.hcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.hcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,2,8,0) 40%, rgba(20,2,8,0.85) 100%); }
.hcard:hover img { transform: scale(1.05); }
.hcard .hcard-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.4rem, 3vw, 2.2rem); }
.hcard .hcard-cat { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--peach); font-weight: 700; margin-bottom: 0.4rem; }
.hcard .hcard-title { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; text-transform: lowercase; color: #fff; line-height: 1; }
.hcard .hcard-play { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--peach); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hcard .hcard-play svg { width: 18px; height: 18px; margin-left: 2px; }
.hscroll-progress { position: absolute; left: 50%; transform: translateX(-50%); bottom: 2rem; z-index: 3; width: min(280px, 40vw); height: 3px; background: var(--line); border-radius: 100px; overflow: hidden; }
.hscroll-progress i { display: block; height: 100%; width: 0; background: var(--accent); }
/* fallback sense pinning (mòbil / reduced motion): scroll horitzontal natiu */
.hscroll.native .hscroll-sticky { position: relative; height: auto; padding: 1rem 0 2rem; }
.hscroll.native .hscroll-track { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; transform: none !important; padding-bottom: 1rem; }
.hscroll.native .hcard { scroll-snap-align: center; height: 60vh; flex-basis: 82vw; }
.hscroll.native .hscroll-head { width: 82vw; }
.hscroll.native .hscroll-progress { display: none; }

/* ---------- MANIFEST (statement sticky) ---------- */
.manifest {
  color: var(--on-dark);
  background:
    radial-gradient(90% 110% at 82% 8%, rgba(255,211,152,0.12) 0%, transparent 48%),
    radial-gradient(70% 90% at 5% 95%, rgba(122,10,32,0.55) 0%, transparent 55%),
    linear-gradient(150deg, #6a0a1e 0%, #45071a 38%, #2a0510 70%, #1a0308 100%);
}
.manifest .big-statement { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; font-size: clamp(1.8rem, 5vw, 4rem); max-width: 22ch; }
.manifest .big-statement .it { font-family: 'Roca', 'Playfair Display', serif; font-style: normal; font-weight: 400; color: var(--peach); }
.manifest .big-statement .dim { color: var(--on-dark-soft); }

/* ---------- LLISTA DE SERVEIS BOLD ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; padding: clamp(1.4rem, 4vw, 2.6rem) 0; border-bottom: 1px solid var(--line); position: relative; transition: padding-left 0.4s var(--ease); }
.svc-row .svc-n { font-family: 'Roca', 'Playfair Display', serif; font-style: normal; font-size: 1.2rem; color: var(--accent); }
.svc-row .svc-name { font-weight: 700; text-transform: lowercase; letter-spacing: -0.03em; font-size: clamp(1.8rem, 5vw, 3.4rem); line-height: 1; }
.svc-row .svc-tags { color: var(--ink-faint); font-size: 0.9rem; text-align: right; }
.svc-row:hover { padding-left: 1.2rem; }
.svc-row:hover .svc-name { color: var(--accent); }
.svc-row::before { content: ""; position: absolute; left: -1.2rem; top: 50%; transform: translateY(-50%) scaleY(0); width: 4px; height: 70%; background: var(--accent); border-radius: 4px; transition: transform 0.4s var(--ease); }
.svc-row:hover::before { transform: translateY(-50%) scaleY(1); }
@media (max-width: 640px) { .svc-row { grid-template-columns: auto 1fr; } .svc-row .svc-tags { display: none; } }

/* ---------- RESSENYES: CARRUSEL + GOOGLE ---------- */
.rev-head { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.rev-google { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.rev-google .gico { width: 22px; height: 22px; flex-shrink: 0; }
.rev-google .grate { font-weight: 700; }
.rev-google .gstars { color: #fbbc04; letter-spacing: 1px; }
.rev-carousel { position: relative; }
.rev-track {
  display: flex; gap: 1.4rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0.3rem 0.2rem; margin: -0.3rem -0.2rem;
}
.rev-track::-webkit-scrollbar { display: none; }
.rev-track .review { flex: 0 0 calc((100% - 2 * 1.4rem) / 3); scroll-snap-align: start; }
.rev-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.review .gmini { width: 18px; height: 18px; margin-left: auto; flex-shrink: 0; }
.rev-nav { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.8rem; }
.rev-arrow { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; transition: border-color .25s ease, color .25s ease, transform .25s var(--ease); }
.rev-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.rev-arrow svg { width: 20px; height: 20px; }
.rev-dots { display: flex; align-items: center; gap: 0.5rem; }
.rev-dots button { width: 8px; height: 8px; border-radius: 50%; padding: 0; border: none; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background .3s ease; }
.rev-dots button[aria-selected="true"] { width: 22px; border-radius: 5px; background: var(--accent); }
@media (max-width: 900px) { .rev-track .review { flex-basis: calc((100% - 1.4rem) / 2); } }
@media (max-width: 640px) { .rev-track .review { flex-basis: 86%; } }

/* carrusel de moviment continu (sempre lliscant) */
.rev-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rev-marquee-track { display: flex; gap: 1.4rem; width: max-content; animation: scroll-x 48s linear infinite; }
.rev-marquee:hover .rev-marquee-track { animation-play-state: paused; }
.rev-marquee-track .review { flex: 0 0 360px; }
@media (max-width: 640px) { .rev-marquee-track { animation-duration: 32s; } .rev-marquee-track .review { flex-basis: 82vw; } }
@media (prefers-reduced-motion: reduce) { .rev-marquee-track { animation: none; flex-wrap: wrap; } }

/* ---------- SERVEIS COMPACTE (poc protagonisme) ---------- */
.svc-compact {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 2.5rem; align-items: center;
  padding: clamp(1.3rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.svc-compact-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; }
.svc-compact-list li { display: flex; flex-direction: column; gap: 0.15rem; }
.svc-compact-list strong { font-weight: 700; font-size: 1.02rem; }
.svc-compact-list span { color: var(--ink-faint); font-size: 0.84rem; }
@media (max-width: 680px) {
  .svc-compact { grid-template-columns: 1fr; gap: 1rem; }
  .svc-compact-list { flex-direction: column; gap: 0.9rem; }
}

/* ---------- CTA GEGANT ---------- */
.cta-x { background: var(--dark); color: var(--on-dark); text-align: center; }
.cta-x .display { color: #fff; }
.cta-x .display .it { color: var(--peach); }
.cta-x p { color: var(--on-dark-soft); max-width: 46ch; margin: 1.6rem auto 2.4rem; font-size: 1.05rem; }

/* =========================================================
   FONS DE DEGRADAT EN MOVIMENT (re-afegit, tons granate)
   ========================================================= */
@keyframes grad-drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.manifest, .page-hero.grad { position: relative; overflow: hidden; background-size: 240% 240%; animation: grad-drift 26s ease-in-out infinite; }
.manifest::after, .page-hero.grad::after {
  content: ""; position: absolute; inset: -45%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 34% at 38% 42%, rgba(255,211,152,0.16), transparent 70%),
    radial-gradient(30% 30% at 65% 60%, rgba(122,10,32,0.45), transparent 70%);
  background-repeat: no-repeat;
  animation: glow-move 19s ease-in-out infinite;
}
@keyframes glow-move {
  0%   { transform: translate(-16%, -10%) scale(1); }
  33%  { transform: translate(20%, 16%) scale(1.25); }
  66%  { transform: translate(6%, -18%) scale(0.95); }
  100% { transform: translate(-16%, -10%) scale(1); }
}
.manifest > .wrap, .page-hero.grad > .wrap { position: relative; z-index: 2; }
.cta-band::before { animation: glow-breathe 9s ease-in-out infinite; }
@keyframes glow-breathe { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(1.18); opacity: 0.65; } }

/* =========================================================
   CURSOR DE CÀMERA (visor REC) — re-afegit
   ========================================================= */
.cam-cursor {
  --cc: rgba(255,255,255,0.95);
  position: fixed; top: 0; left: 0; width: 34px; height: 34px;
  pointer-events: none; z-index: 9998; opacity: 0;
  transition: opacity .3s ease, width .22s var(--ease), height .22s var(--ease);
  background:
    linear-gradient(var(--cc),var(--cc)) left top, linear-gradient(var(--cc),var(--cc)) left top,
    linear-gradient(var(--cc),var(--cc)) right top, linear-gradient(var(--cc),var(--cc)) right top,
    linear-gradient(var(--cc),var(--cc)) left bottom, linear-gradient(var(--cc),var(--cc)) left bottom,
    linear-gradient(var(--cc),var(--cc)) right bottom, linear-gradient(var(--cc),var(--cc)) right bottom;
  background-repeat: no-repeat;
  background-size: 10px 2px, 2px 10px, 10px 2px, 2px 10px, 10px 2px, 2px 10px, 10px 2px, 2px 10px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.5));
}
.cam-cursor i { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 6px; height: 6px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 8px 1px rgba(255,59,48,0.85); animation: recblink 1.1s steps(1, end) infinite; }
.cam-cursor.hover { width: 48px; height: 48px; }
.cam-cursor.hover i { background: var(--peach); box-shadow: 0 0 10px 2px var(--accent-glow); }
body.cam-on, body.cam-on a, body.cam-on button, body.cam-on input, body.cam-on textarea, body.cam-on select, body.cam-on label { cursor: none; }
@media (hover: none), (pointer: coarse) { .cam-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) { .manifest, .page-hero.grad, .manifest::after, .page-hero.grad::after, .cta-band::before { animation: none; } .cam-cursor i { animation: none; } }

/* =========================================================
   PROJECTES — HUB DE CATEGORIES + GRAELLA PER CATEGORIA
   ========================================================= */
.reveal.d5 { transition-delay: 0.40s; }
.reveal.d6 { transition-delay: 0.48s; }

.cat-wrap { max-width: 1560px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  padding: 1.7rem 1.9rem; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
@media (max-width: 640px) { .cat-card { aspect-ratio: 3 / 2; } }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.cat-card .cat-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,2,8,0.10), rgba(20,2,8,0.38) 48%, rgba(20,2,8,0.90)); }
.cat-card.soon { background: linear-gradient(150deg, #45071a, #2a0510); }
.cat-card.soon .cat-shade { background: radial-gradient(120% 80% at 70% 10%, rgba(255,211,152,0.10), transparent 60%); }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover img { transform: scale(1.07); }
.cat-top { position: absolute; top: 1.7rem; left: 2.1rem; right: 2.1rem; display: flex; align-items: flex-start; justify-content: space-between; z-index: 1; }
.cat-num { font-family: 'Roca', 'Playfair Display', serif; font-size: 1.9rem; line-height: 1; color: var(--peach); }
.cat-count { font-size: 0.64rem; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 600; color: #fff; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); padding: 0.34rem 0.72rem; border-radius: 100px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cat-foot { position: relative; }
.cat-name { display: block; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.02; text-transform: lowercase; }
.cat-desc { display: block; font-size: 0.96rem; color: rgba(255,255,255,0.85); margin-top: 0.4rem; max-width: 42ch; }
.cat-go { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.95rem; color: var(--peach); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; transition: gap .3s var(--ease); }
.cat-card:hover .cat-go { gap: 0.85rem; }
.cat-go svg { width: 16px; height: 16px; }

.cat-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.1rem; }
.cat-videos .pf-item { grid-column: auto; aspect-ratio: 16 / 9; }
.cat-note { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.6rem; color: var(--ink-soft); font-size: 0.92rem; }
.cat-note svg { width: 18px; height: 18px; color: var(--peach); flex-shrink: 0; }
.cat-empty { text-align: center; padding: clamp(3rem, 8vw, 5.5rem) 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.cat-empty svg { width: 52px; height: 52px; margin: 0 auto 1.1rem; color: var(--peach); display: block; }
.cat-empty h3 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 0.55rem; }
.cat-empty p { color: var(--ink-soft); max-width: 460px; margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { .cat-card:hover, .cat-card:hover img { transform: none; } }

/* ===== BODA — bloc d'opcions (preboda / postboda / dron) ===== */
.cat-extra { margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.cat-extra-title { font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.cat-extra > p, .cat-extra-head > p { color: var(--ink-soft); max-width: 720px; font-size: 1.05rem; line-height: 1.65; }
.cat-extra > p strong, .cat-extra-head > p strong { color: var(--ink); font-weight: 700; }
.opt-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.9rem; }
@media (max-width: 860px) { .opt-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .opt-row { grid-template-columns: 1fr; } }
.opt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; transition: transform .4s var(--ease), border-color .3s ease, box-shadow .4s var(--ease); }
.opt:hover { transform: translateY(-4px); border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.opt-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 0.85rem; }
.opt-ico svg { width: 21px; height: 21px; }
.opt strong { display: block; font-size: 1.02rem; font-weight: 700; margin-bottom: 0.15rem; }
.opt em { font-style: normal; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.4; }

/* ===== BODA — escenari de vídeo gran ===== */
.boda-section { padding-top: clamp(6.5rem, 13vh, 9rem); padding-bottom: clamp(3rem, 7vh, 5rem); }
.boda-section .breadcrumb { text-align: center; margin-bottom: clamp(1rem, 2.2vw, 1.6rem); }

/* capçalera editorial del projecte */
.boda-head { text-align: center; max-width: 640px; margin: 0 auto clamp(1.6rem, 3.2vw, 2.4rem); }
.boda-head .eyebrow { justify-content: center; margin-bottom: 0.8rem; }
.boda-head .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.boda-couple {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 0;
}
.boda-couple .amp { font-family: 'Roca', 'Playfair Display', serif; font-weight: 400; color: var(--peach); margin: 0 0.1em; }
.boda-tagline {
  color: var(--ink-soft); font-size: clamp(0.98rem, 1.3vw, 1.08rem); line-height: 1.55;
  max-width: 460px; margin: 0.85rem auto 0;
}
.boda-meta {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.5rem 1.4rem; margin: clamp(1rem, 2vw, 1.4rem) 0 0; padding: 0;
}
.boda-meta li {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-faint);
}
.boda-meta svg { width: 16px; height: 16px; color: var(--accent); }

.boda-player {
  position: relative; aspect-ratio: 16 / 9;
  width: min(100%, 860px); margin-inline: auto;
  border-radius: var(--radius-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg);
}
.boda-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* bloc d'opcions centrat sota el vídeo */
.boda-section .cat-extra { text-align: center; margin-top: clamp(2.6rem, 5vw, 3.6rem); }
.boda-section .cat-extra-head { max-width: 620px; margin: 0 auto; }
.boda-section .cat-extra-title { font-size: clamp(1.4rem, 2.8vw, 2rem); margin-bottom: 0.7rem; }
.boda-section .cat-extra .eyebrow { justify-content: center; margin-bottom: 0.8rem; }
.boda-section .cat-extra .eyebrow::after { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.boda-section .cat-extra-head > p { margin-inline: auto; font-size: 1rem; }
.boda-section .opt-row { max-width: 860px; margin-inline: auto; margin-top: clamp(1.8rem, 3.5vw, 2.4rem); }
.boda-section .opt { text-align: center; padding: 1.3rem 1rem; }
.boda-section .opt-ico { margin-inline: auto; }

/* =====================================================================
   PROJECTES — graella estil "work" (títol gegant + hover vídeo)
   ===================================================================== */
.work-hero, .work-section { background: #160809; color: var(--on-dark); }
.work-hero .wrap, .work-section .wrap { max-width: none; padding-inline: clamp(1rem, 2.4vw, 2.4rem); }
.work-hero {
  position: relative; overflow: hidden;
  padding: clamp(7.5rem, 16vh, 11rem) 0 clamp(1.5rem, 3vh, 2.5rem);
}
.work-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 90% 0%, rgba(255,211,152,0.10), transparent 55%),
              radial-gradient(70% 60% at 0% 100%, rgba(122,10,34,0.45), transparent 60%);
}
.work-hero .wrap { position: relative; z-index: 1; }
.work-hero .breadcrumb, .work-hero .breadcrumb a { color: var(--on-dark-soft); }
.work-hero-top {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  margin: clamp(1.4rem, 4vh, 3rem) 0 clamp(0.4rem, 1.5vh, 1rem);
}
.work-hero-top .eyebrow { color: var(--on-dark-soft); margin: 0; }
.work-hero-top .eyebrow::before { background: var(--peach); }
.work-hero-intro {
  max-width: 42ch; text-align: right; color: var(--on-dark-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.55;
}
.work-title {
  font-weight: 800; letter-spacing: -0.05em; line-height: 0.82; text-transform: uppercase;
  font-size: clamp(2.4rem, 14.2vw, 13rem); margin: 0; white-space: nowrap;
  max-width: 100%;
  background: linear-gradient(180deg, #fff 0%, var(--on-dark) 55%, #c98b6a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 640px) {
  .work-title { font-size: clamp(2rem, 12.5vw, 4rem); }
}

/* ── graella masònica a 2 columnes (16:9 + 4:5 per fila, estil Ventour) ── */
.work-section { padding: clamp(2rem, 5vh, 4rem) 0 clamp(5rem, 12vh, 8rem); }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 2.6vw, 2.4rem); align-items: start; }
.work-col { display: flex; flex-direction: column; gap: clamp(1.6rem, 3.4vw, 3rem); }
@media (max-width: 760px) {
  .work-grid { grid-template-columns: 1fr; gap: clamp(1.6rem, 5vw, 2.4rem); }
}

.work-item {
  display: block; width: 100%; cursor: pointer; color: inherit; background: none;
  border: 0; text-align: left; -webkit-tap-highlight-color: transparent;
}
.work-item:focus-visible { outline: 2px solid var(--peach); outline-offset: 6px; border-radius: 6px; }
.work-media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #000;
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.work-item--landscape .work-media { aspect-ratio: 16 / 9; }
.work-item--portrait .work-media { aspect-ratio: 4 / 5; }
.work-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.01); transition: transform 1.1s var(--ease), filter .6s ease;
  filter: saturate(1.02);
}
.work-item:hover .work-img { transform: scale(1.06); }
.work-vid { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; z-index: 1; }
.work-vid.on { opacity: 1; }
.work-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.work-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,1,4,0.05), rgba(10,1,4,0.18));
  opacity: 1; transition: opacity .5s ease;
}
.work-item:hover .work-media::after { opacity: 0; }
.work-tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  font-size: 0.62rem; letter-spacing: 0.14em; font-weight: 700; color: #fff;
  background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.25);
  padding: 0.28rem 0.6rem; border-radius: 100px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.work-play {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  color: #160809; background: var(--peach); border-radius: 50%;
  transform: scale(0.86); opacity: 0; transition: transform .45s var(--ease), opacity .45s ease;
}
.work-item:hover .work-play { transform: scale(1); opacity: 1; }
.work-play svg { width: 18px; height: 18px; margin-left: 2px; }

.work-meta { padding: clamp(0.9rem, 1.6vw, 1.3rem) 0.2rem 0; }
.work-meta-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.work-name {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.15; margin: 0; transition: color .35s ease;
}
.work-item:hover .work-name { color: var(--peach); }
.work-cat {
  flex-shrink: 0; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: var(--peach); padding-top: 0.25rem;
}
.work-desc {
  margin: 0.55rem 0 0; color: var(--on-dark-soft);
  font-size: clamp(0.92rem, 1.2vw, 1rem); line-height: 1.55; max-width: 52ch;
}

@media (max-width: 620px) {
  .work-hero-top { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .work-hero-intro { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .work-img, .work-item:hover .work-img { transform: scale(1.01); transition: none; }
}

/* =====================================================================
   GALERIES DE FOTOS (projectes fotogràfics) + lightbox
   ===================================================================== */
.gal-hero { position: relative; background: var(--dark); color: var(--on-dark); overflow: hidden;
  padding: clamp(7.5rem, 16vh, 11rem) 0 clamp(2rem, 4vh, 3rem); }
.gal-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 70% at 88% 0%, rgba(255,211,152,0.12), transparent 55%),
              radial-gradient(70% 60% at 0% 100%, rgba(122,10,34,0.5), transparent 60%); }
.gal-hero .wrap { position: relative; z-index: 1; }
.gal-hero .breadcrumb, .gal-hero .breadcrumb a { color: var(--on-dark-soft); }
.gal-hero .eyebrow { color: var(--on-dark-soft); } .gal-hero .eyebrow::before { background: var(--peach); }
.gal-title { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0.4rem 0 0; }
.gal-desc { margin-top: 1.1rem; max-width: 56ch; color: var(--on-dark-soft); font-size: clamp(1rem,1.4vw,1.15rem); line-height: 1.6; }
.gal-count { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--peach); }

.gal-section { background: #160809; padding: clamp(2.4rem,5vh,4rem) 0 clamp(5rem,12vh,8rem); }
.gal-section .wrap { max-width: none; padding-inline: clamp(1rem, 2.4vw, 2.4rem); }
.gal-grid { columns: 3 320px; column-gap: clamp(0.8rem, 1.6vw, 1.3rem); }
.gal-item { break-inside: avoid; margin-bottom: clamp(0.8rem, 1.6vw, 1.3rem); display: block; width: 100%;
  border: 0; padding: 0; background: #0c0405; border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  box-shadow: var(--shadow-md); }
.gal-item img { display: block; width: 100%; height: auto; transition: transform 1s var(--ease), opacity .6s ease; }
.gal-item:hover img { transform: scale(1.04); }
.gal-empty { text-align: center; color: var(--on-dark-soft); padding: clamp(3rem,8vw,5rem) 1rem;
  border: 1px dashed rgba(255,225,200,0.2); border-radius: var(--radius-lg); }
.gal-empty strong { color: var(--on-dark); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem,4vw,3rem); background: rgba(10,1,4,0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.lb-btn { position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); color: #fff;
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s ease; }
.lb-btn:hover { background: rgba(255,255,255,0.2); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lb-prev { left: clamp(0.8rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-next { right: clamp(0.8rem,2vw,2rem); top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: clamp(1rem,3vw,2rem); left: 50%; transform: translateX(-50%);
  color: var(--on-dark-soft); font-size: 0.85rem; letter-spacing: 0.1em; }
@media (max-width: 600px) { .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; } .lb-btn { width: 44px; height: 44px; } }

/* ── targetes de projecte fotogràfic dins la graella "work" ── */
.work-photo .work-media { background: linear-gradient(150deg, #3a0a16, #170608); }
.work-photo .work-img { background-color: transparent; }
.work-photo-empty {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.7rem; color: rgba(255,225,200,0.5);
}
.work-photo-empty svg { width: 40px; height: 40px; }
.work-photo-empty::after {
  content: "Galeria de fotos"; font-size: 0.68rem; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
}
.work-photo.has-cover .work-photo-empty { display: none; }
.work-play--photo svg { margin-left: 0; width: 19px; height: 19px; }

/* =====================================================================
   TÍTOLS DE SECCIÓ amb degradat préssec (mateix estil que "PROJECTES")
   ===================================================================== */
.page-hero.grad h1,
.page-hero:has(.ph-bg) h1,
.hero-full h1,
.gal-title {
  background: linear-gradient(180deg, #ffffff 0%, var(--on-dark) 50%, #c98b6a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-weight: 800; letter-spacing: -0.04em;
}
