/* ==========================================================================
   Duett® — sistema visual
   Negre absolut, blanc trencat i un únic accent: verd fluorescent.
   ========================================================================== */

:root {
  --black: #0a0a0a;
  --ink: #111111;
  --graphite: #1c1c1c;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 10, 10, 0.14);
  --white: #f5f5f0;
  --muted: #9a9a94;
  --muted-dark: #5c5c58;
  --neon: #39ff14;
  --neon-soft: rgba(57, 255, 20, 0.14);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1600px;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 76px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--neon); color: var(--black);
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  transform: translateY(-200%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

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

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.display {
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.045em;
  line-height: .9;
  font-size: clamp(52px, 11vw, 196px);
}

.h2 {
  font-weight: 800;
  font-variation-settings: "wdth" 108;
  letter-spacing: -0.04em;
  line-height: .95;
  font-size: clamp(40px, 6.4vw, 108px);
}

.h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-size: clamp(24px, 2.6vw, 38px);
}

.lead {
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 36ch;
}

.neon { color: var(--neon); }
.outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--white);
}
.section--light .outline,
.section--neon .outline { -webkit-text-stroke-color: var(--black); }
.outline.neon { -webkit-text-stroke-color: var(--neon); }

/* --------------------------------------------------------------------------
   Botons
   -------------------------------------------------------------------------- */

.btn {
  --bg: var(--neon); --fg: var(--black);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 28px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--white);
  transform: translateY(101%);
  border-radius: 50% 50% 0 0;
  transition: transform .6s var(--ease), border-radius .6s var(--ease);
}
.btn:hover::before { transform: none; border-radius: 0; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }

.btn--ghost { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost::before { background: var(--neon); }
.btn--ghost:hover { --fg: var(--black); }
.btn--dark { --bg: var(--black); --fg: var(--white); }
.btn--dark::before { background: var(--neon); }
.btn--dark:hover { --fg: var(--black); }

.link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-u:hover { background-size: 100% 1.5px; }

/* --------------------------------------------------------------------------
   Capçalera
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 500;
  height: var(--header-h);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.site-header.is-solid {
  background: rgba(10, 10, 10, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: block; width: 112px; flex: none; }
.logo img { width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  position: relative;
  padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  transition: background-color .3s, color .3s;
}
.nav a:hover { background: var(--graphite); }
.nav a[aria-current="page"] { color: var(--neon); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%;
  background: var(--neon);
}
.nav .btn { height: 44px; padding: 0 20px; font-size: 15px; margin-left: 10px; }
.nav .btn:hover { background: var(--neon); }

.lang {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--muted);
  display: flex; gap: 2px; margin-left: 6px;
}
.lang span, .lang a { padding: 6px 7px; border-radius: 6px; }
.lang [aria-current="true"] { color: var(--black); background: var(--white); }

.menu-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--neon); color: var(--black);
  position: relative; z-index: 2;
}
.menu-toggle span {
  position: absolute; left: 15px; right: 15px; height: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 400;
  background: var(--neon); color: var(--black);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  clip-path: circle(0 at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
  transition: clip-path .8s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mobile-menu {
  clip-path: circle(150% at calc(100% - var(--gutter) - 24px) calc(var(--header-h) / 2));
  visibility: visible;
}
.mobile-menu a.big {
  display: block;
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(48px, 15vw, 96px); line-height: .95; letter-spacing: -0.045em;
  border-bottom: 1.5px solid rgba(0,0,0,.15);
  padding: 10px 0;
}
.mobile-menu .meta { margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; flex-wrap: wrap; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: block; }
  .logo { width: 96px; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

/* --------------------------------------------------------------------------
   Cursor personalitzat (només amb ratolí)
   -------------------------------------------------------------------------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 950;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--neon);
  pointer-events: none;
  mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s;
  opacity: 0;
}
.cursor span {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--black); opacity: 0; transition: opacity .3s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-view {
  width: 104px; height: 104px; margin: -52px 0 0 -52px;
  mix-blend-mode: normal;
}
.cursor.is-view span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* --------------------------------------------------------------------------
   Revelats en scroll
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line-mask > span { display: inline-block; }
.js .split .line-mask > span {
  transform: translateY(105%);
  transition: transform 1.2s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms + var(--d, 0s));
}
.js .split.is-in .line-mask > span { transform: none; }

/* --------------------------------------------------------------------------
   Hero (inici)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 6vh);
  padding-bottom: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.hero__title { position: relative; z-index: 3; margin-top: 3vh; }
.hero__title .neon-word { color: var(--neon); font-style: italic; font-variation-settings: "wdth" 125; }
.hero__bottom {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin-top: 4vh;
}
.hero__scroll {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll i {
  width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -50%; width: 100%; height: 50%;
  background: var(--neon);
  animation: drip 2s var(--ease-in-out) infinite;
}
@keyframes drip { to { top: 110%; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.status b { color: var(--white); font-weight: 600; }
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(57,255,20,.6); }
  70% { box-shadow: 0 0 0 10px rgba(57,255,20,0); }
  100% { box-shadow: 0 0 0 0 rgba(57,255,20,0); }
}

/* Rastre d'imatges que segueix el ratolí */
.trail { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.trail img {
  position: absolute; left: 0; top: 0;
  width: clamp(160px, 18vw, 280px); height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  will-change: transform, opacity;
}

@media (max-width: 700px) {
  .hero__bottom { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding: 26px 0;
  display: flex;
  user-select: none;
}
.marquee__track {
  display: flex; flex: none; gap: 56px; padding-right: 56px;
  animation: marquee var(--speed, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; gap: 56px;
  font-weight: 700; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -0.02em;
  white-space: nowrap; color: var(--muted);
  transition: color .3s;
}
.marquee__item:hover { color: var(--white); }
.marquee__item::after { content: "✳"; color: var(--neon); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* --------------------------------------------------------------------------
   Seccions
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.section--light { background: var(--white); color: var(--black); }
.section--light .eyebrow { color: var(--muted-dark); }
.section--light .btn--ghost { --fg: var(--black); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.section--neon { background: var(--neon); color: var(--black); }
.section--neon .eyebrow { color: var(--black); }
.section--neon .eyebrow::before { background: var(--black); box-shadow: none; }

.section-head {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .eyebrow { margin-bottom: 24px; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* Manifest */
.manifesto { font-size: clamp(30px, 4.6vw, 72px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; max-width: 20ch; }
.manifesto .w { opacity: .14; transition: opacity .4s; }
.manifesto .w.on { opacity: 1; }
.manifesto em { font-style: normal; color: var(--neon); }
.section--light .manifesto em { color: var(--black); background: var(--neon); padding: 0 .1em; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(64px, 8vw, 120px);
}
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact strong {
  display: block; font-size: clamp(48px, 6vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  font-variation-settings: "wdth" 112;
}
.fact span { display: block; margin-top: 10px; color: var(--muted-dark); max-width: 22ch; }
@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line-dark); margin-top: 28px; }
}

/* --------------------------------------------------------------------------
   Projectes destacats (inici): galeria a tot l'ample, totes les peces iguals
   -------------------------------------------------------------------------- */

.work { padding-block: clamp(96px, 12vw, 180px) clamp(64px, 8vw, 120px); }
.work__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 4vw, 64px) clamp(8px, 1vw, 16px);
  padding-inline: clamp(8px, 1vw, 16px);
}
.work__grid .card__media { aspect-ratio: 4 / 3; }
.work__grid .card__meta { padding-inline: clamp(4px, .6vw, 10px); }
.work__more { display: flex; justify-content: center; margin-top: clamp(56px, 6vw, 96px); }
@media (max-width: 1100px) and (min-width: 701px) {
  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__item:nth-child(9) { display: none; }   /* files completes a 2 columnes */
}
@media (max-width: 700px) {
  .work__grid { grid-template-columns: 1fr; gap: 40px; padding-inline: var(--gutter); }
  .work__grid .card__meta { flex-wrap: wrap; row-gap: 4px; padding-inline: 0; }
}

.card { position: relative; display: block; }
/* Zoom en màscara: el marc s'encongeix mentre la imatge s'apropa */
.card__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--graphite);
  border-radius: var(--radius);
  clip-path: inset(0 round var(--radius));
  transition: clip-path 1s var(--ease);
}
.card__media img,
.card__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.2s var(--ease);
}
.card:hover .card__media,
.card:focus-visible .card__media { clip-path: inset(3.5% round calc(var(--radius) + 6px)); }
.card:hover .card__media img,
.card:focus-visible .card__media img { transform: scale(1.16); }
.card__view {
  position: absolute; right: 7%; top: 7%; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--neon); color: var(--black);
  display: grid; place-items: center;
  font-size: 0;
  transform: scale(0) rotate(-45deg);
  transition: transform .7s var(--ease);
}
.card__view::before { content: "↗"; font-size: 22px; font-weight: 600; }
.card:focus-visible .card__view { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__view { transform: scale(0) rotate(-45deg); }
}
.card__title { transition: color .4s; }
.card:hover .card__title { color: var(--neon); }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px; }
.card__title { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.03em; }
.card__cat { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* --------------------------------------------------------------------------
   Llista de serveis amb imatge flotant
   -------------------------------------------------------------------------- */

.svc-list { border-top: 1px solid var(--line-dark); }
.section:not(.section--light) .svc-list { border-color: var(--line); }
.svc-row {
  position: relative;
  display: grid; grid-template-columns: 80px 1fr auto; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line-dark);
  overflow: hidden;
}
.section:not(.section--light) .svc-row { border-color: var(--line); }
.svc-row::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--neon);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .6s var(--ease);
}
.svc-row:hover::before, .svc-row:focus-visible::before { transform: scaleY(1); transform-origin: 50% 0; }
.svc-row > * { position: relative; z-index: 1; transition: color .4s, transform .6s var(--ease); }
.svc-row:hover > *, .svc-row:focus-visible > * { color: var(--black); }
.svc-row:hover .svc-row__title { transform: translateX(16px); }
.svc-row__num { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-left: 8px; }
.svc-row__title { font-size: clamp(30px, 5vw, 76px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; font-variation-settings: "wdth" 108; }
.svc-row__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 360px; padding-right: 8px; }
.tag {
  font-size: 13px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid currentColor; opacity: .7; white-space: nowrap;
}
@media (max-width: 800px) {
  .svc-row { grid-template-columns: 44px 1fr; }
  .svc-row__tags { grid-column: 2; justify-content: flex-start; }
}

.float-preview {
  position: fixed; left: 0; top: 0; z-index: 300;
  width: 300px; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  pointer-events: none;
  opacity: 0; transform: scale(.6);
  transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.float-preview.is-on { opacity: 1; transform: scale(1); }
.float-preview img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: opacity .3s; }
@media (hover: none) { .float-preview { display: none; } }

/* --------------------------------------------------------------------------
   Mètode: Pensem / Creem / Activem
   -------------------------------------------------------------------------- */

.method {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.step {
  position: relative;
  padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: border-color .5s, transform .6s var(--ease);
}
.step::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), var(--neon-soft), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.step { isolation: isolate; }
.step:hover::after { opacity: 1; }
.step:hover { border-color: rgba(57,255,20,.5); }
.step__n { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.step__title { font-size: clamp(44px, 5vw, 84px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; font-variation-settings: "wdth" 112; margin-block: 40px 20px; }
.step p { color: var(--muted); max-width: 32ch; }
.step:nth-child(2) .step__title { color: var(--neon); }
@media (max-width: 900px) {
  .method { grid-template-columns: 1fr; }
  .step { min-height: 0; }
}

/* --------------------------------------------------------------------------
   Configurador de projecte (lead tool)
   -------------------------------------------------------------------------- */

.builder {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.builder fieldset { border: 0; padding: 0; margin: 0 0 40px; }
.builder legend { font-weight: 700; font-size: 20px; letter-spacing: -0.02em; margin-bottom: 16px; padding: 0; }
.builder legend small { display: block; font-weight: 400; font-size: 14px; opacity: .65; margin-top: 4px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid rgba(10,10,10,.25);
  font-weight: 600; font-size: 15px;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.chip span::before {
  content: "+"; font-family: var(--mono); font-weight: 400;
  transition: transform .4s var(--ease);
}
.chip input:checked + span { background: var(--black); color: var(--neon); border-color: var(--black); }
.chip input:checked + span::before { content: "✓"; }
.chip input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 3px; }
.chip:hover span { transform: translateY(-2px); }

.summary {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--black); color: var(--white);
  border-radius: var(--radius); padding: 32px;
}
.summary h3 { font-size: 15px; font-family: var(--mono); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.summary__list { min-height: 120px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; margin-bottom: 24px; }
.summary__list .tag { opacity: 1; border-color: var(--line); animation: pop .5s var(--ease); }
.summary__empty { color: var(--muted); }
.summary__meter { height: 6px; background: var(--graphite); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.summary__meter i { display: block; height: 100%; width: 0; background: var(--neon); transition: width .7s var(--ease); }
.summary__scope { font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.summary__scope b { color: var(--white); }
.summary .btn { width: 100%; justify-content: center; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (max-width: 900px) {
  .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* --------------------------------------------------------------------------
   Contacte
   -------------------------------------------------------------------------- */

.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px);
}
.contact__big {
  display: inline-block;
  font-size: clamp(26px, 3.4vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variation-settings: "wdth" 100;
  position: relative;
  overflow-wrap: anywhere;
}
.contact__big::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 4px;
  background: var(--neon); transform: scaleX(.12); transform-origin: 0 50%;
  transition: transform .8s var(--ease);
}
.contact__big:hover::after { transform: scaleX(1); }
.contact__info { margin-top: 40px; display: grid; gap: 14px; color: var(--muted); }
.contact__info a { color: var(--white); }

.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input,
.field textarea {
  width: 100%;
  background: transparent; color: var(--white);
  border: 0; border-bottom: 1.5px solid var(--line);
  padding: 30px 0 12px;
  font: inherit; font-size: 19px;
  border-radius: 0;
  transition: border-color .3s;
  resize: vertical;
}
.field textarea { min-height: 140px; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--neon); }
.field label {
  position: absolute; left: 0; top: 30px;
  color: var(--muted); pointer-events: none;
  transform-origin: 0 0;
  transition: transform .4s var(--ease), color .3s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); color: var(--neon); }
.field .err { font-size: 13px; color: #ff6b6b; min-height: 18px; margin-top: 6px; }
.field.is-valid input { border-color: rgba(57,255,20,.6); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff6b6b; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin-top: 8px; }
.consent input { accent-color: var(--neon); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.consent a { color: var(--white); text-decoration: underline; }
.consent.is-invalid { color: #ff6b6b; }
.form .btn { justify-self: start; margin-top: 12px; }
.form-ok {
  display: none;
  padding: 28px; border-radius: var(--radius);
  background: var(--neon); color: var(--black);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
}
.form.is-sent > :not(.form-ok) { display: none; }
.form.is-sent .form-ok { display: block; animation: pop .6s var(--ease); }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Peu
   -------------------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); padding-top: 64px; overflow: hidden; }
.footer-grid {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px;
  padding-bottom: 48px;
}
.footer-grid h2 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-grid li + li { margin-top: 8px; }
.footer-grid p { color: var(--muted); max-width: 34ch; }
.footer-word {
  display: block;
  padding-inline: var(--gutter);
  margin-bottom: -1px;
  line-height: 0;
  user-select: none;
}
/* Logotip real (màscara) acolorit amb CSS */
.footer-logo {
  display: block; width: 100%;
  aspect-ratio: 2290 / 692;
  background-color: #353535;
  -webkit-mask: url("/assets/img/logo-mask.png") no-repeat center / contain;
  mask: url("/assets/img/logo-mask.png") no-repeat center / contain;
}
.footer-legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
  position: relative; z-index: 2; background: var(--black);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* --------------------------------------------------------------------------
   Capçalera de pàgines interiors
   -------------------------------------------------------------------------- */

.page-hero { padding-top: calc(var(--header-h) + clamp(64px, 12vh, 140px)); padding-bottom: clamp(48px, 8vw, 96px); }
.crumbs { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; margin-bottom: 32px; }
.crumbs a:hover { color: var(--neon); }
.page-hero__row { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; margin-top: 32px; }
@media (max-width: 800px) { .page-hero__row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Pàgina de projectes: filtres + graella
   -------------------------------------------------------------------------- */

.toolbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 16px;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: top .6s var(--ease);
}
.header-visible .toolbar { top: var(--header-h); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600; font-size: 15px;
  transition: background-color .3s, color .3s, border-color .3s;
}
.filter sup { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.filter:hover { border-color: var(--white); }
.filter[aria-pressed="true"] { background: var(--neon); color: var(--black); border-color: var(--neon); }
.filter[aria-pressed="true"] sup { color: var(--black); }
@media (max-width: 800px) {
  .toolbar { padding-block: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .filters::-webkit-scrollbar { display: none; }
  .filter { white-space: nowrap; padding: 8px 14px; font-size: 14px; }
  .view-toggle { display: none !important; }
}
.view-toggle { display: flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.view-toggle button { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: var(--white); color: var(--black); }

/* Graella neta: dues columnes, la segona lleugerament desplaçada */
.grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 5vw, 88px) clamp(16px, 2vw, 32px);
  padding-block: 56px 140px;
}
@media (min-width: 801px) {
  .grid:not(.is-list) .proj[data-pos="1"] { transform: translateY(clamp(40px, 6vw, 110px)); }
}
.proj.is-hidden { display: none; }
.proj .card { width: auto; }
.proj .card__media { aspect-ratio: 4 / 3; }
.proj .card__meta { margin-top: 20px; }
.proj__desc { display: none; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
}

/* Vista llista */
.grid.is-list { display: block; padding-top: 0; }
.grid.is-list .proj { margin: 0; border-bottom: 1px solid var(--line); }
.grid.is-list .proj a { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 24px; align-items: center; padding: 22px 0; transition: padding .5s var(--ease), color .3s; }
.grid.is-list .proj a:hover { padding-left: 16px; color: var(--neon); }
.grid.is-list .card__media { display: none; }
.grid.is-list .card__meta { display: contents; }
.grid.is-list .card__title { order: 1; font-size: clamp(22px, 2.4vw, 34px); }
.grid.is-list .card__cat { order: 2; }
.grid.is-list .proj__desc { order: 3; margin: 0; }
@media (max-width: 800px) {
  .grid.is-list .proj a { grid-template-columns: 1fr auto; }
  .grid.is-list .proj__desc { display: none; }
}

.empty { padding: 80px 0; color: var(--muted); display: none; }

/* Animació FLIP en filtrar */
.proj.is-entering { animation: enter .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes enter { from { opacity: 0; transform: translateY(40px) scale(.97); } }

/* --------------------------------------------------------------------------
   Fitxa de projecte
   -------------------------------------------------------------------------- */

.pd-hero { padding-top: calc(var(--header-h) + clamp(48px, 9vh, 112px)); padding-bottom: clamp(40px, 5vw, 72px); }
.pd-hero .eyebrow { margin-bottom: 20px; }
.pd-hero__title { font-size: clamp(48px, 9.5vw, 168px); max-width: 14ch; }

.pd-meta {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 24px; border-top: 1px solid var(--line);
}
.pd-meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pd-meta dd { font-weight: 600; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags .tag { opacity: 1; border-color: var(--line); font-weight: 500; }
@media (max-width: 800px) { .pd-meta { grid-template-columns: 1fr 1fr; } }

.pd-cover {
  margin-inline: var(--gutter);
  height: min(86svh, 62vw);
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden; position: relative;
  background: var(--graphite);
  animation: cover-in 1.6s var(--ease) both .15s;
}
.pd-cover img, .pd-cover video { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
@keyframes cover-in { from { clip-path: inset(12% 6% 0 6% round var(--radius)); } to { clip-path: inset(0 round var(--radius)); } }

.pd-sec { padding-top: clamp(80px, 10vw, 160px); }
.pd-text {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 96px);
  align-items: start;
}
.pd-text__head .eyebrow { margin-bottom: 18px; }
.pd-title { font-size: clamp(28px, 3.2vw, 52px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; }
.pd-text__body { display: grid; gap: 20px; }
.pd-text__body p { color: var(--muted); font-size: 18px; max-width: 62ch; }
.pd-text__body .pd-lead { color: var(--white); font-size: clamp(20px, 1.9vw, 28px); line-height: 1.35; letter-spacing: -0.015em; max-width: 40ch; }
.pd-text--solo .pd-text__body { grid-column: 2; }
.pd-text--solo .pd-text__head { display: none; }
.pd-text--head { grid-template-columns: 1fr; }
.pd-list { display: grid; }
.pd-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; display: flex; gap: 12px; }
.pd-list li::before { content: "—"; color: var(--neon); }
.pd-text + .wrap { margin-top: clamp(40px, 5vw, 72px); }
@media (max-width: 800px) {
  .pd-text { grid-template-columns: 1fr; }
  .pd-text--solo .pd-text__body { grid-column: auto; }
}

/* Galeries */
.gal { display: grid; gap: clamp(10px, 1.2vw, 18px); }
.gal + .gal, .gal + .embed, .embed + .gal, .icons + .gal, .gal + .icons, .embed + .embed { margin-top: clamp(10px, 1.2vw, 18px); }
.gal--2 { grid-template-columns: 1fr 1fr; align-items: start; }
.gal--3 { grid-template-columns: 1fr 1fr; align-items: start; }
.gal--3 > :first-child { grid-column: 1 / -1; }
.gal--masonry { display: block; columns: 2; column-gap: clamp(10px, 1.2vw, 18px); }
.gal--masonry .gal__item { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); }
.gal--masonry .gal__item--full { column-span: all; }
@media (min-width: 1100px) { .gal--wide { columns: 3; } }
@media (max-width: 600px) { .gal--2, .gal--3 { grid-template-columns: 1fr; } .gal--masonry { columns: 1; } }
.gal__item { margin: 0; border-radius: 12px; overflow: hidden; background: var(--graphite); }
.gal__item img, .gal__item video { width: 100%; height: auto; display: block; }
.gal__item--video video { aspect-ratio: 16 / 9; object-fit: cover; background: var(--graphite); }
.gal__zoom { display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.gal__zoom img { transition: transform 1.2s var(--ease); }
.gal__zoom:hover img { transform: scale(1.04); }

.icons {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: clamp(8px, 1vw, 14px);
}
.icons li { background: var(--white); border-radius: 12px; padding: 18%; aspect-ratio: 1; display: grid; place-items: center; transition: transform .5s var(--ease), background-color .3s; }
.icons li:hover { transform: translateY(-4px); background: var(--neon); }
.icons img { width: 100%; height: 100%; object-fit: contain; }

.embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--graphite); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Testimoni */
.pd-quote { padding-bottom: 0; }
.pd-quote blockquote { margin: 28px 0 0; max-width: 1080px; }
.pd-quote blockquote p { font-size: clamp(22px, 2.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.22; }
.pd-quote blockquote footer { margin-top: 32px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--neon); }

/* Següent projecte */
.pd-next { margin-top: clamp(80px, 10vw, 160px); border-top: 1px solid var(--line); }
.pd-next__link { display: block; width: auto; padding-top: 32px; }
.pd-next__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pd-next__title { font-size: clamp(44px, 8vw, 140px); font-weight: 800; font-variation-settings: "wdth" 108; letter-spacing: -0.05em; line-height: .95; margin: 24px 0 40px; transition: color .4s; }
.pd-next__title span { display: inline-block; color: var(--neon); transition: transform .7s var(--ease); }
.pd-next__link:hover .pd-next__title span { transform: translateX(16px); }
.pd-next__media { aspect-ratio: auto; height: clamp(260px, 46vw, 640px); margin-inline: var(--gutter); }
.pd-next__link:hover .card__title { color: inherit; }

/* --------------------------------------------------------------------------
   Visor d'imatges
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0; z-index: 850;
  background: rgba(10, 10, 10, .96);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s .4s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.lightbox img {
  max-width: calc(100vw - 2 * var(--gutter) - 120px); max-height: 86svh;
  width: auto; height: auto; border-radius: 10px;
  transform: scale(.94); transition: transform .6s var(--ease);
}
.lightbox.is-open img { transform: none; }
.lightbox .icon-btn { position: absolute; background: var(--black); }
.lightbox__prev { left: var(--gutter); top: 50%; margin-top: -26px; }
.lightbox__next { right: var(--gutter); top: 50%; margin-top: -26px; }
.lightbox__close { right: var(--gutter); top: 20px; }
.lightbox__count { position: absolute; left: var(--gutter); top: 34px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
  .lightbox img { max-width: calc(100vw - 2 * var(--gutter)); }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin: 0; }
}

/* --------------------------------------------------------------------------
   Pàgina de serveis
   -------------------------------------------------------------------------- */

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Mapa de serveis: 8 peces clicables */
.svc-overview { padding-bottom: clamp(64px, 8vw, 120px); }
.svc-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc-tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; gap: 10px;
  min-height: clamp(180px, 16vw, 240px); height: 100%;
  padding: clamp(18px, 2vw, 28px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: color .4s;
}
.svc-tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--neon);
  clip-path: inset(100% 0 0 0);
  transition: clip-path .6s var(--ease);
}
.svc-tile:hover, .svc-tile:focus-visible { color: var(--black); }
.svc-tile:hover::before, .svc-tile:focus-visible::before { clip-path: inset(0); }
.svc-tile__n { font-family: var(--mono); font-size: 12px; color: var(--muted); transition: color .4s; }
.svc-tile:hover .svc-tile__n { color: var(--black); }
.svc-tile__name { margin-top: auto; font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.svc-tile__txt { font-size: 14px; color: var(--muted); max-width: 26ch; transition: color .4s; }
.svc-tile:hover .svc-tile__txt { color: rgba(10,10,10,.75); }
.svc-tile__go { position: absolute; top: clamp(18px, 2vw, 28px); right: clamp(18px, 2vw, 28px); transition: transform .5s var(--ease); }
.svc-tile:hover .svc-tile__go { transform: translateY(4px); }
@media (max-width: 1000px) { .svc-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .svc-tile { min-height: 0; }
  .svc-tile__txt { display: none; }
}

/* Detall de cada servei */
/* Mòdul: [icona gran | títol i subtítol] / [descripció | què inclou] */
.svc2 {
  display: grid; grid-template-columns: 5fr 7fr;
  column-gap: clamp(32px, 6vw, 112px); row-gap: clamp(32px, 4vw, 56px);
  padding-block: clamp(64px, 8vw, 120px);
  border-top: 1px solid var(--line);
}
/* Icona sense marc, més gran */
.svc2 .svc2__icon,
.svc2 .svc2__icon:hover { width: 100%; max-width: 380px; margin: 0; border: 0; background: none; place-items: center start; }
.svc2 .svc2__icon .ico { width: 82%; }
.svc2 .svc2__icon .ico * { stroke-width: 2; }
.svc2__head { align-self: center; }
.svc2__desc { padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--line); }
.svc2__side { padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--line); }
.svc2__n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.svc2__n span { color: var(--neon); margin-right: 8px; }
.svc2__title { font-size: clamp(36px, 4.6vw, 76px); font-weight: 800; font-variation-settings: "wdth" 104; letter-spacing: -0.045em; line-height: .96; }
.svc2__lead { font-size: clamp(19px, 1.7vw, 26px); line-height: 1.35; letter-spacing: -0.01em; margin-top: 24px; max-width: 34ch; }
.svc2__body { color: var(--muted); font-size: 18px; max-width: 46ch; }
.svc2__proj { margin-top: 18px; font-size: 14px; color: var(--muted); }
.svc2__proj a { color: var(--white); font-weight: 600; }

/* Icona animada de cada servei: s'anima mentre el ratolí hi és a sobre */
.svc-icon {
  position: relative;
  width: clamp(168px, 16vw, 220px); aspect-ratio: 1;
  margin-top: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(57,255,20,0), transparent 70%), rgba(255,255,255,.02);
  transition: border-color .5s, background .6s;
  cursor: default;
}
.svc-icon:hover { border-color: rgba(57,255,20,.6); background: radial-gradient(circle at 50% 50%, rgba(57,255,20,.12), transparent 70%), rgba(255,255,255,.02); }
.ico { width: 64%; height: auto; overflow: visible; }
.ico * {
  fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  transform-box: fill-box; transform-origin: center;
}
.ico .ac { stroke: var(--neon); }
.ico .i-fill { fill: var(--neon); stroke: none; }
.ico .i-fillw { fill: var(--white); stroke: var(--black); stroke-width: 1.5; }

/* 01 Estratègia: la fletxa encerta la diana i els anells vibren */
.svc-icon .i-arrow { animation: ico-arrow 1.6s var(--ease) infinite; }
.svc-icon .i-ring { animation: ico-pulse 1.6s var(--ease) infinite; }
.svc-icon .i-r2 { animation-delay: .08s; }
.svc-icon .i-r3 { animation-delay: .16s; }
@keyframes ico-arrow { 0% { transform: translate(26px, -26px); opacity: 0; } 25% { opacity: 1; } 40%, 100% { transform: none; } }
@keyframes ico-pulse { 0%, 38% { transform: none; } 48% { transform: scale(1.07); } 62%, 100% { transform: none; } }

/* 02 Branding: la marca es dibuixa i apareix el ® */
.ico .i-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc-icon .i-draw { animation: ico-draw 2.2s var(--ease-in-out) infinite; }
.svc-icon .i-draw2 { animation-delay: .25s; }
.svc-icon .i-reg { animation: ico-pop 2.2s var(--ease) infinite; }
@keyframes ico-draw { 0% { stroke-dashoffset: 1; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes ico-pop { 0%, 50% { transform: scale(0); } 65% { transform: scale(1.25); } 75%, 100% { transform: none; } }

/* 03 Campanyes: el megàfon emet ones */
.svc-icon .i-mega { animation: ico-shake 1.2s ease-in-out infinite; transform-origin: 30% 60%; }
.svc-icon .i-wave { animation: ico-wave 1.2s ease-out infinite; }
.svc-icon .i-w2 { animation-delay: .15s; }
.svc-icon .i-w3 { animation-delay: .3s; }
@keyframes ico-shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } }
@keyframes ico-wave { 0% { opacity: 0; transform: translateX(-6px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(6px); } }

/* 04 Disseny web: la pàgina es construeix bloc a bloc */
.svc-icon .i-blk { animation: ico-build 2s var(--ease) infinite; transform-origin: left center; }
.svc-icon .i-b2 { animation-delay: .15s; }
.svc-icon .i-b3 { animation-delay: .3s; }
.svc-icon .i-cursor { animation: ico-cursor 2s var(--ease) infinite; }
@keyframes ico-build { 0% { transform: scaleX(0); opacity: 0; } 35%, 100% { transform: none; opacity: 1; } }
@keyframes ico-cursor { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-30px, -30px); } 55% { transform: translate(-30px, -30px) scale(.85); } 70% { transform: translate(-30px, -30px); } }

/* 05 Disseny gràfic: les formes juguen */
.svc-icon .i-s1 { animation: ico-bounce 1.4s var(--ease) infinite; }
.svc-icon .i-s2 { animation: ico-turn 1.4s var(--ease-in-out) infinite; }
.svc-icon .i-s3 { animation: ico-tilt 1.4s var(--ease-in-out) infinite; }
.svc-icon .i-spark { animation: ico-twinkle 1.4s ease-in-out infinite; }
@keyframes ico-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12px); } 60% { transform: translateY(0) scale(1.08, .92); } }
@keyframes ico-turn { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(90deg); } }
@keyframes ico-tilt { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-14deg) translateX(-4px); } }
@keyframes ico-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.4) rotate(45deg); opacity: .4; } }

/* 06 Foto i vídeo: l'obturador gira i dispara el flaix */
.ico .i-flash { opacity: 0; }
.svc-icon .i-lens { animation: ico-shutter 1.6s var(--ease-in-out) infinite; }
.svc-icon .i-flash { animation: ico-flash 1.6s ease-out infinite; }
@keyframes ico-shutter { 0% { transform: rotate(0) scale(1); } 30% { transform: rotate(120deg) scale(.55); } 45% { transform: rotate(120deg) scale(.55); } 70%, 100% { transform: rotate(240deg) scale(1); } }
@keyframes ico-flash { 0%, 28% { opacity: 0; transform: scale(.6); } 36% { opacity: 1; transform: scale(1); } 60%, 100% { opacity: 0; transform: scale(1.15); } }

/* 07 Xarxes socials: likes que pugen */
.ico .i-mini { opacity: 0; }
.svc-icon .i-heart { animation: ico-beat 1.2s ease-in-out infinite; }
.svc-icon .i-mini { animation: ico-float 1.8s ease-out infinite; }
.svc-icon .i-m2 { animation-delay: .4s; }
.svc-icon .i-m3 { animation-delay: .8s; }
@keyframes ico-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
@keyframes ico-float { 0% { opacity: 0; transform: translateY(24px) scale(.5); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px) scale(1.1); } }

/* 08 IA: l'estrella gira i les espurnes centellegen */
.svc-icon .i-star { animation: ico-spin 2.4s var(--ease-in-out) infinite; }
.svc-icon .i-tw { animation: ico-twinkle 1.2s ease-in-out infinite; }
.svc-icon .i-t2 { animation-delay: .6s; }
@keyframes ico-spin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(90deg) scale(.82); } 100% { transform: rotate(180deg) scale(1); } }

@media (max-width: 900px) { .svc-icon { width: 160px; } }
.svc2__label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
@media (max-width: 900px) {
  .svc2 { grid-template-columns: 1fr; row-gap: 28px; }
  .svc2 .svc2__icon, .svc2 .svc2__icon:hover { max-width: 220px; }
}

/* Llista amb marques de verificació */
.checks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.checks li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-weight: 600; font-size: 16px; line-height: 1.35;
}
.checks li::before {
  content: "✓"; flex: none;
  width: 20px; height: 20px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  background: var(--neon); color: var(--black);
}
.checks--no li { color: var(--muted); }
.checks--no li::before { content: "✕"; background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }

/* Fee mensual flexible */
.fee {
  position: relative;
  padding-block: clamp(96px, 12vw, 180px);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(57,255,20,.10), transparent 60%),
    var(--ink);
  border-block: 1px solid var(--line);
}
.fee__intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
.fee__intro .eyebrow { margin-bottom: 24px; }
.fee__intro .lead strong { color: var(--neon); font-weight: 600; }
.fee__sub { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 24px; }
.fee > .wrap > .fee__sub { margin-top: clamp(72px, 8vw, 120px); }
@media (max-width: 900px) { .fee__intro { grid-template-columns: 1fr; } }

.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.reason {
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,.015);
  transition: border-color .4s, transform .6s var(--ease);
}
.reason:hover { border-color: rgba(57,255,20,.5); transform: translateY(-4px); }
.reason__n { display: block; font-size: clamp(40px, 4vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--neon); margin-bottom: 28px; }
.reason h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.reason p { color: var(--muted); font-size: 16px; }
@media (max-width: 1000px) { .reasons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } }

.pricing {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(72px, 8vw, 120px); align-items: start;
}

.calc {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--neon); color: var(--black);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px);
  display: grid; gap: 10px;
}
.calc h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.calc h3 { margin-bottom: 6px; }
.ask-fee__big { font-size: clamp(28px, 2.8vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ask-fee p:not(.ask-fee__big) { opacity: .8; }
.ask-fee__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.ask-fee__list li { padding: 6px 12px; border-radius: 999px; border: 1.5px solid rgba(10,10,10,.25); font-weight: 600; font-size: 14px; }
.ask-fee .btn { --bg: var(--black); --fg: var(--white); margin-top: 12px; justify-content: center; }
.ask-fee .btn::before { background: var(--white); }
.ask-fee .btn:hover { --fg: var(--black); }

.how { display: grid; }
.how li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.how li:first-child { border-top: 1px solid var(--line); }
.how__n { font-family: var(--mono); font-size: 13px; color: var(--neon); padding-top: 4px; }
.how strong { display: block; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -0.02em; margin-bottom: 6px; }
.how p { color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .pricing { grid-template-columns: 1fr; }
  .calc { position: static; }
}

.incl { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(72px, 8vw, 120px); }
.incl .checks--no { grid-template-columns: 1fr; }
@media (max-width: 900px) { .incl { grid-template-columns: 1fr; } }
.fee__faq { max-width: 860px; margin-top: clamp(64px, 7vw, 100px); }

/* Equip */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.person {
  display: grid; gap: 4px;
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .4s;
}
.person:hover { border-color: var(--neon); }
.person__ini {
  width: 64px; height: 64px; border-radius: 50%; margin-bottom: 28px;
  display: grid; place-items: center;
  background: var(--neon); color: var(--black);
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
}
.person__name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.person__role { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .people { grid-template-columns: 1fr 1fr; } }

.collab {
  display: grid; grid-template-columns: auto 1fr; gap: 16px clamp(24px, 4vw, 64px); align-items: center;
  margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line);
}
.collab__big { font-size: clamp(22px, 2vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.collab__big strong { display: block; font-size: clamp(64px, 8vw, 128px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; color: var(--neon); }
.collab__txt { color: var(--muted); max-width: 48ch; }
.collab__tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.collab__tags .tag { opacity: 1; border-color: var(--line); font-size: 14px; padding: 8px 14px; }
@media (max-width: 700px) { .collab { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 48px; }
.faq h3 { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 24px;
  padding: 20px 0; font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 22px; line-height: 1;
  transition: transform .5s var(--ease), color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--neon); }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 64ch; }

/* CTA final */
.cta-band { text-align: center; }
.cta-band .h2 { max-width: 14ch; margin: 24px auto 40px; }

/* --------------------------------------------------------------------------
   Moviment reduït
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal], .js .split .line-mask > span { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .marquee__track { animation: none; }
}

.display--md { font-size: clamp(46px, 7.4vw, 128px); }

/* --------------------------------------------------------------------------
   Pàgina de l'agència
   -------------------------------------------------------------------------- */

/* Capçalera de l'agència: titular a tota la pantalla */
.ag-hero {
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(32px, 6vh, 72px));
  padding-bottom: clamp(40px, 6vh, 72px);
  display: flex; align-items: stretch;
}
.ag-hero > .wrap { display: flex; flex-direction: column; }
.ag-hero__title {
  margin-top: clamp(16px, 3vh, 40px);
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(76px, min(14vw, 22svh), 260px);
  line-height: .84; letter-spacing: -0.055em;
}
.ag-hero__title .neon { font-style: italic; font-variation-settings: "wdth" 125; }
.ag-hero__foot {
  margin-top: auto; padding-top: clamp(20px, 3vh, 36px);
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start;
  border-top: 1px solid var(--line);
}
.ag-hero__foot .eyebrow { padding-top: 24px; }
.ag-hero__foot .lead { padding-top: 18px; max-width: 40ch; justify-self: end; }
@media (max-width: 800px) {
  .ag-hero { min-height: 0; }
  .ag-hero__foot { grid-template-columns: 1fr; margin-top: 48px; }
  .ag-hero__foot .lead { justify-self: start; padding-top: 0; }
}

/* Valors */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.value {
  padding: clamp(24px, 2.6vw, 40px);
  border-top: 2px solid var(--neon);
  background: rgba(255,255,255,.02);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: background-color .4s, transform .6s var(--ease);
}
.value:hover { background: rgba(57,255,20,.06); transform: translateY(-4px); }
.value__n { font-family: var(--mono); font-size: 12px; color: var(--neon); }
.value h3 { font-size: clamp(28px, 3vw, 44px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 48px 0 16px; }
.value p { color: var(--muted); }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* Fites: línia del temps que s'omple amb l'scroll */
.tl-wrap { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 112px); }
.tl-head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.tl-head .h2 { margin-top: 24px; }
.tl-intro { color: var(--muted-dark); margin-top: 20px; max-width: 34ch; }
.tl { position: relative; padding-left: 40px; }
.tl::before, .tl::after {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line-dark);
}
.tl::after { background: var(--black); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.tl__item { position: relative; padding: 0 0 clamp(36px, 4vw, 56px); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: -40px; top: 6px; z-index: 1;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--black);
  transition: background-color .4s, transform .5s var(--ease);
}
.tl__item.is-in::before { background: var(--neon); transform: scale(1.15); }
.tl__year { display: block; font-size: clamp(36px, 4vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variation-settings: "wdth" 108; }
.tl__item p { margin-top: 10px; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.4; max-width: 46ch; }
.tl__item a { display: inline-block; margin-left: 4px; font-weight: 600; white-space: nowrap; }
@media (max-width: 900px) {
  .tl-wrap { grid-template-columns: 1fr; }
  .tl-head { position: static; }
}

/* IA */
.ag-ai { padding-block: clamp(80px, 10vw, 160px); background: var(--ink); border-block: 1px solid var(--line); }
.ag-ai__in { display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.ag-ai__icon { width: clamp(200px, 22vw, 320px); margin: 0; }
.ag-ai .h2 { margin: 20px 0 24px; max-width: 14ch; }
.ag-ai .lead { max-width: 46ch; color: var(--muted); }
@media (max-width: 800px) { .ag-ai__in { grid-template-columns: 1fr; } .ag-ai__icon { width: 180px; } }

/* Testimonis */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 24px); }
.quote {
  margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .4s;
}
.quote:hover { border-color: rgba(57,255,20,.5); }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.4; letter-spacing: -0.015em; }
.quote figcaption { display: grid; gap: 4px; }
.quote figcaption strong { font-size: 18px; }
.quote figcaption span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.quote figcaption a { justify-self: start; margin-top: 12px; color: var(--neon); font-weight: 600; font-size: 15px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Model */
.ag-model { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.ag-model .h2 { margin-top: 20px; }
@media (max-width: 900px) { .ag-model { grid-template-columns: 1fr; } }

/* Agència: xarxa de col·laboradors com a titular gran */
.collab-title {
  margin-top: 28px;
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(56px, 11vw, 200px);
  line-height: .88; letter-spacing: -0.055em;
}
.collab-sec__foot {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(24px, 4vw, 64px); align-items: start;
  margin-top: clamp(40px, 5vw, 72px); padding-top: clamp(24px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.collab-sec__foot .lead { color: var(--muted); max-width: 38ch; }
.collab-sec__foot .collab__tags { grid-column: auto; display: flex; flex-wrap: wrap; gap: 8px; align-content: start; }
.collab-sec__foot .tag { opacity: 1; border-color: var(--line); font-size: 14px; padding: 8px 14px; transition: background-color .3s, color .3s, border-color .3s; }
.collab-sec__foot .tag:hover { background: var(--neon); color: var(--black); border-color: var(--neon); }
@media (max-width: 800px) {
  .collab-sec__foot { grid-template-columns: 1fr; }
  .collab-title { font-size: 9.2vw; letter-spacing: -0.045em; }
}

/* Pàgina de projectes sense capçalera: els filtres comencen sota el menú */
.pj-main { padding-top: var(--header-h); }
.pj-main .toolbar { margin-top: clamp(16px, 3vh, 32px); }

/* Galeria de retrats verticals: tots en una fila */
.gal--row { grid-template-columns: repeat(4, 1fr); align-items: start; }
@media (max-width: 900px) { .gal--row { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Pàgina de contacte
   -------------------------------------------------------------------------- */
.ct-hero { padding-top: calc(var(--header-h) + clamp(48px, 9vh, 112px)); padding-bottom: clamp(32px, 5vw, 64px); }
.ct-title {
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(56px, 10.5vw, 190px); line-height: .88; letter-spacing: -0.055em;
}
.ct-title .neon { font-style: italic; font-variation-settings: "wdth" 125; }
.ct-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 112px);
  padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line);
}
.ct-info .lead { color: var(--muted); max-width: 36ch; }
.ct-cards { margin-top: clamp(32px, 4vw, 56px); display: grid; }
.ct-cards li { display: grid; grid-template-columns: 120px 1fr; gap: 6px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ct-cards li:first-child { border-top: 1px solid var(--line); }
.ct-cards__k { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ct-cards__v { font-size: clamp(18px, 1.6vw, 24px); font-weight: 600; letter-spacing: -0.02em; font-style: normal; transition: color .3s; }
a.ct-cards__v:hover { color: var(--neon); }
.ct-cards__link { grid-column: 2; justify-self: start; font-size: 14px; color: var(--neon); font-weight: 600; }
.ct-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.ct-steps li { padding: clamp(24px, 2.6vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); }
.ct-steps span { font-family: var(--mono); font-size: 12px; color: var(--neon); }
.ct-steps h3 { font-size: clamp(24px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.04em; margin: 40px 0 10px; }
.ct-steps p { color: var(--muted); }
.ct-more { margin-top: 40px; }
@media (max-width: 900px) {
  .ct-grid, .ct-steps { grid-template-columns: 1fr; }
  .ct-cards li { grid-template-columns: 1fr; }
  .ct-cards__link { grid-column: auto; }
}
.footer-addr { color: var(--muted); }

/* Text legal */
.legal-hero { padding-bottom: clamp(24px, 3vw, 40px); }
.legal { max-width: 820px; padding-bottom: clamp(80px, 10vw, 140px); }
.legal h2 { font-size: clamp(22px, 2vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal p + ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }
.legal strong { color: var(--white); }
.legal a { color: var(--white); text-decoration: underline; }

/* --------------------------------------------------------------------------
   Avís de cookies
   -------------------------------------------------------------------------- */
.cookies {
  position: fixed; z-index: 880;
  left: var(--gutter); bottom: var(--gutter);
  width: min(560px, calc(100vw - 2 * var(--gutter)));
  display: grid; gap: 18px;
  padding: clamp(20px, 2vw, 28px);
  background: var(--graphite); color: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.cookies.is-on { opacity: 1; transform: none; }
.cookies__title { font-weight: 700; font-size: 18px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.cookies__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.cookies__txt { color: var(--muted); font-size: 14px; margin-top: 6px; }
.cookies__txt a { color: var(--white); text-decoration: underline; }
.cookies__opts { display: grid; gap: 10px; margin-top: 16px; }
.cookies__opts[hidden] { display: none; }
.cookies__opt { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); cursor: pointer; }
.cookies__opt b { color: var(--white); margin-right: 4px; }
.cookies__opt input { accent-color: var(--neon); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.cookies__btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookies__btn {
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--neon); color: var(--black); font-weight: 700; font-size: 14px;
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.cookies__btn:hover { transform: translateY(-2px); }
.cookies__btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px var(--line); }
.cookies__btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--white); }
.cookies-link { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .cookies__btns { justify-content: stretch; } .cookies__btn { flex: 1; } }

.nav .btn[aria-current="page"] { color: var(--black); }
.nav .btn[aria-current="page"]::after { display: none; }

.legal { max-width: none; }
.legal > * { max-width: 820px; }

/* Peu simplificat: contacte · Instagram · idiomes + logotip */
.footer-top {
  display: grid; grid-template-columns: 1fr auto auto; gap: 24px clamp(32px, 5vw, 80px); align-items: start;
  padding-bottom: clamp(40px, 5vw, 72px);
}
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: clamp(16px, 1.3vw, 19px); font-weight: 600; }
.footer-contact .footer-addr { font-weight: 400; }
.footer-ig { font-weight: 600; font-size: clamp(16px, 1.3vw, 19px); }
.footer-lang { display: flex; gap: 4px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.footer-lang span, .footer-lang a { display: block; padding: 7px 10px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
.footer-lang [aria-current="true"] { color: var(--black); background: var(--neon); border-color: var(--neon); }
.footer-lang a { transition: color .3s, border-color .3s; }
.footer-lang a:hover { color: var(--white); border-color: var(--neon); }
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-contact { flex-direction: column; }
}

/* Botó secundari sobre fons verd: pastilla blanca */
.section--neon .btn--ghost { --bg: var(--white); --fg: var(--black); box-shadow: none; }
.section--neon .btn--ghost::before { background: var(--black); }
.section--neon .btn--ghost:hover { --fg: var(--white); }

/* --------------------------------------------------------------------------
   Testimonis: carrusel a tot l'ample
   -------------------------------------------------------------------------- */
.tst { padding-block: clamp(96px, 12vw, 180px); border-block: 1px solid var(--line); overflow: hidden; }
.tst__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.tst__head .eyebrow { margin-bottom: 24px; }
.tst__ctrl { display: flex; align-items: center; gap: 10px; }
.tst__count { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-right: 8px; }
.tst__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; cursor: grab; outline: none;
}
.tst__track::-webkit-scrollbar { display: none; }
.tst__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tst__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; user-select: none; }
.tst__in { position: relative; }
.tst__mark { position: absolute; left: var(--gutter); top: -0.42em; font-size: clamp(120px, 16vw, 260px); line-height: 1; font-weight: 800; color: var(--neon); opacity: .9; pointer-events: none; }
.tst__slide blockquote { margin: 0; padding-top: clamp(56px, 7vw, 120px); max-width: 1180px; }
.tst__slide blockquote p { font-size: clamp(24px, 3.3vw, 54px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.tst__slide figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.tst__slide figcaption strong { font-size: 20px; }
.tst__slide figcaption span { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tst__slide figcaption a { margin-left: auto; color: var(--neon); font-weight: 600; }
.tst__dots { display: flex; gap: 8px; margin-top: clamp(32px, 4vw, 48px); }
.tst__dots i { width: 28px; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .4s, width .5s var(--ease); }
.tst__dots i.is-on { width: 56px; background: var(--neon); }
@media (max-width: 700px) {
  .tst__slide figcaption a { margin-left: 0; flex-basis: 100%; }
  .tst__ctrl .icon-btn { width: 44px; height: 44px; }
}

/* Botó rodó amb icona (carrusel, visor d'imatges) */
.icon-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center; flex: none;
  font-size: 18px;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--neon); color: var(--black); border-color: var(--neon); }
.icon-btn:active { transform: scale(.94); }

.work__head { margin-bottom: clamp(24px, 3vw, 40px); }
.work__head .eyebrow { font-weight: 400; }

/* Testimonis: il·lustració de dues mans que es xoquen */
.tst__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; }
.tst__art { justify-self: center; width: clamp(150px, 16vw, 240px); margin-bottom: -10px; }
.hf { width: 100%; height: auto; overflow: visible; }
.hf rect, .hf .hf-f { stroke-linecap: round; stroke-linejoin: round; }
.hf-white rect:not(.hf-cuff) { fill: var(--white); }
.hf-white .hf-f { stroke: var(--white); stroke-width: 8; fill: none; }
.hf-neon rect:not(.hf-cuff) { fill: var(--neon); }
.hf-neon .hf-f { stroke: var(--neon); stroke-width: 8; fill: none; }
.hf .hf-cuff { fill: none; stroke-width: 2.5; }
.hf-white .hf-cuff { stroke: var(--white); }
.hf-neon .hf-cuff { stroke: var(--neon); }
.hf-burst path, .hf-spark path { stroke: var(--neon); stroke-width: 3; stroke-linecap: round; fill: none; }
.hf-spark path { stroke: var(--white); stroke-width: 2.5; }
.hf-l { transform-box: view-box; transform-origin: 72px 128px; animation: hf-left 2.6s cubic-bezier(.65,0,.35,1) infinite; }
.hf-r { transform-box: view-box; transform-origin: 128px 128px; animation: hf-right 2.6s cubic-bezier(.65,0,.35,1) infinite; }
.hf-burst { transform-box: view-box; transform-origin: 100px 52px; animation: hf-burst 2.6s ease-out infinite; }
.hf-spark path { transform-box: fill-box; transform-origin: center; animation: hf-spark 2.6s ease-in-out infinite; }
.hf-spark path + path { animation-delay: -.6s; }
@keyframes hf-left  { 0%, 100% { transform: rotate(-22deg); } 42%, 52% { transform: rotate(-8deg); } 46% { transform: rotate(-6.5deg); } }
@keyframes hf-right { 0%, 100% { transform: rotate(22deg); } 42%, 52% { transform: rotate(8deg); } 46% { transform: rotate(6.5deg); } }
@keyframes hf-burst { 0%, 40% { opacity: 0; transform: scale(.4); } 47% { opacity: 1; transform: scale(1.08); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
@keyframes hf-spark { 0%, 40% { opacity: .2; transform: scale(.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(45deg); } 100% { opacity: .2; transform: scale(.6) rotate(90deg); } }
@media (max-width: 800px) {
  .tst__head { grid-template-columns: 1fr auto; }
  .tst__art { grid-column: 2; grid-row: 1; width: 120px; margin: 0; }
  .tst__ctrl { grid-column: 1 / -1; }
}

/* Icones de serveis: animació contínua; es pausa fora de pantalla per estalviar recursos */
.svc-icon.is-paused * { animation-play-state: paused !important; }
.tst__art.is-paused * { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   Home (prova): carrusel vertical de projectes a tot l'ample
   La secció fa N pantalles d'alt; la vista queda fixa i cada projecte puja
   i tapa l'anterior (--t va de 0 a 1 per a cada diapositiva).
   -------------------------------------------------------------------------- */
.vs { position: relative; height: calc(var(--n) * 100svh); }
.vs__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--black); }
.vs__slide {
  --t: 0;
  position: absolute; inset: 0;
  clip-path: inset(calc((1 - var(--t)) * 100%) 0 0 0);
  will-change: clip-path;
}
.vs__slide:first-of-type { --t: 1; }
.vs__slide img, .vs__slide .vs__media {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1.18 - .18 * var(--t)));
  will-change: transform;
}
.vs__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.78) 0%, rgba(10,10,10,.45) 38%, rgba(10,10,10,0) 70%),
    linear-gradient(180deg, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,.2) 55%, rgba(10,10,10,.85) 100%);
}
.vs__txt {
  position: absolute; left: 0; right: 0; bottom: clamp(40px, 8vh, 96px);
  display: grid; gap: 18px; justify-items: start;
  opacity: var(--t); transform: translateY(calc((1 - var(--t)) * 40px));
}
.vs__txt .eyebrow { color: var(--white); }
.vs__title {
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(48px, 9vw, 168px); line-height: .9; letter-spacing: -0.055em;
  color: var(--white); max-width: 12ch;
}
.vs__txt .btn { margin-top: 8px; }

/* Indicador vertical 01–04 */
.vs__nav {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; gap: 14px; align-items: stretch;
}
.vs__nav ol { display: grid; gap: clamp(2px, .6vw, 10px); justify-items: end; }
.vs__nav button {
  font-family: var(--font); font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(30px, 4.2vw, 72px); line-height: .9; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.2px rgba(245,245,240,.75);
  padding: 2px 0; transform-origin: 100% 50%; transform: scale(.82);
  transition: color .4s var(--ease), -webkit-text-stroke-color .4s, transform .5s var(--ease);
}
.vs__nav button:hover { -webkit-text-stroke-color: var(--white); }
.vs__nav button[aria-current="true"] { color: var(--neon); -webkit-text-stroke-color: var(--neon); transform: scale(1); }
.vs__bar { width: 3px; background: rgba(245,245,240,.25); position: relative; border-radius: 2px; }
.vs__bar i { position: absolute; left: 0; right: 0; top: 0; height: 100%; background: var(--neon); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); border-radius: 2px; }
@media (max-width: 700px) {
  .vs__nav { top: auto; bottom: clamp(40px, 8vh, 96px); transform: none; gap: 10px; }
  .vs__nav button { font-size: 26px; -webkit-text-stroke-width: 1px; }
  .vs__title { max-width: min(9ch, calc(100vw - 100px)); }
}

/* Moviment reduït: diapositives una sota l'altra, sense efecte fix */
@media (prefers-reduced-motion: reduce) {
  .vs { height: auto; }
  .vs__sticky { position: static; height: auto; }
  .vs__slide { position: relative; height: 100svh; clip-path: none; --t: 1; }
  .vs__nav { display: none; }
}

/* Home: botó després del carrusel vertical */
.vs-more { padding-block: clamp(48px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.vs-more .wrap { display: flex; justify-content: center; }
