/* Xarxa XXI — base de FIM (BDO Grotesk, serif cursiva, tinta negra) + caràcter per entitat */
@font-face { font-family: 'BDO Grotesk'; src: url('fonts/BDOGrotesk-Light.otf') format('opentype'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'BDO Grotesk'; src: url('fonts/BDOGrotesk-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'BDO Grotesk'; src: url('fonts/BDOGrotesk-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'BDO Grotesk'; src: url('fonts/BDOGrotesk-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }

:root {
  --ink: #101010; --ink-60: #5c5c5c; --line: #e2e2e2; --paper: #fff;
  --sans: 'BDO Grotesk', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Times New Roman', Times, Georgia, serif;
  --gutter: clamp(16px, 5vw, 80px); --maxw: 1280px; --measure: 64ch;
  --step-1: clamp(18px, 1.05rem + .3vw, 21px); --step-2: clamp(22px, 1.2rem + .7vw, 30px);
  --step-3: clamp(30px, 1.4rem + 2vw, 54px); --step-5: clamp(44px, 1.6rem + 5.5vw, 120px);
  --sp-m: clamp(24px, 4vw, 48px); --sp-l: clamp(56px, 8vw, 120px);
  /* per entitat */
  --accent: #00e05d; --tint: #f4f4f4; --hero-bg: var(--paper); --hero-ink: var(--ink);
  color-scheme: light;
}
.site-palma { --accent: #c2502e; --tint: #f5efe7; --hero-bg: #4a2014; --hero-ink: #fbf3ec; --hero-word: #f2a98c; }
.site-pla   { --accent: #c8920f; --tint: #f6f2e2; --hero-bg: #3d3110; --hero-ink: #fbf7e8; --hero-word: #f0cf6e; }
.site-tram  { --accent: #2e6b4a; --tint: #edf1eb; --hero-bg: #1d3a2b; --hero-ink: #f1f4ee; --hero-word: #b9d8a6; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 300 clamp(15px, .95rem + .1vw, 17px)/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 13px; letter-spacing: .02em; color: var(--ink-60); font-weight: 400; margin-bottom: .8em; }
.display { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--step-3); line-height: 1.06; }
.lead { font-size: var(--step-1); max-width: var(--measure); }
.muted { color: var(--ink-60); }
.prose { max-width: var(--measure); } .prose > * + * { margin-top: 1em; }
.link-arrow { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: ' →'; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--sp-m); }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 36px; background: var(--ink); color: var(--paper); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .btn { width: 100%; justify-content: center; } }

/* Capçalera */
.hd { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 500; font-size: 20px; text-decoration: none; letter-spacing: -.01em; }
.logo em { font-family: var(--serif); font-weight: 400; color: var(--accent); margin-left: .18em; }
.nav { display: flex; gap: clamp(12px, 2.4vw, 32px); flex-wrap: wrap; font-size: 15px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-color: currentColor; }
.nav-bit { color: var(--accent); font-weight: 400; }

/* Hero */
.hero { position: relative; background: var(--hero-bg); color: var(--hero-ink); padding: var(--sp-l) 0; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: inherit; opacity: .7; }
.hero-t { font-weight: 300; font-size: clamp(30px, 1.2rem + 3.6vw, 76px); line-height: 1.04; letter-spacing: -.02em; max-width: 18ch; }
.hero-t .word { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--step-5); color: var(--accent); letter-spacing: -.01em; }
.hero .lead { margin-top: var(--sp-m); }
.hero .btn--ghost { color: inherit; border-color: currentColor; }

/* Hero comú (el de Tramuntana): foto a tota amplada, tenyida amb el color de l'entitat */
.hero { padding: calc(var(--sp-l) * 1.3) 0; }
.hero-img { position: absolute; inset: 0; margin: 0; opacity: .42; mix-blend-mode: luminosity; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before, .hero::after { z-index: 1; pointer-events: none; }
.hero-t .word { color: var(--hero-word); }
.hero .btn { background: var(--hero-ink); color: var(--hero-bg); border-color: var(--hero-ink); }
.hero .btn:hover { background: transparent; color: var(--hero-ink); }
.hero .btn--ghost { background: transparent; color: var(--hero-ink); }
.hero .btn--ghost:hover { background: var(--hero-ink); color: var(--hero-bg); }
/* Palma: trama de plànol urbà */
.site-palma .hero::before { content: ''; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(100deg, transparent 30%, #000 90%); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 90%); }
/* Pla: solcs a l'horitzó */
.site-pla .hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; opacity: .22;
  background: repeating-linear-gradient(180deg, #fff 0 1px, transparent 1px 16px);
  mask-image: linear-gradient(transparent, #000); -webkit-mask-image: linear-gradient(transparent, #000); }
.site-pla .hero-img img { object-position: center 30%; }
/* Tramuntana: corbes de nivell */
.site-tram .hero::before { content: ''; position: absolute; right: -10%; top: -30%; width: 80%; aspect-ratio: 1; opacity: .22;
  background: repeating-radial-gradient(ellipse at 60% 55%, transparent 0 22px, #f1f4ee 22px 23px); border-radius: 46% 54% 50% 50%; }

/* Seccions */
.sec { padding: var(--sp-l) 0; }
.sec--tint { background: var(--tint); }
.sec-hd { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: var(--sp-m); }
.sec-hd .n, .axes .n { font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--accent); vertical-align: super; }
.phd { padding: var(--sp-l) 0 calc(var(--sp-m)); border-bottom: 1px solid var(--line); }
.phd .display { font-size: clamp(34px, 1.4rem + 3vw, 72px); max-width: 20ch; }
.phd .lead { margin-top: var(--sp-m); }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--sp-l); }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: var(--sp-m); } }

.axes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-m); }
aside .axes { grid-template-columns: 1fr; gap: 24px; }
.axes li { border-top: 2px solid var(--accent); padding-top: 18px; }
.axes h3 { font-size: var(--step-2); font-weight: 400; margin: 8px 0; }
.axes p { color: var(--ink-60); }
@media (max-width: 760px) { .axes { grid-template-columns: 1fr; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); padding: 28px; text-decoration: none; min-height: 220px; transition: background .2s; }
.card h3 { font-size: var(--step-1); font-weight: 500; }
.card p { color: var(--ink-60); flex: 1; }
.card .go { font-size: 13px; color: var(--accent); }
.card:hover { background: var(--tint); }
.sec--tint .card:hover { background: #fff8; }

.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1px solid var(--ink); border-radius: 100px; padding: 6px 16px; font-size: 14px; }

/* Banda Bitàcola */
.band { background: var(--ink); color: var(--paper); padding: var(--sp-l) 0; }
.band-in { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-m); align-items: end; }
.band .eyebrow { color: var(--accent); }
.band .eyebrow { color: var(--hero-word); }
.band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.band .btn--ghost { background: transparent; color: var(--paper); }
.band .btn:hover { background: transparent; color: var(--paper); }
@media (max-width: 860px) { .band-in { grid-template-columns: 1fr; } }

/* Peu */
.ft { padding: var(--sp-m) 0; border-top: 1px solid var(--line); font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--sp-m); }
.ft-grid a { text-decoration: none; } .ft-grid a:hover { text-decoration: underline; }
.ft .logo { display: block; margin-bottom: 8px; }
.sis { margin-top: var(--sp-m); padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-60); }
.sis span { color: var(--ink); }
@media (max-width: 760px) { .ft-grid { grid-template-columns: 1fr; } }


.card { padding: 0 0 28px; }
.card > :not(figure) { margin-left: 28px; margin-right: 28px; }
.card figure { margin: 0 0 8px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--tint); }
.card figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover figure img { transform: scale(1.04); }
.site-tram .card figure img { filter: saturate(.85); }
.site-palma .hero-img { opacity: .3; }

/* Menú: Recursos desplegable i Participa */
.nav { align-items: center; }
.dd { position: relative; }
.dd button { font: inherit; background: none; border: 0; padding: 6px 0; cursor: pointer; color: inherit; border-bottom: 1px solid transparent; }
.dd:hover button, .dd:focus-within button { border-color: currentColor; }
.dd-m { position: absolute; right: 0; top: 100%; min-width: 250px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.08); padding: 8px 0; display: none; z-index: 20; }
.dd:hover .dd-m, .dd:focus-within .dd-m { display: block; }
.dd-m a { display: block; padding: 9px 18px; border: 0; }
.dd-m a:hover { background: var(--tint); }
.dd-m a:last-child { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--accent); }
.nav-cta { background: var(--ink); color: #fff; padding: 8px 18px !important; border: 0 !important; }
.nav-cta:hover { background: var(--accent); }
@media (max-width: 640px) { .dd-m { left: 0; right: auto; } }
.ft-res a { display: block; }

/* Proves */
.proof { background: var(--hero-bg); color: var(--hero-ink); padding: var(--sp-m) 0; }
.proof ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-m); }
.proof b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: var(--step-3); color: var(--hero-word); line-height: 1; }
.proof span { display: block; margin-top: 8px; font-size: 15px; opacity: .85; }
@media (max-width: 760px) { .proof ul { grid-template-columns: 1fr 1fr; } }

/* Com treballam, territori, fites */
.axes--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .axes--4 { grid-template-columns: 1fr 1fr; } }
.big-n { font-family: var(--serif); font-style: italic; font-size: clamp(80px, 12vw, 180px); line-height: .9; color: var(--accent); }
.big-n span { display: block; font-family: var(--sans); font-style: normal; font-size: var(--step-1); color: var(--ink); margin: 8px 0 var(--sp-m); }
.tags--big li { font-size: 16px; padding: 8px 18px; }
.tl { list-style: none; padding: 0; border-left: 2px solid var(--accent); }
.tl li { position: relative; padding: 0 0 22px 24px; }
.tl li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl b { font-size: var(--step-1); font-weight: 500; }
.tl p { color: var(--ink-60); }

/* Ecosistema XXI */
.eco .lead { margin-bottom: var(--sp-m); }
.eco-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-n { display: flex; flex-direction: column; gap: 4px; padding: 28px; border: 1px solid var(--line); text-decoration: none; transition: border-color .2s; }
.eco-n:hover { border-color: var(--ink); }
.eco-n .w { font-family: var(--serif); font-style: italic; font-size: var(--step-2); }
.eco-palma .w { color: #c2502e; } .eco-pla .w { color: #c8920f; } .eco-tram .w { color: #2e6b4a; }
.eco-n.is-here { border: 2px solid var(--accent); background: var(--tint); }
.eco-base { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.eco-base a { display: flex; flex-direction: column; gap: 4px; padding: 20px 28px; background: var(--ink); color: #fff; text-decoration: none; }
.eco-base .muted { color: #bbb; }
@media (max-width: 760px) { .eco-g, .eco-base { grid-template-columns: 1fr; } }

/* Visió: plànol conceptual */
.vmap { display: flex; flex-direction: column; align-items: stretch; }
.vl { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-60); margin: 0 0 10px; text-align: center; }
.vrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vb { border: 1px solid var(--line); padding: 16px 20px; text-align: center; background: #fff; }
.vb b { display: block; font-weight: 500; }
.vb span { font-size: 14px; color: var(--ink-60); }
.varr { height: 44px; position: relative; }
.varr::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 10px; border-left: 1px solid var(--accent); }
.varr::after { content: ''; position: absolute; left: calc(50% - 5px); bottom: 6px; border: 5px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
.vcore { background: var(--hero-bg); color: var(--hero-ink); padding: 28px clamp(16px, 3vw, 36px) 32px; }
.vcore .vl { color: var(--hero-word); }
.vcols { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.vcols::before { content: ''; position: absolute; left: 6%; right: 6%; top: 34px; border-top: 1px dashed rgba(255,255,255,.35); }
.vcols::after { content: '→'; position: absolute; right: 2%; top: 22px; color: var(--hero-word); }
.vc { position: relative; padding: 0 clamp(8px, 2vw, 24px); text-align: center; }
.vc + .vc { border-left: 1px solid rgba(255,255,255,.15); }
.vt { display: inline-block; position: relative; z-index: 1; font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.2; color: var(--hero-word); background: var(--hero-bg); padding: 0 12px; }
.vc b { display: block; font-weight: 500; margin: 6px 0 12px; }
.vc ul { list-style: none; padding: 0; font-size: 14px; opacity: .85; }
.vc li + li { margin-top: 4px; }
.vgoal { text-align: center; font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--accent); max-width: 30ch; margin: 0 auto; }
@media (max-width: 760px) {
  .vrow, .vcols { grid-template-columns: 1fr; }
  .vcols::before, .vcols::after { display: none; }
  .vc + .vc { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); margin-top: 16px; padding-top: 16px; }
}

/* Persones i xarxa */
.ppl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 28px 20px; }
.ppl li { display: flex; flex-direction: column; gap: 2px; }
.ppl .ini { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 22px; margin-bottom: 10px; }
.ppl b { font-weight: 500; }
.ppl span:last-child { color: var(--ink-60); font-size: 14px; }
.nl { list-style: none; padding: 0; }
.nl li { padding: 14px 0; border-top: 1px solid var(--line); }
.nl b { display: block; font-weight: 500; }
.nl span { color: var(--ink-60); font-size: 15px; }
.ppl .role { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 640px) { .hd { position: static; } .hd-in { padding-top: 10px; padding-bottom: 10px; } .nav { gap: 6px 16px; font-size: 14px; } .nav-cta { padding: 6px 14px !important; } }

/* Pàgina de projecte */
.phd--proj .two { align-items: end; }
.phd--proj .eyebrow a { text-decoration: none; border-bottom: 1px solid currentColor; }
.phd--proj .lead { margin-top: var(--sp-m); }
.proj-img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.proj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bcard { min-height: 0; }
.bcard figure:empty { display: none; }
.bcard .eyebrow { margin: 18px 28px 0; }
.more { margin-top: 18px; }

/* =========================================================
   Tema «fofi»: direcció d'art de fim.eco (blanc, serif cursiva,
   etiquetes [entre claudàtors], fotos tramades) + accent flúor
   ========================================================= */
.theme-fofi { --accent: #ff6a13; --tint: #f6f6f4; --hero-bg: #111; --hero-ink: #fff; --hero-word: #ff6a13; --line: #e4e4e4; }
.theme-fofi ::selection { background: var(--accent); color: #111; }
/* etiquetes [QUÈ] */
.theme-fofi .eyebrow { text-transform: uppercase; font-size: 11px; letter-spacing: .08em; color: var(--ink); }
.theme-fofi .eyebrow::before { content: '['; } .theme-fofi .eyebrow::after { content: ']'; }
.theme-fofi .eyebrow:empty { display: none; }
/* capçalera i botons */
.theme-fofi .hd { background: rgba(255,255,255,.96); border-bottom-color: transparent; }
.theme-fofi .logo em { color: var(--ink); }
.theme-fofi .logo::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.theme-fofi .nav { font-size: 13px; }
.theme-fofi .nav-cta { border-radius: 20px; font-size: 12px; font-weight: 700; padding: 9px 30px !important; background: #000; }
.theme-fofi .nav-cta:hover { background: var(--accent); color: #111; }
.theme-fofi .btn { font-size: 12px; letter-spacing: .08em; min-height: 46px; padding: 12px 34px; background: #000; border-color: #000; color: #fff; }
.theme-fofi .btn:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.theme-fofi .btn--ghost { background: transparent; color: #000; }
.theme-fofi .link-arrow { border-bottom: 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; transition: background-size .2s; }
.theme-fofi .link-arrow:hover { background-size: 100% 100%; opacity: 1; }
/* hero blanc: frase gran centrada + foto tramada a sota */
.theme-fofi .hero { background: #fff; color: var(--ink); text-align: center; padding: var(--sp-l) 0 0; }
.theme-fofi .hero::before, .theme-fofi .hero::after { display: none; }
.theme-fofi .hero .eyebrow { opacity: 1; }
.theme-fofi .hero-t { margin: 0 auto; max-width: 20ch; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.theme-fofi .hero-t .word { font-size: clamp(16px, 1rem + .4vw, 20px); font-family: var(--sans); font-style: normal; color: var(--ink); text-transform: uppercase; letter-spacing: .12em; margin-bottom: .6em; }
.theme-fofi .hero-t .word::before { content: '['; } .theme-fofi .hero-t .word::after { content: ']'; }
.theme-fofi .hero .lead { margin: var(--sp-m) auto 0; }
.theme-fofi .hero .cta { justify-content: center; }
.theme-fofi .hero .btn { background: #000; color: #fff; border-color: #000; }
.theme-fofi .hero .btn--ghost { background: transparent; color: #000; }
.theme-fofi .hero-img { position: relative; inset: auto; opacity: 1; mix-blend-mode: normal; margin-top: var(--sp-l); height: clamp(240px, 36vw, 520px); }
.theme-fofi .hero-img img { image-rendering: pixelated; }
/* fotos tramades a tot arreu */
.theme-fofi .card figure, .theme-fofi .proj-img { background: #fff; }
.theme-fofi .card figure img, .theme-fofi .proj-img img { image-rendering: pixelated; }
.theme-fofi .card { border: 1px solid var(--line); }
.theme-fofi .card:hover { background: #fff; border-color: #000; }
.theme-fofi .card .go { color: #000; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.theme-fofi .card:hover .go { background: var(--accent); }
.theme-fofi .sec--tint { background: var(--tint); }
/* blocs foscos: negre amb accent */
.theme-fofi .proof { background: #fff; color: var(--ink); border-top: 1px solid #000; border-bottom: 1px solid #000; }
.theme-fofi .proof b { color: var(--ink); }
.theme-fofi .proof li { border-left: 3px solid var(--accent); padding-left: 16px; }
.theme-fofi .axes li { border-top-color: #000; }
.theme-fofi .axes .n, .theme-fofi .sec-hd .n { color: var(--ink); background: var(--accent); padding: 0 4px; }
.theme-fofi .tl { border-left-color: #000; } .theme-fofi .tl li::before { background: var(--accent); border: 1px solid #000; }
.theme-fofi .big-n { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 8px; text-underline-offset: 10px; }
.theme-fofi .ppl .ini { background: #fff; border: 1px solid #000; color: #000; }
.theme-fofi .ppl .role { color: #000; background: var(--accent); align-self: flex-start; padding: 0 5px; }
.theme-fofi .tags li { border-radius: 20px; }
.theme-fofi .eco-n.is-here { border: 2px solid #000; background: var(--accent); }
.theme-fofi .eco-n.is-here .w, .theme-fofi .eco-n.is-here .muted { color: #000; }
.theme-fofi .band { background: #fff; color: var(--ink); border-top: 1px solid #000; }
.theme-fofi .band .btn { background: #000; color: #fff; border-color: #000; }
.theme-fofi .band .btn--ghost { background: transparent; color: #000; }
.theme-fofi .vgoal { color: var(--ink); }
.theme-fofi .vgoal::after { content: ''; display: block; width: 60px; height: 6px; background: var(--accent); margin: 14px auto 0; }
/* peu fim: frase gran + dos botons + línia legal */
.fimfoot { padding: var(--sp-l) 0; border-top: 1px solid var(--line); }
.fimfoot-t { font-family: var(--serif); font-style: italic; font-size: var(--step-3); line-height: 1.1; max-width: 26ch; }
.fimfoot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: var(--sp-m); }
.fimfoot-cta .eyebrow { margin: 0; }
.ft--fim { font-size: 12px; padding: 18px 0; }
.ft--fim .ft-grid { grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.ft--fim .logo { font-size: 15px; }
.ft--fim .ft-res a { display: inline; margin-right: 14px; }
.ft--fim .sis { font-size: 11px; }
.theme-fofi .hero > .wrap > .eyebrow { display: none; }

/* Formularis */
.form { display: grid; gap: 18px; max-width: 640px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 400; }
.form input:not([type=radio]):not([type=checkbox]), .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #bbb; background: #fff; color: var(--ink); border-radius: 0; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--ink); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.form .opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); cursor: pointer; }
.form .opt:has(input:checked) { border-color: var(--ink); background: var(--tint); }
.form .opt b { font-weight: 500; }
.form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-60); }
.form .chk input { margin-top: 3px; accent-color: var(--accent); }
.form input[type=radio] { accent-color: var(--accent); }
.form .btn { justify-self: start; cursor: pointer; }
.small { font-size: 13px; }

/* Estat del projecte i resultats */
.card figure { position: relative; }
.st { display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; font-weight: 500; }
.card .st { position: absolute; left: 12px; top: 12px; }
.st--on { background: var(--accent); color: #fff; }
.st--done { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.phd--proj .st { margin-bottom: 12px; }
.fets { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.fets li { background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.fets .y { font-family: var(--serif); font-style: italic; font-size: var(--step-2); color: var(--accent); }
.fets b { font-size: var(--step-1); font-weight: 500; }
.fets p { color: var(--ink-60); font-size: 15px; }
@media (max-width: 900px) { .fets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .fets { grid-template-columns: 1fr; } }

/* Peu: xarxes i línia legal */
.ft-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-m); }
.ft-soc a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-size: 14px; transition: border-color .2s, color .2s; }
.ft-soc a:hover { border-color: var(--accent); color: var(--accent); }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 12px; color: var(--ink-60); }
.ft-legal a { text-decoration: none; margin-left: 18px; } .ft-legal a:first-child { margin-left: 0; }
.ft-legal a:hover { color: var(--ink); text-decoration: underline; }
.legal h2 { font-size: var(--step-1); font-weight: 500; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; padding-top: var(--sp-m); }
section[id], #soci, #contacte, #butlleti { scroll-margin-top: 80px; }
.part { border-top: 2px solid var(--ink); padding: var(--sp-m) 0 0; }
.part h2 { font-size: var(--step-1); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.part h2::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* Què feim: línies de treball */
.jump-lines { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: var(--sp-m); padding-bottom: var(--sp-m); border-bottom: 1px solid var(--line); }
.jump-lines a { text-decoration: none; border: 1px solid var(--ink); border-radius: 20px; padding: 6px 16px; font-size: 14px; }
.jump-lines a:hover { background: var(--ink); color: #fff; }
.line-g { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--sp-l); align-items: start; }
.line-hd { position: sticky; top: 90px; }
.line-hd .n { display: inline-block; font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.line-hd .lead { margin: 16px 0 12px; }
@media (max-width: 900px) { .line-g { grid-template-columns: 1fr; gap: var(--sp-m); } .line-hd { position: static; } }
.prows { display: grid; gap: 14px; }
.prow { display: grid; grid-template-columns: 180px 1fr 24px; gap: 22px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 14px; text-decoration: none; transition: border-color .2s, transform .2s; }
.prow:hover { border-color: var(--ink); transform: translateX(4px); }
.prow figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
.prow figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prow h3 { font-size: var(--step-1); font-weight: 500; margin: 6px 0 4px; }
.prow p { color: var(--ink-60); font-size: 15px; margin-bottom: 6px; }
.prow .go { font-size: 20px; color: var(--accent); }
@media (max-width: 560px) { .prow { grid-template-columns: 1fr; } .prow .go { display: none; } }
.method .ex { font-size: 14px; margin-top: 10px; }
.method .ex a { color: var(--ink); text-underline-offset: 3px; }
.join { text-align: center; border-top: 1px solid var(--line); }
.join .cta { justify-content: center; }

/* Formulari d'alta: missatge de resposta i widget Turnstile */
.form-msg{margin:12px 0 0;min-height:1.4em;font-weight:600}
.form-msg.ok{color:#1f6b3a}.form-msg.err{color:#9b1c1c}
.cf-turnstile{margin:8px 0 16px}
.quota[hidden]{display:none}

.proof--topics b { font-size: var(--step-2); line-height: 1.15; }
.proof--topics span { font-size: 14px; }
@media (max-width: 760px) { .proof--topics ul { grid-template-columns: 1fr; } }
