/* ==========================================================================
   Xemeneies del Pirineu — styles.css
   Mobile-first · paleta de la marca (verd pi fosc del logotip / crema / coure)
   Fraunces (display) + Manrope (text)
   ========================================================================== */

:root {
  --terra-950: #0f1a1b;
  --terra-900: #152324;
  --terra-800: #1e3234;
  --terra-700: #294143;
  --terra-600: #6b4629;
  --coure: #b87333;
  --coure-clar: #d39a5c;
  --coure-fosc: #8f5624;
  --crema: #f1e9dc;
  --crema-2: #e6dccb;
  --crema-3: #d8cbb6;
  --blanc: #fbf8f2;
  --molsa: #5f6247;
  --pedra: #8c8477;
  --ink: #152324;
  --ink-2: #3a4746;
  --ink-3: #566260;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1200px;
  --gutter: 16px;
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px; --s-8: 128px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--coure-fosc); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terra-900); }
p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--coure); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--coure); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 var(--s-3);
  color: var(--ink);
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}
h1 { font-size: clamp(2.3rem, 3.6vw + 1.2rem, 4.4rem); }
h2 { font-size: clamp(1.75rem, 1.6vw + 1.1rem, 2.7rem); }
h3 { font-size: 1.35rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; margin-bottom: var(--s-1); }
.lead { font-size: 1.14rem; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.kicker {
  font-size: .92rem; font-weight: 600; color: var(--coure-fosc); margin: 0 0 var(--s-2);
  display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ''; width: 28px; height: 1px; background: currentColor; flex: none; }
.kicker.light { color: var(--coure-clar); }
.section-dark .kicker { color: var(--coure-clar); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 820px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.section { padding-block: var(--s-6); }
.section-alt { padding-block: var(--s-6); background: var(--crema-2); }
.section-dark { padding-block: var(--s-6); background: var(--terra-900); color: var(--crema); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--crema); }
.section-dark .lead, .section-dark p { color: var(--crema-2); }
.section-dark a:not(.btn):not(.panel):not(.related-card) { color: var(--coure-clar); }
@media (min-width: 768px) {
  .section, .section-alt, .section-dark { padding-block: 80px; }
}

/* ---------- Botons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--coure-fosc); color: #fff; border-color: var(--coure-fosc); }   /* 5.96:1 AA */
.btn-primary:hover { background: var(--terra-600); border-color: var(--terra-600); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.btn-dark { background: var(--terra-900); color: var(--crema); border-color: var(--terra-900); }
.btn-dark:hover { background: var(--terra-700); border-color: var(--terra-700); color: var(--crema); }
.btn-ghost-light { background: transparent; color: var(--crema); border-color: rgba(241, 233, 220, .55); }
.btn-ghost-light:hover { background: rgba(241, 233, 220, .12); border-color: var(--crema); color: #fff; }
.btn-lg { min-height: 56px; padding: 14px 30px; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none;
  color: var(--coure-fosc); padding-block: 8px;
}
.link-arrow::after { content: ''; width: 22px; height: 1.5px; background: currentColor; transition: width .3s var(--ease); }
.link-arrow:hover::after { width: 36px; }
.link-arrow.light { color: var(--coure-clar); }
.ico { width: 28px; height: 28px; color: var(--coure); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; padding-top: env(safe-area-inset-top);
  background: rgba(15, 26, 27, .92);
  backdrop-filter: blur(14px) saturate(1.15); -webkit-backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid rgba(241, 233, 220, .07);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.site-header.is-over-hero { background: linear-gradient(to bottom, rgba(15, 26, 27, .5), rgba(15, 26, 27, 0)); border-color: transparent; }
.site-header.is-over-hero.is-scrolled { background: rgba(15, 26, 27, .92); border-color: rgba(241, 233, 220, .07); box-shadow: 0 12px 34px rgba(10, 6, 3, .28); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 13px; min-height: 44px; text-decoration: none; color: var(--crema); }
.brand-mark { width: 42px; height: 42px; flex: none; transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); }
.brand-name { font-family: var(--font-display); font-size: clamp(1.08rem, 3.6vw, 1.34rem); letter-spacing: .002em; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 379px) { .brand-name { display: none; } }
.main-nav { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  color: var(--crema-2); text-decoration: none; font-weight: 700; font-size: .84rem; letter-spacing: .03em;
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(241, 233, 220, .22); border-radius: 999px; background: rgba(241, 233, 220, .04);
  transition: color .25s, border-color .25s, background-color .25s;
}
.lang-switch:hover { color: #fff; border-color: var(--coure-clar); background: rgba(241, 233, 220, .09); }
.nav-cta { display: none; }
.nav-cta.btn-primary { box-shadow: 0 8px 22px rgba(143, 86, 36, .35); }
.nav-cta.btn-primary:hover { box-shadow: 0 10px 26px rgba(143, 86, 36, .45); }
.nav-toggle {
  width: 48px; height: 48px; display: grid; place-items: center; gap: 0;
  background: transparent; border: 0; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span {
  position: absolute; width: 26px; height: 2px; background: var(--crema); transition: transform .35s var(--ease), opacity .3s;
}
.nav-toggle span:first-child { transform: translateY(-5px); }
.nav-toggle span:last-child { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--terra-950); color: var(--crema);
  padding: calc(var(--header-h) + var(--s-3)) var(--gutter) var(--s-4);
  display: flex; flex-direction: column; justify-content: space-between; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.mobile-menu.is-open { opacity: 1; transform: none; }
.mm-list { list-style: none; }
.mm-list > li > a { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--crema); text-decoration: none; padding: 10px 0; }
.mm-sub { list-style: none; padding-left: var(--s-3); margin-bottom: var(--s-2); border-left: 1px solid rgba(241, 233, 220, .2); }
.mm-sub a { display: block; color: var(--crema-2); text-decoration: none; padding: 8px 0; font-size: 1.05rem; }
.mm-foot { display: flex; flex-direction: column; gap: 12px; padding-top: var(--s-4); border-top: 1px solid rgba(241, 233, 220, .15); }
.mm-foot a { color: var(--crema-2); }
body.menu-open { overflow: hidden; }

@media (min-width: 1024px) {
  .brand-mark { width: 48px; height: 48px; }
  .nav-toggle, .mobile-menu { display: none; }
  .nav-cta { display: inline-flex; }
  .main-nav { display: block; }
  .main-nav > ul { display: flex; gap: 4px; list-style: none; }
  .main-nav > ul > li { position: relative; }
  .main-nav a {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
    color: var(--crema-2); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: var(--radius);
    transition: color .2s;
  }
  .main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; }
  .main-nav > ul > li > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--coure-clar);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .main-nav > ul > li > a:hover::after, .main-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
  .mega {
    position: absolute; top: 100%; left: -24px; width: 560px; padding-top: 14px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
  }
  .has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .mega-inner {
    background: var(--terra-950); border: 1px solid rgba(211, 154, 92, .25); border-radius: var(--radius);
    padding: 22px 24px 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); position: relative;
  }
  .mega-inner::before { content: ''; position: absolute; top: -7px; left: 44px; width: 12px; height: 12px; background: var(--terra-950); border-left: 1px solid rgba(211, 154, 92, .25); border-top: 1px solid rgba(211, 154, 92, .25); transform: rotate(45deg); }
  .mega-kicker { margin: 0 0 12px; font-size: .82rem; color: var(--coure-clar); font-weight: 600; }
  .mega-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .mega-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius); min-height: 0; transition: background-color .25s; }
  .mega-list a:hover { background: rgba(241, 233, 220, .07); }
  .mega-list .ico { width: 24px; height: 24px; flex: none; color: var(--coure-clar); margin-top: 2px; }
  .mega-list span { display: flex; flex-direction: column; gap: 2px; }
  .mega-list strong { font-weight: 600; color: var(--crema); font-size: .98rem; }
  .mega-list small { color: var(--pedra); font-size: .84rem; line-height: 1.35; }
  .mega-all { margin-top: 10px; display: inline-flex; padding: 8px 0 0; border-top: 1px solid rgba(241, 233, 220, .1); width: 100%; }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; list-style: none;
    background: var(--terra-950); border: 1px solid rgba(241, 233, 220, .12); border-radius: var(--radius);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sub a { display: block; padding: 10px 12px; }
  .sub-all { border-top: 1px solid rgba(241, 233, 220, .12); margin-top: 4px; color: var(--coure-clar) !important; }
}

/* ---------- HERO (inici) ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--terra-950); color: var(--crema); overflow: clip; isolation: isolate;
  padding-top: var(--header-h);
}
.hero-slides { position: absolute; inset: -10% 0 0; z-index: -3; will-change: transform; }
.hero-slide { position: absolute; inset: 0; margin: 0; z-index: 0; opacity: 0; transition: opacity 1.35s ease; }
.hero-slide.is-active { z-index: 2; opacity: 1; }
.hero-slide.was-active { z-index: 1; opacity: 0; }
.hero-grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-ghost {
  display: none; position: absolute; right: -2vw; top: 14vh; z-index: 1; pointer-events: none; font-family: var(--font-display);
  font-size: clamp(9rem, 30vw, 26rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(241, 233, 220, .16);
  font-variation-settings: 'opsz' 144; letter-spacing: -.04em; user-select: none; transition: opacity .6s;
}
.hero-facts {
  list-style: none; position: absolute; right: var(--gutter); top: calc(var(--header-h) + 24px); z-index: 3;
  display: none; flex-direction: column; gap: 10px;
}
.hero-facts li {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; min-width: 250px;
  background: rgba(15, 26, 27, .35); border: 1px solid rgba(241, 233, 220, .18); border-radius: var(--radius);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(24px); animation: slidein .9s var(--ease) forwards;
}
.hero-facts li:nth-child(1) { animation-delay: 1.3s; } .hero-facts li:nth-child(2) { animation-delay: 1.5s; } .hero-facts li:nth-child(3) { animation-delay: 1.7s; }
.hero-facts b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--coure-clar); min-width: 40px; }
.hero-facts span { display: flex; flex-direction: column; font-size: .92rem; color: var(--crema); line-height: 1.25; }
.hero-facts small { font-size: .78rem; color: var(--crema-2); }
@keyframes slidein { to { opacity: 1; transform: none; } }
@media (min-width: 1100px) { .hero-facts { display: flex; } .hero-ghost { display: block; } }
@media (min-width: 1240px) { .hero-facts { right: calc((100vw - var(--container)) / 2 + var(--gutter)); } }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 55% 45%); transform: scale(1.14); transform-origin: 70% 30%; }
.hero-slide:nth-child(even) img { transform-origin: 25% 70%; }
.hero-slide.is-active img { animation: kenburns 9s var(--ease) forwards; }
.hero-slide.was-active img { animation: kenburns-out 1.6s var(--ease) forwards; }
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
@keyframes kenburns-out { from { transform: scale(1.02); } to { transform: scale(1.06); } }
.hero-nav {
  position: relative; z-index: 3; margin-top: var(--s-4);
  display: flex; align-items: center; gap: 14px; opacity: 0; animation: fade 1s var(--ease) 1.6s forwards;
}
.hero-cap { position: relative; margin: 0; flex: 1; min-height: 1.4em; font-size: .9rem; color: var(--crema); text-shadow: 0 1px 10px rgba(15, 26, 27, .8); display: none; }
.hero-cap-item { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); white-space: nowrap; }
.hero-cap-item.is-active { opacity: 1; transform: none; }
.hero-dots { display: flex; gap: 8px; }
.hero-dot { position: relative; width: 44px; height: 24px; padding: 0; background: transparent; border: 0; cursor: pointer; }
.hero-dot::before { content: ''; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: rgba(241, 233, 220, .3); border-radius: 2px; }
.hero-dot span { position: absolute; left: 4px; top: 11px; height: 2px; width: 0; background: var(--coure-clar); border-radius: 2px; }
.hero-dot.is-active span { animation: dotfill var(--dur, 6.5s) linear forwards; }
.hero[data-paused] .hero-dot.is-active span { animation-play-state: paused; }
@keyframes dotfill { from { width: 0; } to { width: calc(100% - 8px); } }
.hero-count { font-family: var(--font-display); font-size: .95rem; color: var(--crema-2); letter-spacing: .04em; text-shadow: 0 1px 10px rgba(15, 26, 27, .8); }
.hero-count b { font-weight: 400; color: var(--crema); }
@media (min-width: 768px) {
  .hero-nav { position: absolute; right: calc(var(--gutter) + 64px); bottom: calc(15vh + var(--s-4) + 14px); margin: 0; }
  .hero-cap { display: block; min-width: 260px; text-align: right; }
  .hero-cap-item { left: auto; right: 0; }
}
.hero-veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(15, 26, 27, .94) 0%, rgba(15, 26, 27, .5) 36%, rgba(15, 26, 27, .08) 66%, rgba(15, 26, 27, .28) 100%),
    linear-gradient(to right, rgba(21, 35, 36, .5), rgba(21, 35, 36, 0) 55%);
}
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero-ridge { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; z-index: 0; pointer-events: none; }
.ridge-back { height: 22vh; fill: rgba(21, 35, 36, .55); }
.ridge-front { height: 12vh; fill: var(--terra-900); }
.hero-body { position: relative; z-index: 2; padding-bottom: calc(12vh + var(--s-4)); padding-top: var(--s-6); will-change: transform; }
.hero-kicker { color: var(--coure-clar); }
.hero-h1 {
  text-shadow: 0 2px 24px rgba(15, 26, 27, .45);
  color: var(--crema); font-size: clamp(2.5rem, 5.2vw + 1rem, 5.6rem); line-height: 1.02; max-width: 15ch;
  font-variation-settings: 'opsz' 144, 'SOFT' 20, 'WONK' 1; margin-bottom: var(--s-2);
}
.hero-h1 .line { display: block; overflow: hidden; }
.hero-h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.hero-h1 { font-size: clamp(2.4rem, 4.6vw + 1rem, 5rem); }
.hero-h1 .line:nth-child(2) > span { animation-delay: .15s; }
@keyframes rise { to { transform: none; } }
.roots-line { width: min(360px, 70vw); height: auto; margin: 4px 0 var(--s-3); }
.roots-line path {
  fill: none; stroke: var(--coure-clar); stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .7s forwards;
}
.roots-line path + path { stroke-width: 1.1; animation-delay: 1.4s; animation-duration: 1.2s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-sub { text-shadow: 0 1px 12px rgba(15, 26, 27, .5); font-size: 1.1rem; color: var(--crema-2); max-width: 54ch; opacity: 0; animation: fade 1s var(--ease) .9s forwards; }
.hero-actions { opacity: 0; animation: fade 1s var(--ease) 1.15s forwards; margin-top: var(--s-3); }
.hero-kicker { opacity: 0; animation: fade .8s var(--ease) .2s forwards; }
@keyframes fade { to { opacity: 1; } }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: calc(12vh + var(--s-3)); z-index: 3;
  width: 44px; height: 64px; display: none; align-items: flex-start; justify-content: center;
  border: 1px solid rgba(241, 233, 220, .35); border-radius: 22px; opacity: 0; animation: fade 1s var(--ease) 1.6s forwards;
}
.hero-scroll span { width: 3px; height: 10px; margin-top: 10px; border-radius: 2px; background: var(--coure-clar); animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(26px); opacity: 0; } 100% { opacity: 0; } }
@media (min-width: 768px) {
  .hero-scroll { display: flex; }
  .ridge-back { height: 26vh; }
  .ridge-front { height: 15vh; }
  .hero-body { padding-bottom: calc(15vh + var(--s-4)); }
  .hero-scroll { bottom: calc(15vh + var(--s-3)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide img, .hero-slide.is-active img, .hero-nav, .hero-dot.is-active span, .hero-h1 .line > span, .roots-line path, .hero-sub, .hero-actions, .hero-kicker, .hero-scroll, .hero-facts li {
    animation: none; transform: none; opacity: 1; stroke-dashoffset: 0;
  }
  .hero-slide { transition: none; }
  .hero-embers { display: none; }
}

/* ---------- Ticker ---------- */
.ticker { overflow: hidden; border-top: 1px solid var(--crema-3); border-bottom: 1px solid var(--crema-3); background: var(--crema); padding: 14px 0; }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-family: var(--font-display); font-size: 1.3rem; color: var(--terra-700); white-space: nowrap; }
.ticker i { width: 6px; height: 6px; border-radius: 50%; background: var(--coure); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Confianca / escut ---------- */
.trust { padding-top: var(--s-4); }
.trust.compact { padding-bottom: var(--s-5); }
@media (min-width: 768px) { .trust.compact { padding-top: var(--s-5); padding-bottom: var(--s-6); } }
.trust-grid { display: grid; gap: var(--s-4); align-items: center; }
.trust-escut { display: flex; justify-content: center; }
.trust-escut img { width: min(340px, 72vw); height: auto; filter: drop-shadow(0 24px 40px rgba(21, 35, 36, .18)); }
@media (min-width: 900px) {
  .trust-grid { grid-template-columns: 1.15fr .85fr; gap: var(--s-6); }
  .trust-escut img { width: min(420px, 100%); }
}

/* ---------- Mosaic de serveis ---------- */
.services-block { padding-bottom: var(--s-4); }
.hero + .services-block { padding-top: var(--s-4); }
@media (min-width: 768px) { .hero + .services-block { padding-top: var(--s-5); } }
.services-head { margin-bottom: var(--s-4); max-width: 760px; }
.services-foot { margin-top: var(--s-4); }
.mosaic { display: grid; gap: 4px; }
.panel {
  position: relative; display: block; min-height: 300px; overflow: clip; text-decoration: none; color: var(--crema);
  background: var(--terra-800); border-radius: var(--radius);
}
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.panel::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 27, .92) 0%, rgba(15, 26, 27, .35) 55%, rgba(15, 26, 27, .1) 100%);
  transition: opacity .5s var(--ease);
}
.panel-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: var(--s-3); display: grid; gap: 6px; }
.panel-name { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.05; }
.panel-text { font-size: .98rem; color: var(--crema-2); max-width: 36ch; }
.panel-more { width: 36px; height: 36px; border: 1px solid rgba(241, 233, 220, .45); border-radius: 50%; display: grid; place-items: center; margin-top: 6px; }
.panel-more .ico { width: 18px; height: 18px; color: var(--crema); }
.panel:hover img, .panel:focus-visible img { transform: scale(1.06); }
@media (min-width: 900px) {
  .mosaic { display: flex; height: min(72vh, 680px); }
  .panel { flex: 1 1 0; min-height: 0; transition: flex 1s var(--ease); }
  .panel.is-active, .panel:hover, .panel:focus-visible { flex: 2.4 1 0; }
  .panel-text, .panel-more { opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
  .panel.is-active .panel-text, .panel.is-active .panel-more,
  .panel:hover .panel-text, .panel:hover .panel-more,
  .panel:focus-visible .panel-text, .panel:focus-visible .panel-more { opacity: 1; transform: none; }
  .panel-name { font-size: 2.3rem; writing-mode: initial; }
  .panel img { filter: saturate(.85); }
  .panel.is-active img, .panel:hover img { filter: saturate(1); }
}

/* ---------- Feina real ---------- */
.feina-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-4); }
.feina-grid { display: grid; gap: var(--s-3); margin-bottom: var(--s-3); }
.feina-ba .ba { border-radius: var(--radius); }
.feina-cards { display: flex; gap: var(--s-2); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.feina-card { flex: 0 0 78%; scroll-snap-align: start; position: relative; overflow: clip; border-radius: var(--radius); background: var(--terra-900); }
.feina-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 1s var(--ease); }
.feina-card:hover img { transform: scale(1.05); }
.feina-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; color: var(--crema); font-size: .9rem; background: linear-gradient(to top, rgba(15, 26, 27, .85), rgba(15, 26, 27, 0)); }
@media (min-width: 900px) {
  .feina-head { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--s-5); }
  .feina-grid { grid-template-columns: 1.4fr 1fr; gap: var(--s-3); }
  .feina-cards { flex-direction: column; overflow: visible; }
  .feina-card { flex: 1 1 0; }
  .feina-card img { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
  .feina-card { min-height: 0; }
}

/* ---------- Proces sticky ---------- */
.process-sticky { padding-bottom: var(--s-4); }
.ps-grid { display: grid; gap: var(--s-4); align-items: start; margin-top: var(--s-3); }
.ps-media { position: sticky; top: calc(var(--header-h) + 12px); z-index: 1; }
.ps-frame { position: relative; aspect-ratio: 4 / 3; overflow: clip; border-radius: var(--radius); background: var(--terra-800); }
.ps-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.2s var(--ease); }
.ps-img.is-active { opacity: 1; transform: none; }
.ps-num { position: absolute; left: 16px; bottom: 12px; font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: 1; color: var(--crema); text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.ps-num b { font-weight: 400; }
.ps-steps { list-style: none; display: grid; gap: var(--s-4); padding-top: var(--s-2); }
.ps-step { position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: center; opacity: .45; transition: opacity .5s var(--ease); }
.ps-step .step-n { position: static; grid-row: 1 / 3; align-self: start; }
.ps-step h3, .ps-step p { grid-column: 2; }
.ps-step.is-active { opacity: 1; }
.ps-step .step-n { color: var(--coure-clar); border-color: var(--coure-clar); }
.ps-step h3 { color: var(--crema); font-size: 1.5rem; }
.ps-step p { color: var(--crema-2); margin: 0; max-width: 44ch; }
@media (min-width: 900px) {
  .ps-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .ps-media { top: calc(var(--header-h) + 40px); }
  .ps-frame { aspect-ratio: 4 / 5; max-height: calc(100vh - var(--header-h) - 80px); }
  .ps-steps { padding-top: 8vh; padding-bottom: 8vh; gap: 0; }
  .ps-step { min-height: 30vh; }
}

/* ---------- Especialitat ---------- */
.specialty { background: var(--crema-2); }
.specialty-grid { display: grid; gap: var(--s-4); align-items: center; }
.specialty-media { position: relative; transform-style: preserve-3d; transition: transform .4s var(--ease); will-change: transform; }
.specialty-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.specialty-media::before {
  content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--coure); border-radius: var(--radius); z-index: -1;
}
.specialty-text .btn { margin-top: var(--s-2); }
@media (min-width: 900px) {
  .specialty-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
  .specialty-media::before { inset: 24px -24px -24px 24px; }
}

/* ---------- Pilars de confianca ---------- */
.trust-dark { position: relative; overflow: clip; background: var(--terra-950); border-top: 1px solid rgba(211, 154, 92, .18); }
.trust-dark .trust-grid { margin-bottom: var(--s-5); }
.trust-dark .trust-escut img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.pillars, .trust-dark { position: relative; overflow: clip; background: var(--terra-950); border-top: 1px solid rgba(211, 154, 92, .18); }
.pillars .container, .trust-dark .container { position: relative; }
.pillar-grid { list-style: none; display: grid; gap: var(--s-4); }
.pillar { border-top: 1px solid rgba(211, 154, 92, .45); padding-top: var(--s-3); }
.pillar .ico { color: var(--coure-clar); margin-bottom: var(--s-2); }
.pillar h3 { color: var(--crema); }
.pillar p { color: var(--crema-2); margin: 0; }
@media (min-width: 768px) { .pillar-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Plans teaser ---------- */
.plans-grid { display: grid; gap: var(--s-4); align-items: start; }
.plans-media { position: relative; aspect-ratio: 3 / 2; overflow: clip; border-radius: var(--radius); margin: var(--s-3) 0; background: var(--terra-800); }
.plans-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.plans-img.is-active { opacity: 1; transform: none; }
.plan-names a.is-active { padding-left: 10px; color: var(--coure-fosc); }
.plan-names { list-style: none; counter-reset: none; }
.plan-names li { border-bottom: 1px solid var(--crema-3); }
.plan-names li:first-child { border-top: 1px solid var(--crema-3); }
.plan-names a { display: flex; flex-direction: column; gap: 2px; padding: 18px 0; text-decoration: none; color: var(--ink); transition: padding-left .3s var(--ease); }
.plan-names a:hover { padding-left: 10px; color: var(--coure-fosc); }
.plan-names strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.plan-names span { font-size: .95rem; color: var(--ink-3); }
@media (min-width: 900px) { .plans-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* ---------- Preus ---------- */
.prices-section { padding-block: var(--s-5); }
.prices-intro { color: var(--ink-2); max-width: 60ch; }
.price-list { margin: var(--s-3) 0 var(--s-2); }
.price-row { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--crema-3); }
.price-row dt { flex: 1; font-weight: 500; }
.price-row dt::after { content: ''; flex: 1; }
.price-row dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; white-space: nowrap; color: var(--terra-700); }
.price-note { font-size: .9rem; color: var(--ink-3); max-width: 70ch; }

/* ---------- Zona ---------- */
.zona { position: relative; color: var(--crema); overflow: clip; padding-block: var(--s-6); background: var(--terra-900); }
.zona-media { position: absolute; inset: 0; z-index: 0; }
.zona-media img { width: 100%; height: 100%; object-fit: cover; }
.zona::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to right, rgba(15, 26, 27, .92), rgba(15, 26, 27, .55) 60%, rgba(15, 26, 27, .35)); }
.zona-body { position: relative; z-index: 2; }
.zona h2 { color: var(--crema); }
.zona p { color: var(--crema-2); max-width: 52ch; }
.parroquies { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: var(--s-3); font-family: var(--font-display); font-size: 1.35rem; }
.parroquies li { position: relative; padding-left: 16px; }
.parroquies li::before { content: ''; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--coure-clar); }
@media (min-width: 768px) { .parroquies { font-size: 1.7rem; gap: 10px 32px; } }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--crema-3); }
.faq-item:first-of-type { border-top: 1px solid var(--crema-3); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-2);
  padding: 18px 0; font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; width: 22px; height: 22px; flex: none; }
.faq-ico::before, .faq-ico::after { content: ''; position: absolute; background: var(--coure); left: 50%; top: 50%; transition: transform .3s var(--ease); }
.faq-ico::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-ico::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-ico::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
.faq-a p { margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: clip; color: var(--crema); background: var(--terra-950); padding-block: var(--s-7); text-align: center; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final::before { content: ''; position: absolute; inset: 0; background: rgba(15, 26, 27, .72); }
.cta-body { position: relative; }
.cta-final h2 { color: var(--crema); font-size: clamp(2rem, 2.6vw + 1rem, 3.4rem); max-width: 22ch; margin-inline: auto; }
.cta-final p { color: var(--crema-2); max-width: 56ch; margin-inline: auto; font-size: 1.1rem; }
.cta-final .btn-row { justify-content: center; margin-top: var(--s-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--terra-950); color: var(--crema-2); padding: var(--s-6) 0 calc(var(--s-4) + 72px); font-size: .96rem; }
.footer-top { display: grid; gap: var(--s-5); }
.footer-brand img { width: 88px; height: auto; margin-bottom: var(--s-2); }
.footer-tagline { font-family: var(--font-display); font-size: 1.3rem; color: var(--crema); }
.footer-claim { color: var(--pedra); max-width: 40ch; }
.footer-h { font-family: var(--font-display); font-size: 1.2rem; color: var(--crema); margin-bottom: var(--s-2); }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--crema-2); text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-zona { margin-top: var(--s-2); color: var(--pedra); font-size: .9rem; }
.footer-bottom {
  margin-top: var(--s-5); padding-top: var(--s-3); border-top: 1px solid rgba(241, 233, 220, .12);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; font-size: .86rem; color: var(--pedra);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a, .footer-made a { color: var(--crema-2); text-decoration: none; display: inline-block; padding: 8px 0; }
.footer-legal a:hover, .footer-made a:hover { text-decoration: underline; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer { padding-bottom: var(--s-5); } }

/* ---------- Sticky CTA mobil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(15, 26, 27, .94); backdrop-filter: blur(8px); border-top: 1px solid rgba(241, 233, 220, .12);
}
.sticky-cta .btn { min-height: 48px; padding-inline: 12px; font-size: .95rem; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

.back-to-top {
  position: fixed; right: 16px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(241, 233, 220, .3); background: var(--terra-900); color: var(--crema); display: grid; place-items: center;
  opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; cursor: pointer;
}
.back-to-top.show { opacity: 1; transform: none; }
.back-to-top:hover { background: var(--coure-fosc); }
.back-to-top { width: 48px; height: 48px; color: var(--coure-clar); }
.back-to-top > svg:last-child { color: var(--crema); }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (min-width: 1024px) { .back-to-top { bottom: 24px; right: 24px; } }

.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 85;
  background: var(--crema); color: var(--ink); border: 1px solid var(--crema-3); border-radius: var(--radius);
  padding: var(--s-2); box-shadow: 0 12px 40px rgba(15, 26, 27, .25); display: grid; gap: 12px; font-size: .92rem;
}
.cookie-banner p { margin: 0; }
.cookie-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cookie-actions .btn-ghost-light { color: var(--ink); border-color: var(--crema-3); }
@media (min-width: 768px) { .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 420px; } }

/* ---------- Pagines interiors: capcalera ---------- */
.page-hero {
  position: relative; min-height: 62svh; display: flex; align-items: flex-end; color: var(--crema);
  background: var(--terra-950); overflow: clip; padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-5);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 26, 27, .96) 0%, rgba(15, 26, 27, .6) 50%, rgba(15, 26, 27, .45) 100%), linear-gradient(to right, rgba(15, 26, 27, .55), rgba(15, 26, 27, 0) 65%); }
.page-hero-body { position: relative; }
.page-hero h1 { color: var(--crema); max-width: 18ch; font-variation-settings: 'opsz' 144, 'SOFT' 20; text-shadow: 0 2px 24px rgba(15, 26, 27, .5); }
.page-hero .lead { color: var(--crema-2); max-width: 60ch; }
.page-hero .kicker { color: var(--coure-clar); }
.page-hero .ico { color: var(--coure-clar); width: 40px; height: 40px; margin-bottom: var(--s-2); }
.page-hero.thanks { min-height: 70svh; }
.link-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-3); }
.breadcrumbs { font-size: .88rem; margin-bottom: var(--s-3); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { display: inline-block; padding: 8px 2px; }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; opacity: .5; }
.page-hero .breadcrumbs a { color: var(--crema-2); }
.page-hero .breadcrumbs li[aria-current] { color: var(--coure-clar); }
.legal .breadcrumbs a { color: var(--ink-3); }
@media (min-width: 768px) { .page-hero { min-height: 68svh; padding-bottom: var(--s-6); } }

/* ---------- Serveis: llista ---------- */
.service-list { display: grid; gap: var(--s-6); }
.service-row { display: grid; gap: var(--s-3); text-decoration: none; color: var(--ink); }
.service-row figure { overflow: clip; border-radius: var(--radius); }
.service-row img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform 1.1s var(--ease); }
.service-row:hover img { transform: scale(1.04); }
.service-row h2 { margin-bottom: var(--s-2); transition: color .3s; }
.service-row:hover h2 { color: var(--coure-fosc); }
.service-row p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--s-6); }
  .service-row.is-flip figure { order: 2; }
}

.steps { list-style: none; display: grid; gap: var(--s-4); counter-reset: step; }
.steps li { position: relative; padding-left: 60px; }
.step-n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.2rem; border: 1px solid var(--coure); color: var(--coure-fosc);
}
.steps.light .step-n { color: var(--coure-clar); border-color: var(--coure-clar); }
.steps.light h3 { color: var(--crema); }
.steps p { margin: 0; color: var(--ink-2); }
.steps.light p { color: var(--crema-2); }
@media (min-width: 900px) { .steps:not(.light) { grid-template-columns: repeat(4, 1fr); gap: var(--s-4); } .steps:not(.light) li { padding-left: 0; padding-top: 60px; } }

/* ---------- Pagines de servei ---------- */
.two-col { display: grid; gap: var(--s-4); }
.col-card { padding: var(--s-4); background: var(--blanc); border: 1px solid var(--crema-3); border-radius: var(--radius); }
.col-card .ico { width: 34px; height: 34px; margin-bottom: var(--s-2); }
.col-card h2 { font-size: 1.7rem; }
.col-card p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .two-col { grid-template-columns: 1fr 1fr; } }

.process-grid { display: grid; gap: var(--s-5); align-items: center; }
.process-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 900px) { .process-grid { grid-template-columns: .9fr 1.1fr; gap: var(--s-7); } }

.feature-grid { list-style: none; display: grid; gap: var(--s-4); }
.feature-grid li { padding-top: var(--s-3); border-top: 1px solid var(--crema-3); }
.feature-grid .ico { margin-bottom: 12px; }
.feature-grid h2 { font-size: 1.55rem; margin-bottom: 10px; }
.feature-grid p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .feature-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); } }

.split-grid { display: grid; gap: var(--s-5); align-items: center; }
.split-grid img { border-radius: var(--radius); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.split-grid .btn { margin-top: var(--s-2); }
@media (min-width: 900px) { .split-grid { grid-template-columns: 1fr 1fr; gap: var(--s-7); } }

/* ---------- Plans ---------- */
.plan-grid { display: grid; gap: var(--s-4); }
.plan-card { background: var(--blanc); border: 1px solid var(--crema-3); border-radius: var(--radius); overflow: clip; display: flex; flex-direction: column; }
.plan-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.plan-body { padding: var(--s-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.plan-body h2 { font-size: 1.7rem; margin: 0; }
.plan-body p { margin: 0; color: var(--ink-2); }
.plan-per { margin-top: auto !important; padding-top: var(--s-2); border-top: 1px solid var(--crema-3); font-size: .95rem; }
.plan-per span { color: var(--coure-fosc); font-weight: 600; }
@media (min-width: 768px) { .plan-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .plan-grid { grid-template-columns: repeat(4, 1fr); gap: var(--s-3); } }

/* ---------- Historia ---------- */
.story-grid { display: grid; gap: var(--s-5); align-items: start; }
.portrait-frame { position: relative; }
.portrait-frame img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: var(--radius); }
.portrait-frame::before { content: ''; position: absolute; inset: 16px -16px -16px 16px; border: 1.5px solid var(--coure); border-radius: var(--radius); z-index: -1; }
.portrait-note { position: absolute; left: 12px; bottom: 12px; background: rgba(15, 26, 27, .8); color: var(--crema-2); font-size: .8rem; padding: 6px 10px; border-radius: var(--radius); }
.story-lead { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; color: var(--ink); max-width: 30ch; }
.story-text p:not(.lead) { max-width: 62ch; color: var(--ink-2); }
@media (min-width: 900px) { .story-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-7); } .story-text { padding-top: var(--s-4); } }
.name-grid { display: grid; gap: var(--s-4); align-items: center; }
.name-grid img { width: min(260px, 60vw); height: auto; margin-inline: auto; opacity: .95; }
@media (min-width: 900px) { .name-grid { grid-template-columns: 320px 1fr; gap: var(--s-7); } .name-grid img { width: 100%; } }
.values { list-style: none; display: grid; gap: var(--s-3); }
.values li { padding: var(--s-3); border-left: 2px solid var(--coure); background: var(--blanc); }
.values h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.values p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Relacionats ---------- */
.related { background: var(--crema-2); }
.related-grid { display: grid; gap: var(--s-2); }
.related-card { position: relative; display: block; min-height: 180px; overflow: clip; border-radius: var(--radius); text-decoration: none; color: var(--crema); background: var(--terra-800); }
.related-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.related-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 26, 27, .88), rgba(15, 26, 27, .1)); }
.related-card span { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); z-index: 1; font-family: var(--font-display); font-size: 1.5rem; }
.related-card:hover img { transform: scale(1.05); }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, 1fr); } .related-card { min-height: 220px; } }

/* ---------- Galeria treballs ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.filter { min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--crema-3); background: transparent; color: var(--ink-2); cursor: pointer; font-weight: 600; }
.filter.is-active, .filter:hover { background: var(--terra-900); color: var(--crema); border-color: var(--terra-900); }
.work-grid { display: grid; gap: var(--s-5); }
.work[hidden] { display: none; }
.ba { position: relative; overflow: clip; border-radius: var(--radius); background: var(--terra-900); --pos: 50%; aspect-ratio: 4 / 3; }
.ba img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; }
.ba .ba-after { position: absolute; inset: 0; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before { width: 100%; height: 100%; object-fit: cover; }
.ba-label { position: absolute; top: 12px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; padding: 4px 10px; background: rgba(15, 26, 27, .75); color: var(--crema); border-radius: var(--radius); pointer-events: none; }
.ba-l1 { left: 12px; } .ba-l2 { right: 12px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--crema); pointer-events: none; transform: translateX(-1px); }
.ba-handle::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; border-radius: 50%; background: var(--coure); border: 2px solid var(--crema); transform: translate(-50%, -50%); }
.work-body { padding-top: var(--s-2); }
.work-body h2 { font-size: 1.6rem; }
.work-body dl { display: grid; gap: 10px; }
.work-body dt { font-weight: 600; font-size: .9rem; color: var(--coure-fosc); }
.work-body dd { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) { .work-grid { grid-template-columns: 1fr 1fr; } }
.empty { text-align: center; padding: var(--s-4) 0 var(--s-6); max-width: 620px; margin-inline: auto; }
.empty .ico { width: 44px; height: 44px; margin: 0 auto var(--s-2); }
.empty .lead { margin-inline: auto; }
.empty .btn { margin-top: var(--s-2); }

/* ---------- Contacte ---------- */
.contact-grid { display: grid; gap: var(--s-5); }
.contact-aside { display: grid; gap: var(--s-4); align-content: start; }
.aside-block { padding-top: var(--s-3); border-top: 1px solid var(--crema-3); }
.aside-block .ico { margin-bottom: 10px; }
.aside-block h2 { font-size: 1.4rem; margin-bottom: 8px; }
.aside-block p { margin: 0 0 6px; color: var(--ink-2); }
.aside-block a { font-weight: 600; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: var(--s-7); } }

.form { display: grid; gap: var(--s-3); background: var(--blanc); border: 1px solid var(--crema-3); border-radius: var(--radius); padding: var(--s-3); }
@media (min-width: 768px) { .form { padding: var(--s-4); } }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: var(--s-3); }
@media (min-width: 768px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--crema); border: 1px solid var(--crema-3); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--terra-700); outline-offset: 1px; border-color: var(--terra-700); }
.field [aria-invalid="true"] { border-color: #a23b2b !important; }
.field input[type="file"] { font-size: 15px; padding: 8px 0; }
.help { font-size: .86rem; color: var(--ink-3); }
.err { font-size: .88rem; color: #a23b2b; font-weight: 600; }
.pref { border: 0; padding: 0; margin: 0; }
.pref-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--crema-3); border-radius: 999px; cursor: pointer; font-weight: 600; background: var(--crema); }
.chip input:checked + span { background: var(--terra-900); color: var(--crema); border-color: var(--terra-900); }
.chip input:focus-visible + span { outline: 3px solid var(--coure); outline-offset: 2px; }
.check label { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: var(--coure); flex: none; }
.form .btn { justify-self: start; width: 100%; }
@media (min-width: 640px) { .form .btn { width: auto; } }
.form-note { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-3); margin: 0; }
.form-note .ico { width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: var(--radius); font-weight: 600; }
.alert-err { background: #f6e3df; color: #7a2a1d; border: 1px solid #e3b7ae; }
.next-grid { list-style: none; display: grid; gap: var(--s-2); }
.next-grid a { display: block; padding: var(--s-3); background: var(--blanc); border: 1px solid var(--crema-3); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .3s; }
.next-grid a:hover { border-color: var(--coure); }
.next-grid p { margin: 0; color: var(--ink-2); }
@media (min-width: 768px) { .next-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: var(--s-4); } }

/* ---------- Legal ---------- */
.legal { padding-top: calc(var(--header-h) + var(--s-5)); }
.legal h1 { font-size: clamp(2.2rem, 3vw + 1rem, 3.4rem); }
.legal h2 { font-size: 1.5rem; margin-top: var(--s-4); }
.legal p { max-width: 70ch; color: var(--ink-2); }
.legal-data { display: grid; gap: 10px; padding: var(--s-3); background: var(--blanc); border: 1px solid var(--crema-3); border-radius: var(--radius); margin-bottom: var(--s-3); }
.legal-data div { display: grid; gap: 4px; }
.legal-data dt { font-weight: 600; }
.legal-data dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (min-width: 640px) { .legal-data div { grid-template-columns: 160px 1fr; gap: 12px; } }
.table-wrap { overflow-x: auto; }
.credits { width: 100%; border-collapse: collapse; font-size: .92rem; }
.credits th, .credits td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--crema-3); vertical-align: top; }
.credits th { font-weight: 600; }

/* ---------- Titulars: paraules que pugen ---------- */
.h-reveal .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .08em 0 .16em; margin: -.08em 0 -.16em; }
.h-reveal .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.h-reveal.is-in .w > span { transform: none; }
@media (prefers-reduced-motion: reduce) { .h-reveal .w > span { transform: none; transition: none; } }
.wide-photo { margin-bottom: var(--s-5); }
.wide-photo img { aspect-ratio: 21 / 9; object-fit: cover; width: 100%; border-radius: var(--radius); }
.work-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }

/* ---------- Reveal (nomes on aporta) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ==========================================================================
   Visual upgrade 2026 — direccio editorial premium, conversio i responsive
   ========================================================================== */

:root {
  --terra-950: #140e0a;
  --terra-900: #12201f;
  --terra-800: #302117;
  --terra-700: #49301f;
  --coure: #b56d32;
  --coure-clar: #dda66c;
  --coure-fosc: #8c4f20;
  --crema: #f4ecdf;
  --crema-2: #e9decd;
  --crema-3: #d5c7b2;
  --blanc: #fcf9f4;
  --ink: #18110d;
  --ink-2: #493b31;
  --ink-3: #716359;
  --container: 1280px;
  --gutter: 24px;
  --radius: 10px;
  --radius-lg: 22px;
  --shadow-soft: 0 24px 70px rgba(37, 24, 15, .12);
  --header-h: 78px;
}

::selection { background: var(--coure); color: #fff; }
body { background: #f3ecdf; }
h1, h2 {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.04;
  text-wrap: balance;
}
.panel-name, .plan-names strong, .related-card span {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -.035em;
}
p { text-wrap: pretty; }
.section, .section-alt, .section-dark { position: relative; }
@media (min-width: 768px) {
  :root { --gutter: 40px; }
  .section, .section-alt, .section-dark { padding-block: clamp(88px, 8vw, 128px); }
}

.btn {
  border-radius: 999px; padding-inline: 27px; letter-spacing: -.01em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coure); border-color: var(--coure); box-shadow: 0 10px 32px rgba(140, 79, 32, .24); }
.btn-primary:hover { background: #9c5925; border-color: #9c5925; box-shadow: 0 14px 38px rgba(140, 79, 32, .34); }
.btn-ghost-light { border-color: rgba(244, 236, 223, .42); backdrop-filter: blur(8px); }
.link-arrow { gap: 12px; }

/* Capcalera més neta i present. */
.site-header { background: rgba(11, 19, 20, .94); border-bottom: 1px solid rgba(244, 236, 223, .08); }
.site-header.is-over-hero { background: linear-gradient(to bottom, rgba(11, 19, 20, .76), rgba(11, 19, 20, 0)); border-color: transparent; }
.site-header.is-over-hero.is-scrolled { background: rgba(11, 19, 20, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.brand-mark { filter: drop-shadow(0 7px 18px rgba(0, 0, 0, .28)); }
.brand-name { font-weight: 500; letter-spacing: -.015em; }
.nav-cta { padding-inline: 20px; }
@media (min-width: 1024px) {
  .main-nav > ul { gap: 2px; }
  .main-nav a { font-size: .92rem; padding-inline: 13px; }
  .mega-inner { border-radius: 16px; background: rgba(11, 19, 20, .98); backdrop-filter: blur(18px); }
}

/* Hero: una sola promesa, una sola imatge, cap distraccio automatica. */
.hero-v2 { min-height: max(780px, 100svh); align-items: flex-end; }
.hero-v2-media { position: absolute; inset: -5% 0 0; z-index: -3; overflow: hidden; }
.hero-v2-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 61% 52%;
  filter: brightness(1.12) saturate(.92); transform: scale(1.035); animation: hero-breathe 14s var(--ease) both;
}
@keyframes hero-breathe { from { transform: scale(1.075); } to { transform: scale(1.015); } }
.hero-v2 .hero-veil {
  background:
    linear-gradient(90deg, rgba(8, 14, 15, .88) 0%, rgba(11, 19, 20, .7) 35%, rgba(11, 19, 20, .2) 66%, rgba(11, 19, 20, .16) 100%),
    linear-gradient(0deg, rgba(11, 19, 20, .98) 0%, rgba(11, 19, 20, .44) 30%, rgba(11, 19, 20, .12) 72%, rgba(11, 19, 20, .35) 100%);
}
.hero-v2 .hero-body { width: 100%; padding-top: 120px; padding-bottom: 205px; }
.hero-v2 .hero-h1 { max-width: 12ch; font-size: clamp(3rem, 4.8vw, 5.15rem); line-height: .96; margin-bottom: 26px; }
.hero-v2 .hero-h1 .line:nth-child(2) { color: var(--coure-clar); font-style: normal; font-weight: 600; }
.hero-v2 .hero-sub { max-width: 52ch; font-size: clamp(1.05rem, 1.3vw, 1.22rem); line-height: 1.55; color: rgba(244, 236, 223, .88); }
.hero-v2 .hero-actions { margin-top: 28px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: rgba(244, 236, 223, .76); font-size: .86rem; opacity: 0; animation: fade 1s var(--ease) 1.35s forwards; }
.hero-note .ico { width: 18px; height: 18px; color: var(--coure-clar); flex: none; }
.hero-proof-wrap { position: absolute; left: 50%; bottom: 36px; z-index: 4; transform: translateX(-50%); }
.hero-proof {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 760px; margin-right: auto; padding: 18px 22px;
  border: 1px solid rgba(244, 236, 223, .2); border-radius: 18px;
  background: rgba(11, 19, 20, .46); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .2);
}
.hero-proof li { display: flex; align-items: center; gap: 13px; min-width: 0; padding: 2px 20px; }
.hero-proof li + li { border-left: 1px solid rgba(244, 236, 223, .18); }
.hero-proof b { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; font-weight: 400; color: var(--coure-clar); }
.hero-proof span { display: flex; flex-direction: column; min-width: 0; color: var(--crema); font-size: .83rem; line-height: 1.25; }
.hero-proof small { color: rgba(244, 236, 223, .62); font-size: .72rem; }
.hero-v2 .ridge-back { height: 12vh; opacity: .38; }
.hero-v2 .ridge-front { height: 7vh; }
.hero-v2 .hero-scroll { bottom: 34px; right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); }

/* Manifest de servei. */
.signature-intro { overflow: hidden; background: var(--crema); }
.signature-grid { display: grid; gap: 34px; }
.section-index { margin: 0; font-family: var(--font-display); font-size: 4.6rem; line-height: .8; color: rgba(140, 79, 32, .24); }
.signature-copy h2 { max-width: 16ch; font-size: clamp(2.4rem, 4.3vw, 4.5rem); }
.signature-copy .lead { max-width: 54ch; }
.outcome-list { list-style: none; display: grid; }
.outcome-list li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--crema-3); }
.outcome-list li:last-child { border-bottom: 1px solid var(--crema-3); }
.outcome-list > li > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(140, 79, 32, .34); border-radius: 50%; }
.outcome-list .ico { width: 20px; height: 20px; color: var(--coure-fosc); }
.outcome-list h3 { margin-bottom: 5px; font-size: 1.05rem; }
.outcome-list p { margin: 0; color: var(--ink-3); font-size: .94rem; line-height: 1.5; }
@media (min-width: 960px) {
  .signature-grid { grid-template-columns: 90px minmax(0, 1.12fr) minmax(320px, .88fr); gap: clamp(36px, 5vw, 76px); align-items: start; }
  .section-index { position: sticky; top: calc(var(--header-h) + 34px); }
}

/* Serveis i feina real: fotografia protagonista, jerarquia més editorial. */
.services-block { background: #12201f; padding-bottom: clamp(64px, 6vw, 88px); }
.services-head { max-width: 940px; display: grid; gap: 18px; }
.services-head h2 { max-width: 14ch; font-size: clamp(2.6rem, 4.5vw, 4.8rem); }
.services-head .lead { max-width: 58ch; }
.mosaic { width: min(1600px, calc(100% - 32px)); margin-inline: auto; gap: 10px; }
.panel { border-radius: var(--radius-lg); min-height: 380px; }
.panel::after { background: linear-gradient(to top, rgba(8, 14, 15, .94), rgba(11, 19, 20, .28) 64%, rgba(11, 19, 20, .04)); }
.panel-body { padding: 28px; }
.panel-name { font-size: clamp(1.9rem, 2.6vw, 2.8rem); }
.panel-more { border-color: rgba(244, 236, 223, .65); }
@media (min-width: 900px) {
  .mosaic { height: min(65vh, 620px); }
  .panel { border-radius: 18px; }
  .panel.is-active, .panel:hover, .panel:focus-visible { flex: 2.65 1 0; }
}
.ticker { padding-block: 15px; background: #dfd0bb; border-color: rgba(140, 79, 32, .2); }
.ticker span { font-size: 1.2rem; }
.feina { padding-block: clamp(74px, 7vw, 100px); background: var(--blanc); }
.feina-head h2 { max-width: 15ch; font-size: clamp(2.4rem, 4vw, 4.1rem); }
.feina-ba .ba, .feina-card { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* Bloc de segona residencia / servei recurrent. */
.sanctuary { display: grid; background: var(--terra-950); color: var(--crema); overflow: hidden; }
.sanctuary-media { min-height: 420px; overflow: hidden; }
.sanctuary-media img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.sanctuary-copy { padding: 56px var(--gutter) 64px; align-self: center; }
.sanctuary-copy h2 { color: var(--crema); max-width: 13ch; font-size: clamp(2.5rem, 4.6vw, 4.9rem); }
.sanctuary-copy > .lead { color: var(--crema-2); max-width: 50ch; }
.peace-list { list-style: none; margin: 32px 0; }
.peace-list li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid rgba(244, 236, 223, .14); }
.peace-list li:last-child { border-bottom: 1px solid rgba(244, 236, 223, .14); }
.peace-list > li > span { padding-top: 3px; color: var(--coure-clar); font-family: var(--font-display); font-size: .9rem; }
.peace-list h3 { color: var(--crema); font-size: 1.05rem; margin-bottom: 4px; }
.peace-list p { color: rgba(233, 222, 205, .7); font-size: .9rem; line-height: 1.5; margin: 0; }
@media (min-width: 960px) {
  .sanctuary { grid-template-columns: minmax(0, 1.12fr) minmax(460px, .88fr); min-height: 700px; }
  .sanctuary-media { min-height: 700px; }
  .sanctuary-copy { width: min(100%, 660px); padding: 70px clamp(48px, 6vw, 92px); }
}

/* Procés: lectura editorial, clara i sense imatges de farciment. */
.process-v3 {
  overflow: hidden;
  padding-block: clamp(72px, 6vw, 96px);
  background:
    radial-gradient(circle at 92% 10%, rgba(181, 109, 50, .15), transparent 28%),
    #dfd0bb;
  border-block: 1px solid rgba(140, 79, 32, .14);
}
.process-v3-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, .7fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 64px);
}
.process-v3-head h2 {
  max-width: 10ch;
  margin: 10px 0 0;
  font-size: clamp(2.75rem, 4.6vw, 4.8rem);
}
.process-v3-head .lead {
  max-width: 53ch;
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
}
.process-v3-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.process-v3-steps li {
  display: flex;
  min-height: 280px;
  padding: 24px;
  flex-direction: column;
  color: var(--ink);
  background: rgba(252, 249, 244, .9);
  border: 1px solid rgba(45, 38, 30, .12);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(52, 41, 29, .045);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.process-v3-steps li:hover {
  color: var(--ink);
  border-color: rgba(181, 109, 50, .55);
  box-shadow: 0 20px 54px rgba(52, 41, 29, .11);
  transform: translateY(-6px);
}
.process-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: auto;
}
.process-icon {
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--crema);
  background: var(--terra-900);
  border-radius: 50%;
  place-items: center;
}
.process-icon .ico { width: 21px; height: 21px; }
.process-number {
  color: var(--coure-fosc);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
}
.process-v3-steps h3 {
  max-width: 15ch;
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.65vw, 1.48rem);
  line-height: 1.12;
}
.process-v3-steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: .94rem;
  line-height: 1.55;
}
.process-v3-foot {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding: clamp(24px, 3vw, 38px);
  color: var(--crema);
  background: var(--terra-900);
  border-radius: var(--radius-lg);
}
.process-v3-foot p {
  display: flex;
  gap: 16px;
  align-items: center;
  max-width: 650px;
  margin: 0;
  color: var(--crema-2);
  line-height: 1.5;
}
.process-v3-foot > p > .ico { flex: 0 0 auto; color: var(--coure-clar); }
.process-v3-foot strong { display: block; margin-bottom: 2px; color: #fff; font-size: 1.05rem; }

/* Contrast segur en tots els estats interactius. */
.brand:hover, .brand:focus-visible,
.panel:hover, .panel:focus-visible,
.related-card:hover, .related-card:focus-visible { color: var(--crema); }
.mobile-menu a:hover, .mobile-menu a:focus-visible { color: var(--coure-clar); }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; }
.back-to-top:hover, .back-to-top:focus-visible { color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { color: #fff; }
.btn-dark:hover, .btn-dark:focus-visible { color: var(--crema); }
.link-arrow:hover, .link-arrow:focus-visible { color: var(--coure-fosc); }
.section-dark .link-arrow:hover, .section-dark .link-arrow:focus-visible { color: var(--coure-clar); }

/* Resta de la home i interiors. */
.process-sticky { background: #12201f; }
.process-sticky > .container:first-child h2 { max-width: 14ch; font-size: clamp(2.5rem, 4vw, 4.2rem); }
.ps-frame { border-radius: var(--radius-lg); box-shadow: 0 28px 80px rgba(0, 0, 0, .28); }
.trust-dark { background: #160f0b; }
.trust-dark .trust-text h2 { max-width: 15ch; font-size: clamp(2.4rem, 4vw, 4.1rem); }
.pillar { padding: 28px 0 0; }
.plans-teaser { padding-block: clamp(76px, 7vw, 104px); background: #f1e7d8; }
.plans-text h2 { max-width: 14ch; font-size: clamp(2.4rem, 4vw, 4.1rem); }
.plans-media { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.plan-names a { padding-block: 22px; }
.faq { padding-block: clamp(70px, 6vw, 92px); background: var(--blanc); border-top: 1px solid rgba(140, 79, 32, .12); }
.faq h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.faq-item summary { padding-block: 23px; }
.cta-final {
  min-height: 540px;
  display: grid;
  isolation: isolate;
  place-items: center;
  text-align: left;
}
.cta-media { z-index: 0; }
.cta-media img { object-position: center 48%; }
.cta-final::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(11, 19, 20, .94) 0%, rgba(11, 19, 20, .76) 48%, rgba(11, 19, 20, .42) 100%),
    linear-gradient(0deg, rgba(11, 19, 20, .78), rgba(11, 19, 20, .28));
}
.cta-body { z-index: 2; }
.cta-copy {
  width: min(100%, 710px);
  padding: clamp(32px, 5vw, 60px);
  background: rgba(11, 19, 20, .76);
  border: 1px solid rgba(244, 236, 223, .22);
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .34);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cta-final h2 {
  max-width: 14ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.65rem, 4.4vw, 4.6rem);
  line-height: .98;
  text-shadow: 0 3px 28px rgba(0, 0, 0, .5);
}
.cta-final p {
  max-width: 48ch;
  margin: 0;
  color: #f4ecdf;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.6;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .65);
}
.cta-final .btn-row { justify-content: flex-start; margin-top: 30px; }

.page-hero { min-height: 72svh; border-radius: 0 0 28px 28px; isolation: isolate; }
.page-hero-media { z-index: 0; }
.page-hero-media img { object-position: center 48%; transform: scale(1.01); }
.page-hero::before { z-index: 1; background: linear-gradient(to top, rgba(8, 14, 15, .96), rgba(11, 19, 20, .58) 58%, rgba(11, 19, 20, .46)), linear-gradient(to right, rgba(8, 14, 15, .7), transparent 68%); }
.page-hero-body { z-index: 2; }
.page-hero h1 { font-size: clamp(2.7rem, 4.5vw, 4.75rem); line-height: 1; max-width: 17ch; }
.service-row figure, .service-row img, .col-card, .process-media img, .split-grid img, .plan-card, .portrait-frame img, .related-card, .values li, .form { border-radius: var(--radius-lg); }
.service-row figure, .plan-card, .form { box-shadow: var(--shadow-soft); }
.col-card, .plan-card, .values li, .form { border-color: rgba(140, 79, 32, .16); }
.form { padding: clamp(24px, 4vw, 48px); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea { background: #f7f0e5; border-radius: 10px; border-color: #d4c5b0; }
.chip span { background: #f7f0e5; }
.sticky-cta { background: rgba(11, 19, 20, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.site-footer { background: #100b08; }
.cookie-banner { border-radius: 16px; box-shadow: 0 18px 56px rgba(11, 19, 20, .3); }

@media (max-width: 980px) {
  .process-v3-head { grid-template-columns: 1fr; gap: 20px; }
  .process-v3-head h2 { max-width: 14ch; }
  .process-v3-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Navegacio i hero en smartphone. */
@media (max-width: 767px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .site-header.is-over-hero { background: linear-gradient(to bottom, rgba(11, 19, 20, .86), rgba(11, 19, 20, 0)); }
  .brand-mark { width: 40px; height: auto; }
  .brand-name { font-size: 1.02rem; }
  .mobile-menu { padding-top: calc(var(--header-h) + 28px); background: radial-gradient(circle at 85% 12%, rgba(181, 109, 50, .17), transparent 34%), var(--terra-950); }
  .mm-list > li > a { font-size: clamp(1.8rem, 8vw, 2.65rem); padding-block: 8px; }
  .mm-list a[aria-current="page"] { color: var(--coure-clar); }
  .mm-sub { margin-top: 4px; }

  .hero-v2 { min-height: max(820px, 100svh); }
  .hero-v2-media { inset: 0; }
  .hero-v2-media img { object-position: 66% 50%; }
  .hero-v2 .hero-veil {
    background: linear-gradient(to top, rgba(8, 14, 15, .99) 0%, rgba(11, 19, 20, .78) 47%, rgba(11, 19, 20, .2) 78%, rgba(11, 19, 20, .5) 100%);
  }
  .hero-v2 .hero-body { padding-top: 140px; padding-bottom: 225px; }
  .hero-v2 .hero-h1 { font-size: clamp(2.35rem, 10vw, 3rem); line-height: .98; max-width: 12ch; margin-bottom: 20px; }
  .hero-v2 .hero-sub { max-width: 34ch; font-size: 1rem; line-height: 1.5; }
  .hero-v2 .hero-actions { display: grid; gap: 10px; max-width: 360px; margin-top: 22px; }
  .hero-v2 .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-note { align-items: flex-start; max-width: 34ch; line-height: 1.4; }
  .hero-proof-wrap { bottom: 28px; }
  .hero-proof { width: 100%; max-width: none; padding: 14px 5px; border-radius: 14px; }
  .hero-proof li { display: block; padding: 2px 8px; text-align: center; }
  .hero-proof b { display: block; font-size: 1.65rem; margin-bottom: 4px; }
  .hero-proof span { font-size: .67rem; }
  .hero-proof small { font-size: .62rem; }
  .hero-v2 .hero-scroll, .hero-v2 .hero-ridge { display: none; }
  .cookie-banner { padding: 14px; gap: 10px; }
  .cookie-banner p { font-size: .84rem; line-height: 1.45; }
  .cookie-actions .btn { min-height: 42px; padding: 9px 15px; font-size: .82rem; }

  .signature-intro { padding-block: 72px; }
  .signature-grid { gap: 24px; }
  .section-index { font-size: 3.3rem; }
  .signature-copy h2 { font-size: clamp(2.25rem, 10vw, 3.2rem); }
  .outcome-list li { grid-template-columns: 40px 1fr; gap: 12px; padding-block: 18px; }
  .outcome-list > li > span { width: 36px; height: 36px; }
  .mosaic {
    display: flex;
    width: 100%;
    padding: 0 var(--gutter) 10px;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .mosaic::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 min(82vw, 340px); min-height: 370px; border-radius: 16px; scroll-snap-align: center; }
  .panel-body { padding: 22px; }
  .panel-text { max-width: 31ch; }
  .feina-card { flex-basis: 86%; }
  .sanctuary-media { min-height: 58vw; }
  .sanctuary-copy { padding-inline: var(--gutter); }
  .sanctuary-copy h2 { font-size: clamp(2.35rem, 10vw, 3.35rem); }
  .ps-media { position: relative; top: auto; }
  .ps-step { opacity: 1; }
  .page-hero { min-height: 72svh; border-radius: 0 0 20px 20px; }
  .page-hero h1 { font-size: clamp(2.15rem, 8.6vw, 2.9rem); max-width: 18ch; }
  .page-hero .lead { font-size: 1rem; line-height: 1.5; }
  .cta-final { min-height: 520px; padding-block: 58px; }
  .cta-final::before {
    background:
      linear-gradient(0deg, rgba(11, 19, 20, .94), rgba(11, 19, 20, .58)),
      linear-gradient(90deg, rgba(11, 19, 20, .88), rgba(11, 19, 20, .5));
  }
  .cta-media img { object-position: 58% center; }
  .cta-copy { padding: 28px 24px; border-radius: 18px; background: rgba(11, 19, 20, .82); }
  .cta-final h2 { max-width: 13ch; font-size: clamp(2.2rem, 10vw, 3rem); }
  .cta-final p { font-size: 1rem; line-height: 1.55; }
  .cta-final .btn-row { display: grid; gap: 10px; margin-top: 24px; }
  .cta-final .btn { width: 100%; }
  .process-v3-head h2 { font-size: clamp(2.35rem, 11vw, 3.25rem); }
  .process-v3-steps { grid-template-columns: 1fr; gap: 10px; }
  .process-v3-steps li {
    display: grid;
    min-height: 0;
    padding: 20px;
    grid-template-columns: 52px minmax(0, 1fr);
    column-gap: 16px;
  }
  .process-card-top { grid-row: 1 / span 2; flex-direction: column; margin: 0; }
  .process-icon { width: 44px; height: 44px; }
  .process-v3-steps h3 { margin: 1px 0 7px; }
  .process-v3-steps p { grid-column: 2; }
  .process-v3-foot { align-items: stretch; flex-direction: column; }
  .process-v3-foot .btn { width: 100%; }
}

@media (max-width: 389px) {
  .lang-switch { min-width: 40px; }
  .nav-toggle { width: 42px; }
  .hero-v2 .hero-body { padding-bottom: 215px; }
  .hero-v2 .hero-h1 { font-size: 2.28rem; }
  .hero-proof li { padding-inline: 5px; }
  .hero-proof span { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-v2-media img, .hero-note { animation: none; transform: none; opacity: 1; }
  .btn:hover { transform: none; }
}

/* ===========================================================================
   Direccio 02 — Cinematic Andorra
   ========================================================================== */
:root {
  --terra-950: #070707;
  --terra-900: #0f1a1b;
  --terra-800: #171411;
  --terra-700: #3a2415;
  --coure: #d88a37;
  --coure-clar: #efa551;
  --coure-fosc: #8c4f20;
  --crema: #f0e7da;
  --crema-2: #d8d0c6;
  --crema-3: #bcb2a5;
  --blanc: #f6f2ec;
  --ink: #0d1718;
  --ink-2: #393633;
  --ink-3: #69645f;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 0px;
  --radius-lg: 2px;
  --shadow-soft: 0 30px 90px rgba(0, 0, 0, .18);
}

body { font-family: var(--font-body); background: #0c1516; }
h1, h2 {
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
h3, h4 { letter-spacing: -.025em; }
.kicker {
  color: var(--coure-fosc);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker::before { width: 42px; background: currentColor; }
.lead { line-height: 1.65; }

.btn {
  border-radius: 0;
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.btn-primary { color: #0b1415; background: var(--coure); border-color: var(--coure); box-shadow: 0 18px 45px rgba(216, 138, 55, .18); }
.btn-primary:hover, .btn-primary:focus-visible { color: #0a1314; background: #eea14e; border-color: #eea14e; }
.btn-ghost-light { border-color: rgba(255,255,255,.42); }
.link-arrow { font-size: .74rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }

/* Navegacio mineral, precisa i gairebe invisible sobre les imatges. */
.site-header, .site-header.is-over-hero, .site-header.is-over-hero.is-scrolled {
  background: rgba(9, 15, 16, .94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: none;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header.is-over-hero:not(.is-scrolled) { background: linear-gradient(to bottom, rgba(7, 13, 14,.82), rgba(7, 13, 14,.18)); }
.brand-name { font-size: 1.02rem; font-weight: 500; letter-spacing: -.035em; }
.main-nav a { font-size: .72rem; letter-spacing: .085em; text-transform: uppercase; }
.nav-cta { color: #0b1415; }
.lang-switch { border-radius: 0; font-size: .7rem; letter-spacing: .08em; }
.mega-inner { border-radius: 0; border-color: rgba(216,138,55,.35); }
.mobile-menu { background: radial-gradient(circle at 85% 14%, rgba(216,138,55,.13), transparent 30%), #0a1314; }
.mm-list > li > a { font-weight: 500; letter-spacing: -.055em; text-transform: uppercase; }

/* Hero principal cinematografic. */
.hero-v2 { min-height: max(820px, 100svh); background: #081011; }
.hero-v2-media { inset: 0; }
.hero-v2-media img {
  object-position: var(--pos, 52% 50%);
  filter: saturate(.94) contrast(1.02) brightness(1.06);
  animation-duration: 16s;
}
.hero-v2 .hero-veil {
  background:
    linear-gradient(90deg, rgba(6, 12, 13,.5) 0%, rgba(6, 12, 13,.25) 42%, rgba(6, 12, 13,0) 70%),
    linear-gradient(0deg, rgba(6, 12, 13,.5) 0%, rgba(6, 12, 13,.08) 38%, rgba(6, 12, 13,0) 68%);
}
.hero-v2 .hero-ridge { display: none; }
.hero-v2 .hero-body { padding-top: 170px; padding-bottom: 210px; }
.hero-v2 .hero-h1 {
  max-width: 18ch;
  margin-bottom: 28px;
  font-size: clamp(3.7rem, 6vw, 6.45rem);
  font-weight: 500;
  line-height: .83;
  letter-spacing: -.075em;
  text-transform: uppercase;
  text-shadow: 0 3px 28px rgba(0,0,0,.48);
}
.hero-v2 .hero-h1 .line:nth-child(2) { color: var(--coure); font-weight: 500; }
.hero-v2 .hero-sub { max-width: 50ch; color: rgba(240,231,218,.76); font-size: 1.04rem; }
.hero-note { color: rgba(240,231,218,.62); }
.hero-proof-wrap { bottom: 30px; }
.hero-proof {
  max-width: 760px;
  margin: 0;
  padding: 17px 20px;
  border-radius: 0;
  border-color: rgba(255,255,255,.17);
  background: rgba(7, 13, 14,.58);
}
.hero-proof b { font-family: var(--font-body); color: var(--coure); font-size: 1.75rem; font-weight: 500; }
.hero-proof span { text-transform: uppercase; letter-spacing: .04em; }
.hero-scroll { border-radius: 0; }

/* Serveis com una cartellera de fotogrames. */
.services-block { padding-top: clamp(74px, 7vw, 108px); background: #0f1a1b; border-top: 1px solid rgba(255,255,255,.1); }
.services-head { grid-template-columns: minmax(0,1.3fr) minmax(280px,.7fr); gap: 50px; align-items: end; max-width: var(--container); }
.services-head h2 { max-width: 18ch; color: #f0ece6; font-size: clamp(3.1rem, 4.9vw, 5.4rem); }
.services-head .lead { margin: 0; color: #8f8982; }
.mosaic { gap: 1px; width: min(1600px, calc(100% - var(--gutter) * 2)); border: 1px solid #243638; }
.panel { border-radius: 0; border-right: 1px solid #243638; background: #0b1415; }
.panel:last-child { border-right: 0; }
.panel img { filter: saturate(.38) contrast(1.08) brightness(.72); }
.panel.is-active img, .panel:hover img, .panel:focus-visible img { filter: saturate(.72) contrast(1.06) brightness(.78); }
.panel::after { background: linear-gradient(to top, rgba(6, 12, 13,.97), rgba(6, 12, 13,.16) 72%); }
.panel-body { padding: 26px; }
.panel-index { color: var(--coure); font-size: .68rem; font-weight: 600; letter-spacing: .16em; }
.panel-name { color: #f1ece5; font-size: clamp(1.55rem, 2.3vw, 2.5rem); font-weight: 500; letter-spacing: -.055em; text-transform: uppercase; }
.panel-text { color: #aaa39a; }
.panel-more { border-radius: 0; border-color: #8b837a; }
.services-foot { margin-top: 30px; }
.ticker { color: #0d1718; background: var(--coure); border: 0; }
.ticker span { color: #0d1718; font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.ticker i { width: 3px; height: 3px; background: #0d1718; }

/* Proces fosc: quatre decisions, cap soroll. */
.process-v3 { color: #f2ede7; background: #15120f; border-color: #342820; }
.process-v3-head h2 { max-width: 18ch; color: #f2ede7; }
.process-v3-head .lead { color: #9d958c; }
.process-v3-steps { gap: 0; border-top: 1px solid #2b3f41; border-left: 1px solid #2b3f41; }
.process-v3-steps li {
  min-height: 270px;
  color: #f2ede7;
  background: #132022;
  border: 0;
  border-right: 1px solid #2b3f41;
  border-bottom: 1px solid #2b3f41;
  border-radius: 0;
  box-shadow: none;
}
.process-v3-steps li:hover { color: #f2ede7; background: #19130e; border-color: #2b3f41; box-shadow: none; }
.process-icon { color: #0c1516; background: var(--coure); border-radius: 0; }
.process-number { color: var(--coure); }
.process-v3-steps h3 { color: #f2ede7; text-transform: uppercase; }
.process-v3-steps p { color: #938c84; }
.process-v3-foot { margin-top: 0; color: #0d1718; background: var(--coure); border-radius: 0; }
.process-v3-foot p, .process-v3-foot strong { color: #0d1718; }
.process-v3-foot > p > .ico { color: #0d1718; }
.process-v3-foot .btn { color: #f3eee8; background: #0d1718; border-color: #0d1718; box-shadow: none; }
.process-v3-foot .btn:hover { color: #fff; background: #25201b; }

/* Prova real: una pausa clara entre blocs foscos. */
.feina { background: #f2ece3; }
.feina-head h2 { max-width: 18ch; color: #10100f; font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
.feina-head .lead { color: #514d48; }
.feina-ba .ba, .feina-card { border-radius: 0; box-shadow: 0 24px 70px rgba(15,12,9,.18); }
.ba, .ba-label, .ba-handle::after { border-radius: 0; }

/* Propietat tranquil·la amb tensio de llum i ombra. */
.sanctuary { background: #0a1314; border-block: 1px solid #24211e; }
.sanctuary-media img { object-position: 62% center; filter: saturate(.56) contrast(1.08) brightness(.7); }
.sanctuary-copy h2 { max-width: 17ch; font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
.peace-list li { border-color: #302c28; }
.peace-list > li > span { color: var(--coure); font-family: var(--font-body); }
.peace-list p { color: #8e8780; }

/* Plans en negre: la seleccio funciona com una llista de titols. */
.plans-teaser { color: #ece6de; background: #132022; border-top: 1px solid #2e2924; }
.plans-text h2 { max-width: 18ch; color: #f2ede7; font-size: clamp(2.8rem, 4.5vw, 4.8rem); }
.plans-text > p:not(.kicker) { color: #969088; }
.plans-media { border-radius: 0; box-shadow: none; filter: saturate(.5) contrast(1.08); }
.plan-names li, .plan-names li:first-child { border-color: #39342f; }
.plan-names a { color: #f0ebe4; }
.plan-names a:hover, .plan-names a.is-active { color: var(--coure); }
.plan-names span { color: #817b74; }
.plans-teaser .link-arrow { color: var(--coure); }

.faq { background: #eee6db; border-color: #c8b8a4; }
.faq h2 { max-width: 18ch; color: #0d1718; font-size: clamp(2.8rem, 4.4vw, 4.7rem); }
.faq-item, .faq-item:first-of-type { border-color: #c4b6a5; }
.faq-item summary { font-size: 1rem; text-transform: uppercase; letter-spacing: -.015em; }
.faq-a { color: #4e4944; }

.cta-final { min-height: 590px; background: #081011; }
.cta-final::before {
  background:
    linear-gradient(90deg, rgba(6, 12, 13,.9), rgba(6, 12, 13,.64) 52%, rgba(6, 12, 13,.5)),
    linear-gradient(0deg, rgba(6, 12, 13,.9), transparent 65%);
}
.cta-media img { filter: saturate(.45) contrast(1.1) brightness(.68); }
.cta-copy { padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; }
.cta-final h2 { max-width: 13ch; font-size: clamp(3.25rem, 6vw, 6.2rem); }
.cta-final p { color: #aaa39b; }

/* Sistema cinematic aplicat a totes les pagines interiors. */
.page-hero { min-height: 78svh; border-radius: 0; background: #081011; }
.page-hero-media img { filter: saturate(.58) contrast(1.1) brightness(.78); }
.page-hero::before { background: linear-gradient(to top, rgba(6, 12, 13,.92), rgba(6, 12, 13,.3) 62%, rgba(6, 12, 13,.38)), linear-gradient(to right, rgba(6, 12, 13,.78), rgba(6, 12, 13,.08) 76%); }
.page-hero h1 { max-width: 22ch; color: #f1ece6; font-size: clamp(3.2rem, 5.2vw, 5.6rem); }
.page-hero .lead { color: #b1aaa2; }
.breadcrumbs { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }

.section:not(.process-v3):not(.feina):not(.plans-teaser):not(.faq) { background: #f4eee6; }
.section-alt { background: #e7dccd; }
.section-dark { background: #0f1a1b; }
.service-row figure, .service-row img, .col-card, .process-media img, .split-grid img,
.plan-card, .portrait-frame img, .related-card, .values li, .form { border-radius: 0; }
.service-row { border-top: 1px solid #c3b8aa; padding-top: 32px; }
.service-row:last-child { border-bottom: 1px solid #c3b8aa; padding-bottom: 32px; }
.service-row img { filter: saturate(.68) contrast(1.04); }
.service-row h2, .col-card h2, .feature-grid h2 { text-transform: uppercase; }
.col-card, .plan-card, .values li, .form { background: #f8f4ee; border-color: #bfb3a5; }
.plan-card { box-shadow: none; border-top: 3px solid #14110e; }
.plan-card.featured { border-color: var(--coure-fosc); }
.values li { border-left: 3px solid var(--coure-fosc); }
.related-card { border: 1px solid #282421; }
.related-card img { filter: saturate(.5) brightness(.72); }
.related-card span { text-transform: uppercase; }
.filter { border-radius: 0; text-transform: uppercase; letter-spacing: .05em; }
.filter.is-active, .filter:hover { color: #0c1516; background: var(--coure); border-color: var(--coure); }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .field select, .field textarea,
.chip span { border-radius: 0; background: #fff; }
.form .btn { min-width: 210px; }
.zona::before { background: linear-gradient(to right, rgba(6, 12, 13,.94), rgba(6, 12, 13,.58) 65%, rgba(6, 12, 13,.4)); }

.site-footer { background: #081011; border-top: 1px solid #292521; }
.footer-tagline, .footer-h { font-family: var(--font-body); text-transform: uppercase; letter-spacing: -.02em; }
.cookie-banner { border-radius: 0; border-color: #9d8d79; }
.sticky-cta { background: rgba(6,6,6,.97); border-color: #302a25; }
.back-to-top { border-radius: 0; }

@media (min-width: 900px) {
  .mosaic { height: min(66vh, 650px); }
  .panel { border-radius: 0; }
}

@media (max-width: 980px) {
  .services-head { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 767px) {
  .site-header.is-over-hero:not(.is-scrolled) { background: linear-gradient(to bottom, rgba(7, 13, 14,.94), rgba(7, 13, 14,.18)); }
  .brand-name { font-size: .94rem; }
  .hero-v2 { min-height: max(790px, 100svh); }
  .hero-v2-media img { object-position: var(--pos-mobile, 70% 50%); }
  .hero-v2 .hero-veil {
    background: linear-gradient(0deg, rgba(6, 12, 13,.84) 0%, rgba(6, 12, 13,.44) 58%, rgba(6, 12, 13,.06) 82%, rgba(6, 12, 13,.2) 100%);
  }
  .hero-v2 .hero-body { padding-top: 150px; padding-bottom: 210px; }
  .hero-v2 .hero-h1 { max-width: 14ch; font-size: clamp(2.55rem, 11vw, 3.4rem); line-height: .88; }
  .hero-v2 .hero-sub { max-width: 33ch; font-size: .94rem; }
  .hero-proof { border-radius: 0; }

  .services-block { padding-top: 70px; }
  .services-head h2 { max-width: 16ch; font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .mosaic { border: 0; }
  .panel { min-height: 390px; border: 1px solid #243638; }
  .panel-body { padding: 22px; }
  .panel-name { font-size: 1.7rem; }

  .process-v3 { padding-block: 68px; }
  .process-v3-head h2 { max-width: 17ch; font-size: clamp(2.45rem, 10vw, 3.25rem); }
  .process-v3-steps { border-left-color: #2b3f41; }
  .process-v3-steps li { background: #132022; border-color: #2b3f41; }
  .process-v3-foot { background: var(--coure); }

  .feina-head h2, .sanctuary-copy h2, .plans-text h2, .faq h2 { max-width: 17ch; font-size: clamp(2.4rem, 9.7vw, 3.2rem); }
  .sanctuary-media img { object-position: 65% center; }
  .plans-teaser { padding-block: 68px; }
  .plans-media { filter: saturate(.54) contrast(1.08); }
  .plan-names strong { text-transform: uppercase; }
  .faq { padding-block: 66px; }
  .faq-item summary { line-height: 1.35; }

  .page-hero { min-height: 74svh; border-radius: 0; }
  .page-hero h1 { max-width: 19ch; font-size: clamp(2.35rem, 9.6vw, 3.35rem); }
  .page-hero::before { background: linear-gradient(to top, rgba(6, 12, 13,.94), rgba(6, 12, 13,.42) 66%, rgba(6, 12, 13,.48)); }
  .cta-final h2 { font-size: clamp(2.85rem, 12vw, 4rem); }
  .cta-copy { background: transparent; }
}

/* ===========================================================================
   Passada UX 02 — affordances tactils, recorregut i densitat mobil
   ========================================================================== */
.services-carousel-status { display: none; }

@media (max-width: 1023px) {
  .sticky-cta.is-managed {
    opacity: 0;
    transform: translateY(110%);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, transform .38s var(--ease), visibility 0s linear .38s;
  }
  .sticky-cta.is-managed.is-visible {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
}

@media (max-width: 767px) {
  .mosaic {
    overscroll-behavior-inline: contain;
    scroll-padding-inline: var(--gutter);
  }
  .panel { scroll-snap-stop: always; }
  .services-carousel-status {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr);
    gap: 9px 16px;
    align-items: center;
    margin-top: 18px;
    color: #b8b0a8;
  }
  .services-carousel-status > span {
    color: var(--coure);
    font-size: .72rem;
    font-weight: 650;
    letter-spacing: .12em;
  }
  .services-carousel-status > i {
    position: relative;
    height: 1px;
    overflow: hidden;
    background: #413c37;
  }
  .services-carousel-status > i > b {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--carousel-progress, 25%);
    background: var(--coure);
    transition: width .25s ease;
  }
  .services-carousel-status > small {
    grid-column: 1 / -1;
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .process-v3-steps li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px 15px;
    min-height: 0;
    padding: 20px;
    align-items: start;
  }
  .process-card-top {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    gap: 12px;
    margin: 0;
    justify-items: start;
  }
  .process-number { grid-row: 1; }
  .process-icon { grid-row: 2; width: 42px; height: 42px; }
  .process-v3-steps h3 {
    grid-column: 2;
    margin: 1px 0 3px;
    font-size: 1.03rem;
  }
  .process-v3-steps p {
    grid-column: 2;
    font-size: .84rem;
    line-height: 1.5;
  }
  .process-v3-foot { padding: 20px; }
}

/* ===========================================================================
   Passada UX 03 — llegibilitat, enquadrament i ritme editorial
   ========================================================================== */
body { letter-spacing: -.006em; }

h1, h2,
.hero-v2 .hero-h1,
.service-row h2,
.col-card h2,
.feature-grid h2,
.panel-name,
.process-v3-steps h3,
.plan-names strong,
.related-card span,
.faq-item summary,
.footer-tagline,
.footer-h {
  text-transform: none;
}

h1, h2 {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.048em;
}

.hero-v2 .hero-h1 {
  max-width: 15ch;
  font-size: clamp(3.35rem, 5vw, 5.8rem);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.057em;
}
.hero-v2 .hero-h1 .line:nth-child(2) { font-weight: 600; }
.hero-v2 .hero-sub { max-width: 56ch; line-height: 1.62; }

.page-hero {
  min-height: clamp(620px, 70svh, 760px);
  padding-bottom: clamp(58px, 7vh, 92px);
}
.page-hero h1 {
  max-width: 21ch;
  font-size: clamp(2.75rem, 4.25vw, 4.8rem);
  line-height: 1.01;
  letter-spacing: -.052em;
}
.page-hero .lead {
  max-width: 58ch;
  color: #d0c9c1;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.62;
}

/* Cada fotografia conserva el subjecte i deixa una zona neta per al missatge. */
html[data-page="serveis"] .page-hero-media img,
html[data-page="manteniment"] .page-hero-media img { object-position: 60% 48%; }
html[data-page="xemeneies"] .page-hero-media img { object-position: 62% 50%; }
html[data-page="jardins"] .page-hero-media img { object-position: 50% 58%; }
html[data-page="plans"] .page-hero-media img { object-position: 54% 54%; }
html[data-page="historia"] .page-hero-media img { object-position: 50% 48%; }
html[data-page="treballs"] .page-hero-media img { object-position: 50% 54%; }
html[data-page="contacte"] .page-hero-media img { object-position: 52% 52%; }

/* Contrastos estables també amb teclat i hover. */
.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  color: #0c1516;
  background: #f2ece4;
  border-color: #f2ece4;
}
.panel:hover .panel-name,
.panel:focus-visible .panel-name,
.panel:hover .panel-text,
.panel:focus-visible .panel-text { color: #fff; }
.plan-names a:hover span,
.plan-names a:focus-visible span,
.plan-names a.is-active span { color: #c9c1b8; }
.filter:focus-visible { color: #0c1516; background: var(--coure); border-color: var(--coure); }
.credits-note { max-width: 70ch; color: var(--ink-3); font-size: .9rem; }

@media (min-width: 1280px) {
  :root { --gutter: 48px; }
  .page-hero-body { padding-right: clamp(80px, 10vw, 150px); }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .hero-v2 .hero-h1 {
    max-width: 12.5ch;
    font-size: clamp(2.4rem, 10.4vw, 3.08rem);
    line-height: 1;
    letter-spacing: -.052em;
  }
  .hero-v2 .hero-sub { max-width: 35ch; font-size: .98rem; line-height: 1.58; }
  .page-hero {
    min-height: clamp(590px, 72svh, 680px);
    padding-bottom: 48px;
  }
  .page-hero h1 {
    max-width: 18ch;
    font-size: clamp(2.18rem, 8.6vw, 2.85rem);
    line-height: 1.04;
    letter-spacing: -.048em;
  }
  .page-hero .lead { max-width: 36ch; font-size: .96rem; line-height: 1.58; }
  html[data-page="serveis"] .page-hero-media img,
  html[data-page="manteniment"] .page-hero-media img { object-position: 70% center; }
  html[data-page="xemeneies"] .page-hero-media img { object-position: 72% center; }
  html[data-page="jardins"] .page-hero-media img { object-position: 54% center; }
  .cta-final h2 { max-width: 16ch; line-height: 1.02; }
}

/* Hero amb dues escenes: transició calmada i controls discrets. */
.hero-v2 .hero-nav {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  top: calc(var(--header-h) + 24px);
  bottom: auto;
  z-index: 6;
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0;
  padding: 10px 14px;
  opacity: 1;
  color: var(--crema);
  background: rgba(7, 13, 14,.56);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: none;
}
.hero-v2 .hero-cap {
  min-width: 280px;
  color: rgba(240,231,218,.78);
  font-size: .76rem;
  letter-spacing: .02em;
}
.hero-v2 .hero-dot { width: 38px; }
.hero-v2 .hero-dot::before { background: rgba(255,255,255,.34); }
.hero-v2 .hero-dot span { background: var(--coure); }
.hero-v2 .hero-count { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; }
.hero-v2[data-slider] .hero-scroll { display: none; }

/* Un únic H1 semàntic; el segon missatge és editorial i canvia amb l'escena. */
.hero-copy-stage { display: grid; }
.hero-copy {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .55s;
}
.hero-copy.is-active {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .42s ease, transform .7s var(--ease);
}
.hero-copy.is-active > * { opacity: 1; transform: none; }
.hero-copy.is-active > :nth-child(1) { transition-delay: .16s; }
.hero-copy.is-active > :nth-child(2) { transition-delay: .23s; }
.hero-copy.is-active > :nth-child(3) { transition-delay: .31s; }
.hero-copy.is-active > :nth-child(4) { transition-delay: .38s; }
.hero-copy.is-active > :nth-child(5) { transition-delay: .45s; }
.hero-copy .hero-kicker,
.hero-copy .hero-sub,
.hero-copy .hero-actions,
.hero-copy .hero-note,
.hero-copy .hero-h1 .line > span { animation: none; }
.hero-copy .hero-h1 .line > span { transform: none; }
.hero-display { margin-top: 0; }
.hero-v2[data-active-slide="1"] .hero-display { max-width: 14ch; }
.hero-v2[data-active-slide="1"] .hero-sub { max-width: 52ch; color: rgba(248,243,236,.86); }
.hero-v2[data-active-slide="1"] .hero-note { color: rgba(248,243,236,.76); }
.hero-v2 .btn-ghost-light { color: #fff; background: rgba(7, 13, 14,.18); }
.hero-v2 .btn-ghost-light:hover,
.hero-v2 .btn-ghost-light:focus-visible { color: #0b1415; background: #f2ece4; }

@media (max-width: 767px) {
  .hero-v2 .hero-nav {
    right: auto;
    left: var(--gutter);
    top: calc(var(--header-h) + 16px);
    bottom: auto;
    padding: 8px 10px;
  }
  .hero-v2 .hero-cap { display: none; }
  .hero-v2 .hero-dot { width: 42px; min-height: 28px; }
  .hero-copy > * { transform: translateY(14px); }
  .hero-v2[data-active-slide="1"] .hero-display { max-width: 11.5ch; font-size: clamp(2.28rem, 9.8vw, 2.9rem); }
  .hero-v2[data-active-slide="1"] .hero-sub { max-width: 34ch; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .hero-copy > * { transition: none; }
}

/* Collage discret amb fotografies compartides pel client; no les presenta com a feines. */
.hero-client-collage .hero-collage-media {
  inset: 11% max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 16% 56%;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(10px, 1.1vw, 18px);
  overflow: visible;
}
.hero-client-collage .hero-copy-stage { max-width: 54%; }
.hero-client-collage .hero-collage-tile { min-width: 0; min-height: 0; overflow: hidden; margin: 0; background: #192526; }
.hero-client-collage .hero-collage-tile--home { grid-row: 1 / span 2; }
.hero-client-collage .hero-collage-tile img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.02);
  animation: none; transform: none; transition: transform .7s var(--ease);
}
.hero-client-collage .hero-collage-tile--home img { object-position: 52% 56%; }
.hero-client-collage .hero-collage-tile--garden img { object-position: 52% 57%; }
.hero-client-collage .hero-collage-tile--chimney img { object-position: 56% 52%; }
.hero-client-collage .hero-collage-caption {
  position: absolute; right: 0; bottom: -27px; margin: 0; color: rgba(244,236,223,.64);
  font-size: .68rem; letter-spacing: .025em;
}
.hero-client-collage .hero-veil {
  background: linear-gradient(90deg, #081011 0%, rgba(8,16,17,.96) 36%, rgba(8,16,17,.42) 59%, rgba(8,16,17,.04) 100%),
              linear-gradient(0deg, rgba(8,16,17,.94) 0%, rgba(8,16,17,.12) 40%, rgba(8,16,17,.38) 100%);
}
@media (max-width: 767px) {
  .hero-client-collage { min-height: max(1010px, 100svh); }
  .hero-client-collage .hero-collage-media {
    inset: 112px var(--gutter) auto; height: 226px;
    grid-template-columns: 1.12fr .88fr; grid-template-rows: 1fr 1fr; gap: 9px;
  }
  .hero-client-collage .hero-collage-caption { bottom: -22px; font-size: .62rem; }
  .hero-client-collage .hero-veil {
    background: linear-gradient(0deg, #081011 0%, rgba(8,16,17,.96) 43%, rgba(8,16,17,.14) 77%, rgba(8,16,17,.18) 100%);
  }
  .hero-client-collage .hero-body { padding-top: 365px; padding-bottom: 202px; }
  .hero-client-collage .hero-copy-stage { max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 980px) {
  .hero-client-collage .hero-h1 { font-size: clamp(2.8rem, 6vw, 3.35rem); }
}

/* ==========================================================================
   Ajust 2026-09 — nou logo emblema, capçalera premium i marges més amples
   ========================================================================== */

.brand-mark {
  width: 42px; height: 42px; flex: none;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .35));
  transition: transform .45s var(--ease);
}
.brand:hover .brand-mark, .brand:focus-visible .brand-mark { transform: rotate(-6deg) scale(1.08); }
@media (min-width: 1024px) { .brand-mark { width: 50px; height: 50px; } }

.site-header, .site-header.is-over-hero, .site-header.is-over-hero.is-scrolled {
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

.lang-switch {
  border-radius: 999px !important;
  transition: border-color .25s, background-color .25s, color .25s;
}
.lang-switch:hover, .lang-switch:focus-visible { border-color: var(--coure); background: rgba(255, 255, 255, .08); color: #fff; }

.nav-cta.btn-primary { box-shadow: 0 10px 28px rgba(181, 109, 50, .32); }
.nav-cta.btn-primary:hover, .nav-cta.btn-primary:focus-visible { box-shadow: 0 14px 34px rgba(181, 109, 50, .42); transform: translateY(-2px); }

/* Marges laterals: molt més aire a banda i banda a totes les mides. */
:root { --gutter: 24px; }
@media (min-width: 480px) { :root { --gutter: 28px; } }
@media (min-width: 768px) { :root { --gutter: 44px; } }
@media (min-width: 1024px) { :root { --gutter: 56px; } }
@media (min-width: 1280px) { :root { --container: 1300px; --gutter: 72px; } }
@media (min-width: 1600px) { :root { --container: 1380px; --gutter: 96px; } }

/* Hero: halo de llum que segueix el cursor, en lloc del parallax de ratoli anterior. */
.hero-spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .6s var(--ease);
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(227, 181, 133, .22), transparent 62%);
  mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) { .hero-spotlight { display: none; } }

/* Targetes de plans: inclinacio 3D lleugera en passar el ratoli (JS aplica el transform). */
.plan-card {
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .plan-card:hover { box-shadow: 0 28px 60px rgba(20, 17, 14, .22); }
}

/* Xifres que pugen en entrar en pantalla: amplada estable perque el text no bots. */
.count-up { font-variant-numeric: tabular-nums; display: inline-block; min-width: 1.6ch; }

/* ==========================================================================
   Marca 2026-09-29 — logotip del client (paraula "Xemeneies del Pirineu")
   ========================================================================== */
.brand-logo { display: block; width: 168px; height: auto; flex: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
.brand:hover .brand-logo, .brand:focus-visible .brand-logo { opacity: .88; transform: translateY(-1px); }
@media (min-width: 1024px) { .brand-logo { width: 214px; } }
.footer-brand img.footer-logo { width: min(280px, 78vw); height: auto; margin-bottom: var(--s-3); }
.name-grid img { filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35)); }
.process-icon .ico { color: inherit; }

/* Imatges editorials generades: identificades i separades de les fotos de feina real. */
.page-hero--editorial::before {
  background: linear-gradient(to top, rgba(6, 12, 13, .9), rgba(6, 12, 13, .24) 62%, rgba(6, 12, 13, .12)),
              linear-gradient(to right, rgba(6, 12, 13, .48), transparent 78%);
}
.page-hero-generated-label {
  display: inline-flex; width: fit-content; margin: 0 0 16px; padding: 7px 10px;
  color: #f4eee6; background: rgba(11, 20, 21, .74); border: 1px solid rgba(244,238,230,.32);
  font-size: .72rem; font-weight: 650; letter-spacing: .045em;
}
.hero-generated-label, .generated-image-badge {
  display: inline-flex; width: fit-content; padding: 7px 10px; color: #f4eee6;
  background: rgba(11,20,21,.76); border: 1px solid rgba(244,238,230,.34);
  font-size: .68rem; line-height: 1.25; font-weight: 650; letter-spacing: .025em;
}
.hero-generated-label {
  position: absolute; z-index: 2; top: calc(var(--header-h) + 18px); left: var(--gutter);
}
.hero-generated-label--subtle {
  padding: 4px 7px; color: rgba(244, 238, 230, .82); background: rgba(8, 14, 15, .48);
  border: 0; font-size: .62rem; line-height: 1.2; font-weight: 500; letter-spacing: .01em;
}
.panel .generated-image-badge { position: absolute; z-index: 2; top: 14px; left: 14px; }
.related-card .generated-image-badge { position: absolute; z-index: 2; top: 12px; left: 12px; }
.cta-media .generated-image-badge { position: absolute; z-index: 2; top: var(--s-4); left: var(--gutter); }
.plans-media .generated-image-badge { position: absolute; z-index: 2; top: 12px; left: 12px; }
.generated-image-caption { display: block; margin-top: .5rem; color: var(--ink-3); font-size: .75rem; line-height: 1.4; }
.service-illustration img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 767px) {
  .page-hero-generated-label { margin-bottom: 12px; font-size: .69rem; }
  .hero-generated-label { top: calc(var(--header-h) + 14px); font-size: .66rem; }
  .hero-generated-label--subtle { padding: 4px 7px; font-size: .61rem; }
  .service-illustration img { aspect-ratio: 4 / 3; }
}
.ba-handle::after { content: '‹ ›'; display: grid; place-items: center; color: var(--terra-950); font: 700 1.1rem/1 var(--font-body); white-space: pre; }
