:root {
  --ink: #151210;
  --ink-2: #211d1a;
  --paper: #f2eee5;
  --paper-2: #ddd5c7;
  --red: #d8442f;
  --red-dark: #9f2c1e;
  --muted: #a69d90;
  --line: rgba(242, 238, 229, .18);
  --max: 1320px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; color: var(--ink); background: var(--paper); }
.skip-link:focus { top: 1rem; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 15; display: flex; align-items: center; justify-content: space-between; min-height: 92px; padding: 1rem clamp(1.2rem, 4vw, 4.5rem); transition: background .25s, min-height .25s; }
.site-header.is-scrolled { min-height: 72px; background: rgba(21, 18, 16, .94); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; line-height: 1; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid currentColor; font-family: var(--serif); font-size: 1.05rem; font-weight: 700; transform: rotate(-3deg); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.brand small { display: block; margin-top: .35rem; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.5rem); }
.main-nav a { position: relative; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.55rem; height: 2px; background: var(--red); transition: right .2s; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; color: var(--paper); background: transparent; border: 0; }

.hero { position: relative; display: grid; min-height: 100vh; align-items: end; overflow: hidden; padding: 9rem clamp(1.3rem, 7vw, 7.5rem) clamp(3rem, 8vw, 7.5rem); background: radial-gradient(circle at 75% 20%, rgba(216, 68, 47, .24), transparent 35%), var(--ink-2); }
.hero-compact { min-height: 68vh; }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media .hero-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }
.hero-shade { background: linear-gradient(90deg, rgba(13, 11, 10, .94) 0%, rgba(13, 11, 10, .62) 58%, rgba(13, 11, 10, .25)), linear-gradient(0deg, rgba(13, 11, 10, .88), transparent 65%); }
.hero:not(:has(.hero-image)) { background: radial-gradient(circle at 75% 20%, rgba(216, 68, 47, .24), transparent 35%), var(--ink-2); }
.hero-content { position: relative; z-index: 1; max-width: 1050px; }
.eyebrow { margin: 0 0 1rem; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { max-width: 1000px; margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7.8vw, 8.5rem); font-weight: 400; letter-spacing: -.055em; line-height: .9; text-wrap: balance; }
.hero-compact h1 { font-size: clamp(3.2rem, 6.2vw, 6.8rem); }
.hero-lead { max-width: 760px; margin: 1.8rem 0 0; color: var(--paper-2); font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.65rem); line-height: 1.45; }

.manifesto { display: grid; grid-template-columns: .38fr 1fr; gap: 4rem; max-width: var(--max); margin: auto; padding: clamp(5rem, 10vw, 10rem) clamp(1.3rem, 5vw, 5rem); }
.manifesto h2, .section-title h2, .archive-callout h2, .collaborators h2, .legacy h2 { margin: 0 0 1.4rem; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5.5rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; }
.manifesto div > p { max-width: 770px; color: var(--paper-2); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.7rem); }
.text-link { display: inline-flex; gap: .8rem; align-items: center; margin: .6rem 1.4rem .5rem 0; color: var(--paper); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--red); }
.text-link span { color: var(--red); }
.timeline-home { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.timeline-home div { min-height: 180px; padding: 2rem clamp(1rem, 3vw, 2.5rem); border-right: 1px solid var(--line); }
.timeline-home strong { display: block; color: var(--red); font-family: var(--serif); font-size: 2.5rem; font-weight: 400; }
.timeline-home span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.featured, .catalog, .people, .archive-overview, .archive-collection { max-width: var(--max); margin: auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 5vw, 5rem); }
.section-title { display: flex; justify-content: space-between; align-items: end; margin-bottom: 3rem; }
.section-title h2 { margin: 0; }
.section-title > a { margin-bottom: .8rem; font-weight: 700; text-decoration-color: var(--red); text-underline-offset: .4rem; }
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.3rem, 3vw, 3rem); }
.show-card a { display: block; height: 100%; text-decoration: none; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .35s, transform .6s; }
.show-card:hover .card-media img, .video-card:hover .card-media img { filter: grayscale(.15); transform: scale(1.025); }
.card-media > span { position: absolute; right: 0; bottom: 0; padding: .55rem .8rem; color: var(--ink); background: var(--paper); font-size: .78rem; font-weight: 800; }
.show-card h3 { margin: 1.2rem 0 .55rem; font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2.2rem); font-weight: 400; line-height: 1.1; }
.show-card p { color: var(--muted); }
.show-card b, .video-card b, .memory-card b, .archive-card b { color: var(--red); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

.archive-callout { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(3rem, 8vw, 9rem); align-items: end; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 7vw, 7.5rem); color: var(--ink); background: var(--paper); }
.archive-callout h2 { max-width: 850px; }
.archive-callout p { max-width: 690px; }
.button { display: inline-flex; gap: .6rem; margin-top: 1rem; padding: .9rem 1.25rem; color: white; background: var(--red); border: 1px solid var(--red); text-decoration: none; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.button:hover { background: var(--red-dark); }
.button-outline { color: var(--paper); background: transparent; }
.archive-stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid currentColor; }
.archive-stats span { padding: 1.4rem; border: 1px solid currentColor; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.archive-stats strong { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 4rem); font-weight: 400; letter-spacing: -.04em; }

.section-index { position: sticky; top: 71px; z-index: 6; display: flex; overflow-x: auto; border-block: 1px solid var(--line); background: rgba(21, 18, 16, .95); scrollbar-width: thin; }
.section-index a { flex: 1 0 180px; padding: 1.15rem 1.5rem; text-decoration: none; border-right: 1px solid var(--line); font-family: var(--serif); }
.section-index span { display: block; color: var(--red); font-family: var(--sans); font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story { max-width: var(--max); margin: auto; padding: 4rem clamp(1.3rem, 5vw, 5rem) 9rem; }
.story-section { display: grid; grid-template-columns: .38fr .62fr; gap: clamp(2rem, 7vw, 8rem); padding: 5rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 145px; }
.story-heading { position: sticky; top: 145px; align-self: start; }
.story-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 4.5vw, 4.8rem); font-weight: 400; line-height: 1; }
.story-copy p, .prose p { margin: 0 0 1.5rem; color: var(--paper-2); font-family: var(--serif); font-size: clamp(1.1rem, 1.55vw, 1.35rem); line-height: 1.75; }
.story-image { grid-column: 2; }
.story-image img { width: 100%; max-height: 620px; object-fit: cover; filter: grayscale(1); }

.intro-copy { max-width: 950px; padding: 5rem clamp(1.3rem, 5vw, 5rem); margin: auto; }
.intro-copy p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2rem); }
.catalog-tools { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.catalog-tools label { color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.catalog-tools input { flex: 1; min-width: 0; padding: .85rem 1rem; color: var(--paper); background: var(--ink-2); border: 1px solid var(--line); border-radius: 0; }

.work-detail { display: grid; grid-template-columns: minmax(220px, .3fr) minmax(0, .7fr); gap: clamp(3rem, 9vw, 10rem); max-width: 1180px; margin: auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 5vw, 5rem); }
.work-detail aside { align-self: start; position: sticky; top: 110px; }
.work-detail dl div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.work-detail dt { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.work-detail dd { margin: .2rem 0 0; font-family: var(--serif); font-size: 1.15rem; }
.related { max-width: 1180px; margin: 0 auto 6rem; padding: 2rem clamp(1.3rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.related div { display: flex; flex-wrap: wrap; gap: .8rem; }
.related a { padding: .6rem .9rem; text-decoration: none; border: 1px solid var(--line); }
.next-prev { display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--line); }
.next-prev a { min-height: 150px; padding: 2rem clamp(1.3rem, 5vw, 5rem); text-decoration: none; font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 2rem); }
.next-prev a + a { text-align: right; border-left: 1px solid var(--line); }
.next-prev span { display: block; color: var(--red); font-family: var(--sans); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.person-card { min-width: 0; background: var(--ink); }
.person-card img, .person-card .media-placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.person-card h3 { margin: 0; min-height: 86px; padding: 1.2rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; line-height: 1.2; }
.collaborators { display: grid; grid-template-columns: .4fr .6fr; gap: 5rem; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 7vw, 7.5rem); color: var(--ink); background: var(--paper); }
.collaborators ul { columns: 3; margin: 0; padding: 0; list-style: none; }
.collaborators li { padding: .55rem 0; border-bottom: 1px solid rgba(21, 18, 16, .2); break-inside: avoid; }

.archive-overview .archive-stats { margin-bottom: 5rem; }
.archive-overview .archive-stats span { color: var(--paper); }
.archive-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.archive-card { min-width: 0; background: var(--ink); }
.archive-card a { display: block; min-height: 100%; padding: 1.3rem; text-decoration: none; }
.archive-card a > div { margin: -1.3rem -1.3rem 1.5rem; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink-2); }
.archive-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: .4s; }
.archive-card:hover img { filter: grayscale(.1); transform: scale(1.02); }
.archive-card h2 { margin: 0; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; line-height: 1.1; }
.archive-card p:not(.eyebrow) { color: var(--muted); }
.collection-head { display: flex; justify-content: space-between; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.collection-head a { font-weight: 700; text-decoration-color: var(--red); }
.collection-head p { color: var(--muted); }
.archive-grid { columns: 4 220px; column-gap: 1rem; }
.archive-item { position: relative; display: block; margin-bottom: 1rem; overflow: hidden; background: var(--ink-2); break-inside: avoid; text-decoration: none; }
.archive-item img { width: 100%; height: auto; min-height: 130px; object-fit: cover; filter: grayscale(.65); transition: .3s; }
.archive-item:hover img { filter: grayscale(0); transform: scale(1.015); }
.archive-item span { position: absolute; inset: auto 0 0; padding: 2.5rem .8rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: .72rem; line-height: 1.3; opacity: 0; transition: .2s; }
.archive-item:hover span, .archive-item:focus span { opacity: 1; }

.video-grid, .memory-grid, .legacy, .training { max-width: var(--max); margin: auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 5vw, 5rem); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem); }
.video-card button { display: block; width: 100%; padding: 0; color: inherit; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
.video-card .card-media i { position: absolute; left: 50%; top: 50%; display: grid; width: 68px; height: 68px; place-items: center; color: white; background: var(--red); border-radius: 50%; transform: translate(-50%, -50%); font-style: normal; }
.video-card h2 { margin: 1.4rem 0 .7rem; font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.8rem); font-weight: 400; line-height: 1.1; }
.video-card p { color: var(--muted); }
.memory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.memory-card { background: var(--ink); }
.memory-card a { display: block; height: 100%; min-height: 390px; padding: clamp(1.5rem, 3vw, 3rem); text-decoration: none; }
.memory-card h2 { font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.2rem); font-weight: 400; line-height: 1; }
.memory-card p:not(.eyebrow) { color: var(--muted); }
.legacy { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding-top: 0; }
.legacy > div { padding: clamp(2rem, 5vw, 5rem); color: var(--ink); background: var(--paper); }
.legacy > div + div { color: var(--paper); background: var(--red-dark); }
.legacy h2 { font-size: clamp(2rem, 4vw, 4rem); }
.reading { max-width: 900px; margin: auto; padding: clamp(5rem, 9vw, 9rem) clamp(1.3rem, 4vw, 4rem); }
.reading .prose > p:first-child::first-letter { float: left; margin: .05em .12em 0 0; color: var(--red); font-family: var(--serif); font-size: 5.8rem; line-height: .75; }
.training { display: grid; grid-template-columns: .45fr .55fr; gap: clamp(3rem, 8vw, 8rem); }
.document-stack { display: grid; gap: 1.5rem; }
.document-stack img { width: 100%; }

.site-footer { display: flex; justify-content: space-between; align-items: end; gap: 2rem; min-height: 260px; padding: 4rem clamp(1.3rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.site-footer > div:first-child { display: flex; align-items: center; gap: 1rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: .85rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.media-placeholder { display: grid; place-items: center; min-height: 240px; color: var(--muted); background: linear-gradient(145deg, #29231f, #161311); }
.media-placeholder span { font-family: var(--serif); font-size: 1.3rem; }
.is-missing { position: relative; min-height: 180px; background: linear-gradient(145deg, #29231f, #161311); }
.is-missing::before { content: "Arxiu fotogràfic"; position: absolute; inset: 0; z-index: 0; display: grid; place-items: center; color: var(--muted); font-family: var(--serif); font-size: clamp(1rem, 2vw, 1.5rem); }
.hero-media.is-missing::before { content: "La Farinera · 1981–1991"; font-size: clamp(1.4rem, 4vw, 4rem); }
.lightbox { width: min(94vw, 1500px); max-width: none; height: 92vh; max-height: none; padding: 0; color: var(--paper); background: rgba(12, 10, 9, .96); border: 1px solid var(--line); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox > .lightbox-close { position: absolute; z-index: 3; top: 1rem; right: 1rem; width: 48px; height: 48px; color: white; background: var(--red); border: 0; font-size: 2rem; cursor: pointer; }
.lightbox figure { position: relative; display: grid; height: 100%; margin: 0; overflow: hidden; place-items: center; padding: 1.5rem 5.5rem; touch-action: pan-y; }
.lightbox figure::before { content: "Carregant…"; position: absolute; left: 50%; top: 50%; z-index: 0; padding: .55rem .8rem; color: var(--ink); background: var(--yellow); border: 2px solid #fff; box-shadow: 4px 4px 0 var(--red); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; opacity: 0; transform: translate(-50%,-50%); transition: opacity .12s; }
.lightbox.is-loading figure::before { opacity: 1; }
.lightbox img { position: relative; z-index: 1; max-width: 100%; max-height: calc(92vh - 5rem); object-fit: contain; opacity: 1; cursor: zoom-in; touch-action: none; user-select: none; transition: opacity .16s, transform .16s ease-out; }
.lightbox.is-loading img { opacity: 0; }
.lightbox.is-zoomed img { cursor: zoom-out; transition: opacity .16s; }
.lightbox figcaption { position: absolute; left: 5.5rem; bottom: .6rem; right: 5.5rem; display: flex; justify-content: center; gap: 1rem; color: var(--muted); text-align: center; font-size: .8rem; }
.lightbox figcaption output { color: white; white-space: nowrap; }
.lightbox .gallery-nav { position: absolute; z-index: 2; top: 50%; display: grid; width: 52px; height: 64px; padding: 0; place-items: center; color: var(--ink); background: var(--yellow); border: 2px solid white; box-shadow: 4px 4px 0 var(--red); font-size: 3rem; line-height: 1; cursor: pointer; transform: translateY(-50%); }
.lightbox .gallery-prev { left: 1rem; }
.lightbox .gallery-next { right: 1rem; }
.lightbox .gallery-nav:hover { color: white; background: var(--blue); }
.lightbox .gallery-nav[hidden] { display: none; }
.lightbox .zoom-tools { position: absolute; z-index: 4; top: 1rem; left: 1rem; display: flex; overflow: hidden; background: var(--ink); border: 2px solid #fff; box-shadow: 4px 4px 0 var(--blue); }
.lightbox .zoom-tools button { min-width: 44px; height: 44px; padding: 0 .7rem; color: #fff; background: var(--ink); border: 0; border-right: 1px solid rgba(255,255,255,.35); font-size: 1.15rem; font-weight: 900; cursor: pointer; }
.lightbox .zoom-tools button:last-child { border-right: 0; }
.lightbox .zoom-tools button:hover { color: var(--ink); background: var(--yellow); }
.lightbox .zoom-tools [data-zoom-reset] { min-width: 68px; font-size: .75rem; }
.video-lightbox { width: min(94vw, 1200px); max-width: none; padding: 0; overflow: visible; background: #000; border: 1px solid var(--line); }
.video-lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.video-lightbox > button { position: absolute; z-index: 2; top: -24px; right: -24px; width: 48px; height: 48px; color: #fff; background: var(--red); border: 0; font-size: 2rem; line-height: 1; cursor: pointer; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 980px) {
  .menu-toggle { position: relative; z-index: 2; display: grid; width: 52px; height: 48px; padding: 10px; place-content: center; gap: 5px; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: currentColor; }
  .menu-toggle b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-nav { position: fixed; inset: 0; display: grid; padding: 7rem 2rem 2rem; align-content: center; justify-items: center; background: var(--ink); transform: translateY(-105%); transition: transform .3s; }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav a { font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 3.5rem); font-weight: 400; letter-spacing: 0; text-transform: none; }
  .manifesto, .story-section, .work-detail, .collaborators, .training { grid-template-columns: 1fr; }
  .story-heading, .work-detail aside { position: static; }
  .story-image { grid-column: 1; }
  .show-grid, .archive-cards { grid-template-columns: repeat(2, 1fr); }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
  .collaborators ul { columns: 2; }
}

@media (max-width: 650px) {
  body { font-size: 16px; }
  .site-header { min-height: 74px; }
  .brand small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero, .hero-compact { min-height: 72vh; padding-bottom: 3rem; }
  .home .hero { min-height: 100svh; }
  .hero h1, .hero-compact h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .timeline-home { grid-template-columns: 1fr 1fr; }
  .timeline-home div { min-height: 125px; }
  .timeline-home div:last-child { grid-column: 1 / -1; }
  .show-grid, .archive-cards, .video-grid, .memory-grid, .legacy { grid-template-columns: 1fr; }
  .archive-callout { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: repeat(2, 1fr); }
  .person-card h3 { min-height: 76px; padding: .9rem; font-size: 1rem; }
  .collaborators ul { columns: 1; }
  .section-title { display: block; }
  .catalog-tools { display: block; }
  .catalog-tools label { display: block; margin-bottom: .6rem; }
  .catalog-tools input { width: 100%; }
  .next-prev a { padding: 1.3rem; font-size: 1rem; }
  .archive-grid { columns: 2 140px; }
  .site-footer { display: block; min-height: 0; }
  .footer-links { margin-top: 2rem; }
  .video-lightbox { width: 96vw; }
  .video-lightbox > button { top: -52px; right: 0; }
}

/* Ajust 2.12: a l'escriptori es conserva la part superior de la fotografia,
   com al mòbil, sense desplaçar-la cap a la zona vermella buida. */
@media (min-width: 981px) {
  .home .hero-media .hero-image { object-position: center top; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ── Direcció visual 2.0: arxiu editorial contemporani ───────────── */
:root {
  --ink: #181818;
  --ink-2: #292929;
  --paper: #f7f2e8;
  --paper-2: #eee5d5;
  --red: #ff4b2b;
  --red-dark: #d9361d;
  --blue: #3155ff;
  --yellow: #f4d84b;
  --pink: #ff83c6;
  --mint: #83dfc1;
  --muted: #625e57;
  --line: rgba(24, 24, 24, .24);
  --serif: "Aptos Display", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --sans: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
}

body { color: var(--ink); background: var(--paper); font-family: var(--sans); }
body::before { opacity: .13; background-image: radial-gradient(rgba(24,24,24,.35) .65px, transparent .65px); background-size: 5px 5px; mix-blend-mode: multiply; }
main { overflow: hidden; }
.eyebrow { color: var(--blue); font-size: .72rem; letter-spacing: .16em; }

.site-header { color: #fff; }
.site-header.is-scrolled { min-height: 74px; color: var(--ink); background: rgba(247, 242, 232, .93); border-bottom: 2px solid var(--ink); box-shadow: 0 5px 0 rgba(49,85,255,.18); }
.brand-mark { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--red); font-family: var(--sans); font-weight: 900; transform: rotate(-5deg); }
.brand strong { font-family: var(--sans); font-size: 1.2rem; font-weight: 900; letter-spacing: -.025em; }
.brand small { color: currentColor; opacity: .72; }
.main-nav a { font-size: .73rem; font-weight: 900; letter-spacing: .1em; }
.main-nav a::after { bottom: -.45rem; height: 5px; background: var(--yellow); transform: rotate(-2deg); }
.site-header.is-scrolled .main-nav a::after { background: var(--blue); }

.hero { min-height: 94vh; margin-bottom: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(4rem, 9vw, 8rem); background: var(--blue); clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%); }
.hero-compact { min-height: 64vh; }
.hero::after { content: "1981—1991"; position: absolute; z-index: 1; top: 16%; right: -1.5rem; padding: .45rem 1.1rem; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--red); font-size: clamp(.75rem, 1.4vw, 1rem); font-weight: 900; letter-spacing: .12em; transform: rotate(5deg); }
.hero-media .hero-image { filter: grayscale(.78) contrast(1.12) saturate(.7); }
.hero-shade { background: linear-gradient(105deg, rgba(18,18,18,.9) 0%, rgba(18,18,18,.57) 52%, rgba(49,85,255,.25)), linear-gradient(0deg, rgba(18,18,18,.72), transparent 65%); }
.hero:not(:has(.hero-image)) { background: linear-gradient(135deg, var(--blue) 0 72%, var(--pink) 72%); }
.hero-content { max-width: 1120px; }
.hero .eyebrow { display: inline-block; margin-bottom: 1.4rem; padding: .42rem .75rem; color: var(--ink); background: var(--yellow); transform: rotate(-1deg); }
.hero h1 { font-family: var(--sans); font-size: clamp(3.3rem, 8.7vw, 9.2rem); font-weight: 950; letter-spacing: -.075em; line-height: .82; text-transform: uppercase; }
.hero-compact h1 { font-size: clamp(3.1rem, 7vw, 7.2rem); }
.hero-lead { max-width: 800px; color: #fff; font-family: var(--sans); font-size: clamp(1.05rem, 1.8vw, 1.45rem); font-weight: 650; line-height: 1.4; }

.manifesto { position: relative; margin-block: 2rem; }
.manifesto::before { content: "✦"; position: absolute; right: 7%; top: 4rem; color: var(--pink); font-size: clamp(4rem, 10vw, 10rem); line-height: 1; transform: rotate(15deg); }
.manifesto h2, .section-title h2, .archive-callout h2, .collaborators h2, .legacy h2 { font-family: var(--sans); font-weight: 900; letter-spacing: -.06em; line-height: .92; }
.manifesto div > p, .intro-copy p { color: var(--ink); font-family: var(--sans); font-weight: 550; line-height: 1.5; }
.text-link { color: var(--ink); border-bottom: 5px solid var(--yellow); }
.text-link span { color: var(--blue); }

.timeline-home { margin: 0 clamp(1rem, 3vw, 3rem); background: var(--ink); border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--blue); transform: rotate(-.4deg); }
.timeline-home div { color: var(--ink); border-color: var(--ink); }
.timeline-home div:nth-child(5n+1) { background: var(--yellow); }
.timeline-home div:nth-child(5n+2) { background: var(--pink); }
.timeline-home div:nth-child(5n+3) { background: var(--mint); }
.timeline-home div:nth-child(5n+4) { background: #fff; }
.timeline-home div:nth-child(5n+5) { color: #fff; background: var(--blue); }
.timeline-home strong { color: inherit; font-family: var(--sans); font-weight: 950; letter-spacing: -.06em; }

.section-title { padding-bottom: 1.2rem; border-bottom: 5px solid var(--ink); }
.section-title > a { padding: .5rem .8rem; color: #fff; background: var(--blue); text-decoration: none; transform: rotate(1.5deg); }
.show-grid { gap: clamp(1.5rem, 3vw, 3.2rem); }
.show-card { padding: .65rem; background: #fff; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--ink); transition: transform .25s, box-shadow .25s; }
.show-card:nth-child(3n+1) { transform: rotate(-.7deg); }
.show-card:nth-child(3n+2) { transform: translateY(1.2rem) rotate(.6deg); }
.show-card:hover { transform: translate(-3px, -5px) rotate(0); box-shadow: 11px 13px 0 var(--blue); }
.card-media { background: var(--paper-2); }
.card-media img { filter: grayscale(.72) saturate(.8); }
.show-card:hover .card-media img, .video-card:hover .card-media img { filter: grayscale(0) saturate(1.12); transform: scale(1.045); }
.card-media > span { color: #fff; background: var(--blue); }
.show-card h3, .video-card h2 { font-family: var(--sans); font-weight: 900; letter-spacing: -.045em; }
.show-card p, .video-card p { color: var(--muted); }
.show-card b, .video-card b, .memory-card b, .archive-card b { color: var(--blue); font-weight: 900; }

.archive-callout { margin-top: 7rem; color: #fff; background: var(--blue); clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 94%); }
.archive-callout .eyebrow { color: var(--yellow); }
.button { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-weight: 900; transition: transform .2s, box-shadow .2s; }
.button:hover { color: #fff; background: var(--red); transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--ink); }
.button-outline { color: #fff; background: var(--blue); }
.archive-stats { border: 2px solid currentColor; transform: rotate(1deg); }
.archive-stats span { border: 1px solid currentColor; }
.archive-stats strong { font-family: var(--sans); font-weight: 950; }

.section-index { top: 73px; border-block: 2px solid var(--ink); background: var(--yellow); }
.section-index a { color: var(--ink); border-color: var(--ink); font-family: var(--sans); font-weight: 800; }
.section-index span { color: var(--blue); }
.story-section { border-color: var(--line); }
.story-heading h2 { font-family: var(--sans); font-weight: 950; letter-spacing: -.055em; }
.story-copy p, .prose p { color: var(--ink); font-family: var(--sans); font-size: clamp(1.06rem, 1.4vw, 1.28rem); line-height: 1.72; }
.story-image { padding: .65rem; background: var(--pink); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1deg); }
.story-image img { filter: grayscale(.55); transition: filter .4s, transform .5s; }
.story-image:hover img { filter: grayscale(0); transform: scale(1.01); }

.catalog-tools { border-color: var(--ink); }
.catalog-tools label { color: var(--ink); }
.catalog-tools input { color: var(--ink); background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.work-detail dl div, .related, .next-prev { border-color: var(--line); }
.work-detail dt { color: var(--blue); }
.work-detail dd, .next-prev a { font-family: var(--sans); font-weight: 800; }
.related a { background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--pink); }
.next-prev { border-width: 2px; }
.next-prev a:first-child { background: var(--yellow); }
.next-prev a:last-child { color: #fff; background: var(--blue); }
.next-prev span { color: inherit; opacity: .75; }

/* Membres: retrat en gris que recupera color i s'acosta en passar-hi */
.people-grid { grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.8rem); background: transparent; border: 0; }
.person-card { position: relative; overflow: hidden; background: var(--yellow); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); transition: transform .25s, box-shadow .25s; }
.person-card:nth-child(4n+2) { background: var(--pink); transform: translateY(1rem); }
.person-card:nth-child(4n+3) { background: var(--mint); transform: rotate(.8deg); }
.person-card:nth-child(4n+4) { color: #fff; background: var(--blue); transform: rotate(-.7deg); }
.person-card:hover { z-index: 2; transform: translate(-3px,-7px) rotate(0); box-shadow: 11px 13px 0 var(--red); }
.person-card img, .person-card .media-placeholder { filter: grayscale(.82) contrast(1.04) saturate(.75); transition: filter .4s ease, transform .6s cubic-bezier(.2,.75,.2,1); }
.person-card:hover img, .person-card:focus-within img { filter: grayscale(0) contrast(1) saturate(1.12); transform: scale(1.055); }
.person-card h3 { position: relative; z-index: 1; min-height: 78px; font-family: var(--sans); font-weight: 900; letter-spacing: -.035em; }
.collaborators { color: var(--ink); background: var(--yellow); clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); }
.collaborators .eyebrow { color: var(--red); }
.collaborators li { border-color: rgba(24,24,24,.3); font-weight: 650; }

.archive-overview .archive-stats span { color: var(--ink); }
.archive-cards, .memory-grid { gap: 1.25rem; background: transparent; border: 0; }
.archive-card, .memory-card { color: var(--ink); background: #fff; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.archive-card:nth-child(3n+2), .memory-card:nth-child(3n+2) { background: var(--mint); transform: translateY(1rem); }
.archive-card:nth-child(3n+3), .memory-card:nth-child(3n+3) { background: var(--pink); }
.archive-card a > div { background: var(--paper-2); }
.archive-card img { filter: grayscale(.65) saturate(.8); }
.archive-card:hover img { filter: grayscale(0) saturate(1.1); transform: scale(1.045); }
.archive-card h2, .memory-card h2 { font-family: var(--sans); font-weight: 900; letter-spacing: -.04em; }
.archive-card p:not(.eyebrow), .memory-card p:not(.eyebrow) { color: var(--muted); }
.collection-head { border-color: var(--ink); }
.collection-head p { color: var(--muted); }
.archive-item { background: var(--paper-2); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--yellow); }
.archive-item img { filter: grayscale(.4) saturate(.85); }
.archive-item:hover img { filter: grayscale(0) saturate(1.1); transform: scale(1.035); }

.video-card { padding: .7rem; background: #fff; border: 2px solid var(--ink); box-shadow: 7px 7px 0 var(--pink); }
.video-card:nth-child(even) { box-shadow: 7px 7px 0 var(--blue); transform: translateY(1rem); }
.video-card .card-media i { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
.legacy > div { color: var(--ink); background: var(--mint); }
.legacy > div + div { color: var(--ink); background: var(--pink); }
.reading .prose > p:first-child::first-letter { color: var(--blue); font-family: var(--sans); font-weight: 950; }
.media-placeholder, .is-missing { color: var(--muted); background: linear-gradient(145deg, var(--paper-2), #fff); }
.media-placeholder span, .is-missing::before { font-family: var(--sans); font-weight: 900; }

.site-footer { color: #fff; background: var(--ink); border-top: 10px solid var(--blue); }
.site-footer .brand-mark { color: var(--ink); }
.site-footer p { color: #d6d0c5; }
.lightbox { color: #fff; background: rgba(18,18,18,.97); }
.lightbox > .lightbox-close, .video-lightbox > button { background: var(--red); border: 2px solid #fff; box-shadow: 4px 4px 0 var(--yellow); }

@media (max-width: 980px) {
  .main-nav { color: var(--ink); background: var(--yellow); }
  .main-nav a { font-family: var(--sans); font-weight: 950; text-transform: uppercase; }
  .people-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 650px) {
  .hero, .hero-compact { min-height: 74vh; clip-path: polygon(0 0, 100% 0, 100% 96%, 0 100%); }
  .hero h1, .hero-compact h1 { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero::after { top: 18%; right: -1rem; }
  .timeline-home { margin-inline: .7rem; box-shadow: 6px 7px 0 var(--blue); }
  .show-card:nth-child(n), .video-card:nth-child(n), .archive-card:nth-child(n), .memory-card:nth-child(n) { transform: none; }
  .people-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .person-card:nth-child(n) { transform: none; }
  .person-card h3 { min-height: 72px; padding: .8rem; font-size: .95rem; }
  .archive-callout, .collaborators { clip-path: none; }
}

/* Ajust 2.1: portades més lluminoses i Memòria interactiva */
.hero-media .hero-image { filter: grayscale(.28) brightness(1.08) contrast(1.03) saturate(.95); }
.hero-shade { background: linear-gradient(105deg, rgba(12,12,12,.7) 0%, rgba(12,12,12,.38) 53%, rgba(49,85,255,.12)), linear-gradient(0deg, rgba(12,12,12,.58), transparent 62%); }
.hero h1 { color: #fff; text-shadow: 0 4px 28px rgba(0,0,0,.34); }

.memory-card { transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, background-color .28s, color .28s; }
.memory-card:nth-child(3n+1) { background: var(--yellow); transform: rotate(-.6deg); }
.memory-card:nth-child(3n+2) { background: var(--mint); transform: translateY(1rem) rotate(.6deg); }
.memory-card:nth-child(3n+3) { background: var(--pink); transform: rotate(-.4deg); }
.memory-card a { transition: transform .28s; }
.memory-card:hover { z-index: 2; color: #fff; background: var(--blue); transform: translate(-4px,-8px) rotate(0); box-shadow: 12px 14px 0 var(--red); }
.memory-card:hover a { transform: scale(1.018); }
.memory-card:hover .eyebrow, .memory-card:hover b { color: var(--yellow); }
.memory-card:hover p:not(.eyebrow) { color: rgba(255,255,255,.82); }

@media (max-width: 650px) {
  .memory-card:nth-child(n) { transform: none; }
  .lightbox figure { padding: 4.5rem .5rem 5rem; }
  .lightbox figcaption { left: .8rem; right: .8rem; bottom: 1rem; display: grid; gap: .2rem; }
  .lightbox .gallery-nav { top: auto; bottom: 3.7rem; width: 48px; height: 48px; font-size: 2.4rem; transform: none; opacity: .92; }
  .lightbox .gallery-prev { left: .8rem; }
  .lightbox .gallery-next { right: .8rem; }
  .lightbox .zoom-tools { top: 1rem; left: .6rem; }
  .lightbox .zoom-tools button { min-width: 40px; height: 40px; padding-inline: .55rem; }
  .lightbox .zoom-tools [data-zoom-reset] { min-width: 60px; }
}

/* Ajust 2.2: el menú mòbil tancat queda completament fora de la vista */
@media (max-width: 980px) {
  .site-header.is-scrolled { backdrop-filter: none; }
  .main-nav {
    inset: auto;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-105%);
    transition: transform .3s, opacity .2s, visibility 0s linear .3s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: transform .3s, opacity .2s, visibility 0s;
  }
  .site-header.is-scrolled .menu-toggle,
  .site-header:has(.main-nav.is-open) .menu-toggle { color: var(--ink); }
}

/* Ajust 2.7: cronologia inicial en targetes independents i animades */
.timeline-home {
  gap: clamp(.8rem, 1.6vw, 1.5rem);
  padding: .5rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}
.timeline-home div {
  position: relative;
  min-width: 0;
  border: 2px solid var(--ink);
  box-shadow: 7px 8px 0 var(--ink);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, filter .28s;
}
.timeline-home div:nth-child(5n+1) { transform: rotate(-1.2deg); }
.timeline-home div:nth-child(5n+2) { transform: translateY(.7rem) rotate(.7deg); }
.timeline-home div:nth-child(5n+3) { transform: rotate(-.5deg); }
.timeline-home div:nth-child(5n+4) { transform: translateY(-.45rem) rotate(.65deg); }
.timeline-home div:nth-child(5n+5) { transform: translateY(.35rem) rotate(-.7deg); }
.timeline-home div:hover {
  z-index: 2;
  filter: saturate(1.12);
  transform: translate(-4px, -9px) rotate(0);
  box-shadow: 12px 15px 0 var(--red);
}
.timeline-home div:hover strong { transform: scale(1.06); }
.timeline-home strong { transform-origin: left center; transition: transform .28s; }

@media (max-width: 650px) {
  .timeline-home { gap: .8rem; padding: .25rem; box-shadow: none; }
  .timeline-home div:nth-child(n) { min-height: 122px; transform: none; }
  .timeline-home div:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 var(--red); }
}

/* Ajust 2.8: barres d'Història i Memòria convertides en targetes */
.section-index {
  gap: clamp(.65rem, 1.2vw, 1rem);
  padding: .85rem clamp(.8rem, 2vw, 2rem) 1.15rem;
  background: var(--paper);
  border-block: 0;
  overflow-y: visible;
}
.section-index a {
  flex-basis: 205px;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background-color .25s, color .25s;
}
.section-index a:nth-child(4n+1) { background: var(--yellow); transform: rotate(-.7deg); }
.section-index a:nth-child(4n+2) { background: var(--pink); transform: translateY(.25rem) rotate(.5deg); }
.section-index a:nth-child(4n+3) { background: var(--mint); transform: rotate(-.4deg); }
.section-index a:nth-child(4n+4) { color: #fff; background: var(--blue); transform: translateY(-.2rem) rotate(.6deg); }
.section-index a:hover {
  z-index: 2;
  color: #fff;
  background: var(--blue);
  transform: translate(-3px,-5px) rotate(0);
  box-shadow: 9px 11px 0 var(--red);
}
.section-index a:hover span { color: var(--yellow); }

.legacy {
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
  padding-top: 1rem;
}
.legacy > div {
  border: 2px solid var(--ink);
  box-shadow: 8px 9px 0 var(--ink);
  transform: rotate(-.65deg);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, background-color .28s, color .28s;
}
.legacy > div + div { transform: translateY(1rem) rotate(.65deg); }
.legacy > div:hover {
  z-index: 2;
  color: #fff;
  background: var(--blue);
  transform: translate(-4px,-8px) rotate(0);
  box-shadow: 13px 15px 0 var(--red);
}
.legacy > div:hover .eyebrow { color: var(--yellow); }
.legacy > div:hover .text-link { color: #fff; }

@media (max-width: 650px) {
  .section-index {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: .8rem;
    padding: 1rem .9rem 1.4rem;
    overflow: visible;
  }
  .section-index a:nth-child(n) { width: 100%; transform: none; }
  .section-index a:hover { transform: translateY(-4px); }
  .legacy { gap: 1rem; }
  .legacy > div:nth-child(n) { transform: none; }
  .legacy > div:hover { transform: translateY(-5px); box-shadow: 8px 10px 0 var(--red); }
}
