/* ==========================================================================
   Tallers Gràfics Soler — tgsoler.com
   Full d'estils únic. Sense dependències externes.
   ========================================================================== */

/* ---------- Tipografies autoallotjades (OFL) ---------- */
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-var.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "CormorantVariable";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "CormorantVariable";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-var-italic.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --grey-50: #f5f5f7;
  --grey-100: #e8e8ed;
  --grey-200: #d2d2d7;
  --grey-500: #86868b;
  --grey-600: #6e6e73;
  --grey-700: #424245;
  --ink: #1d1d1f;
  --brand: #004554;
  --brand-hover: #005a6d;
  --black: #000000;

  /* Tinta de procés (ús molt contingut) */
  --cyan: #00a0e3;
  --magenta: #e4007c;
  --yellow: #ffe600;
  --key: #1d1d1f;

  --focus: #0071e3;
  --error: #d70015;
  --success: #1d7d3a;

  /* Context (es redefineix a les seccions fosques) */
  --fg: var(--ink);
  --muted: var(--grey-600);
  --muted-2: var(--grey-500);
  --line: rgba(0, 0, 0, 0.12);
  --surface: var(--white);
  --surface-2: var(--grey-50);

  --font-sans: "InterVariable", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "CormorantVariable", "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.9s;

  --nav-h: 52px;
  --gutter: clamp(20px, 5vw, 64px);
  --wrap: 1280px;
  --wrap-text: 980px;
  --radius-lg: clamp(20px, 2.2vw, 30px);
  --radius-md: 18px;

  --fs-body: clamp(1.0625rem, 0.3vw + 0.98rem, 1.1875rem);
  --fs-hero: clamp(3rem, 8.2vw, 8.75rem);
  --fs-h2: clamp(2.5rem, 6.2vw, 5.75rem);
  --fs-h3: clamp(1.875rem, 3.6vw, 3.25rem);
  --fs-lead: clamp(1.25rem, 1.1vw + 0.95rem, 1.75rem);

  --section-pad: clamp(96px, 13vw, 200px);
}

/* ---------- Reset mínim ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
strong { font-weight: 600; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--white); }

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

.sr-only {
  position: absolute !important;
  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;
  left: 16px; top: 12px;
  z-index: 1000;
  padding: 12px 20px;
  border-radius: 980px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.wrap--text { width: min(var(--wrap-text), 100% - 2 * var(--gutter)); }
.section { padding-block: var(--section-pad); position: relative; }
.section--grey { background: var(--grey-50); --surface: var(--white); }
.section--dark,
.is-dark {
  background: var(--black);
  color: var(--grey-50);
  --fg: var(--grey-50);
  --muted: #a1a1a6;
  --muted-2: #86868b;
  --line: rgba(255, 255, 255, 0.16);
  --surface: #161617;
  --surface-2: #1d1d1f;
}
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.25rem;
  font-size: clamp(0.75rem, 0.15vw + 0.72rem, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.lead {
  margin-top: clamp(20px, 2vw, 28px);
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--muted);
  max-width: 40ch;
  text-wrap: pretty;
}
.center .lead { margin-inline: auto; }
.body-lg {
  font-size: clamp(1.125rem, 0.4vw + 1rem, 1.3125rem);
  line-height: 1.48;
  color: var(--muted);
  text-wrap: pretty;
}
.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.nowrap { white-space: nowrap; }
.section-head { margin-bottom: clamp(56px, 7vw, 104px); }
.section-head .lead { max-width: 36ch; }

/* ---------- Botons i enllaços ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 1.6em;
  border: 0;
  border-radius: 980px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: var(--brand-hover); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--grey-100); }
.btn--ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
.btn svg { width: 16px; height: 16px; flex: none; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.link-more svg { width: 14px; height: 14px; transition: transform 0.4s var(--ease); }
.link-more:hover { text-decoration: underline; }
.link-more:hover svg { transform: translateX(3px); }

/* ---------- Icones ---------- */
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tira CMYK (identitat, ús contingut) ---------- */
.cmyk { display: inline-flex; gap: 2px; flex: none; }
.cmyk i { display: block; width: 7px; height: 7px; border-radius: 1px; }
.cmyk i:nth-child(1) { background: var(--cyan); }
.cmyk i:nth-child(2) { background: var(--magenta); }
.cmyk i:nth-child(3) { background: var(--yellow); }
.cmyk i:nth-child(4) { background: var(--key); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }

/* ==========================================================================
   Imatges: contenidors amb proporció fixa i fons de reserva
   ========================================================================== */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 16 / 9);
  background-color: #111113;
  background-image:
    radial-gradient(120% 90% at 18% 12%, rgba(88, 88, 96, 0.55) 0%, rgba(88, 88, 96, 0) 55%),
    radial-gradient(90% 80% at 88% 92%, rgba(56, 56, 62, 0.6) 0%, rgba(56, 56, 62, 0) 60%),
    linear-gradient(155deg, #26262a 0%, #151517 48%, #0a0a0b 100%);
  isolation: isolate;
}
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
}
.js .media img { opacity: 0; transition: opacity 1.2s var(--ease); }
.js .media.is-loaded img { opacity: 1; }
.media.is-empty img { display: none; }
.media--rounded { border-radius: var(--radius-lg); }

/* Enquadrament de cada fotografia (punt focal dins del retall) */
[data-slot="hero"] img { object-position: 55% 50%; }
[data-slot="empresa"] img { object-position: 55% 45%; }
[data-slot="instal-lacions"] img { object-position: 42% 50%; }
[data-slot="offset"] img { object-position: 50% 0%; }
[data-slot="equip"] img { object-position: 82% 35%; }
[data-slot="digital"] img { object-position: 62% 50%; }
[data-slot="acabats"] img { object-position: 38% 50%; }
[data-slot="plegat"] img { object-position: 58% 50%; }
[data-slot="preimpressio"] img { object-position: 50% 62%; }
[data-slot="sostenibilitat"] img { object-position: 45% 50%; }
.media[data-parallax] img { top: -9%; height: 118%; will-change: transform; }

/* ==========================================================================
   Navegació
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  color: var(--white);
  transition: color 0.5s var(--ease);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(250, 250, 252, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  opacity: 0;
  transition: opacity 0.5s var(--ease), background-color 0.5s var(--ease);
}
.nav[data-surface="light"] { color: var(--ink); }
.nav[data-surface="light"]::before { opacity: 1; }
.nav[data-surface="dark"]::before,
.nav[data-surface="hero"].is-scrolled::before {
  opacity: 1;
  background: rgba(22, 22, 23, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.nav.menu-open { color: var(--ink); }
.nav.menu-open::before { opacity: 0; }

.nav__bar {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
  margin-right: auto;
  text-decoration: none;
  border-radius: 6px;
}
.wordmark { display: block; height: 40px; width: 40px; flex: none; }
/* Logo oficial penjat del marge superior, com una etiqueta; s'encongeix a l'alçada de la barra en fer scroll */
.nav__brand { position: relative; align-self: flex-start; width: 80px; height: var(--nav-h); border-radius: 0; }
.nav__brand .wordmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: width 0.5s var(--ease), height 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.nav.is-scrolled .nav__brand .wordmark,
.nav.menu-open .nav__brand .wordmark { width: var(--nav-h); height: var(--nav-h); box-shadow: none; }
@media (max-width: 1023px) {
  .nav__brand { width: 64px; }
  .nav__brand .wordmark { width: 64px; height: 64px; }
}
.nav__links ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__links a {
  display: block;
  padding: 8px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] { opacity: 1; }
.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 16px;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  background: var(--white);
  color: var(--ink);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.nav__cta:hover { background: var(--grey-100); }
.nav[data-surface="light"] .nav__cta { background: var(--brand); color: var(--white); }
.nav[data-surface="light"] .nav__cta:hover { background: var(--brand-hover); }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 8px;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 18px; }
.nav__toggle span:nth-child(2) { top: 25px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .nav__cta { display: inline-flex; }
}

/* ---------- Selector d'idioma (nav, menú mòbil, peu) ---------- */
.lang ul { display: flex; align-items: center; }
.lang li { display: flex; align-items: center; }
.lang li + li::before {
  content: "";
  flex: none;
  width: 2px;
  height: 2px;
  margin: 0 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
}
.lang a {
  display: block;
  padding: 8px 1px;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-decoration: none;
  opacity: 0.56;
  transition: opacity 0.3s var(--ease);
}
.lang a:hover { opacity: 1; }
.lang a[aria-current] { opacity: 1; font-weight: 600; }
.nav__lang { display: flex; align-items: center; }
.nav__lang::before {
  content: "";
  width: 1px;
  height: 14px;
  margin-right: 20px;
  background: currentColor;
  opacity: 0.22;
}
@media (max-width: 1023px) { .nav__lang:not(.nav__lang--always) { display: none; } }
.nav__lang--always::before { display: none; }
.nav__lang--always a { padding: 12px 3px; font-size: 0.75rem; }
/* Amplades intermèdies: la barra es compacta perquè hi càpiguen els textos més llargs (FR, ES).
   Fins a 1199 px s'amaga l'enllaç «Contacte» de la barra: hi porta el mateix botó de pressupost. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__bar { gap: 18px; }
  .nav__links ul { gap: clamp(14px, 1.45vw, 22px); }
  .nav__lang::before { margin-right: 16px; }
  .nav__cta { padding: 0 14px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav__links li:last-child { display: none; }
}

/* Menú mòbil a pantalla completa */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + clamp(24px, 6vh, 56px)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  color: var(--ink);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0s;
}
.menu__list a {
  display: block;
  padding: 10px 0;
  font-size: clamp(1.875rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.menu.is-open .menu__list a {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.06s + var(--i, 0) * 0.045s);
}
.menu__foot {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.6s var(--ease) 0.3s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot .btn { justify-self: start; }
.menu__contact { color: var(--grey-600); font-size: 1rem; line-height: 1.7; }
.menu__contact a { text-decoration: none; color: var(--ink); }
.lang--menu { padding-top: 20px; border-top: 1px solid var(--grey-200); }
.lang--menu li + li::before { width: 3px; height: 3px; margin: 0 12px; }
.lang--menu a { padding: 12px 2px; font-size: 0.9375rem; opacity: 0.5; }
.lang--menu a[aria-current] { opacity: 1; }
@media (min-width: 1024px) { .menu { display: none; } }
html.menu-locked, html.menu-locked body { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  max-height: 1400px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: #0a0a0b;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  height: 100%;
}
.hero__media img { will-change: transform; transform-origin: 50% 40%; }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.5) 38%, rgba(0, 0, 0, 0) 74%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 62%),
    rgba(0, 0, 0, 0.2);
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(64px, 11vh, 128px);
  will-change: transform, opacity;
}
.hero__eyebrow { color: rgba(255, 255, 255, 0.78); }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 11.5ch;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line > span { display: block; }
.hero__line--serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.12em;
  letter-spacing: -0.02em;
  line-height: 0.95;
  padding-bottom: 0.12em;
  color: rgba(255, 255, 255, 0.92);
}
.hero__sub {
  margin-top: clamp(24px, 3vh, 36px);
  max-width: 36ch;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: rgba(255, 255, 255, 0.8);
  text-wrap: pretty;
}
.hero__ctas {
  margin-top: clamp(28px, 4.5vh, 48px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.hero__meta {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: clamp(64px, 11vh, 128px);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero__meta::after {
  content: "";
  width: 1px;
  height: 56px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}
/* Marques de tall a les cantonades */
.hero__marks { position: absolute; inset: calc(var(--nav-h) + 20px) calc(var(--gutter) - 12px) 24px; z-index: 2; pointer-events: none; }
.hero__marks span { position: absolute; width: 22px; height: 22px; }
.hero__marks span::before,
.hero__marks span::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.42); }
.hero__marks span::before { width: 22px; height: 1px; }
.hero__marks span::after { width: 1px; height: 22px; }
.hero__marks span:nth-child(1) { top: 0; left: 0; }
.hero__marks span:nth-child(1)::before { top: 10px; left: -14px; }
.hero__marks span:nth-child(1)::after { left: 10px; top: -14px; }
.hero__marks span:nth-child(2) { top: 0; right: 0; }
.hero__marks span:nth-child(2)::before { top: 10px; right: -14px; }
.hero__marks span:nth-child(2)::after { right: 10px; top: -14px; }
.hero__marks span:nth-child(3) { bottom: 0; left: 0; }
.hero__marks span:nth-child(3)::before { bottom: 10px; left: -14px; }
.hero__marks span:nth-child(3)::after { left: 10px; bottom: -14px; }
.hero__marks span:nth-child(4) { bottom: 0; right: 0; }
.hero__marks span:nth-child(4)::before { bottom: 10px; right: -14px; }
.hero__marks span:nth-child(4)::after { right: 10px; bottom: -14px; }
@media (max-width: 767px) {
  .hero__marks, .hero__meta { display: none; }
}

/* Entrada del hero (CSS pur) */
@keyframes rise { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__line > span { animation: rise 1.3s var(--ease) both; }
.hero__line:nth-child(2) > span { animation-delay: 0.12s; }
.hero__eyebrow { animation: fadeUp 1s var(--ease) 0.05s both; }
.hero__sub { animation: fadeUp 1.1s var(--ease) 0.4s both; }
.hero__ctas { animation: fadeUp 1.1s var(--ease) 0.55s both; }
.hero__marks, .hero__meta { animation: fadeIn 1.6s var(--ease) 0.8s both; }
.hero__media { animation: settle 2.4s var(--ease) both; }

/* ==========================================================================
   Xifres
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px) clamp(20px, 4vw, 56px);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat { padding-top: clamp(20px, 2vw, 28px); border-top: 1px solid var(--line); }
.stat__num {
  display: flex;
  align-items: baseline;
  font-size: clamp(2rem, 8.6vw, 6.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (min-width: 900px) { .stat__num { font-size: clamp(3.5rem, 6.2vw, 6.25rem); } }
.stat__unit { margin-left: 0.14em; font-size: 0.42em; font-weight: 600; letter-spacing: -0.02em; }
.stat__label { margin-top: 14px; max-width: 24ch; font-size: clamp(0.9375rem, 0.3vw + 0.85rem, 1.0625rem); line-height: 1.42; color: var(--muted); }

/* ==========================================================================
   Empresa
   ========================================================================== */
.statement {
  margin-top: clamp(32px, 4vw, 56px);
  font-size: clamp(1.625rem, 3vw, 2.875rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--muted-2);
  text-wrap: pretty;
}
.statement strong { color: var(--fg); font-weight: 600; }
.media--panorama { --ratio: 21 / 9; margin-top: clamp(72px, 9vw, 140px); }
@media (max-width: 733px) { .media--panorama { --ratio: 4 / 5; } }

.story {
  display: grid;
  gap: 40px;
  padding-block: clamp(72px, 9vw, 140px);
}
@media (min-width: 960px) { .story { grid-template-columns: 5fr 6fr; gap: clamp(48px, 7vw, 120px); align-items: start; } }
.story__quote {
  font-size: clamp(2.25rem, 4.4vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.story__text { display: grid; gap: 1.1em; }

.pillars-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 18ch; }
.pillars { display: grid; gap: 48px; counter-reset: pillar; }
@media (min-width: 834px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 56px); } }
.pillar { padding-top: 28px; border-top: 1px solid var(--fg); }
.pillar__num { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.pillar__name { margin-top: 28px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.pillar__title { margin: 10px 0 14px; font-size: clamp(1.5rem, 2.1vw, 2rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.028em; }
.pillar p { color: var(--muted); }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: clamp(56px, 7vw, 120px); } }
.split--installs { margin-top: clamp(96px, 12vw, 180px); }
.media--portrait { --ratio: 4 / 5; }
.split__text .h3 { margin-bottom: 24px; }
.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts li { padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--muted); line-height: 1.45; }
.facts strong { display: block; margin-bottom: 4px; color: var(--fg); font-weight: 600; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.areas li { padding: 7px 14px; border-radius: 980px; background: var(--grey-50); font-size: 0.875rem; font-weight: 500; color: var(--grey-700); }

/* ==========================================================================
   Productes
   ========================================================================== */
.products {
  display: grid;
  gap: clamp(16px, 1.8vw, 24px);
}
@media (min-width: 734px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: var(--white);
  overflow: hidden;
  transform: translateZ(0);
}
.product .media { --ratio: 4 / 3; }
.product .media img { transition: opacity 1.2s var(--ease), transform 1.4s var(--ease); }
.product:hover .media img { transform: scale(1.035); }
.product__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 3.2vw, 48px);
}
.product__kicker { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.product__title { font-size: clamp(1.625rem, 2.5vw, 2.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.product__text { color: var(--muted); max-width: 44ch; text-wrap: pretty; }
.product__specs {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--grey-600);
}
.product__specs li:not(:last-child)::after { content: "·"; margin: 0 0.55em; color: var(--grey-500); }
.product--feature { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .product--feature { display: grid; grid-template-columns: 5fr 7fr; }
  .product--feature .media { order: 2; aspect-ratio: auto; min-height: clamp(460px, 42vw, 620px); }
  .product--feature .product__body { justify-content: center; padding: clamp(48px, 5vw, 80px); }
  .product--feature .product__title { font-size: clamp(2.25rem, 3.6vw, 3.5rem); }
}

/* Lux Printing Solutions */
.lux {
  position: relative;
  margin-top: clamp(16px, 1.8vw, 24px);
  display: grid;
  gap: clamp(48px, 6vw, 80px);
  padding: clamp(36px, 6.5vw, 104px);
  border-radius: var(--radius-lg);
  background: var(--black);
  color: var(--grey-50);
  overflow: hidden;
  --fg: var(--grey-50);
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.16);
}
.lux::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
@media (min-width: 1024px) { .lux { grid-template-columns: 6fr 5fr; align-items: center; } }
.lux__text { position: relative; }
.lux__title { display: block; }
.lux__word {
  display: block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(5.5rem, 14vw, 12.5rem);
  line-height: 0.8;
  letter-spacing: -0.035em;
  margin-left: -0.04em;
}
.lux__sub {
  display: block;
  margin-top: clamp(20px, 2.4vw, 32px);
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.lux__lead { margin-top: 24px; max-width: 42ch; color: var(--muted); font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem); line-height: 1.5; }
.lux__points { margin: 32px 0 40px; border-top: 1px solid var(--line); max-width: 460px; }
.lux__points li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.lux__points svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.lux__visual { position: relative; padding-bottom: 14%; }
.lux__visual .media--lux { --ratio: 4 / 5; width: 82%; margin-left: auto; border-radius: calc(var(--radius-lg) - 8px); }
.lux__visual .media--acabats {
  --ratio: 1 / 1;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  border-radius: 16px;
  box-shadow: 0 0 0 6px var(--black), 0 40px 80px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   Tecnologia (secció fosca)
   ========================================================================== */
.tech-intro .lead { max-width: 34ch; }
.subnav {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.subnav a {
  padding: 9px 18px;
  border-radius: 980px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.subnav a:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

.tech { padding-top: clamp(112px, 14vw, 220px); }
.tech__head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.tech__head .h3 { margin-bottom: 20px; }
.tech__head .body-lg { max-width: 46ch; }
.media--tech { --ratio: 16 / 9; }
@media (max-width: 733px) { .media--tech { --ratio: 4 / 3; } }

.spec-groups {
  display: grid;
  gap: 48px clamp(32px, 4vw, 64px);
  margin-top: clamp(48px, 6vw, 88px);
}
@media (min-width: 834px) { .spec-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-groups--2 { margin-top: 0; }
@media (min-width: 834px) { .spec-groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.spec-group h4 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.spec-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec-list__name { display: block; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.012em; line-height: 1.35; }
.spec-list__detail { display: block; margin-top: 4px; font-size: 0.9375rem; line-height: 1.45; color: var(--muted); }

/* KBA Rapida 164 */
.kba { position: relative; margin-top: clamp(112px, 14vw, 220px); }
.kba .media { --ratio: 21 / 9; }
@media (max-width: 833px) { .kba .media { --ratio: 4 / 5; } }
.kba .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0) 62%);
}
.kba__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding-bottom: clamp(32px, 4vw, 64px);
}
.kba__title {
  font-size: clamp(3.25rem, 11vw, 11rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.055em;
}
.kba__sub { margin-top: clamp(16px, 2vw, 28px); max-width: 38ch; font-size: var(--fs-lead); font-weight: 500; line-height: 1.35; letter-spacing: -0.018em; color: rgba(255, 255, 255, 0.82); }

.bigspecs {
  display: grid;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 104px);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 834px) { .bigspecs { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px); } }
.bigspec__num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.18em;
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 45%, #9a9aa0 125%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bigspec__unit { font-size: 0.36em; font-weight: 600; letter-spacing: -0.02em; }
.bigspec__label { margin-top: 14px; color: var(--muted); max-width: 28ch; }

.presses-wrap { display: grid; gap: 32px; padding-top: clamp(56px, 7vw, 104px); }
@media (min-width: 960px) { .presses-wrap { grid-template-columns: 4fr 8fr; gap: clamp(48px, 6vw, 96px); } }
.presses-wrap .body-lg { margin-top: 16px; }
.presses { border-top: 1px solid var(--fg); }
.press {
  display: grid;
  gap: 12px 32px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 640px) and (max-width: 959px), (min-width: 1200px) { .press { grid-template-columns: minmax(0, 1fr) auto; } }
.press__name { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.press__specs { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 640px) and (max-width: 959px), (min-width: 1200px) { .press__specs { justify-content: flex-end; } }
.chip {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}
.chip--strong { background: var(--grey-50); color: var(--ink); box-shadow: none; }

/* Digital */
.split--tech { align-items: center; }
.media--square { --ratio: 1 / 1; }
.machines { display: grid; gap: 16px; margin-top: 40px; }
.machine { padding: 28px 32px; border-radius: var(--radius-md); background: var(--surface-2); }
.machine__name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.022em; }
.machine dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 16px; font-size: 0.9375rem; }
.machine dt { color: var(--muted); }
.machine dd { font-weight: 500; text-align: right; }

/* Enquadernació */
.bind-grid { display: grid; gap: clamp(40px, 6vw, 88px); margin-top: clamp(48px, 6vw, 88px); align-items: start; }
@media (min-width: 960px) { .bind-grid { grid-template-columns: 5fr 7fr; } }
.bind-grid .media { --ratio: 4 / 5; }
@media (min-width: 960px) { .bind-grid .media { position: sticky; top: calc(var(--nav-h) + 32px); } }

/* Control de qualitat */
.quality { display: grid; gap: 16px; }
@media (min-width: 640px) { .quality { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quality { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.quality-media { margin-bottom: 16px; }
.q-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.q-tile p:last-child { padding-top: 12px; }
@media (min-width: 1100px) { .q-tile { min-height: 220px; } }
.q-tile__big { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.q-tile p:last-child { margin-top: auto; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }

/* ==========================================================================
   Procés
   ========================================================================== */
.process { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .process { grid-template-columns: 5fr 7fr; gap: clamp(56px, 8vw, 140px); }
  .process__aside { position: sticky; top: calc(var(--nav-h) + 56px); align-self: start; }
}
.process__aside .h2 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
.process__aside .lead { max-width: 26ch; }
.process__meter { display: none; margin-top: clamp(48px, 7vh, 88px); }
@media (min-width: 1024px) { .process__meter { display: block; } }
.process__count {
  display: flex;
  align-items: baseline;
  gap: 0.15em;
  font-size: clamp(5rem, 9vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.process__total { font-size: 0.24em; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); }
.process__current-name { margin-top: 18px; font-size: 1.0625rem; font-weight: 600; min-height: 1.5em; }
.process__bar { position: relative; height: 2px; margin-top: 20px; background: var(--line); overflow: hidden; max-width: 360px; }
.process__bar span { position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0.125)); transition: transform 0.8s var(--ease); }

.steps { counter-reset: step; }
.step { padding: 40px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) {
  .step { min-height: 52vh; display: flex; flex-direction: column; justify-content: center; padding: 64px 0; }
  .js .steps--live .step { opacity: 0.26; transition: opacity 0.7s var(--ease); }
  .js .steps--live .step.is-active { opacity: 1; }
}
.step__num { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.step__title { margin: 14px 0 16px; font-size: clamp(1.875rem, 3.2vw, 3rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.038em; text-wrap: balance; }
.step__text { max-width: 44ch; color: var(--muted); font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem); line-height: 1.5; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { padding: 6px 13px; border-radius: 980px; background: var(--grey-50); font-size: 0.8125rem; font-weight: 500; color: var(--grey-700); }

/* ==========================================================================
   Sostenibilitat i certificacions
   ========================================================================== */
.eco { display: grid; gap: clamp(48px, 6vw, 88px); align-items: center; }
@media (min-width: 960px) { .eco { grid-template-columns: 6fr 5fr; } }
.eco__zero {
  display: flex;
  align-items: baseline;
  font-size: clamp(7rem, 17vw, 14rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.07em;
}
.eco__zero small { margin-left: 0.06em; font-size: 0.4em; font-weight: 600; letter-spacing: -0.03em; }
.eco__claim { margin-top: 24px; max-width: 26ch; font-size: clamp(1.375rem, 2vw, 1.875rem); font-weight: 600; line-height: 1.22; letter-spacing: -0.025em; text-wrap: balance; }
.eco__claim span { color: var(--muted); }
.eco__list { margin-top: 48px; border-top: 1px solid var(--line); }
.eco__list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.eco__list svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }

.certs { margin-top: clamp(96px, 12vw, 180px); }
.certs__head { display: grid; gap: 16px; margin-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 960px) { .certs__head { grid-template-columns: 6fr 5fr; align-items: end; } }
.certs__head p { color: var(--muted); max-width: 40ch; }
.seals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
@media (min-width: 680px) { .seals { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .seals { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.seal { text-align: center; }
.seal__ring {
  position: relative;
  display: grid;
  place-content: center;
  gap: 4px;
  width: min(100%, 176px);
  aspect-ratio: 1;
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--ink);
  color: var(--ink);
}
.seal__ring::before,
.seal__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  pointer-events: none;
}
/* creu de registre: marques als quatre punts cardinals */
.seal__ring::before {
  width: 1px;
  height: calc(100% + 24px);
  transform: translate(-50%, -50%);
  background: linear-gradient(to bottom, var(--ink) 0 18px, transparent 18px calc(100% - 18px), var(--ink) calc(100% - 18px));
}
.seal__ring::after {
  width: calc(100% + 24px);
  height: 1px;
  transform: translate(-50%, -50%);
  background: linear-gradient(to right, var(--ink) 0 18px, transparent 18px calc(100% - 18px), var(--ink) calc(100% - 18px));
}
.seal__std { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.2em; color: var(--grey-600); }
.seal__code { font-size: clamp(1.5rem, 2.3vw, 2.125rem); font-weight: 700; line-height: 1; letter-spacing: -0.04em; }
.seal__code--sm { font-size: clamp(1.25rem, 1.8vw, 1.625rem); }
.seal__code sup { font-size: 0.42em; font-weight: 600; letter-spacing: 0; vertical-align: 0.95em; margin-left: 0.05em; }
.seal__caption { margin-top: 22px; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); text-wrap: balance; }
.seal__caption strong { display: block; color: var(--fg); font-weight: 600; }

/* ==========================================================================
   Persones (secció fosca)
   ========================================================================== */
.people { padding-bottom: var(--section-pad); }
.people .media { --ratio: 21 / 9; }
@media (max-width: 733px) { .people .media { --ratio: 4 / 5; } }
.people .media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.4) 34%, rgba(0, 0, 0, 0) 64%);
}
.people__content { position: relative; z-index: 2; margin-top: clamp(-200px, -12vw, -64px); }
.people__grid { display: grid; gap: 48px; margin-top: clamp(56px, 7vw, 104px); }
@media (min-width: 960px) { .people__grid { grid-template-columns: 4fr 8fr; gap: clamp(48px, 6vw, 96px); } }
.people__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
@media (min-width: 960px) { .people__stats { grid-template-columns: 1fr; gap: 40px; } }
.people__stats .stat__num { font-size: clamp(3rem, 6vw, 5.5rem); }
.cards { display: grid; gap: 16px; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards { grid-template-columns: 1fr; } }
@media (min-width: 1180px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}
.card__title { font-size: 1.3125rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.card p { color: var(--muted); font-size: 1rem; line-height: 1.5; }

/* ==========================================================================
   Contacte
   ========================================================================== */
.contact { display: grid; gap: clamp(56px, 7vw, 96px); }
@media (min-width: 1024px) { .contact { grid-template-columns: 7fr 5fr; align-items: start; } }

.form { display: grid; gap: 22px; }
.form__row { display: grid; gap: 22px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { position: relative; display: grid; gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.005em; }
.field .req { color: var(--grey-600); font-weight: 500; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 1px solid var(--grey-200);
  border-radius: 14px;
  background: var(--white);
  font-size: 1.0625rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231d1d1f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--grey-500); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--grey-500); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 69, 84, 0.2); }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: var(--error); }
.field__error { font-size: 0.875rem; color: var(--error); }
.field__error:empty { display: none; }

.check { display: flex; gap: 14px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.5; color: var(--grey-700); }
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  min-height: 0;
  padding: 0;
  margin: 1px 0 0;
  border: 1px solid var(--grey-500);
  border-radius: 6px;
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-content: center;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.check input::after {
  content: "";
  width: 11px;
  height: 6px;
  border: solid var(--white);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.2s var(--ease);
}
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.check a { color: var(--ink); }
.field--check.is-invalid .check input { border-color: var(--error); }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.form__note { font-size: 0.8125rem; color: var(--grey-600); }
.form .btn[disabled] { opacity: 0.6; cursor: progress; }
.form__status {
  padding: 18px 20px;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.5;
  background: var(--grey-50);
}
.form__status:empty { display: none; }
.form__status.is-ok { background: #edf7ef; color: #14532d; }
.form__status.is-error { background: #fdeeee; color: #7f1d1d; }
.form__status a { color: inherit; font-weight: 600; }
.form__legal { margin-top: 8px; font-size: 0.8125rem; line-height: 1.55; color: var(--grey-600); }
.form__legal a { color: var(--grey-700); }

/* Targeta d'ubicació (sense mapes de tercers) */
.place {
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--grey-50);
  overflow: hidden;
  --fg: var(--grey-50);
  --muted: #a1a1a6;
  --line: rgba(255, 255, 255, 0.14);
}
@media (min-width: 1024px) { .place { position: sticky; top: calc(var(--nav-h) + 32px); } }
.place__map {
  position: relative;
  aspect-ratio: 16 / 10;
  background-color: #141415;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center center;
  overflow: hidden;
}
.place__map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 70% at 50% 50%, rgba(20, 20, 21, 0) 0%, #141415 100%);
}
.place__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  transform: translate(-50%, -50%);
  color: var(--white);
}
.place__pin svg { width: 100%; height: 100%; }
.place__pin::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: ping 3.2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(3.4); opacity: 0; } }
.place__label {
  position: absolute;
  left: 50%;
  top: calc(50% + 42px);
  z-index: 1;
  transform: translateX(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.6);
}
.place__body { padding: clamp(28px, 3vw, 44px); }
.place__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.028em; }
.place address { margin-top: 10px; font-style: normal; color: var(--muted); line-height: 1.5; }
.place__list { margin: 28px 0 32px; border-top: 1px solid var(--line); }
.place__list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.place__list span:first-child { color: var(--muted); }
.place__list a { text-decoration: none; font-weight: 500; }
.place__list a:hover { text-decoration: underline; }
.place .btn { width: 100%; }

/* ==========================================================================
   Peu
   ========================================================================== */
.footer { background: var(--grey-50); color: var(--grey-700); font-size: 0.875rem; line-height: 1.5; }
.footer__top {
  display: grid;
  gap: 40px 32px;
  padding-block: clamp(64px, 7vw, 96px) 48px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 960px) { .footer__top { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); } }
.footer__brand { grid-column: 1 / -1; }
@media (min-width: 960px) { .footer__brand { grid-column: auto; } }
.footer__brand .wordmark { height: 112px; width: 112px; }
.footer__brand p { margin-top: 20px; max-width: 30ch; color: var(--grey-600); }
.footer h2 { margin-bottom: 14px; font-size: 0.8125rem; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.footer ul li + li { margin-top: 8px; }
.footer a { text-decoration: none; color: var(--grey-700); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer address { font-style: normal; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 22px 0 max(32px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--grey-200);
  font-size: 0.8125rem;
  color: var(--grey-600);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer .footer__legal li + li { margin-top: 0; }
.footer__copy { display: flex; align-items: center; gap: 14px; }
.lang--footer { margin-top: 24px; }
.footer .lang--footer li + li { margin-top: 0; }
.footer .lang a { color: var(--grey-700); opacity: 0.7; font-size: 0.75rem; }
.footer .lang a:hover { color: var(--ink); opacity: 1; text-decoration: none; }
.footer .lang a[aria-current] { color: var(--ink); opacity: 1; }
.footer__bottom .lang { margin-left: auto; }

/* ==========================================================================
   Pàgines legals i 404
   ========================================================================== */
.legal { padding: calc(var(--nav-h) + clamp(64px, 9vw, 128px)) 0 clamp(96px, 10vw, 160px); }
.legal__head { margin-bottom: clamp(48px, 6vw, 80px); }
.legal__head .h2 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); }
.legal__updated { margin-top: 20px; color: var(--grey-600); font-size: 0.9375rem; }
.legal__note { margin-top: 8px; max-width: 62ch; color: var(--grey-600); font-size: 0.9375rem; line-height: 1.5; }
.prose { max-width: 70ch; color: var(--grey-700); }
.prose h2 { margin: 56px 0 16px; font-size: clamp(1.375rem, 1.6vw, 1.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: var(--ink); }
.prose h3 { margin: 32px 0 12px; font-size: 1.125rem; font-weight: 700; color: var(--ink); }
.prose p, .prose ul, .prose ol, .prose dl, .prose table { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.2em; list-style: disc; }
.prose ol { padding-left: 1.2em; list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); }
.prose dl { display: grid; grid-template-columns: minmax(0, 13em) minmax(0, 1fr); border-top: 1px solid var(--grey-200); }
.prose dt, .prose dd { padding: 12px 0; border-bottom: 1px solid var(--grey-200); }
.prose dt { color: var(--grey-600); padding-right: 16px; }
.prose dd { color: var(--ink); }
@media (max-width: 560px) {
  .prose dl { grid-template-columns: 1fr; }
  .prose dt { padding-bottom: 0; border-bottom: 0; }
  .prose dd { padding-top: 4px; }
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--grey-200); }
.prose th { color: var(--ink); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  text-align: center;
}
.notfound__mark { width: clamp(120px, 18vw, 180px); height: auto; margin: 0 auto 40px; color: var(--ink); }
.notfound__code { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.2em; color: var(--grey-600); }
.notfound .h2 { margin-top: 16px; }
.notfound .lead { margin-inline: auto; }
.notfound__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; align-items: center; }
.notfound__langs {
  margin: clamp(64px, 8vw, 96px) auto 0;
  max-width: 560px;
  border-top: 1px solid var(--grey-200);
  text-align: left;
}
.notfound__langs li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--grey-200);
  font-size: 0.9375rem;
}
.notfound__langs span { color: var(--grey-600); }
.notfound__langs a { display: inline-flex; align-items: center; gap: 0.3em; font-weight: 600; text-decoration: none; white-space: nowrap; }
.notfound__langs a:hover { text-decoration: underline; }
.notfound__langs svg { width: 12px; height: 12px; }

/* ==========================================================================
   Suggeriment d'idioma (només a la portada catalana; no redirigeix)
   ========================================================================== */
.lang-hint {
  position: absolute;
  z-index: 80;
  top: calc(var(--nav-h) + 14px);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: 6px 6px 6px 20px;
  border-radius: 980px;
  background: rgba(29, 29, 31, 0.66);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 12px 32px rgba(0, 0, 0, 0.22);
  color: var(--white);
  font-size: 0.8125rem;
  line-height: 1.35;
  animation: hintIn 0.8s var(--ease) 0.9s both;
}
@keyframes hintIn { from { opacity: 0; transform: translate3d(0, -8px, 0); } to { opacity: 1; transform: none; } }
.lang-hint__body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.lang-hint__text { color: rgba(255, 255, 255, 0.8); }
.lang-hint__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: var(--white);
}
.lang-hint__link:hover { text-decoration: underline; }
.lang-hint__link svg { width: 12px; height: 12px; }
.lang-hint__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background-color 0.3s var(--ease);
}
.lang-hint__close:hover { background: rgba(255, 255, 255, 0.22); }
.lang-hint__close svg { width: 12px; height: 12px; }
.lang-hint.is-leaving { opacity: 0; transform: translate3d(0, -8px, 0); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
@media (max-width: 639px) {
  .lang-hint {
    left: var(--gutter);
    right: var(--gutter);
    width: auto;
    max-width: none;
    padding: 10px 8px 10px 16px;
    border-radius: 18px;
  }
}
/* ==========================================================================
   Franja de marca (imatge corporativa Soler: verd petroli, corbes de llum i
   marca d'aigua del logo) i etiquetes oficials FSC® / PEFC
   ========================================================================== */
.brandband {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: rgba(255, 255, 255, 0.78);
  --fg: #fff;
  --muted: rgba(255, 255, 255, 0.66);
  background:
    radial-gradient(120% 95% at 12% 0%, #1f6f7c 0%, rgba(0, 69, 84, 0) 55%),
    linear-gradient(165deg, #0b5563 0%, var(--brand) 38%, #002f39 72%, #001d24 100%);
}
.brandband__art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.brandband__curves { position: absolute; inset: 0; width: 100%; height: 100%; }
.brandband__line { stroke-dasharray: 2600; stroke-dashoffset: 0; }
.brandband__mark {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(62vw, 820px);
  height: auto;
  transform: translateY(-50%);
  opacity: 0.05;
}
.brandband .story { position: relative; padding-block: clamp(110px, 13vw, 210px); }
.brandband .story__quote { color: #fff; }
.brandband .story__text { color: rgba(255, 255, 255, 0.78); }
.brandband .story__text p:first-child { color: #fff; }
.section--after-band { padding-top: clamp(96px, 11vw, 168px); }
@media (max-width: 959px) {
  .brandband__mark { right: 50%; top: 58%; width: 118vw; transform: translate(50%, -50%); opacity: 0.04; }
}
@media (prefers-reduced-motion: no-preference) {
  .brandband__line { animation: bb-draw 2.6s var(--ease) both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  .brandband__line--2 { animation-delay: .15s; }
  .brandband__line--3 { animation-delay: .3s; }
  @keyframes bb-draw { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
}

.cert-labels {
  margin-top: clamp(64px, 8vw, 112px);
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line, rgba(0, 0, 0, 0.1));
  display: grid;
  gap: 28px;
  justify-items: center;
  text-align: center;
}
.cert-labels__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(20px, 4vw, 56px);
}
.cert-label img { display: block; height: clamp(128px, 13vw, 172px); width: auto; }
.cert-labels__note { max-width: 52ch; font-size: 0.9375rem; color: var(--muted); }
.cert-labels__note strong { color: var(--fg); font-weight: 600; white-space: nowrap; }

@media print { .lang-hint { display: none !important; } }

/* ==========================================================================
   Revelacions amb scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity var(--dur) var(--ease), transform calc(var(--dur) + 0.2s) var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-media { opacity: 0; transform: scale(0.96); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal-media.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Moviment reduït
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal, .js .reveal-media { opacity: 1; transform: none; }
  .place__pin::before { display: none; }
}

/* ---------- Impressió ---------- */
@media print {
  .nav, .menu, .skip-link, .hero__marks, .hero__meta, .subnav, .form, .place__map { display: none !important; }
  .hero { height: auto; min-height: 0; color: #000; background: none; }
  .hero__media { display: none; }
  .section--dark, .is-dark, .lux, .people, .place, .brandband { background: none !important; color: #000 !important; }
  .brandband__art { display: none !important; }
  .js .reveal, .js .reveal-media { opacity: 1 !important; transform: none !important; }
  .bigspec__num { color: #000; background: none; }
}
