/* acrōnim — full d'estils del web públic
   Guia de marca: DM Sans · accent #11E2B7 · clar #E6E6E6 (mai blanc pur) · fosc #1A1A1A (mai negre pur)
   Idea: la barra d'accent del logotip ("ō", "a|") és el motiu que es repeteix per tot el web. */

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

:root {
  --accent: #11E2B7; --accent-ink: #0A9C7F;            /* verd sobre fons clar amb contrast suficient */
  --ink: #1A1A1A; --ink-2: #4A4A4A; --ink-3: #7A7A7A;
  --paper: #F7F7F6; --light: #E6E6E6; --mint: #E2F7F1; --white: #FDFDFC;
  --gutter: clamp(20px, 5vw, 72px);                     /* marge lateral únic per a tot el web */
  --wrap: 1280px;
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));  /* vora esquerra del contingut, la mateixa que el logotip */
  --sec: clamp(72px, 9vw, 128px);                       /* respiració vertical de cada secció */
  --gap: clamp(24px, 3vw, 48px);
  --f: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: clip; font-family: var(--f); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a:not(.btn), .prose li a, .f-legal a, .share a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; transition: text-decoration-color .2s; }
p a:hover, li a:hover { text-decoration-color: var(--ink); }
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3.2vw, 42px); }
h3 { font-size: clamp(20px, 1.9vw, 24px); }
h4 { font-size: 19px; }
.h-xl { font-size: clamp(38px, 5vw, 64px); }
.h-l  { font-size: clamp(28px, 3.2vw, 42px); }
.h-m  { font-size: clamp(20px, 1.9vw, 24px); }
.h-s  { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
h1.h-m, h1.h-s { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.025em; text-transform: none; color: inherit; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.kicker { color: var(--accent-ink); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.small { font-size: 13px; }

/* ------------------------------------------------ la barra d'accent (motiu de marca) */
.bar::before, .accent-bar { content: ""; display: block; width: 36px; height: 4px; background: var(--accent); margin: 0 0 18px; border-radius: 1px;
  transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .1s; }
.in-view .bar::before, .in-view > .accent-bar, .no-io .bar::before { transform: scaleX(1); }
hr.short { width: 36px; height: 4px; border: 0; background: var(--accent); margin: 28px 0 14px; border-radius: 1px; }

/* ------------------------------------------------ capçalera */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253,253,252,.85); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .3s; }
.site-header::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: var(--progress, 0%); background: var(--accent); transition: width .1s linear; }
.site-header.scrolled { box-shadow: 0 1px 0 rgba(26,26,26,.06); }
body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); }
.hdr { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.logo { display: block; line-height: 0; }
.logo img { width: clamp(150px, 14vw, 184px); height: auto; display: block; }
.logo { display: block; margin-top: -6px; } /* alinea l'alçada de les lletres del logotip amb el text del menú */
.nav-toggle { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; border-radius: 50%; }
.nav-toggle:hover { background: var(--paper); }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); content: ""; transition: transform .25s var(--ease), background .2s; }
.nav-toggle span:first-child { top: 23px; }
.nav-toggle span:first-child::before { top: -7px; left: 0; right: 0; }
.nav-toggle span:first-child::after { top: 7px; left: 0; right: 0; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { transform: translateY(-7px) rotate(-45deg); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; gap: 26px; align-items: center; }
.nav a, .sub-toggle { position: relative; font: inherit; color: var(--ink); background: none; border: 0; padding: 8px 0; cursor: pointer; }
.nav > ul > li > a::after, .sub-toggle::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current]::after, .sub-toggle:hover::before, .has-sub:focus-within .sub-toggle::before { transform: scaleX(1); }
.has-sub { position: relative; }
.sub-toggle::after { content: ""; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); margin-left: 8px; transition: transform .2s; }
.has-sub:hover .sub-toggle::after { transform: rotate(225deg) translateY(-2px); }
.sub { position: absolute; z-index: 5; top: calc(100% + 8px); left: -20px; min-width: 280px; background: var(--white); border-radius: 12px; padding: 10px; box-shadow: 0 24px 60px rgba(26,26,26,.12), 0 0 0 1px rgba(26,26,26,.05); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s var(--ease); }
.sub a { display: block; padding: 10px 14px; border-radius: 8px; }
.sub a:hover { background: var(--mint); }
.has-sub:hover .sub, .has-sub:focus-within .sub, .sub-toggle[aria-expanded="true"] + .sub { opacity: 1; visibility: visible; transform: none; }
.langs { display: flex; gap: 0; }
.langs a { padding: 6px 3px; font-size: 13px; font-weight: 600; color: var(--ink-3); border-radius: 6px; }
.langs li + li::before { content: '/'; color: var(--light); font-size: 12px; }
.langs li { display: flex; align-items: center; }
.hdr-social { display: flex; gap: 4px; margin-left: -8px; }
.hdr-social a { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; color: var(--ink-2); padding: 0; }
.hdr-social a:hover { color: var(--ink); background: var(--paper); }
.sub a .ext { color: var(--ink-3); font-size: .85em; margin-left: 4px; }
b.brand, .brand { font-weight: 700; }
.langs a:hover { color: var(--ink); background: var(--paper); }
.langs a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); border-radius: 0; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 84px 0 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 48px; gap: 20px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; font-size: 22px; font-weight: 600; }
  .nav.open { transform: none; visibility: visible; transition: transform .35s var(--ease); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--light); }
  .nav > ul > li > a, .sub-toggle { display: block; width: 100%; text-align: left; padding: 16px 0; }
  .nav > ul > li > a::after, .sub-toggle::before { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 10px; display: none; min-width: 0; }
  .sub-toggle[aria-expanded="true"] + .sub { display: block; }
  .sub a { padding: 10px 16px; font-size: 18px; font-weight: 500; }
  .nav .btn { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}

/* ------------------------------------------------ botons */
.btn { position: relative; display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); font: 600 16px/1 var(--f); padding: 18px 26px; border: 0; border-radius: 999px; cursor: pointer; overflow: hidden; isolation: isolate; transition: color .3s, transform .2s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--accent); border-radius: inherit; transform: translateX(-101%); transition: transform .4s var(--ease); z-index: -1; }
.btn:hover { color: var(--ink); transform: translateY(-2px); }
.btn:hover::before { transform: none; }
.btn span { font-size: 20px; line-height: 0; transition: transform .3s var(--ease); }
.btn b.brand { display: contents; } .btn { white-space: nowrap; }
.btn:hover span { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-sm { padding: 12px 18px; font-size: 14px; }
.btn-wrap { margin: 1.6em 0 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--accent); cursor: pointer; }
/* enllaç-títol gran (estil "Els nostres projectes ›") */
.col-accent .btn-wrap, .col-dark .btn-wrap, .col-light .btn-wrap, .col-mint .btn-wrap { margin: auto 0 0; }
.link-big { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; border-radius: 0; padding: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; color: inherit; box-shadow: none; overflow: visible; }
.link-big::before { display: none; }
.link-big span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-size: 24px; transition: transform .3s var(--ease), background .3s; }
.link-big:hover { transform: none; color: inherit; }
.link-big:hover span { transform: translateX(6px); }
.col-accent .link-big span { background: var(--ink); color: var(--accent); }
.col-dark .link-big span, .sec-dark .link-big span { background: var(--accent); color: var(--ink); }

/* ------------------------------------------------ seccions de blocs */
.sec { position: relative; padding: var(--sec) 0; }
/* La primera secció de cada pàgina s'acosta a la capçalera */
main > .sec:first-child:not(.sec-hero):not(:has(.col-accent, .col-dark, .col-light, .col-mint)) { padding-top: calc(var(--sec) * .45); }
main > .sec:first-child:has(.col-accent) .col, main > .sec:first-child:has(.col-dark) .col, main > .sec:first-child:has(.col-light) .col, main > .sec:first-child:has(.col-mint) .col { padding-top: calc(var(--sec) * .55); }
main > .page-head { padding-top: calc(var(--sec) * .4); }
main > article .crumbs { margin-top: 0; }
.sec-white + .sec-white { padding-top: 0; }
.pt0 { padding-top: 0 !important; }
.sec-white { background: var(--white); }
.sec-light { background: var(--paper); }
.sec-mint { background: var(--mint); }
.sec-accent { background: var(--accent); }
.sec-dark { background: var(--ink); color: var(--light); }
.sec-dark h1, .sec-dark h2, .sec-dark h3 { color: #fff; }
.grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 760px) {
  .cols-2 .grid { grid-template-columns: 1fr 1fr; align-items: center; }
  .cols-3 .grid { grid-template-columns: repeat(3, 1fr); }
  .cols-4 .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .cols-4 .grid { grid-template-columns: repeat(4, 1fr); }
  .cols-5 .grid, .cols-6 .grid, .cols-7 .grid, .cols-8 .grid, .cols-9 .grid { grid-template-columns: repeat(3, 1fr); }
}
.col > :last-child { margin-bottom: 0; }
.col > .img:first-child { margin-bottom: 1.4em; }
.cols-1 .grid { max-width: 920px; }
.tpl-home .cols-1 .grid, .tpl-default .cols-1 .grid { max-width: var(--wrap); }

/* Seccions amb columnes de color: de banda a banda, sense marge, amb el mateix padding intern */
.sec.lay-full, .sec:has(.col-accent), .sec:has(.col-dark), .sec:has(.col-light), .sec:has(.col-mint) { padding: 0; }
.sec:has(.col-accent) .wrap, .sec:has(.col-dark) .wrap, .sec:has(.col-light) .wrap, .sec:has(.col-mint) .wrap { max-width: none; padding: 0; }
.sec:has(.col-accent) .grid, .sec:has(.col-dark) .grid, .sec:has(.col-light) .grid, .sec:has(.col-mint) .grid { gap: 0; align-items: stretch; }
.sec:has(.col-accent) .col, .sec:has(.col-dark) .col, .sec:has(.col-light) .col, .sec:has(.col-mint) .col { padding: var(--sec) var(--gutter); display: flex; flex-direction: column; min-width: 0; }
.col-light { background: var(--paper); }
.col-mint { background: var(--mint); }
.col-accent { background: var(--accent); color: var(--ink); }
.col-dark { background: var(--ink); color: var(--light); }
.col-dark h2, .col-dark h3 { color: #fff; }
@media (min-width: 760px) {
  .sec.cols-2:has(.col-accent) .col:first-child, .sec.cols-2:has(.col-dark) .col:first-child, .sec.cols-2:has(.col-light) .col:first-child, .sec.cols-2:has(.col-mint) .col:first-child { padding-left: var(--edge); }
  .sec.cols-2:has(.col-accent) .col:last-child, .sec.cols-2:has(.col-dark) .col:last-child, .sec.cols-2:has(.col-light) .col:last-child, .sec.cols-2:has(.col-mint) .col:last-child { padding-right: var(--edge); }
}
.col-accent .img img { box-shadow: 0 30px 60px rgba(26,26,26,.18); border-radius: 6px; }
/* Caixa «imatge + enllaç»: la foto omple la caixa i l'enllaç queda en una franja verda a sota (com al web original) */
.col-accent:has(> .img:first-child), .col-accent:has(> .gallery:first-child) { padding: 0 !important; display: flex; flex-direction: column; justify-content: stretch; }
.col-accent:has(> .img:first-child) > .img, .col-accent:has(> .gallery:first-child) > .gallery { flex: 1; margin: 0; min-height: 320px; }
.col-accent:has(> .img:first-child) > .img img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; display: block; }
.col-accent:has(> .gallery:first-child) > .gallery-slider { border-radius: 0; height: 100%; }
.col-accent:has(> .gallery:first-child) > .gallery-slider .g-item img { border-radius: 0; height: 100%; object-fit: cover; }
.col-accent:has(> .img:first-child) > .btn-wrap, .col-accent:has(> .gallery:first-child) > .btn-wrap { margin: 0 !important; padding: 16px var(--gutter); text-align: right; }
.col-accent:has(> .img:first-child) .link-big, .col-accent:has(> .gallery:first-child) .link-big { font-size: clamp(20px, 1.8vw, 26px); }

/* Secció amb imatge de fons */
.sec-image { color: var(--light); isolation: isolate; padding: var(--sec) 0; }
.sec-image .sec-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.sec-image .sec-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.5); transform: scale(1.08); transition: transform 1.6s var(--ease); }
.sec-image.in-view .sec-bg img { transform: scale(1); }
.sec-image .col { background: rgba(26,26,26,.88); padding: clamp(28px, 4vw, 56px); border-left: 4px solid var(--accent); display: grid; gap: 0 48px; align-items: center; }
.sec-image h2, .sec-image h3 { color: #fff; }
.sec-image .btn { background: var(--accent); color: var(--ink); }
.sec-image .btn::before { background: #fff; }
@media (min-width: 900px) { .sec-image .col:has(> .img) { grid-template-columns: 1.3fr 1fr; } .sec-image .col:has(> .img) > :not(.img) { grid-column: 1; } .sec-image .col:has(> .img) > .img { grid-column: 2; grid-row: 1 / span 4; margin: 0; justify-self: end; } }
.sec-image .col .img img { max-height: 90px; max-width: 220px; width: auto; }

/* ------------------------------------------------ hero */
.sec-hero { background: var(--paper); padding: 0; min-height: min(62vh, 600px); display: grid; align-items: center; overflow: hidden; }
.sec-hero .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.sec-hero .grid { max-width: none; }
.sec.sec-hero .wrap.grid, .sec.sec-hero .wrap { max-width: var(--wrap) !important; padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.headline { font-size: clamp(42px, 7vw, 96px); font-weight: 600; letter-spacing: -.035em; line-height: 1; max-width: 13ch; margin: 0; }
.headline .hl { display: block; min-height: 1em; color: var(--accent-ink); white-space: nowrap; }
.hl::after { content: ""; display: inline-block; width: .06em; height: .85em; background: var(--accent); margin-left: .08em; vertical-align: -.08em; animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tag { margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 44ch; }
.sec-hero .prose { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }

/* ------------------------------------------------ tipus de contingut */
.prose { max-width: 68ch; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--accent-ink); }
.prose img { margin: 1.5em 0; border-radius: 6px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin-top: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose td, .prose th { border-bottom: 1px solid var(--light); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.img { margin: 0 0 1.2em; }
.img img { width: 100%; border-radius: 6px; }
.img img[src$=".svg"] { width: auto; max-width: 96px; border-radius: 0; }
.img-medium img { width: auto; max-width: 60%; }
.img-small img { width: auto; max-width: 40%; }
.img-logo img { width: auto; max-width: 220px; max-height: 90px; border-radius: 0; }
.raw { overflow-x: auto; }

/* Franja de serveis / targetes: columnes iguals, marges iguals, línia d'accent que creix en passar-hi */
.sec-light .cols-4 .col, .sec-light .cols-3 .col { position: relative; padding-top: 24px; }
.sec-light.cols-4, .sec-light.cols-3 { padding: clamp(56px, 6vw, 88px) 0; }
.sec-light .cols-4 .col::before, .sec-light .cols-3 .col::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--light); }
.sec-light .cols-4 .col::after, .sec-light .cols-3 .col::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.sec-light .cols-4 .col:hover::after, .sec-light .cols-3 .col:hover::after, .sec-light.in-view .cols-4 .col::after { transform: scaleX(1); }
.sec-light.in-view .cols-4 .col:nth-child(2)::after { transition-delay: .1s; } .sec-light.in-view .cols-4 .col:nth-child(3)::after { transition-delay: .2s; } .sec-light.in-view .cols-4 .col:nth-child(4)::after { transition-delay: .3s; }
.col > .btn-wrap:first-child { margin: 0 0 12px; }
.col > .btn-wrap:first-child .btn { text-decoration: none; background: none; color: var(--ink); padding: 0; border-radius: 0; font-size: 19px; box-shadow: none; overflow: visible; }
.col > .btn-wrap:first-child .btn::before { display: none; }
.col > .btn-wrap:first-child .btn span { color: var(--accent-ink); }
.col > .btn-wrap:first-child + .prose { color: var(--ink-2); font-size: 16px; }

/* Equip: foto + foto alternativa amb capa menta en passar-hi el ratolí (efecte "flip" en fosa) */
.team { display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); margin: 1.5em 0; }
@media (max-width: 1080px) and (min-width: 601px) { .team { grid-template-columns: repeat(3, 1fr); } }
.tm { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--paper); cursor: pointer; }
.tm .tm-front, .tm .tm-back { position: absolute; inset: 0; }
.tm img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.tm .tm-front { transition: opacity .6s var(--ease); }
.tm .tm-back { opacity: 0; transition: opacity .6s var(--ease); }
.tm .tm-back::after { content: ''; position: absolute; inset: 0; background: rgba(17, 226, 183, .54); }
.tm figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px; color: var(--ink); }
.tm figcaption strong { display: block; font-size: 1.15rem; line-height: 1.1; letter-spacing: -.01em; }
.tm figcaption span { display: block; margin-top: .3em; font-size: .95rem; font-weight: 500; }
.tm:hover .tm-front, .tm.on .tm-front, .tm:focus-within .tm-front { opacity: 0; }
.tm:hover .tm-back, .tm.on .tm-back, .tm:focus-within .tm-back { opacity: 1; }
@media (max-width: 600px) { .team { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tm figcaption { padding: 14px 14px; } .tm figcaption strong { font-size: 1.05rem; } .tm figcaption span { font-size: .8rem; } }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.5em 0; }
.card { position: relative; display: block; background: var(--paper); padding: 32px 28px 28px; border-radius: 10px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 4px; background: var(--accent); transition: width .4s var(--ease); }
a.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(26,26,26,.08); }
a.card:hover::before { width: 100%; }
.card h3 { font-size: 20px; margin-top: 6px; }
.card h3 span { color: var(--accent-ink); }
.card .prose { font-size: 16px; color: var(--ink-2); }
.card-img { margin: -32px -28px 20px; }
.card-img img { border-radius: 0; }
.sec-mint .card, .col-mint .card, .sec-light .card { background: var(--white); }

.accordion { margin: 1.5em 0; border-top: 1px solid var(--light); }
.accordion details { border-bottom: 1px solid var(--light); }
.accordion summary { cursor: pointer; padding: 20px 48px 20px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; transition: color .2s; }
.accordion summary:hover { color: var(--accent-ink); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--accent-ink), var(--accent-ink)) center/14px 2px no-repeat, linear-gradient(var(--accent-ink), var(--accent-ink)) center/2px 14px no-repeat; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .prose { padding: 0 0 22px; color: var(--ink-2); }

.icon-list { list-style: none; padding: 0; margin: 1em 0; }
.icon-list li { padding: 8px 0 8px 30px; position: relative; }
.icon-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 16px; height: 3px; background: var(--accent); }

.quote { margin: 2em 0; padding: 0 0 0 28px; border-left: 4px solid var(--accent); font-size: 22px; line-height: 1.4; }
.quote cite { display: block; font-size: 15px; font-style: normal; color: var(--ink-3); margin-top: 8px; }

/* Galeries */
.gallery { display: grid; gap: 14px; margin: 1.5em 0; }
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery-grid .g-item { display: block; overflow: hidden; background: var(--paper); border-radius: 6px; }
.gallery-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid:has(> :only-child) { grid-template-columns: 1fr; }
.gallery-grid:has(> :only-child) img { aspect-ratio: auto; }
/* Logos de clients: cinta que llisca */
.gallery-logos { display: flex !important; gap: 0; overflow: hidden; margin: 10px 0 28px; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gallery-logos .track { display: flex; flex-shrink: 0; align-items: center; gap: 40px; padding-right: 40px; animation: ticker var(--dur, 40s) linear infinite; }
.gallery-logos:hover .track { animation-play-state: paused; }
.gallery-logos .g-item { flex-shrink: 0; }
.gallery-logos img { height: 72px; width: 170px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .3s; }
.gallery-logos .g-item:hover img { filter: none; opacity: 1; }
@keyframes ticker { to { transform: translateX(-100%); } }
/* Carrusel de fotos (1 a 1) */
.gallery-slider { display: block; position: relative; margin: 0; border-radius: 6px; overflow: hidden; aspect-ratio: 1; background: var(--paper); box-shadow: 0 30px 60px rgba(26,26,26,.18); }
.gallery-slider .g-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.gallery-slider .g-item.on { opacity: 1; }
.gallery-slider img { width: 100%; height: 100%; object-fit: cover; }
.gallery-slider .dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; }
.gallery-slider .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(26,26,26,.3); transition: .3s; }
.gallery-slider .dots i.on { background: var(--accent); width: 20px; border-radius: 3px; }
.col-accent .gallery-slider { margin-bottom: 32px; }

.video { position: relative; aspect-ratio: 16/9; background: var(--ink); margin: 1.5em 0; border-radius: 6px; overflow: hidden; }
.video iframe, .video video, .video button, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video button { padding: 0; cursor: pointer; background: none; }
.video-file video { object-fit: cover; }
.video-fig { margin: 1.5em 0; } .video-fig .video { margin: 0; } .video-fig figcaption { font-size: .9rem; color: var(--ink-3); margin-top: .6em; }
.video .play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; background: var(--accent); transition: transform .3s var(--ease); }
.video button:hover .play { transform: scale(1.1); }
.video .play::after { content: ""; position: absolute; left: 32px; top: 25px; border: 15px solid transparent; border-left: 24px solid var(--ink); border-right: 0; }

.map { min-height: 320px; background: var(--white); border-radius: 6px; display: grid; place-items: center; margin-bottom: 1.5em; overflow: hidden; }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(1); }
.map-ph { padding: 28px; text-align: center; }
.map-ph .small { color: var(--ink-3); }

/* ------------------------------------------------ llistats */
.post-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 1.5em 0; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: 10px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.post-card a:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(26,26,26,.1); }
.pc-img { aspect-ratio: 16/10; overflow: hidden; background: var(--light); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover .pc-img img { transform: scale(1.05); }
.pc-body { padding: 24px 26px 28px; }
.pc-body time { font-size: 13px; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.pc-body h3 { font-size: 20px; margin: 10px 0 10px; }
.pc-body p { font-size: 15px; color: var(--ink-2); margin: 0; }
.project-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin: 1.5em 0; }
.project-card { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); border-radius: 10px; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; }
.project-card:hover img { transform: scale(1.05); opacity: .5; }
.pj-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 22px 20px; color: #fff; font-weight: 600; font-size: 20px; background: linear-gradient(transparent, rgba(26,26,26,.8)); }
.pj-title::before { content: ""; display: block; width: 28px; height: 3px; background: var(--accent); margin-bottom: 10px; transition: width .4s var(--ease); }
.project-card:hover .pj-title::before { width: 56px; }
.page-head { padding-bottom: 36px; }
.blog-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 9px 16px; border: 1.5px solid var(--light); border-radius: 999px; font-size: 14px; font-weight: 500; transition: .2s; }
.chips a[aria-current], .chips a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.search input { font: inherit; padding: 11px 16px; border: 1.5px solid var(--light); border-radius: 999px; min-width: 260px; background: var(--white); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 48px; }
.pager a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--light); font-weight: 500; }
.pager a[aria-current] { background: var(--accent); border-color: var(--accent); font-weight: 700; }

/* ------------------------------------------------ article */
.article-head { padding-top: clamp(28px, 3.4vw, 48px); }
.article-head h1 { font-size: clamp(32px, 4.4vw, 56px); max-width: 22ch; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; letter-spacing: .04em; text-transform: uppercase; }
.crumbs a:hover { color: var(--ink); }
.meta { color: var(--ink-3); font-size: 15px; }
.article-hero { margin: 36px auto 48px; }
.article-hero img { width: 100%; max-height: 640px; object-fit: cover; border-radius: 10px; }
.article-body { padding-bottom: var(--sec); }
.article-body .prose { max-width: none; font-size: 18px; }
.share { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--light); font-size: 15px; }
.share span { font-weight: 700; }
.share a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.project .article-body { padding-top: 10px; }

.cta { overflow: hidden; }
.cta-in { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0; font-size: clamp(28px, 3.6vw, 48px); }
.cta::before { content: ""; position: absolute; right: -10%; top: -40%; width: 40vw; height: 180%; background: radial-gradient(closest-side, rgba(253,253,252,.35), transparent); pointer-events: none; }

/* ------------------------------------------------ formulari */
.contact-form { display: grid; gap: 18px; max-width: 720px; }
.row2 { display: grid; gap: 18px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.field span { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font: inherit; padding: 14px 16px; border: 0; border-bottom: 2px solid var(--light); background: var(--paper); border-radius: 6px 6px 0 0; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: var(--white); outline: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent-ink); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; }
.form-error { background: #FFE9E9; border-left: 4px solid #FF6B6B; padding: 12px 16px; border-radius: 0 6px 6px 0; }
.form-info { font-size: 13px; color: var(--ink-3); line-height: 1.5; margin: 4px 0 0; padding-top: 16px; border-top: 1px solid var(--light); }
.contact-form .btn { justify-self: start; }
.lay-legal .prose { max-width: 820px; }
.lay-legal .prose h3 { font-size: 20px; }

/* ------------------------------------------------ peu */
.site-footer { position: relative; background: var(--ink); color: #BDBDBD; padding: 88px 0 32px; font-size: 15px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent) 0 160px, transparent 160px); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.ftr { display: grid; gap: 40px; }
@media (min-width: 900px) { .ftr { grid-template-columns: 1.6fr 1fr 1fr .8fr; } }
.f-logo { width: 184px; margin-bottom: 20px; }
.f-h { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer li a { text-decoration: none; }
.site-footer address { font-style: normal; line-height: 1.9; }
.badges { display: flex; gap: 14px; margin-top: 24px; align-items: center; }
.badges img { height: 64px; width: auto; background: #fff; border-radius: 6px; padding: 4px; }
.gp-badge { display: inline-flex; flex-direction: column; justify-content: center; height: 64px; padding: 0 16px; background: var(--white); color: var(--ink) !important; border-radius: 6px; font-weight: 700; font-size: 14px; line-height: 1.2; }
.gp-badge span { color: #1A73E8; font-size: 12px; }
.f-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #333; margin-top: 56px; padding-top: 28px; font-size: 13px; color: #9A9A9A; }
.f-legal p { margin: 0; }
.f-legal a { text-decoration: none; }
.funding { flex-basis: 100%; text-align: center; margin: 8px 0 0; }
.funding img { display: block; margin: 0 auto; max-width: 760px; width: 100%; height: auto; opacity: .92; }

/* ------------------------------------------------ galetes */
.cookies { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: var(--white); color: var(--ink); padding: 24px; border-radius: 12px; box-shadow: 0 24px 60px rgba(26,26,26,.22); font-size: 15px; animation: rise .5s var(--ease); }
.cookies::before { content: ""; position: absolute; top: 0; left: 24px; width: 36px; height: 4px; background: var(--accent); }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.ck-title { font-weight: 700; font-size: 17px; margin: 6px 0 6px; }
.ck-opts { display: grid; gap: 8px; margin: 12px 0; }
.ck-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ck-btns .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--light); }

/* ------------------------------------------------ lightbox */
.lb { position: fixed; inset: 0; z-index: 95; background: rgba(26,26,26,.94); display: grid; place-items: center; padding: 20px; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lb img { max-height: 90vh; width: auto; border-radius: 6px; }
.lb button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; font-size: 30px; background: none; border: 0; color: #fff; cursor: pointer; }

/* ------------------------------------------------ aparició en fer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view, .no-io .reveal { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 759px) {
  body { font-size: 16px; }
  .sec-image .col { padding: 28px 24px; }
  .search input { min-width: 0; width: 100%; }
  .search { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .bar::before { transform: none; }
  .hl::after { animation: none; }
}
@media print { .site-header, .site-footer, .cookies, .share { display: none; } }

/* Mòbil: el logotip d'una secció promocional va a sobre del botó, amb marge */
@media (max-width: 759px) {
  .col:has(> .btn-wrap ~ figure.img) { display: flex; flex-direction: column; align-items: flex-start; }
  .col:has(> .btn-wrap ~ figure.img) > .btn-wrap { order: 3; }
  .col:has(> .btn-wrap ~ figure.img) > .btn-wrap ~ * { order: 4; }
  .col:has(> .btn-wrap ~ figure.img) > .btn-wrap ~ figure.img { order: 2; margin: 8px 0 28px; width: 100%; max-width: 240px; }
  .grid:has(> .col > .btn-wrap):has(> .col > figure.img:only-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
  .grid:has(> .col > .btn-wrap):has(> .col > figure.img:only-child) > .col { display: contents; }
  .grid:has(> .col > .btn-wrap):has(> .col > figure.img:only-child) .btn-wrap { order: 3; }
  .grid:has(> .col > .btn-wrap):has(> .col > figure.img:only-child) figure.img:only-child { order: 2; margin: 8px 0 28px; max-width: 260px; }
}
