@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/chakra-petch/ChakraPetch-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/chakra-petch/ChakraPetch-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/chakra-petch/ChakraPetch-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Chakra Petch";
  src: url("assets/fonts/chakra-petch/ChakraPetch-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   Catalunya Media City — HOME editorial scroll-driven
   ========================================================= */

:root {
  /* Palette — institutional, sober */
  --paper:      #FAFAF7;
  --paper-2:    #F2F0EA;
  --ink:        #0A0A0B;
  --ink-2:      #2A2A2B;
  --ink-3:      #5A5957;
  --ink-4:      #8A8884;
  --hairline:   #E5E3DD;
  --hairline-2: #D6D3CA;
  --accent:     oklch(0.60 0.16 38);   /* industrial orange — chimneys */
  --accent-2:   oklch(0.60 0.16 38 / 0.12);

  /* Type */
  --f-display:  "Chakra Petch", system-ui, sans-serif;
  --f-body:     "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:     "Chakra Petch", ui-monospace, monospace;

  /* Scale */
  --t-mono:     11px;
  --t-meta:     12px;
  --t-body:     16.5px;
  --t-lead:     20px;
  --t-h3:       clamp(1.4rem, 1.6vw, 1.8rem);
  --t-h2:       clamp(2rem, 3.5vw, 3.4rem);
  --t-h2-xl:    clamp(2.4rem, 5vw, 4.4rem);
  --t-h1:       clamp(3rem, 8vw, 7.2rem);

  /* Layout */
  --gutter:     clamp(20px, 4vw, 56px);
  --max-w:      1440px;
  --ease:       cubic-bezier(.2,.7,.1,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

a       { color: inherit; text-decoration: none; }
img     { max-width: 100%; display: block; }
button  { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ink); color: var(--paper); }

/* ----- Custom cursor (desktop only) ----- */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, input, select, textarea { cursor: none; }
  .cursor-dot,
  .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
  }
  .cursor-dot {
    width: 6px; height: 6px;
    background: #fff;
    border-radius: 50%;
  }
  .cursor-ring {
    width: 28px; height: 28px;
    border: 1px solid #fff;
    border-radius: 50%;
    transition: width .3s var(--ease), height .3s var(--ease);
  }
  .cursor-ring.is-hover { width: 56px; height: 56px; }
}

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0;
  background: var(--paper);
  z-index: 1000;
  display: grid;
  place-items: center;
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__inner   { width: min(420px, 70vw); text-align: left; }
.loader__label {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.loader__bar {
  position: relative;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  width: var(--p, 0%);
  transition: none;
}
.loader__wordmark {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.loader__wordmark img {
  height: 18px;
  width: auto;
  display: block;
}
.loader__wordmark img:first-child {
  height: 18px;
  width: 18px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: 18px var(--gutter);
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--hairline);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-dark {
  color: #FAFAF7;
  border-bottom-color: rgba(255,255,255,.08);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-header.is-dark.is-scrolled {
  background: rgba(10,10,11,.32);
  backdrop-filter: saturate(140%) blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.brand__square {
  width: 18px; height: 18px;
  display: block;
  flex-shrink: 0;
  transition: filter .35s var(--ease);
}
.brand__title {
  height: 18px;
  width: auto;
  display: block;
  transition: filter .35s var(--ease);
}
.site-header.is-dark .brand__square,
.site-header.is-dark .brand__title {
  filter: invert(1) brightness(1.05);
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 28px);
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: 6px 0;
  opacity: .82;
  transition: opacity .25s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a.is-active { opacity: 1; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { right: 0; }

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Selector d'idioma: estil fix, no canvia amb el scroll.
   - Pill amb backdrop blur per llegir-se sobre qualsevol fons.
   - Botó actiu: fons ink + text paper, sempre. */
.lang-toggle {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(10, 10, 11, 0.12);
  border-radius: 999px;
  background: rgba(250, 250, 247, 0.28);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--ink);
}
.lang-toggle button {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--ink);
  opacity: .45;
  transition: background-color .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.lang-toggle button:hover { opacity: .75; }
.lang-toggle button.is-active {
  opacity: 1;
  background: rgba(10, 10, 11, 0.1);
  color: var(--ink);
}
.site-header.is-dark .lang-toggle {
  border-color: rgba(250, 250, 247, 0.18);
  background: rgba(10, 10, 11, 0.28);
  color: var(--paper);
}
.site-header.is-dark .lang-toggle button { color: var(--paper); }
.site-header.is-dark .lang-toggle button.is-active {
  background: rgba(250, 250, 247, 0.15);
  color: var(--paper);
}

.cta-link {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.site-header:not(.is-dark) .cta-link:hover { background: rgba(10, 10, 11, .1); }
.site-header.is-dark .cta-link:hover      { background: rgba(250, 250, 247, .18); }

.menu-btn {
  display: none;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 10000; /* above the cookie consent banner (9999) so the full-screen
                     menu and its language toggle are never covered */
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding: 80px var(--gutter) var(--gutter);
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 500;
  transform: translateY(-100%);
  transition: transform .5s var(--ease);
}
.mobile-menu.is-open { transform: translateY(0); }

.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  color: var(--paper);
  opacity: .6;
  transition: opacity .2s var(--ease);
}
.mobile-menu__close:hover { opacity: 1; }

/* Language toggle inside the mobile menu — the header toggle is hidden on
   small phones (<=440px), so the menu carries the switcher. Styled for the
   dark overlay. */
.mobile-menu .lang-toggle {
  display: inline-flex;
  align-self: center;
  margin-top: 8px;
  border-color: rgba(250, 250, 247, 0.22);
  background: rgba(250, 250, 247, 0.08);
  color: var(--paper);
}
.mobile-menu .lang-toggle button {
  color: var(--paper);
  font-size: 13px;
  padding: 8px 14px;
  opacity: .55;
}
.mobile-menu .lang-toggle button.is-active {
  opacity: 1;
  background: rgba(250, 250, 247, 0.16);
  color: var(--paper);
}

/* =========================================================
   Hero — façana scroll-driven
   ========================================================= */
.hero {
  position: relative;
  height: 300vh;          /* scroll budget for the 97-frame journey;
                             compact so frames play faster; intro section
                             overlaps the tail via negative margin
                             (see .section--intro). */
  background: var(--paper);
}
.hero__sticky {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity .15s linear;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    /* sutil oscurecido abajo para legibilidad del título sobre la fachada */
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
  transition: opacity .15s linear;
}

.hero__title-block {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(80px, 12vh, 140px);
  color: var(--paper);
  max-width: min(900px, 88vw);
  transition: opacity .25s var(--ease);
}
.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0,0,0,.6), 0 0 32px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s var(--ease) .1s, transform .8s var(--ease) .1s;
}
.hero__title {
  margin: 18px 0 22px;
  line-height: 1;
}
.hero__title-logo {
  display: block;
  width: auto;
  height: clamp(60px, 11vw, 160px);
  /* el logo es negre; sobre la façana ha de ser blanc + shadow */
  filter: invert(1) brightness(1.05) drop-shadow(0 2px 14px rgba(0,0,0,.55)) drop-shadow(0 0 40px rgba(0,0,0,.3));
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) .2s, transform 1s var(--ease) .2s;
}
.hero.is-ready .hero__title-logo {
  opacity: 1;
  transform: translateY(0);
}
.hero__sub {
  margin: 0;
  max-width: 60ch;
  font-size: var(--t-lead);
  line-height: 1.45;
  text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 28px rgba(0,0,0,.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s var(--ease) .5s, transform 1s var(--ease) .5s;
}

.hero.is-ready .hero__eyebrow,
.hero.is-ready .hero__sub {
  opacity: 1;
  transform: translateY(0);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 11px 22px;
  background: rgba(0, 0, 0, 0.20);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(250, 250, 247, 0.22);
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.08);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1s var(--ease) .65s, transform 1s var(--ease) .65s, background .2s ease, border-color .2s ease;
}
.hero.is-ready .hero__cta {
  opacity: 1;
  transform: translateY(0);
}
.hero__cta { cursor: pointer; }
.hero__cta:hover {
  background: rgba(0, 0, 0, 0.32);
  border-color: rgba(250, 250, 247, 0.38);
}
.hero__cta svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(32px, 5vh, 56px);
  transform: translateX(-50%);
  color: var(--paper);
  opacity: 0;
  transition: opacity 1s var(--ease) .8s;
  pointer-events: none;
}
.hero.is-ready .hero__scroll { opacity: .8; pointer-events: auto; cursor: pointer; }
.hero__scroll:hover svg { opacity: .7; }
.hero__scroll svg {
  width: 30px;
  height: 30px;
  display: block;
  animation: arrowBounce 1.8s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* Tail-fade: the canvas + decorations fade out individually (JS-driven).
   Once fully faded, hide the sticky entirely so it doesn't occlude what
   sits behind it in the next section. */
.hero.is-faded .hero__sticky { visibility: hidden; }
.hero.is-tailing .hero__title-block,
.hero.is-tailing .hero__scroll { opacity: 0 !important; transition: opacity .2s linear; }

/* ---- Floating sequence loader (visible between title fade and section in) ---- */
.hero__seq {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 11px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(250, 250, 247, 0.10);
  border-radius: 100px;
  box-shadow: 0 2px 16px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.06);
  color: rgba(250, 250, 247, 0.72);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  transition: background .2s ease, box-shadow .2s ease;
}
.hero__seq.is-visible {
  pointer-events: auto;
  cursor: pointer;
}
.hero__seq.is-visible:hover {
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 4px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero__seq-binary { display: none; }
.hero__seq-arrow {
  width: 14px;
  height: 14px;
  display: block;
  opacity: 0.5;
  animation: arrowBounce 1.8s ease-in-out infinite;
}

/* =========================================================
   Section primitives
   ========================================================= */
.section {
  padding: clamp(72px, 10vh, 140px) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  background: var(--page-bg);
}
.section--dark { background: var(--ink-1); }

/* ---- Immersive interlude ---- */
.immersive-interlude {
  position: relative;
  z-index: 1;
  height: 180vh;
  margin-top: -40vh;
  margin-bottom: -8vh;
}
.immersive-interlude__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}
.immersive-interlude__canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.immersive-interlude__fade-bottom {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 35vh;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, var(--paper) 0%, transparent 100%);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 220px) 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section-head > div:first-child + div { max-width: 64ch; }
.section-num {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 8px;
}
.section-title {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.section-title--xl { font-size: var(--t-h2-xl); }
.section-kicker {
  margin: 18px 0 0;
  color: var(--ink-3);
  font-size: var(--t-lead);
  line-height: 1.5;
  max-width: 56ch;
}
.section-kicker--xl { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
.section-body {
  margin: 18px 0 28px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 64ch;
}
.section-foot {
  margin-top: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(64px, 8vw, 120px);
}

/* Dark sections */
.section--dark {
  background: var(--ink);
  color: var(--paper);
  max-width: none;
  width: 100%;
  margin: 0;
  padding-left: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
}
.section--dark .section-num { color: var(--ink-4); }
.section--dark .section-kicker { color: rgba(255,255,255,.7); }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--primary:hover { background: transparent; color: var(--ink); }

.btn--ghost { color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn--ghost-dark { color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--paper); }

.btn--xl {
  padding: 22px 36px;
  font-size: 13px;
  letter-spacing: .14em;
}
.btn--xl svg { width: 18px; height: 18px; }

/* =========================================================
   Intro — el contenido editorial empieza dentro del último
   tercio del hero. Cuando la intro entra al viewport, los frames
   de la fachada aún se ven detrás (gradient transparente arriba).
   El editorial aparece ya sobre paper opaco, sin "margen muerto".
   ========================================================= */
.section--intro {
  position: relative;
  z-index: 5;
  /* Full bleed para que el gradient cubra TODO el ancho del viewport.
     El .section por defecto limita a max-w (1440) y deja bandas laterales
     donde el sticky se vería sin gradient. Replicamos la técnica de
     .section--dark: width:100%, max-width:none, y padding lateral
     computado para que el contenido quede dentro del max-w. */
  width: 100%;
  max-width: none;
  margin: 0 0 0 0;
  padding-left:  max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max-w)) / 2 + var(--gutter)));
  /* Gradient suau: transparent al capdamunt, fosa llarga cap a paper per
     evitar el tall visible. La secció entra mentre els frames del hero
     encara es veuen (margin-top generós). */
  background: linear-gradient(
    to bottom,
    rgba(250, 250, 247, 0)    0,
    rgba(250, 250, 247, 0)    clamp(30px, 4vh, 56px),
    rgba(250, 250, 247, 0.25) clamp(60px, 8vh, 110px),
    rgba(250, 250, 247, 0.7)  clamp(90px, 12vh, 160px),
    var(--paper)               clamp(120px, 16vh, 210px),
    var(--paper) 100%
  );
  margin-top: calc(-1 * clamp(300px, 40vh, 520px));
  padding-top: clamp(70px, 10vh, 130px);
}

/* =========================================================
   Eixos (3 quadres)
   ========================================================= */
.section--eixos {
  padding-top: clamp(80px, 12vh, 160px);
}
.eixos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.eix {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .5s var(--ease), border-color .3s var(--ease);
}
.eix:hover { border-color: var(--ink); }

.eix__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.eix__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.eix:hover .eix__img { transform: scale(1.04); }
.eix__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

.eix__body {
  padding: clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.eix__tag {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eix__name {
  margin: 0;
  font-family: var(--f-display);
  font-size: var(--t-h3);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 500;
}
.eix__text {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.5;
  font-size: 15.5px;
}
.eix__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.eix__link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.eix__link:hover svg { transform: translateX(4px); }

/* =========================================================
   Lloguer d'espais (dark)
   ========================================================= */
.section--lloguer .section-head { grid-template-columns: minmax(120px, 220px) 1fr; margin-bottom: clamp(20px, 2.5vw, 36px); }
.section--lloguer .section-head > div:last-child { max-width: 60ch; }

/* Full-bleed velocity carousel — stacked cards effect */
.lloguer-carousel {
  overflow: hidden;
  margin-left: calc(-1 * max(var(--gutter), (100vw - var(--max-w)) / 2 + var(--gutter)));
  margin-right: calc(-1 * max(var(--gutter), (100vw - var(--max-w)) / 2 + var(--gutter)));
  padding-bottom: 130px;
  cursor: grab;
}
.lloguer-carousel__track {
  display: flex;
  gap: 0;
  align-items: flex-start;
  will-change: transform;
  user-select: none;
}
.lloguer-carousel__img {
  flex-shrink: 0;
  width: clamp(260px, 28vw, 420px);
  height: clamp(180px, 19vw, 290px);
  object-fit: cover;
  border-radius: 6px;
  pointer-events: auto;
  cursor: pointer;
  transform-origin: top center;
  will-change: transform;
  margin-right: -90px;
  position: relative;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,11,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  transform: scale(0.93);
  transition: transform .4s var(--ease);
  display: block;
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  width: clamp(46px, 5vw, 64px);
  height: clamp(46px, 5vw, 64px);
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: rgba(250,250,247,.12);
  border: 1px solid rgba(250,250,247,.22);
  opacity: .72;
  transform: translateY(-50%);
  transition: opacity .2s var(--ease), background-color .2s var(--ease);
}
.lightbox__nav svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lightbox.has-gallery .lightbox__nav { display: flex; }
.lightbox__nav:hover {
  opacity: 1;
  background: rgba(250,250,247,.18);
}
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  color: var(--paper);
  opacity: .55;
  transition: opacity .2s var(--ease);
}
.lightbox__close:hover { opacity: 1; }

.lloguer-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.lloguer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.12);
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lloguer-card {
  background: var(--ink);
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color .3s var(--ease);
}
.lloguer-card:hover { background: #14141a; }
.lloguer-card__kicker {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.lloguer-card__text {
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--paper);
}

/* =========================================================
   Actualitat (carrusel)
   ========================================================= */
.news-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.news-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }

.news-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  transition: transform .4s var(--ease);
}
.news-card:hover { transform: translateY(-4px); }

.news-card__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.news-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--hairline);
}
.news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.04); }

.news-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.news-card__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.news-card__video-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: -2px;
  padding: 8px 11px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.news-card__video-link svg { width: 13px; height: 13px; fill: currentColor; }
.news-card__video-link:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.news-arrow {
  position: absolute;
  top: -68px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.news-arrow svg { width: 16px; height: 16px; }
.news-arrow:hover { background: var(--ink); color: var(--paper); }
.news-arrow[disabled] { opacity: .25; pointer-events: none; }
.news-arrow--prev { right: 70px; }
.news-arrow--next { right: 0; }

/* =========================================================
   Contacte CTA (sin form)
   ========================================================= */
.section--contacte {
  text-align: center;
  padding-top: clamp(72px, 10vh, 140px);
  padding-bottom: clamp(80px, 12vh, 160px);
}
.contacte-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contacte-wrap .section-num { padding-top: 0; }
.contacte-wrap .section-title { text-align: center; }
.contacte-wrap .section-kicker { text-align: center; margin: 0; }
.contacte-wrap .btn { margin-top: 18px; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 8vh, 96px) var(--gutter) 28px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer__brand-square {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(1) brightness(1.05);
}
.footer__brand-title {
  height: 18px;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.05);
}
.footer__logos {
  display: flex;
  align-items: center;
  gap: 28px;
}
.footer__consorci img {
  height: 18px;
  width: auto;
  display: block;
  opacity: .75;
  transition: opacity .2s;
}
.footer__consorci:hover img { opacity: 1; }
.footer__addr {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .06em;
  line-height: 1.7;
  color: rgba(255,255,255,.6);
  max-width: 32ch;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.footer__col h4 {
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a {
  color: var(--paper);
  font-size: 14.5px;
  opacity: .85;
  transition: opacity .25s var(--ease);
}
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
}

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
  .hero { height: auto; min-height: 100vh; }
  .hero__sticky { position: relative; }
  .hero__title .word > span { transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .site-header { display: flex; justify-content: space-between; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .cta-link { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .section--lloguer .section-head { grid-template-columns: 1fr; }
  .section-num { padding-top: 0; }
  .eixos { grid-template-columns: 1fr; }
  .lloguer-grid { grid-template-columns: 1fr; }
  .news-arrow--prev { right: 64px; top: -56px; }
  .news-arrow--next { right: 0;  top: -56px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 560px) {
  .footer__cols { grid-template-columns: 1fr; }
  .hero { height: 270vh; }
  .hero__title { font-size: clamp(2.6rem, 12vw, 4.4rem); }
  .hero__title-block { left: 20px; right: 20px; }
  .lightbox__img { max-width: 94vw; max-height: 78vh; }
  .lightbox__nav { top: auto; bottom: 22px; transform: none; }
  .lightbox__nav--prev { left: 20px; }
  .lightbox__nav--next { right: 20px; }
}

@media (max-width: 440px) {
  .lang-toggle { display: none; }
}
