/* =========================================================
   Lead Agency — estils
   Segueix design-sistem-web.md
   ========================================================= */

/* ---------- Fonts (allotjades a la web, sense Google) ---------- */
@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0D141A;
  --black: #08090A;
  --graphite: #1C1F22;
  --stone: #8C8F91;
  --stone-dark: #5F6366;
  --mist: #D9D6D0;
  --bone: #F3F0EA;
  --white: #FFFFFF;
  --accent: #E4FF3A;
  --accent-ink: #0D141A;
  --error: #B5524A;
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 700ms;

  --radius-card: 16px;
  --radius-input: 12px;
  --radius-pill: 999px;

  --gutter: 20px;
  --max: 1440px;
  --section: 96px;
  --head-gap: 40px;
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --section: 128px; --head-gap: 56px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 64px; --section: 176px; --head-gap: 72px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
@media (min-width: 768px) { body { font-size: 17px; } }

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ol, ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section--light :focus-visible { outline-color: var(--ink); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 500;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); }
.display {
  font-size: clamp(46px, 9.2vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  font-weight: 500;
}
.h1 {
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.h3 {
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  max-width: 34em;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone-dark);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 1px var(--ink);
}
.eyebrow--light { color: var(--stone); }
.eyebrow--light::before { box-shadow: none; }
@media (min-width: 768px) { .eyebrow { font-size: 13px; } }

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.accent { color: var(--accent); }
.section--light .accent {
  color: inherit;
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 0.06em;
}
.caption { font-size: 14px; color: var(--stone-dark); margin-top: 16px; }

/* Línies amb màscara per a la revelació de titulars */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; will-change: transform; }

/* Enllaç de text */
.link {
  position: relative; display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
}
.link:hover { background-size: 100% 1px; }

/* ---------- Botons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 16px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.98); }
.btn__text, .btn__arrow { position: relative; z-index: 1; }
.btn__arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__fill {
  position: absolute; inset: 0; z-index: 0;
  background: var(--accent);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn:hover .btn__fill { transform: translateY(0); }

.btn--primary { background: var(--white); color: var(--ink); }
.btn--primary:hover { color: var(--accent-ink); }
.section--light .btn--primary { background: var(--ink); color: var(--white); }
.section--light .btn--primary:hover { color: var(--accent-ink); }

.btn--ghost { border: 1px solid currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--ghost-light { color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn--sm { height: 44px; padding: 0 22px; font-size: 14px; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

/* ---------- Cortina / intro ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 150;
  background: var(--black);
  display: none; place-items: center;
  pointer-events: none;
}
.js .curtain, .is-leaving .curtain { display: grid; }
.curtain__logo {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 8vw, 88px); letter-spacing: -0.05em;
  display: inline-flex; align-items: flex-end;
  clip-path: inset(0 100% 0 0);
}
.curtain__logo i, .logo i, .footer__mark i {
  display: inline-block; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--accent); margin-left: 0.06em; margin-bottom: 0.14em;
}
.is-ready:not(.is-leaving) .curtain { display: none; }

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 140;
  width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--white);
  mix-blend-mode: difference;
  pointer-events: none;
  display: grid; place-items: center;
  opacity: 0;
  transition: width var(--dur-base) var(--ease-out), height var(--dur-base) var(--ease-out), margin var(--dur-base) var(--ease-out), opacity var(--dur-fast), background var(--dur-base);
}
.cursor__label {
  font-size: 13px; font-weight: 500; color: var(--accent-ink);
  opacity: 0; transition: opacity var(--dur-fast);
}
.cursor.is-visible { opacity: 1; }
.cursor.is-label {
  width: 88px; height: 88px; margin: -44px 0 0 -44px;
  background: var(--accent); mix-blend-mode: normal;
}
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: transform var(--dur-slow) var(--ease-out), background var(--dur-base), backdrop-filter var(--dur-base);
}
.header__inner {
  max-width: var(--max); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 32px;
}
.header.is-scrolled {
  background: rgba(8, 9, 10, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark);
}
.header.is-hidden { transform: translateY(-100%); }
.logo {
  font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -0.05em;
  display: inline-flex; align-items: flex-end; line-height: 1;
}
.nav { display: none; gap: 32px; margin-left: auto; font-size: 15px; }
.header__cta { display: none; }
.burger {
  margin-left: auto; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-dark);
  display: grid; place-content: center; gap: 6px;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--white); transition: transform var(--dur-base) var(--ease-out); }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--black);
  padding: 120px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  visibility: hidden; opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base);
}
.menu-open .menu { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease-out); }
.menu__nav { display: flex; flex-direction: column; gap: 8px; }
.menu__nav a {
  font-family: var(--font-display); font-size: clamp(40px, 12vw, 64px); letter-spacing: -0.04em; line-height: 1.1;
  transform: translateY(24px); opacity: 0;
  transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out);
}
.menu-open .menu__nav a { transform: none; opacity: 1; }
.menu-open .menu__nav a:nth-child(2) { transition-delay: 60ms; }
.menu-open .menu__nav a:nth-child(3) { transition-delay: 120ms; }
.menu-open .menu__nav a:nth-child(4) { transition-delay: 180ms; }
.menu-open .menu__nav a:nth-child(5) { transition-delay: 240ms; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--stone); }

/* ---------- Seccions ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--light { background: var(--bone); color: var(--ink); }
.section--dark { background: var(--black); color: var(--white); }
.section__head { margin-bottom: var(--head-gap); max-width: 1100px; }
.section__head--split { max-width: none; display: grid; gap: 32px; }
.section__intro { color: var(--stone-dark); }
.section--dark .section__intro { color: var(--stone); }
@media (min-width: 1024px) {
  .section__head--split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; }
}

.grid { display: grid; gap: 24px; }
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(12, 1fr); gap: 24px; }
  .col-label { grid-column: 1 / span 4; }
  .col-main { grid-column: 5 / span 8; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px 0 0;
  overflow: hidden;
  background: var(--black);
}
.hero__media {
  position: absolute; inset: 0;
  will-change: clip-path, transform;
}
.hero__video { width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,10,0.55) 0%, rgba(8,9,10,0) 28%),
    linear-gradient(90deg, rgba(8,9,10,0.55) 0%, rgba(8,9,10,0) 60%),
    linear-gradient(0deg, rgba(8,9,10,0.88) 0%, rgba(8,9,10,0.35) 45%, rgba(8,9,10,0.15) 100%);
}
.hero__content { position: relative; z-index: 2; padding-bottom: 48px; }
.hero .eyebrow--light { color: rgba(255, 255, 255, 0.82); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.hero__title { max-width: 12ch; margin-bottom: 28px; }
.hero__lead { color: rgba(255,255,255,0.82); margin-bottom: 36px; max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__foot {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px; color: rgba(255,255,255,0.7);
}
.hero__tag .serif { font-size: 1.15em; color: var(--white); }
.hero__sound { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.hero__sound-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s var(--ease-in-out) infinite; }
.is-paused .hero__sound-dot { animation: none; background: var(--stone); }
.hero__scroll { display: none; align-items: center; gap: 12px; }
.hero__scroll span { width: 1px; height: 28px; background: rgba(255,255,255,0.3); position: relative; overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; inset: 0; background: var(--white);
  animation: scrollLine 2.2s var(--ease-in-out) infinite;
}
@media (min-width: 768px) {
  .hero__content { padding-bottom: 72px; }
  .hero__scroll { display: inline-flex; }
}
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 28px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center; gap: 40px; padding-right: 40px;
  font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.03em;
  color: rgba(255,255,255,0.9); white-space: nowrap;
}
.marquee__group .serif { color: var(--stone); font-size: 1.08em; }
.marquee__group i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifest ---------- */
.manifest__text {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.7vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.manifest__text .w { color: var(--ink); }
.js .manifest__text .w { color: rgba(13, 20, 26, 0.16); transition: color 0.3s linear; }
.js .manifest__text .w.is-on { color: var(--ink); }
.manifest__figure { margin-top: var(--section); }
.parallax {
  overflow: hidden; border-radius: var(--radius-card);
  aspect-ratio: 3 / 2;
}
.parallax img { width: 100%; height: 116%; object-fit: cover; will-change: transform; }
@media (max-width: 767px) { .parallax { aspect-ratio: 4 / 5; } }

/* ---------- Què fem ---------- */
.services__layout { display: grid; gap: 48px; }
.services__media { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4 / 5; }
.services__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.services__list { border-top: 1px solid var(--line-dark); }
.service {
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: padding var(--dur-base) var(--ease-out);
}
.service__num {
  font-family: var(--font-display); font-size: 14px; color: var(--stone);
  padding-top: 8px; transition: color var(--dur-base);
}
.service h3 { margin-bottom: 10px; }
.service p { color: var(--stone); max-width: 34em; }
@media (hover: hover) {
  .service:hover { padding-left: 12px; }
  .service:hover .service__num { color: var(--accent); }
}
@media (min-width: 1024px) {
  .services__layout { grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
  .services__media { position: sticky; top: 120px; }
  .service { grid-template-columns: 96px 1fr; padding: 40px 0; }
}

/* ---------- Mètode ---------- */
.method__steps { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--mist); }
.step {
  position: relative;
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--mist);
}
.step__num {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.04em;
  color: var(--ink); margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.step__num::after {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 1px var(--ink);
  transform: scale(0); transition: transform var(--dur-base) var(--ease-out);
}
.step:hover .step__num::after { transform: scale(1); }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--stone-dark); max-width: 26em; font-size: 17px; line-height: 1.55; }
@media (min-width: 768px) {
  .method__steps { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1200px) {
  .method__steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-bottom: 1px solid var(--mist); }
  .step { border-bottom: 0; padding: 40px 32px 48px; border-left: 1px solid var(--mist); }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:last-child { padding-right: 0; }
}

/* Etiqueta de dada sobre una imatge */
.stat-chip {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(8, 9, 10, 0.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--white); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Comparativa ---------- */
.compare__toggle {
  display: inline-flex; padding: 4px; margin-bottom: 32px;
  border: 1px solid var(--line-dark); border-radius: var(--radius-pill);
}
.compare__toggle button {
  padding: 10px 18px; border-radius: var(--radius-pill); font-size: 14px; color: var(--stone);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base);
}
.compare__toggle button[aria-selected="true"] { background: var(--white); color: var(--ink); }
.compare__row {
  display: grid; gap: 16px;
  padding: 28px 0; border-top: 1px solid var(--line-dark);
}
.compare__row:last-child { border-bottom: 1px solid var(--line-dark); }
.compare__row--head { display: none; }
.compare__them, .compare__us {
  font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 30px); line-height: 1.25; letter-spacing: -0.02em;
}
.compare__them { color: var(--stone-dark); }
.compare__us { position: relative; padding-left: 28px; }
.compare__us::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.compare__us .serif { color: var(--accent); }
[data-view="lead"] .compare__them { display: none; }
[data-view="others"] .compare__us { display: none; }
@media (min-width: 768px) {
  .compare__toggle { display: none; }
  .compare__row { grid-template-columns: 1fr 1fr; gap: 48px; padding: 36px 0; }
  .compare__row--head {
    display: grid; border-top: 0; padding: 0 0 16px;
    font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone);
  }
  .compare__row--head span:last-child { color: var(--white); padding-left: 28px; }
  [data-view] .compare__them, [data-view] .compare__us { display: block; }
  .compare__them { text-decoration: line-through; text-decoration-color: rgba(255,255,255,0.18); text-decoration-thickness: 1px; }
}

/* ---------- Sectors ---------- */
.sectors__list { border-top: 1px solid var(--mist); }
.sector {
  position: relative;
  display: grid; grid-template-columns: 1fr 72px; grid-template-areas: "num thumb" "name thumb" "desc thumb";
  column-gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--mist);
}
.sector__num { grid-area: num; font-size: 13px; color: var(--stone-dark); font-family: var(--font-display); }
.sector__name {
  grid-area: name;
  font-family: var(--font-display); font-size: clamp(30px, 5.2vw, 76px); letter-spacing: -0.04em; line-height: 1.05;
  transition: transform var(--dur-slow) var(--ease-out), color var(--dur-base);
}
.sector__desc { grid-area: desc; color: var(--stone-dark); font-size: 15px; margin-top: 6px; }
.sector__thumb { grid-area: thumb; width: 72px; height: 90px; object-fit: cover; border-radius: 10px; align-self: center; }
@media (min-width: 1024px) {
  .sector {
    grid-template-columns: 80px 1fr auto; grid-template-areas: "num name desc";
    align-items: center; padding: 28px 0; cursor: default;
  }
  .sector__desc { margin: 0; text-align: right; max-width: 22em; opacity: 0.55; transition: opacity var(--dur-base) var(--ease-out), color var(--dur-base); }
  .sector:hover .sector__desc { color: var(--ink); }
  .sector__thumb { display: none; }
  .sectors__list:hover .sector__name { color: rgba(13,20,26,0.22); }
  .sectors__list .sector:hover .sector__name { color: var(--ink); transform: translateX(16px); }
  .sector:hover .sector__desc { opacity: 1; transform: none; }
}
.sectors__preview {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 260px; aspect-ratio: 4 / 5;
  margin: -162px 0 0 0;
  border-radius: var(--radius-card); overflow: hidden;
  pointer-events: none;
  opacity: 0; transform: scale(0.85);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  background: var(--graphite);
  display: none;
}
.sectors__preview video, .sectors__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sectors__preview.is-visible { opacity: 1; transform: scale(1); }
@media (min-width: 1024px) and (hover: hover) { .sectors__preview { display: block; } }

/* ---------- Estudi / carrusel ---------- */
.carousel { position: relative; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel.is-dragging { cursor: grabbing; }
.carousel__track {
  display: flex; gap: 16px;
  padding: 0 var(--gutter);
  will-change: transform;
  touch-action: pan-y;
}
@media (min-width: 1440px) { .carousel__track { padding-left: calc((100vw - var(--max)) / 2 + var(--gutter)); } }
.slide { flex: none; width: 66vw; }
.slide img, .slide video {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-card);
  pointer-events: none; background: var(--graphite);
}
.slide--wide { width: 85vw; }
.slide--wide img { aspect-ratio: 3 / 2; height: auto; }
.slide figcaption { margin-top: 14px; font-size: 14px; color: var(--stone); display: flex; align-items: center; gap: 8px; }
.slide figcaption::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
@media (min-width: 768px) {
  .carousel__track { gap: 24px; align-items: flex-end; }
  .slide { width: 28vw; max-width: 420px; }
  .slide--wide { width: 52vw; max-width: 780px; }
  .slide--wide img { aspect-ratio: auto; height: calc(min(28vw, 420px) * 1.25); object-fit: cover; }
}
.carousel__ui { display: flex; align-items: center; gap: 32px; margin-top: 40px; }
.carousel__progress { flex: 1; height: 1px; background: var(--line-dark); position: relative; overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0; background: var(--white); transform-origin: 0 50%; transform: scaleX(0.2); }
.carousel__arrows { display: flex; gap: 8px; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center; font-size: 18px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base), border-color var(--dur-base);
}
.arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px;
  margin-top: var(--section);
  padding-top: 48px; border-top: 1px solid var(--line-dark);
}
.fact { display: flex; flex-direction: column; gap: 10px; }
.fact__value {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 104px); letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact__label { color: var(--stone); font-size: 15px; max-width: 16em; }
@media (min-width: 1024px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Preguntes ---------- */
.faq__title { max-width: 12ch; margin-bottom: 40px; }
.accordion { border-top: 1px solid var(--mist); }
.acc { border-bottom: 1px solid var(--mist); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
  font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -0.015em; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--mist);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base), border-color var(--dur-base);
}
.acc summary i::before, .acc summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; margin: -0.75px 0 0 -7px; background: var(--ink);
}
.acc summary i::after { transform: rotate(90deg); }
.acc summary:hover i { border-color: var(--ink); }
.acc[open] summary i { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 56px 32px 0; color: var(--stone-dark); max-width: 40em; }

/* ---------- Contacte ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; opacity: 0.16; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black) 0%, rgba(8,9,10,0.6) 50%, var(--black) 100%); }
.contact__grid { position: relative; display: grid; gap: 64px; }
.contact__intro .h1 { margin-bottom: 28px; font-size: clamp(36px, 4.6vw, 68px); }
.contact__intro .lead { color: rgba(255,255,255,0.75); margin-bottom: 40px; }
.contact__meta { display: grid; gap: 14px; font-size: 15px; }
.contact__meta li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.contact__meta span { color: var(--stone); }
@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
}

.form {
  background: rgba(28, 31, 34, 0.72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  display: grid; gap: 20px;
}
@media (min-width: 768px) { .form { padding: 40px; } }
.form__row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.field__label { font-size: 14px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 8px; }
.field__label small { color: var(--stone); font-size: 13px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; color: var(--white);
  background: rgba(8, 9, 10, 0.55);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-input);
  padding: 0 16px; height: 56px;
  transition: border-color var(--dur-fast), background var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; padding: 16px; resize: vertical; min-height: 120px; line-height: 1.5; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%);
  background-position: calc(100% - 22px) 25px, calc(100% - 17px) 25px;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 44px;
}
.field select option { background: var(--graphite); color: var(--white); }
.field input::placeholder { color: var(--stone-dark); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: rgba(8,9,10,0.8); }
.field:focus-within .field__label::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.field__error { display: none; font-size: 13px; color: #E08A80; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field.is-invalid .field__error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.75); cursor: pointer; }
.check input {
  flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.3); background: transparent;
  -webkit-appearance: none; appearance: none; display: grid; place-items: center; cursor: pointer;
}
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check.is-invalid input { border-color: var(--error); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.form__status { font-size: 14px; color: var(--stone); }
.form__status.is-error { color: #E08A80; }
.form.is-sent { text-align: left; }
.form__done h3 { margin-bottom: 12px; }
.form__done p { color: var(--stone); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: var(--white); padding: var(--section) 0 32px; border-top: 1px solid var(--line-dark); overflow: hidden; }
.footer__top { display: flex; flex-direction: column; gap: 32px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.footer__claim { font-family: var(--font-display); font-size: clamp(36px, 5.6vw, 80px); letter-spacing: -0.04em; line-height: 1; }
@media (min-width: 768px) { .footer__top { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; padding: 56px 0; font-size: 15px; }
.footer__cols > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.85); }
.footer__head { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
@media (min-width: 1024px) { .footer__cols { grid-template-columns: repeat(4, 1fr); } }
.footer__mark {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.06em; line-height: 0.8;
  font-size: clamp(120px, 31vw, 460px);
  display: flex; align-items: flex-end;
  color: var(--white);
  margin: 0 0 24px -0.04em;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--stone); padding-top: 20px; border-top: 1px solid var(--line-dark); }

/* ---------- Pàgines legals ---------- */
.legal { padding: 160px 0 var(--section); }
.legal .container { max-width: 880px; }
.legal h1 { margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 14px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.72); margin-bottom: 12px; }
.legal .updated { color: var(--stone); font-size: 14px; }
.legal ul { list-style: disc; padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal .todo { background: var(--accent); color: var(--accent-ink); padding: 0 6px; border-radius: 4px; }
.page-simple { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter); }
.page-simple .lead { margin: 24px auto 40px; color: var(--stone); }

/* ---------- Estats inicials d'animació (només amb JS) ---------- */
.js .reveal-fade, .js .reveal-up { opacity: 0; }
.js .reveal-up { transform: translateY(24px); }
.js .line > span { transform: translateY(105%); }

/* ---------- Moviment reduït ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 200ms !important; }
  .marquee__track { animation: none; }
  .js .reveal-up, .js .reveal-fade, .js .line > span { opacity: 1; transform: none; }
  .js .manifest__text .w { color: var(--ink); }
  .cursor, .sectors__preview { display: none !important; }
  .curtain { display: none; }
}

/* ---------- Feina feta: carrusel continu de vídeos verticals ---------- */
.work { padding-bottom: calc(var(--section) * 0.8); overflow: hidden; }
.reel {
  position: relative;
  overflow: hidden;
  padding: 8px 0 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.reel__track { display: flex; width: max-content; will-change: transform; }
.reel__group { display: flex; gap: 16px; padding-right: 16px; }
.reel__card {
  position: relative; flex: none;
  width: clamp(168px, 44vw, 210px);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--graphite);
  transform: translateY(0);
  transition: transform var(--dur-slow) var(--ease-out);
}
.reel__card:nth-child(even) { transform: translateY(40px); }
.reel__card video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
@media (min-width: 768px) {
  .reel__group { gap: 24px; padding-right: 24px; }
  .reel__card { width: clamp(220px, 19vw, 300px); }
  .reel__card:nth-child(even) { transform: translateY(56px); }
  .reel { padding-bottom: 72px; }
}
@media (hover: hover) {
  .reel__card:hover { transform: translateY(-6px) scale(1.02); }
  .reel__card:nth-child(even):hover { transform: translateY(50px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reel__group[aria-hidden="true"] { display: none; }
}
.menu-open .menu__nav a:nth-child(6) { transition-delay: 300ms; }

/* ---------- Avís de galetes ---------- */
.cookie {
  position: fixed; z-index: 120;
  left: 12px; right: 12px; bottom: 12px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  padding: 20px;
  background: rgba(28, 31, 34, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-card);
  color: var(--white);
  font-size: 14px; line-height: 1.5;
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.cookie.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.cookie p { color: rgba(255, 255, 255, 0.78); }
.cookie a { color: var(--white); }
@media (min-width: 640px) {
  .cookie { left: auto; right: 24px; bottom: 24px; max-width: 380px; }
}
