/* Quartet Atenea — site styles (clean, white, sans-serif) */

@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  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: "Lato"; src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  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: "Lato"; src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; src: url("../fonts/lato-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --white: #ffffff;
  --ink: #111518;
  --text: #2a2e31;
  --mute: #7b8084;
  --line: #d9dbdc;
  --soft: #f2f3f3;
  --accent: #A8406A;
  --accent-bg: #fbe9e9;

  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1rem, 3vw, 2.5rem);
  --header-h: 6rem;
  --wrap: 68rem;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
::view-transition-group(site-header) { animation-duration: 0s; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
figure, blockquote { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: inherit; font-size: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.icon { width: 1em; height: 1em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .6rem 1rem; transition: top .2s; }
.skip:focus { top: 1rem; }
.bw-photos .hero-media img, .bw-photos .bio-hero-media img, .bw-photos .photo img, .bw-photos .member-photo img, .bw-photos .news-media img { filter: grayscale(1); }

/* ---------- Header ---------- */

.site-header {
  view-transition-name: site-header;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 0 1rem;
  background: var(--white);
  transition: height .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-scrolled { height: 4.5rem; box-shadow: 0 1px 0 var(--line); }
.page-home .site-header:not(.is-scrolled) { background: transparent; }
.main { padding-top: var(--header-h); }
.page-home .main { padding-top: 0; }

.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; position: relative; z-index: 2; color: var(--ink); }
.wordmark-big { font: 700 1.5rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: font-size .5s var(--ease); }
.wordmark-small { font: 300 1.125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin-top: .3rem; padding-left: 1.4rem; transition: font-size .5s var(--ease); }
.is-scrolled .wordmark-big { font-size: 1.25rem; }
.is-scrolled .wordmark-small { font-size: .9375rem; }
.wordmark-logo { height: 3rem; width: auto; transition: height .5s var(--ease); }
.is-scrolled .wordmark-logo { height: 2.5rem; }

.site-menu { display: flex; flex-direction: column; align-items: flex-end; gap: .9rem; }
.nav-meta { display: flex; align-items: center; gap: 2.5rem; }
.social { display: flex; gap: 1.25rem; }
.social a { display: grid; place-items: center; color: var(--ink); transition: opacity .3s; }
.social a:hover { opacity: .5; }
.social .icon { width: 1.05rem; height: 1.05rem; }
.langs { display: flex; gap: 1.5rem; }
.langs a { font-size: .8125rem; letter-spacing: .04em; color: var(--ink); transition: opacity .3s; }
.langs a:hover, .langs a[aria-current] { opacity: .45; }
.nav-main { display: flex; gap: clamp(1.25rem, 2.6vw, 2.5rem); }
.nav-main a {
  font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  transition: opacity 1.2s var(--ease);
}
.nav-main a:hover { opacity: .5; transition-duration: .3s; }
.nav-main a[aria-current] { opacity: .45; pointer-events: none; }

.menu-toggle { display: none; }

@media (max-width: 1023px) {
  :root { --header-h: 4.25rem; }
  .site-header.is-scrolled { height: 4.25rem; }
  .wordmark-big { font-size: 1.125rem; }
  .wordmark-small { font-size: .875rem; padding-left: 1rem; }
  .is-scrolled .wordmark-big { font-size: 1.125rem; }
  .is-scrolled .wordmark-small { font-size: .875rem; }
  .wordmark-logo, .is-scrolled .wordmark-logo { height: 2.25rem; }

  .menu-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; padding: .5rem; margin-right: -.5rem; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .menu-toggle-lines { display: grid; gap: 5px; width: 1.6rem; }
  .menu-toggle-lines i { display: block; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
  .menu-toggle-lines i:nth-child(4) { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* side menu: the page slides to the left and the menu stays on the right */
  .site-menu {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1; width: 72vw; background: var(--white);
    padding: calc(var(--header-h) + 2rem) 1.5rem 2.5rem 2rem;
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    overflow-y: auto; visibility: hidden; opacity: 0; background: transparent;
    transition: opacity .18s ease, visibility 0s linear .18s;
  }
  .menu-open .site-menu { visibility: visible; opacity: 1; transition: opacity .3s ease .12s, visibility 0s; }
  .nav-meta { display: contents; }
  .nav-main { order: 1; flex-direction: column; gap: 0; }
  .nav-main a {
    display: block; padding: .55rem 0; font-size: 1.75rem; letter-spacing: 0; text-transform: lowercase;
    opacity: 0; transform: translateX(24px); transition: opacity .45s var(--ease), transform .55s var(--ease);
  }
  .menu-open .nav-main a { opacity: 1; transform: none; }
  .menu-open .nav-main a:nth-child(2) { transition-delay: .05s; }
  .menu-open .nav-main a:nth-child(3) { transition-delay: .1s; }
  .menu-open .nav-main a:nth-child(4) { transition-delay: .15s; }
  .menu-open .nav-main a:nth-child(5) { transition-delay: .2s; }
  .langs { order: 2; margin-top: auto; padding-top: 3rem; gap: 2.25rem; }
  .langs a { font-size: 1.125rem; }
  .social { order: 3; display: grid; grid-template-columns: repeat(4, 1.6rem); gap: 1.75rem 2.25rem; margin-top: 2.25rem; }
  .social .icon { width: 1.6rem; height: 1.6rem; }
  .site-menu .social a[aria-label="Facebook"] { color: #1877F2; }
  .site-menu .social a[aria-label="YouTube"] { color: #FF0000; }
  .site-menu .social a[aria-label="Instagram"] { color: #D62976; }
  .site-menu .social a[aria-label="Spotify"] { color: #1DB954; }
  .site-menu .social a[aria-label="Apple Music"] { color: #FA2D48; }

  /* the page shrinks into a card and slides to the left, revealing the menu */
  .main, .site-footer {
    transition: transform .55s cubic-bezier(.65, 0, .35, 1);
    transform-origin: var(--menu-origin, 50% 50vh);
    backface-visibility: hidden;
  }
  .menu-opening .main, .menu-opening .site-footer, .menu-open .main, .menu-open .site-footer { will-change: transform; }
  .menu-open .main, .menu-open .site-footer { transform: translate3d(-66vw, 0, 0) scale(.82); pointer-events: none; }
  .wordmark { transition: opacity .3s var(--ease); }
  .menu-open .wordmark { opacity: 0; pointer-events: none; }
  .menu-open .site-header { background: transparent !important; box-shadow: none; }
  body.menu-open { overflow: hidden; background: var(--white); }

  /* text button "menu", like a small tag; it becomes a cross when open */
  .menu-toggle { z-index: 3; border: 1px solid var(--ink); padding: .3rem .55rem; margin-right: 0; font-size: .875rem; letter-spacing: .02em; text-transform: lowercase; color: var(--ink); background: rgba(255,255,255,.6); }
  .menu-toggle-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .menu-toggle-lines { display: none; }
  .menu-toggle[aria-expanded="true"] { border-color: transparent; background: none; font-size: 0; padding: .4rem; }
  .menu-toggle[aria-expanded="true"]::before { content: ""; width: 1.4rem; height: 1.4rem; background: linear-gradient(45deg, transparent calc(50% - .75px), var(--ink) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)), linear-gradient(-45deg, transparent calc(50% - .75px), var(--ink) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)); }
  .site-menu { width: 64vw; padding-left: 1.5rem; }
  .nav-main a { font-size: 1.3rem; padding: .5rem 0; }
}

/* ---------- Shared ---------- */

.page { max-width: var(--wrap); margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.page--narrow { max-width: 42rem; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.page-title { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.page-head-link { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.page-head-link:hover { color: var(--ink); }
.section-title { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 1.75rem; }
.note {
  display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 2rem;
  background: var(--soft); border-radius: 4px; padding: .55rem .9rem; font-size: .8125rem; color: var(--text);
}
.note .icon { width: 1rem; height: 1rem; color: var(--mute); }
.empty { color: var(--mute); margin: 2rem 0; }
.lead { font-size: 1.25rem; line-height: 1.5; }
.prose { font-size: 1.0625rem; line-height: 1.6; color: var(--text); }
.prose p + p { margin-top: .9em; }
.prose a { text-decoration: underline; text-underline-offset: .2em; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .9375rem; }
.text-link .icon { color: var(--accent); width: .9rem; height: .9rem; }
.text-link:hover { opacity: .6; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.5rem; padding: .5rem 1rem; font-size: .8125rem; color: var(--ink);
  border: 1px solid var(--line); background: var(--white); transition: border-color .3s;
}
.button:hover { border-color: var(--ink); }
.button .icon { width: 1rem; height: 1rem; }

.tag { display: inline-block; margin-top: .5rem; font-size: .75rem; color: var(--accent); background: var(--accent-bg); padding: .2rem .45rem; border-radius: 2px; }
.tag--muted { color: var(--mute); background: var(--soft); }

/* ---------- Home hero ---------- */

.hero { position: relative; height: 100svh; min-height: 34rem; overflow: hidden; background: var(--soft); }
.hero-media, .hero-media img, .hero-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; animation: hero-in 1.4s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 9rem; z-index: 1; background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,0)); pointer-events: none; }
.hero-placeholder { background: linear-gradient(180deg, #f4f4f4, #e4e4e4); }
@keyframes hero-in { from { opacity: 0; } }

.hero-concerts { position: absolute; left: 0; right: 0; bottom: 1.25rem; padding: 0 clamp(1rem, 3vw, 2.3rem); z-index: 2; }
.hero-concerts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hero-concerts-list > li { background: var(--white); }
.hero-all a { display: flex; align-items: center; justify-content: center; gap: .4rem; height: 100%; min-height: 5rem; font-size: 1.125rem; color: var(--ink); transition: opacity .3s; }
.hero-all a:hover { opacity: .6; }
.hero-all .icon { color: var(--accent); width: .95rem; height: .95rem; }
.concert--empty { display: flex; align-items: center; padding: 1rem 1.5rem; color: var(--mute); }

/* desktop: two concerts + "all concerts"; the rest only exist for swiping on phones */
@media (min-width: 701px) {
  .hero-concerts-list > .concert:nth-child(n + 3) { display: none; }
  .swipe-dots { display: none; }
}
/* phones: one concert per screen, swipe sideways; the last card leads to all concerts */
@media (max-width: 700px) {
  .hero { min-height: 30rem; }
  .hero-concerts { bottom: 1rem; padding: 0 1rem; }
  .hero-concerts-list {
    display: flex; gap: 0; background: none; border: 0;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hero-concerts-list::-webkit-scrollbar { display: none; }
  .hero-concerts-list > li { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; border: 1px solid var(--line); }
  .hero-concerts-list > li + li { border-left: 0; }
  .hero-concerts-list .concert { min-height: 5.25rem; align-items: center; }
  .hero-all a { min-height: 5.25rem; }
  .swipe-dots { display: flex; justify-content: center; gap: .4rem; margin-top: .6rem; }
  .swipe-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .35); transition: background .3s, transform .3s; }
  .swipe-dots span.is-active { background: var(--white); transform: scale(1.25); }
}

/* ---------- Concerts ---------- */

.concert { position: relative; display: grid; grid-template-columns: 3.25rem 1fr; gap: .75rem; padding: 1rem 1.25rem 1rem .75rem; }
.concert-date { display: flex; flex-direction: column; align-items: center; line-height: 1; padding-top: .15rem; }
.concert-day { font-size: 1.75rem; font-weight: 300; color: var(--ink); }
.concert-mon { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: .3rem; }
.concert-place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .5rem; }
.concert-city { font-size: 1.0625rem; color: var(--ink); }
.concert-time { font-size: .9375rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.concert-venue { font-style: italic; font-size: .9375rem; color: var(--ink); margin-top: .1rem; }
.concert-venue a, .concert-toggle { display: inline-flex; align-items: center; gap: .3rem; font-style: italic; }
.concert-venue .icon { color: var(--accent); width: .85rem; height: .85rem; transition: transform .4s var(--ease); }
.concert-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.concert-venue a:hover, .concert-toggle:hover { opacity: .65; }
.stretched-link::after { content: ""; position: absolute; inset: 0; }
.is-cancelled .concert-city, .is-cancelled .concert-venue { text-decoration: line-through; color: var(--mute); }

.month { margin-top: 1rem; }
.month-title { display: flex; align-items: center; gap: 1rem; font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin: 1.25rem 0 .25rem; }
.month-title::before { content: ""; width: 1.5rem; height: 1px; background: var(--line); order: -1; }
.month-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.concert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0 2rem; }
.concert-list .concert { padding: 1.1rem 0; grid-template-columns: 3rem 1fr; align-content: start; }
.concert-list .concert-day { font-size: 1.5rem; }
.concert-list .concert-city { font-size: .9375rem; }
.concert-list .concert-time { font-size: .8125rem; }
.concert-list .concert-venue { font-size: .875rem; }
.concert-actions { margin-top: .35rem; }
.concert-tickets { display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.concert-tickets .icon { width: .8rem; height: .8rem; color: var(--accent); }
.concert-tickets:hover { border-color: var(--ink); }

.concert-details { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.concert-details.is-open { grid-template-rows: 1fr; }
.concert-details-inner { overflow: hidden; font-size: .875rem; }
.concert-details-inner > :first-child { margin-top: .6rem; }
.concert-with span, .concert-program-label { display: block; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.concert-with a { text-decoration: underline; }
.concert-program { margin-top: .5rem; }
.concert-with + .concert-with { margin-top: .5rem; }

.archive { margin-top: 4rem; }
.archive-year { border-top: 1px solid var(--line); }
.archive-year:last-child { border-bottom: 1px solid var(--line); }
.archive-year summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .75rem; padding: .9rem 0; font-size: 1.0625rem; color: var(--ink); }
.archive-year summary::-webkit-details-marker { display: none; }
.archive-count { font-size: .8125rem; color: var(--mute); margin-right: auto; }
.archive-year summary .icon { width: 1rem; height: 1rem; color: var(--accent); transition: transform .4s var(--ease); }
.archive-year[open] summary .icon { transform: rotate(180deg); }
.archive-body { padding-bottom: 1.5rem; }

/* ---------- Bio ---------- */

.bio-hero { position: relative; height: calc(100svh - var(--header-h)); min-height: 24rem; overflow: hidden; background: var(--soft); }
.bio-hero-media, .bio-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bio-hero-media img { object-fit: cover; animation: hero-in 1.4s var(--ease) both; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--white); filter: drop-shadow(0 0 2px rgba(0,0,0,.35)); transition: transform .4s var(--ease); }
.scroll-cue .icon { width: 2.25rem; height: 2.25rem; stroke-width: 1; }
.scroll-cue:hover { transform: translateY(4px); }
#bio-text { padding-top: clamp(3rem, 7vw, 5rem); }

.members { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) clamp(4rem, 8vw, 6rem); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2rem 1.5rem; }
.member-photo { aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; display: grid; place-items: center; margin-bottom: .8rem; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-initials { font-size: 2.5rem; font-weight: 300; letter-spacing: .1em; color: var(--mute); }
.member-name { font-size: 1rem; color: var(--ink); }
.member-instrument { font-size: .875rem; color: var(--mute); }
.member-bio { font-size: .875rem; margin-top: .6rem; }
.member-bio p + p { margin-top: .5em; }

/* ---------- News ---------- */

.news-list { display: grid; }
.news-item { position: relative; display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 2rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.news-item--text { grid-template-columns: 1fr; }
.news-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.news-item:hover .news-media img { transform: scale(1.03); }
.news-body { max-width: 40rem; }
.news-body time, .article-date { font-size: .8125rem; color: var(--mute); }
.news-title { font-size: 1.25rem; color: var(--ink); margin: .3rem 0 .6rem; }
.news-title a::after { content: ""; position: absolute; inset: 0; }
.news-body p { font-size: .9375rem; }
.news-body .text-link { margin-top: .9rem; }
@media (max-width: 700px) { .news-item { grid-template-columns: 1fr; gap: 1rem; } }
.back-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .8125rem; color: var(--mute); margin-bottom: 1.5rem; }
.back-link:hover { color: var(--ink); }
.back-link .icon { color: var(--accent); width: .85rem; height: .85rem; }
.article .page-title { font-size: 1.5rem; letter-spacing: 0; text-transform: none; margin-bottom: 1.5rem; }
.article-date { display: block; margin-bottom: .5rem; }
.article-media { margin-bottom: 2rem; }

/* ---------- Media ---------- */

.tabs { display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 0 3rem; flex-wrap: wrap; }
.tab { position: relative; padding: .5rem 3.25rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); transition: color .3s; }
.tab + .tab::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 1.9rem; background: var(--line); transform: translateY(-50%) rotate(28deg); }
.tab:hover, .tab[aria-selected="true"] { color: var(--ink); }
.tab-panel { animation: hero-in .5s var(--ease); }
@media (max-width: 600px) { .tab { padding: .5rem 1.4rem; } }

.disc-list { display: grid; gap: 3.5rem; max-width: 56rem; margin: 0 auto; }
.disc { display: grid; grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
.disc-cover { aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; }
.disc-cover img { width: 100%; height: 100%; object-fit: cover; }
.disc-cover-blank .icon { width: 3rem; height: 3rem; color: var(--mute); stroke-width: 1; }
.disc-title { font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-top: 2.6rem; }
.disc-meta { font-size: .8125rem; color: var(--mute); margin-top: .25rem; }
.disc-program { margin-top: .8rem; font-size: .875rem; }
.disc-program li::before { content: "• "; }
.disc-text { margin-top: .8rem; font-size: .875rem; }
.disc-text p + p { margin-top: .6em; }
.disc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 12.5rem)); gap: .5rem; margin-top: 1rem; }
.disc-links .button { min-height: 2.25rem; font-size: .8125rem; }
@media (max-width: 640px) { .disc { grid-template-columns: 1fr; } .disc-title { margin-top: 0; } .disc-links { grid-template-columns: 1fr 1fr; } }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 2.25rem 1.5rem; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #1a1d1f; overflow: hidden; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--white); text-align: center; }
.video-play-icon { display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); transition: transform .4s var(--ease), background .3s; }
.video-play:hover .video-play-icon { transform: scale(1.06); background: rgba(255,255,255,.1); }
.video-play-icon .icon { width: 1.3rem; height: 1.3rem; margin-left: 3px; }
.video-notice { font-size: .75rem; opacity: .7; max-width: 26ch; }
.video-title { font-size: .9375rem; color: var(--ink); margin-top: .6rem; }
.channel-link { margin-top: 2.25rem; text-align: center; }
.channel-link .icon { color: var(--ink); width: 1.1rem; height: 1.1rem; }

.photo-grid { columns: 3 16rem; column-gap: 1rem; }
.photo { break-inside: avoid; margin-bottom: 1rem; }
.photo a { display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.photo img { width: 100%; transition: transform 1s var(--ease); }
.photo a:hover img { transform: scale(1.025); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-rows: 1fr auto; background: rgba(255,255,255,.97); color: var(--ink); opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox-stage { display: grid; place-items: center; padding: 4.5rem 4.5rem 1rem; min-height: 0; }
.lightbox-stage img { max-width: 100%; max-height: 100%; object-fit: contain; transition: opacity .3s; }
.lightbox-caption { text-align: center; font-size: .8125rem; color: var(--mute); padding: 0 1rem 1.5rem; min-height: 3rem; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; color: var(--ink); opacity: .7; }
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: .75rem; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: .75rem; top: 50%; translate: 0 -50%; }
.lightbox .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.2; }
@media (max-width: 600px) { .lightbox-stage { padding: 4rem .5rem 1rem; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: .5rem; translate: none; } }

/* ---------- Press ---------- */

.quote-list { display: grid; gap: 2.75rem; max-width: 46rem; }
.quote blockquote { font-size: 1.375rem; font-weight: 300; line-height: 1.45; color: var(--ink); }
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-top: .75rem; font-size: .8125rem; color: var(--mute); }
.quote figcaption a { text-decoration: underline; }
.press-kit { margin-top: 5rem; }
.press-kit .note { margin-bottom: 1.75rem; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 1.75rem 1.25rem; }
.kit-item img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--soft); }
.kit-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .75rem; color: var(--mute); margin-top: .5rem; }
.kit-meta a { display: inline-flex; align-items: center; gap: .3rem; color: var(--ink); margin-left: auto; }
.kit-meta a .icon { color: var(--accent); }
.kit-meta a:hover { opacity: .6; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; }
.contact-label { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .75rem; }
.contact-mail { font-size: 1.375rem; color: var(--ink); border-bottom: 1px solid var(--line); word-break: break-word; }
.contact-mail:hover { border-color: var(--ink); }
.contact-block .prose { font-size: .9375rem; margin-top: 1rem; }
.contact-block .contact-label + .prose { margin-top: 0; }
.contact-social { display: grid; gap: .6rem; }
.contact-social a { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.contact-social a:hover { opacity: .6; }
.contact-social .icon { width: 1.1rem; height: 1.1rem; }

.notfound .page-title { margin-bottom: 1rem; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2rem; }

/* ---------- Footer ---------- */

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 2rem; border-top: 1px solid var(--line); font-size: .75rem; color: var(--mute); }
.site-footer a:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

/* ---------- Projects ---------- */

.projects-page { max-width: 76rem; }
.feature + .feature { margin-top: clamp(5rem, 10vw, 8rem); padding-top: clamp(3rem, 6vw, 4rem); border-top: 1px solid var(--line); }
.feature-meta { display: inline-block; font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.25rem; }
.feature-title {
  font-size: clamp(2.75rem, 8vw, 6.5rem); font-weight: 300; line-height: .95; letter-spacing: -.035em;
  color: var(--ink); max-width: 14ch; text-wrap: balance;
}
.feature-lead { margin-top: clamp(1.75rem, 4vw, 2.75rem); max-width: 38rem; font-size: clamp(1.1875rem, 2vw, 1.4375rem); font-weight: 300; line-height: 1.5; color: var(--ink); }
.feature-media { margin-top: clamp(2.5rem, 5vw, 4rem); aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.feature.is-visible .feature-media img { transform: none; }
.bw-photos .feature-media img { filter: grayscale(1); }

.feature-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(3rem, 6vw, 4.5rem); align-items: start; }
.feature-body--single { grid-template-columns: minmax(0, 40rem); }
.feature-text { font-size: 1rem; line-height: 1.7; }
.feature-text p + p { margin-top: 1em; }
.feature-text .text-link { margin-top: 1.75rem; }

/* the programme as one attacca chain */
.chain { position: sticky; top: calc(var(--header-h) + 2rem); padding: 1.75rem 1.75rem 1.5rem; background: var(--ink); color: var(--white); }
.chain-title { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; }
.chain-note { font-size: .8125rem; color: rgba(255,255,255,.6); margin-top: .35rem; }
.chain-list { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; }
.chain-list::before { content: ""; position: absolute; left: 4px; top: .55rem; bottom: .9rem; width: 1px; background: rgba(255,255,255,.25); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease) .2s; }
.is-visible .chain-list::before { transform: scaleY(1); }
.chain-item { position: relative; padding: 0 0 1.15rem 1.6rem; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(.25s + var(--i) * .12s); }
.is-visible .chain-item { opacity: 1; transform: none; }
.chain-item::before { content: ""; position: absolute; left: 0; top: .45rem; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--white); }
.chain-item:last-child::before { background: var(--accent); box-shadow: none; }
.chain-list--attacca .chain-item + .chain-item::after { content: "attacca"; position: absolute; left: 1.6rem; top: -1.05rem; font-size: .625rem; font-style: italic; letter-spacing: .04em; color: var(--accent); opacity: .9; }
.chain-item + .chain-item { margin-top: .55rem; }
.chain-composer { display: block; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.chain-work { display: block; font-size: .9375rem; line-height: 1.4; margin-top: .15rem; }
.chain-item:last-child { padding-bottom: 0; }

/* gentle entrance for the project header */

@media (max-width: 860px) {
  .feature-body { grid-template-columns: 1fr; }
  .chain { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] .feature-head > *, .chain-item { opacity: 1; transform: none; }
  .chain-list::before { transform: none; }
}

/* ---------- Media cover video ---------- */

.page-media.has-cover .main { padding-top: 0; }
.video-cover { position: relative; height: 100svh; min-height: 26rem; overflow: hidden; background: #000; }
.video-cover-frame { position: absolute; inset: 0; pointer-events: none; }
.video-cover-frame iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: 100vw; height: 56.25vw;            /* 16:9 */
  min-height: 100svh; min-width: 177.78svh; /* always cover the screen */
  transform: translate(-50%, -50%);
}
.video-cover::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 8rem; background: linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,0)); pointer-events: none; }
.video-cover .scroll-cue { z-index: 2; }
.sound-toggle {
  position: absolute; right: clamp(1rem, 2.5vw, 1.75rem); bottom: clamp(1rem, 2.5vw, 1.5rem); z-index: 2;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  background: rgba(20, 22, 24, .55); color: var(--white); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.sound-toggle:hover { background: rgba(20, 22, 24, .8); transform: scale(1.05); }
.sound-toggle .icon { width: 1.15rem; height: 1.15rem; }
.sound-toggle .sound-on, .sound-toggle[aria-pressed="true"] .sound-off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-on { display: grid; }
.sound-toggle .sound-off { display: grid; }

/* header over the video: white until the page scrolls */
.page-media.has-cover .site-header:not(.is-scrolled) { background: transparent; }
.page-media.has-cover .site-header:not(.is-scrolled) .wordmark,
.page-media.has-cover .site-header:not(.is-scrolled) .nav-main a,
.page-media.has-cover .site-header:not(.is-scrolled) .langs a,
.page-media.has-cover .site-header:not(.is-scrolled) .social a { color: var(--white); }
.page-media.has-cover .site-header:not(.is-scrolled) .menu-toggle-lines i { background: var(--white); }
.page-media.has-cover .site-header:not(.is-scrolled) .nav-main a[aria-current] { opacity: 1; }
.page-media.has-cover .site-header:not(.is-scrolled) .wordmark-logo { filter: brightness(0) invert(1); }
@media (max-width: 1023px) {
  .page-media.has-cover.menu-open .site-header .nav-main a,
  .page-media.has-cover.menu-open .site-header .langs a { color: var(--ink); }
  .page-media.has-cover.menu-open .site-header .menu-toggle-lines i { background: var(--ink); }
}

/* ---------- Media photo gallery ---------- */

.gallery { padding: 4px 4px clamp(3rem, 6vw, 5rem); }
.page-media:not(.has-cover) .gallery { padding-top: 1rem; }
/* Masonry gallery: each photo keeps its own shape (nothing cropped). The first one spans the full
   width; the rest flow in two columns on phones, three on larger screens. */
.gallery-grid { max-width: 72rem; margin: 0 auto; columns: 2; column-gap: 4px; }
.gallery-item { break-inside: avoid; margin-bottom: 4px; }
.gallery-item:first-child { column-span: all; }
.gallery-item a { display: block; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.gallery-item img { display: block; width: 100%; height: auto; }
.bw-photos .gallery-item img { filter: grayscale(1); }
@media (min-width: 900px) { .gallery-grid { columns: 3; } }

/* ---------- Bio: quote, member row, member pages ---------- */

.bio-body { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem); }
.pull-quote { max-width: 40rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); padding-left: 1.25rem; border-left: 2px solid var(--accent); }
.pull-quote blockquote { font-size: 1.1875rem; line-height: 1.5; color: var(--ink); }
.pull-quote blockquote p::before { content: "“"; }
.pull-quote blockquote p::after { content: "”"; }
.pull-quote figcaption { margin-top: .6rem; font-size: .8125rem; color: var(--mute); }
.pull-quote--small { margin: 1.75rem 0 2rem; }
.pull-quote--small blockquote { font-size: 1.0625rem; font-style: italic; }

.section-label { font-size: .625rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1rem; }
.member-row { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.member-row ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.5rem; }
.member-row li > a, .member-row li > div { display: block; padding: .9rem 0 .2rem; border-top: 1px solid var(--line); }
.member-row li > a { transition: border-color .4s var(--ease); }
.member-row li > a:hover { border-color: var(--ink); }
.member-row-name { display: block; font-size: .9375rem; color: var(--ink); }
.member-row li > a:hover .member-row-name { text-decoration: underline; text-underline-offset: .2em; }
.member-row-inst { display: block; font-size: .8125rem; color: var(--mute); margin-top: .15rem; }
@media (max-width: 760px) { .member-row ul { grid-template-columns: 1fr 1fr; gap: 0 1rem; } }

.bio-text { max-width: 40rem; margin: 0 auto; font-size: 1rem; line-height: 1.65; }

.member-page { padding-top: clamp(2.5rem, 6vw, 4rem); }
.member-page .back-link { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2rem; }
.member-page-name { font-size: 1.625rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.member-page-inst { font-size: .875rem; color: var(--mute); margin-top: .3rem; }
.member-page-photo { margin: 2rem 0 0; }
.bw-photos .member-page-photo img { filter: grayscale(1); }
.member-page .bio-text { margin: 2rem 0 0; }


/* ---------- Home: sections below the hero ---------- */

.home-band { max-width: var(--wrap); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.home-quote figure { max-width: 52rem; margin: 0 auto; text-align: center; }
.home-quote blockquote { font-size: clamp(1.625rem, 4vw, 2.75rem); font-weight: 300; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.home-quote blockquote p::before { content: "“"; }
.home-quote blockquote p::after { content: "”"; }
.home-quote figcaption { margin-top: 1.5rem; font-size: .8125rem; color: var(--mute); }
.home-quote figcaption::before { content: ""; display: block; width: 2.5rem; height: 2px; background: var(--accent); margin: 0 auto 1.25rem; }

.home-split { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 2rem; border-top: 1px solid var(--line); }
.home-big { font-size: clamp(1.25rem, 2.4vw, 1.75rem); font-weight: 300; line-height: 1.45; color: var(--ink); max-width: 44rem; }
.home-split .text-link { margin-top: 1.75rem; }

.home-dark { background: var(--ink); color: var(--white); }
.home-dark-inner { max-width: var(--wrap); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) var(--gutter); }
.home-dark .section-label { color: rgba(255,255,255,.55); }
.home-dark .feature-meta { margin: .5rem 0 1rem; }
.home-dark-title { font-size: clamp(2.75rem, 9vw, 7rem); font-weight: 300; line-height: .95; letter-spacing: -.035em; max-width: 12ch; }
.home-dark-lead { margin-top: 2rem; max-width: 38rem; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); font-weight: 300; line-height: 1.55; color: rgba(255,255,255,.85); }
.text-link--light { color: var(--white); margin-top: 2rem; }

.home-pics { padding: 4px 4px 0; }
.home-pics-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 4px; }
.home-pics-grid a { display: block; height: 100%; overflow: hidden; background: var(--soft); }
.home-pics-grid img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.home-pics-grid li:first-child img { aspect-ratio: auto; }
.home-pics-grid a:hover img { transform: scale(1.03); }
.bw-photos .home-pics-grid img { filter: grayscale(1); }
.home-pics-link { max-width: var(--wrap); margin: 0 auto; padding: 1.5rem var(--gutter) 0; text-align: right; }

.home-contact { text-align: center; }
.home-contact .section-label { margin-bottom: 1.25rem; }
.home-mail { font-size: clamp(1.5rem, 5vw, 3.25rem); font-weight: 300; letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--line); transition: border-color .4s var(--ease); word-break: break-word; }
.home-mail:hover { border-color: var(--accent); }

/* scroll reveal for home sections */

.home-pics[data-reveal] li { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i) * .12s); }
.home-pics[data-reveal].is-visible li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .page-home [data-reveal], .home-pics[data-reveal] li { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .home-split { grid-template-columns: 1fr; gap: 1rem; }
  .home-pics-grid { grid-template-columns: 1fr 1fr; }
  .home-pics-grid li:first-child { grid-column: 1 / -1; }
  .home-pics-grid li:first-child img { aspect-ratio: 3 / 2; }
  .home-pics-link { text-align: left; }
}

/* ---------- Diagonal colour bands (home) ---------- */
:root { --signal: #D36C8F; --on-signal: #111518; --tilt: clamp(2.5rem, 7vw, 6rem); }

.home-quote.home-band {
  max-width: none; background: var(--signal); color: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt)), 0 100%);
  padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: calc(var(--tilt) + clamp(4rem, 9vw, 7rem));
  margin-top: 0; position: relative; z-index: 3;
}
.home-quote blockquote { color: var(--on-signal); }
.home-quote figcaption { color: var(--on-signal); opacity: .75; }
.home-quote figcaption::before { background: var(--on-signal); }

.home-split { border-top: 0; }

.home-dark {
  clip-path: polygon(0 0, 100% var(--tilt), 100% 100%, 0 calc(100% - var(--tilt)));
  padding: var(--tilt) 0;
  position: relative;
}
.home-dark .feature-meta { color: var(--signal); }
.home-dark .text-link .icon { color: var(--signal); }


/* thin slanted signal line above the contact */
.home-contact { position: relative; }


/* the same diagonal accent closes every other page */
.site-footer { position: relative; }


/* ---------- Diagonal accents on inner pages ---------- */

/* a short slanted stroke under each page title */
.page-head .page-title { position: relative; padding-bottom: 1rem; }


/* Bio: the quote becomes a full-width slanted band */
.bio-body .pull-quote:not(.pull-quote--small) {
  max-width: none; width: 100vw; margin-left: calc(50% - 50vw); margin-right: 0;
  border-left: 0; background: var(--signal);
  clip-path: polygon(0 0, 100% var(--tilt), 100% 100%, 0 calc(100% - var(--tilt)));
  padding: calc(var(--tilt) + 3.5rem) var(--gutter);
  margin-top: calc(-1 * clamp(3rem, 7vw, 5rem)); text-align: center;
}
.bio-body .pull-quote:not(.pull-quote--small) blockquote { max-width: 44rem; margin: 0 auto; font-size: clamp(1.375rem, 3vw, 2.125rem); font-weight: 300; line-height: 1.3; text-wrap: balance; }
.bio-body .pull-quote:not(.pull-quote--small) { color: var(--on-signal); }
.bio-body .pull-quote:not(.pull-quote--small) blockquote { color: var(--on-signal); }
.bio-body .pull-quote:not(.pull-quote--small) figcaption { color: var(--on-signal); opacity: .75; margin-top: 1.25rem; }
.pull-quote--small { border-left-color: var(--signal); }

/* Projects: programme box gets a signal corner, projects are separated by a slanted stroke */
.chain { overflow: hidden; }

.feature + .feature { border-top: 0; position: relative; }

.chain-item:last-child::before { background: var(--signal); }

/* Concerts: the archive opens with a slanted light band */
.archive { position: relative; padding-top: 3.5rem; }

.tag { color: var(--on-signal); background: var(--signal); }

/* Contact: big address underlined in signal */
.contact-mail { border-bottom: 3px solid var(--signal); }

/* ---------- Desktop header: logo · centred lowercase menu · languages + socials ---------- */
@media (min-width: 1024px) {
  .site-header { display: grid; grid-template-columns: 1fr auto 1fr; padding: 0 clamp(2rem, 7vw, 8rem); gap: 2rem; }
  .wordmark { justify-self: start; grid-column: 1; grid-row: 1; }
  .site-header { align-items: center; }
  .site-menu { display: contents; }
  .nav-main { grid-column: 2; grid-row: 1; gap: clamp(1.75rem, 3vw, 3rem); }
  .nav-main a { text-transform: lowercase; letter-spacing: .01em; font-size: 1.0625rem; }
  .nav-meta { grid-column: 3; grid-row: 1; justify-self: end; flex-direction: column; align-items: flex-end; gap: .55rem; }
  .langs { order: 1; gap: 1.1rem; }
  .social { order: 2; gap: 1rem; }
  .social .icon { width: .95rem; height: .95rem; }
}

/* ---------- Subtle interactions ---------- */
@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  /* menu: a thin line grows under the word instead of fading */
  .nav-main a { position: relative; }
  .nav-main a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3em; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
  .nav-main a:hover { opacity: 1; }
  .nav-main a:hover::after { transform: scaleX(1); transform-origin: left; }
  /* concerts: the row leans in slightly */
  .concert { transition: transform .5s var(--ease); }
  .concert:hover { transform: translateX(.4rem); }
  /* links with arrows: arrow travels */
  .text-link .icon, .hero-all .icon { transition: transform .4s var(--ease); }
  .text-link:hover { opacity: 1; }
  .text-link:hover .icon, .hero-all a:hover .icon { transform: translateX(.35rem); }
  /* big titles open their spacing a touch */
  .feature-title, .home-dark-title, .member-row-name { transition: letter-spacing .6s var(--ease); }
  .feature:hover .feature-title, .home-dark:hover .home-dark-title { letter-spacing: .01em; }
  /* photos: slow zoom */
  .home-pics-grid img, .gallery-item img, .photo img { transition: transform 1.2s var(--ease) !important; }
  /* quote follows the pointer by a few pixels (set by site.js) */
  .home-quote blockquote, .bio-body .pull-quote blockquote { transform: translate(var(--px, 0), var(--py, 0)); transition: transform .8s var(--ease); }
}
/* the quote band overlaps the bottom of the hero, so lift the concert strip above it */

/* ---------- Scroll animations (html[data-anim] picks the style) ---------- */
.js .a { transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), clip-path 1.2s var(--ease) var(--d, 0s); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; transition: transform 1s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 55ms); }

/* 1 · Suau: everything rises gently */
[data-anim="suau"] .a:not(.in) { opacity: 0; transform: translateY(32px); }

/* 2 · Paraules: titles and quotes rise word by word, the rest floats in */
[data-anim="paraules"] .a:not(.in):not([data-split]) { opacity: 0; transform: translateY(24px); }
[data-anim="paraules"] .a:not(.in) .w > span { transform: translateY(110%); }
[data-anim="paraules"] .a:not(.in) img, [data-anim="paraules"] img.a:not(.in) { transform: scale(1.08); }

/* 3 · Cortina: text and photos are unveiled like a curtain */
[data-anim="cortina"] .a:not(.in) { clip-path: inset(0 100% 0 0); }
[data-anim="cortina"] img.a:not(.in), [data-anim="cortina"] .a:not(.in) img { clip-path: inset(100% 0 0 0); }
[data-anim="cortina"] .a.in, [data-anim="cortina"] .a.in img { clip-path: inset(0 0 0 0); }
[data-anim="cortina"] .a img { transition: clip-path 1.3s var(--ease) var(--d, 0s); }

/* 4 · Diagonal: things slide in along the site's diagonal, photos are cut open on a slant */
[data-anim="diagonal"] .a:not(.in) { opacity: 0; transform: translate(-48px, 48px) rotate(-1.5deg); }
[data-anim="diagonal"] .a img { transition: clip-path 1.3s var(--ease) var(--d, 0s); clip-path: polygon(0 0, 130% 0, 100% 100%, -30% 100%); }
[data-anim="diagonal"] .a:not(.in) img, [data-anim="diagonal"] img.a:not(.in) { clip-path: polygon(0 0, 0 0, -30% 100%, -30% 100%); }
[data-anim="diagonal"] .home-band.a:not(.in), [data-anim="diagonal"] .bio-body .pull-quote.a:not(.in) { transform: translateY(40px) skewY(3deg); }

/* 5 · Profunditat: photos drift at their own speed while scrolling, blocks zoom in softly */
[data-anim="profunditat"] .a:not(.in) { opacity: 0; transform: scale(.94); }
[data-anim="profunditat"] .feature-media img, [data-anim="profunditat"] .home-pics-grid img, [data-anim="profunditat"] .gallery-item img, [data-anim="profunditat"] .photo img, [data-anim="profunditat"] .member-photo img {
  transform: translateY(var(--sy, 0px)) scale(1.14) !important; transition: none !important; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .a, .a img, .w > span { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
}

/* ---------- Header: always transparent; text is black or white depending on what is underneath (body.header-on-dark set by site.js) ---------- */
.site-header, .site-header.is-scrolled, .page-home .site-header, .page-media.has-cover .site-header { background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.hero::before { display: none !important; }
.site-header .wordmark, .site-header .nav-main a, .site-header .langs a, .site-header .social a, .site-header .menu-toggle { transition: color .35s var(--ease), opacity .3s; }
body:not(.menu-open) .site-header .wordmark, body:not(.menu-open) .site-header .nav-main a, body:not(.menu-open) .site-header .langs a,
body:not(.menu-open) .site-header .social a, body:not(.menu-open) .site-header .menu-toggle { color: var(--ink) !important; }
body:not(.menu-open) .site-header .menu-toggle-lines i { background: var(--ink) !important; }
body.header-on-dark:not(.menu-open) .site-header .wordmark, body.header-on-dark:not(.menu-open) .site-header .nav-main a, body.header-on-dark:not(.menu-open) .site-header .langs a,
body.header-on-dark:not(.menu-open) .site-header .social a, body.header-on-dark:not(.menu-open) .site-header .menu-toggle { color: #fff !important; border-color: currentColor; }
body.header-on-dark:not(.menu-open) .site-header .menu-toggle-lines i { background: #fff !important; }
body.header-on-dark:not(.menu-open) .site-header .wordmark-logo { filter: brightness(0) invert(1); }

/* ---------- Quote band: the colour starts as a pale wash and deepens as you scroll (--grow set by site.js) ---------- */
.home-quote.home-band {
  background: color-mix(in srgb, var(--signal) calc(6% + var(--grow, 1) * 94%), #fff);
  transition: none;
}
.home-quote.home-band blockquote, .home-quote.home-band figcaption { color: color-mix(in srgb, var(--on-signal) calc(var(--grow, 1) * 100%), var(--ink)); }
.home-quote.home-band figcaption::before { background: color-mix(in srgb, var(--on-signal) calc(var(--grow, 1) * 100%), var(--ink)); }
.home-quote.home-band.a { transform: none !important; opacity: 1 !important; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt)), 0 100%) !important; }

/* Cover photo: separate crop focus (and optional photo) on phones */
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media .hero-img { object-position: var(--focus, 50% 40%); }
@media (max-width: 767px) { .hero-media .hero-img { object-position: var(--focus-m, var(--focus, 50% 40%)); } }

/* Home: a small, nearly transparent arrow under the concert strip hints that the page continues */
.hero-concerts { bottom: 2.1rem; }
.hero-cue { position: absolute; bottom: .35rem; left: 50%; translate: -50% 0; z-index: 3; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
  color: #fff; opacity: .45; animation: cue-breathe 3s var(--ease) 1.6s infinite; transition: opacity .5s var(--ease); }
.hero-cue:hover { opacity: .9; }
.hero-cue .icon { width: 1.2rem; height: 1.2rem; stroke-width: 1.25; }
.is-scrolled-page .hero-cue { opacity: 0; pointer-events: none; }
@keyframes cue-breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (max-width: 767px) { .hero-concerts { bottom: 1.9rem; } .hero-cue { bottom: .2rem; } }
@media (prefers-reduced-motion: reduce) { .hero-cue { animation: none; } }


/* Home project band: more compact — title on the left, text on the right; the photos below slide under its diagonal */
.home-dark { position: relative; z-index: 2; padding: calc(var(--tilt) * .6) 0 var(--tilt); }
.home-dark-inner { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.home-dark-title { font-size: clamp(2.5rem, 6vw, 5.25rem); }
.home-dark-lead { margin-top: 1.25rem; }
@media (min-width: 1024px) {
  .home-dark-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); align-items: end; }
  .home-dark-inner > * { grid-column: 1; }
  .home-dark-inner > .home-dark-lead { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: end; }
  .home-dark-inner > .text-link { grid-column: 2; grid-row: 4; margin-top: 1rem; }
}
.home-pics { position: relative; z-index: 1; margin-top: calc(-1 * var(--tilt)); }

/* ---------- Home concerts: text lines over the photo, no boxes ---------- */
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(10,12,14,.72), rgba(10,12,14,.35) 45%, rgba(10,12,14,0)); }
.hero-concerts { padding: 0 clamp(1.25rem, 7vw, 8rem); }
.hero-concerts-list { background: none !important; border: 0 !important; gap: 0; grid-template-columns: 1.35fr 1fr 1fr auto; align-items: end; }
.hero-concerts-list > li { background: none !important; border: 0 !important; color: #fff; }
.hero-concerts-list > li + li { border-left: 1px solid rgba(255,255,255,.28) !important; }
.hero-concerts .concert { position: relative; padding: .35rem clamp(1rem, 2.2vw, 2rem); min-height: 0; display: flex; align-items: flex-end; gap: 1rem; }
.hero-concerts .concert:first-child { padding-left: 0; }
.hero-concerts .concert-date { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; color: #fff; transition: color .4s var(--ease); }
.hero-concerts .concert-day { font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 300; letter-spacing: -.02em; }
.hero-concerts .concert-mon { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; margin-top: .35rem; color: rgba(255,255,255,.75); }
.hero-concerts .concert:first-child .concert-day { font-size: clamp(3rem, 5vw, 4.5rem); }
.hero-concerts .concert-city { color: #fff; font-size: 1.0625rem; }
.hero-concerts .concert-time { color: rgba(255,255,255,.6); }
.hero-concerts .concert-venue a { color: rgba(255,255,255,.85); }
.hero-concerts .concert-venue .icon { color: currentColor; transition: transform .4s var(--ease); }
.hero-concerts .concert::after { content: ""; position: absolute; left: clamp(1rem, 2.2vw, 2rem); right: clamp(1rem, 2.2vw, 2rem); bottom: -.6rem; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.hero-concerts .concert:first-child::after { left: 0; }
@media (any-hover: hover) {
  .hero-concerts .concert:hover .concert-date { color: var(--signal); }
  .hero-concerts .concert:hover::after { transform: scaleX(1); }
  .hero-concerts .concert:hover .concert-venue .icon { transform: translateX(.3rem); }
}
.hero-all a { color: #fff !important; min-height: 0 !important; height: auto; justify-content: flex-start; padding: .35rem 0 .35rem clamp(1rem, 2.2vw, 2rem); font-size: 1rem; white-space: nowrap; }
.hero-all .icon { color: #fff; transition: transform .4s var(--ease); }
.hero-all a:hover { opacity: 1; color: var(--signal) !important; }
.hero-all a:hover .icon { color: var(--signal); transform: translateX(.3rem); }
.hero-concerts .tag { margin-top: .35rem; }
@media (min-width: 701px) and (max-width: 1100px) { .hero-concerts-list { grid-template-columns: 1.3fr 1fr auto; } .hero-concerts-list > .concert:nth-child(n + 3) { display: none; } }
@media (min-width: 1101px) { .hero-concerts-list > .concert:nth-child(3) { display: flex; } .hero-concerts-list > .concert:nth-child(n + 4) { display: none; } }
@media (max-width: 700px) {
  .hero-concerts { padding: 0 1.25rem; }
  .hero-concerts-list > li { border: 0 !important; }
  .hero-concerts .concert, .hero-concerts .concert:first-child { padding: .25rem 0; min-height: 0; }
  .hero-concerts .concert-day, .hero-concerts .concert:first-child .concert-day { font-size: 3rem; }
  .hero-concerts .concert::after { left: 0; right: 0; }
  .hero-all a { padding: 1.1rem 0; }
}
.hero-concerts .concert-day { color: #fff !important; transition: color .4s var(--ease); }
@media (any-hover: hover) { .hero-concerts .concert:hover .concert-day, .hero-concerts .concert:hover .concert-mon { color: var(--signal) !important; } }

/* ---------- Home concerts, "glass" variant (html[data-concerts="vidre"]) ---------- */
[data-concerts="vidre"] .hero::after { height: 30%; background: linear-gradient(to top, rgba(10,12,14,.35), rgba(10,12,14,0)); }
[data-concerts="vidre"] .hero-concerts { padding: 0 clamp(1rem, 3vw, 2.3rem); }
[data-concerts="vidre"] .hero-concerts-list { gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(11rem, .7fr); align-items: stretch; }
[data-concerts="vidre"] .hero-concerts-list > li,
[data-concerts="vidre"] .hero-concerts-list > li + li {
  border: 1px solid rgba(255,255,255,.32) !important; border-radius: 6px;
  background: rgba(24,26,28,.22) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25);
  transition: transform .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
[data-concerts="vidre"] .hero-concerts .concert, [data-concerts="vidre"] .hero-concerts .concert:first-child { padding: 1rem 1.25rem; align-items: center; }
[data-concerts="vidre"] .hero-concerts .concert-day, [data-concerts="vidre"] .hero-concerts .concert:first-child .concert-day { font-size: 2.25rem; }
[data-concerts="vidre"] .hero-concerts .concert::after { display: none; }
[data-concerts="vidre"] .hero-all a { justify-content: center; height: 100%; padding: 1rem 1.25rem; }
[data-concerts="vidre"] .hero-concerts .concert-city, [data-concerts="vidre"] .hero-concerts .concert-venue a,
[data-concerts="vidre"] .hero-concerts .concert-time, [data-concerts="vidre"] .hero-concerts .concert-mon, [data-concerts="vidre"] .hero-all a { transition: color .4s var(--ease); }
@media (any-hover: hover) {
  [data-concerts="vidre"] .hero-concerts-list > li:hover {
    transform: translateY(-6px); background: color-mix(in srgb, var(--signal) 88%, transparent) !important;
    border-color: transparent !important; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45);
  }
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-day,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-mon,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-city,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-time,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-venue a,
  [data-concerts="vidre"] .hero-all a:hover, [data-concerts="vidre"] .hero-all a:hover .icon { color: var(--on-signal) !important; }
}
@media (min-width: 701px) and (max-width: 1100px) { [data-concerts="vidre"] .hero-concerts-list { grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(10rem, .7fr); } }
@media (max-width: 700px) {
  [data-concerts="vidre"] .hero-concerts-list { gap: 0; }
  [data-concerts="vidre"] .hero-concerts-list > li { margin-right: .75rem; flex-basis: calc(100% - .75rem); }
}

/* glass cards: slimmer; hover turns them white */
[data-concerts="vidre"] .hero-concerts .concert, [data-concerts="vidre"] .hero-concerts .concert:first-child { padding: .6rem 1rem; gap: .85rem; }
[data-concerts="vidre"] .hero-concerts .concert-day, [data-concerts="vidre"] .hero-concerts .concert:first-child .concert-day { font-size: 1.85rem; }
[data-concerts="vidre"] .hero-concerts .concert-mon { margin-top: .2rem; }
[data-concerts="vidre"] .hero-concerts .concert-city { font-size: .975rem; }
[data-concerts="vidre"] .hero-concerts .concert-venue { font-size: .875rem; }
[data-concerts="vidre"] .hero-all a { padding: .6rem 1rem; font-size: .95rem; }
@media (any-hover: hover) {
  [data-concerts="vidre"] .hero-concerts-list > li:hover { background: rgba(255,255,255,.96) !important; transform: translateY(-4px); }
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-day,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-city,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-venue a,
  [data-concerts="vidre"] .hero-all a:hover, [data-concerts="vidre"] .hero-all a:hover .icon { color: var(--ink) !important; }
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-mon,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-time { color: var(--mute) !important; }
}

/* project band: straight top edge, slanted bottom */
.home-dark { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tilt))) !important; padding-top: 0; }
/* project band: a little more room */
.home-dark-inner { padding-top: clamp(3.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.home-dark-title { font-size: clamp(2.75rem, 7vw, 6rem); }
.home-dark { padding-bottom: calc(var(--tilt) * 1.15); }
/* project band: slanted top, straight bottom */
.home-dark { clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%) !important; padding-top: var(--tilt); padding-bottom: 0; }
.home-pics { margin-top: 0; }
/* Diagonal system: every slanted edge rises to the right at the same angle (--tilt) */
.bio-body .pull-quote:not(.pull-quote--small) { clip-path: polygon(0 var(--tilt), 100% 0, 100% calc(100% - var(--tilt)), 0 100%); }
/* Diagonal system v1: a single signature diagonal — the bottom edge of the quote band; everything else straight */
.home-dark { clip-path: none !important; padding-top: 0; padding-bottom: 0; }
.bio-body .pull-quote:not(.pull-quote--small) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt)), 0 100%); padding-top: 3.5rem; }
/* project band: bottom edge descends from left to right; the photos slide under it */
.home-dark { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tilt))) !important; padding-bottom: var(--tilt); }
.home-pics { margin-top: calc(-1 * var(--tilt)); }

/* ---------- Projects page: one full-screen coloured slide per project ---------- */
.page-projects .main { padding-top: 0; }
.proj-slider { position: relative; display: grid; overflow: hidden; }
.proj-slide {
  grid-area: 1 / 1; min-height: 100svh; background: var(--bg); color: var(--fg);
  display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s linear .7s;
}
.proj-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s; z-index: 1; }
.proj-inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: calc(var(--header-h) + 3rem) clamp(4.5rem, 9vw, 8rem) 6rem; }
.proj-slide .proj-inner > * { transition: transform .8s var(--ease), opacity .8s var(--ease); }
.proj-slide:not(.is-active) .proj-inner > * { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); }
.proj-slide.is-active .proj-body { transition-delay: .12s; }

.proj-meta { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.proj-title { font-size: clamp(2.75rem, 7vw, 6rem); font-weight: 300; line-height: .98; letter-spacing: -.03em; margin-top: .75rem; max-width: 14ch; }
.proj-lead { margin-top: 1.75rem; max-width: 40rem; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-style: italic; font-weight: 400; line-height: 1.4; }
.proj-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.proj-body--single { grid-template-columns: minmax(0, 44rem); }
.proj-text p { font-size: 1.0625rem; line-height: 1.7; font-weight: 300; }
.proj-text p + p { margin-top: 1em; }
.proj-media { margin-top: 2rem; aspect-ratio: 16 / 9; overflow: hidden; }
.proj-media img { width: 100%; height: 100%; object-fit: cover; }
.proj-slide .text-link, .proj-slide .text-link .icon { color: var(--fg); }
.proj-link { margin-top: 1.75rem; }

.proj-programme { border-top: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); padding-top: 1.25rem; }
.proj-programme-title { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.proj-programme-note { font-size: .875rem; opacity: .7; margin-top: .3rem; font-style: italic; }
.proj-works { list-style: none; margin: 1.5rem 0 0; padding: 0; counter-reset: w; }
.proj-works li { position: relative; padding: 0 0 1rem 1.6rem; }
.proj-works li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); }
.proj-works li:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 1.15rem; bottom: .1rem; width: 1px; background: color-mix(in srgb, var(--fg) 35%, transparent); }
.proj-works--attacca li + li .proj-composer::before { content: "attacca · "; font-style: italic; text-transform: none; letter-spacing: .02em; opacity: .8; }
.proj-composer { display: block; font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.proj-work { display: block; font-size: 1rem; line-height: 1.4; margin-top: .15rem; }

.proj-arrow { position: absolute; top: 50%; z-index: 3; translate: 0 -50%; width: 3.25rem; height: 3.25rem; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--fg-now, #111518); transition: color .7s var(--ease), transform .35s var(--ease); }
.proj-arrow .icon { width: 2.4rem; height: 2.4rem; stroke-width: 1; }
.proj-arrow--prev { left: clamp(.5rem, 2vw, 1.75rem); }
.proj-arrow--prev .icon { transform: rotate(90deg); }
.proj-arrow--next { right: clamp(.5rem, 2vw, 1.75rem); }
.proj-arrow--next .icon { transform: rotate(-90deg); }
.proj-arrow--prev:hover { transform: translateX(-4px); }
.proj-arrow--next:hover { transform: translateX(4px); }
.proj-dots { position: absolute; left: 0; right: 0; bottom: 1.75rem; z-index: 3; display: flex; justify-content: center; gap: .6rem; }
.proj-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: var(--fg-now, #111518); opacity: .35; transition: opacity .3s, transform .3s, background-color .7s var(--ease); }
.proj-dots button[aria-selected="true"] { opacity: 1; transform: scale(1.2); }

@media (max-width: 860px) {
  .proj-inner { padding: calc(var(--header-h) + 2rem) 1.5rem 5rem; }
  .proj-body { grid-template-columns: 1fr; }
  .proj-arrow { top: auto; bottom: 1rem; translate: none; width: 2.75rem; height: 2.75rem; }
  .proj-dots { bottom: 1.95rem; }
}
@media (prefers-reduced-motion: reduce) { .proj-slide, .proj-slide .proj-inner > * { transition: none !important; } }
.projects-page { max-width: none !important; margin: 0 !important; padding: 0 !important; }
/* arrows stay beside the reader while a long project scrolls; they fade once the slider has passed */
.proj-arrow { position: fixed; transition: color .7s var(--ease), transform .35s var(--ease), opacity .4s var(--ease); }
.proj-slider.is-past .proj-arrow { opacity: 0; pointer-events: none; }
@media (max-width: 860px) { .proj-arrow { top: auto; bottom: .75rem; translate: none; } .proj-arrow--prev { left: .5rem; } .proj-arrow--next { right: .5rem; } }

/* Projects slider: slides sit side by side and the whole row glides left/right — no fade */
.proj-slider { display: block; }
.proj-track { display: flex; transition: transform .45s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.proj-slide, .proj-slide.is-active { flex: 0 0 100%; min-width: 0; opacity: 1 !important; visibility: visible !important; transition: none !important; }
.proj-slide .proj-inner > *, .proj-slide:not(.is-active) .proj-inner > * { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .proj-track { transition: none; } }

/* Header hides while scrolling down and comes back as soon as you scroll up */
.site-header { transition: transform .4s var(--ease), height .5s var(--ease) !important; }
body.header-hidden:not(.menu-open) .site-header { transform: translateY(-110%); }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none !important; } }
/* notes: the black project band a little roomier */
.home-dark-inner { padding-top: clamp(4.5rem, 9vw, 8rem); padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.home-pics { padding-bottom: 4px; }
/* concert cards share the full width, however many there are (1, 2 or 3 + "all concerts") */
@media (min-width: 701px) {
  [data-concerts="vidre"] .hero-concerts-list, .hero-concerts-list { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
}

/* Quote band in black (fades in from white as you scroll); project band takes the featured project's colour */
.home-quote.home-band { --signal: #111518; --on-signal: #ffffff; }
.home-dark { background: var(--pbg, var(--ink)); color: var(--pfg, #fff); }
.home-dark .home-dark-title, .home-dark .home-dark-lead, .home-dark .text-link--light, .home-dark .text-link .icon { color: var(--pfg, #fff); }
.home-dark .section-label, .home-dark .feature-meta { color: var(--pfg, #fff); opacity: .7; }
/* home photos: edge to edge, no gaps */
.home-pics { padding: 0 !important; }
.home-pics-grid { gap: 0 !important; }
.home-quote.home-band { --signal: #0D0E0F; }
@media (min-width: 861px) { .home-split > div { grid-column: 2; } }
.home-dark-inner > .home-dark-title { grid-row: 1 / span 3; align-self: end; }

/* Project band: the colour sweeps in from the right along a diagonal as you scroll, and the text glides into place (--p set by site.js) */
.home-dark { background: transparent !important; isolation: isolate; }
.home-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pbg, var(--ink));
  clip-path: polygon(calc(100% - var(--p, 1) * 135%) 0, 100% 0, 100% 100%, calc(100% - var(--p, 1) * 135% - 35%) 100%);
}
.home-dark .home-dark-title { transform: translateX(calc((1 - var(--p, 1)) * -9vw)); }
.home-dark .home-dark-lead, .home-dark .text-link { transform: translateX(calc((1 - var(--p, 1)) * 9vw)); opacity: calc(.15 + var(--p, 1) * .85); }
.home-dark .home-dark-title.a, .home-dark .home-dark-lead.a, .home-dark .text-link.a { transition: none !important; }
.home-dark .home-dark-title .w > span { transition: none !important; transform: none !important; }

/* Home photos: frames stay put (no gaps); inside each, the picture settles from a deep zoom, each column at its own pace and direction (--q per photo, set by site.js) */
.home-pics-grid > li { opacity: 1 !important; transform: none !important; transition: none !important; }
.home-pics-grid > li:nth-child(1) { --dy: 9%; }
.home-pics-grid > li:nth-child(2) { --dy: -9%; }
.home-pics-grid > li:nth-child(3) { --dy: 6%; }
.home-pics-grid > li img { transform: translateY(calc((1 - var(--q, 1)) * var(--dy, 8%))) scale(calc(1 + (1 - var(--q, 1)) * .35)); transition: none !important; }
@media (any-hover: hover) { .home-pics-grid a:hover img { transform: scale(1.03); transition: transform 1.2s var(--ease) !important; } }

/* =================== Contact page =================== */
.page-contact .main { padding-top: 0; }
.ct { overflow-x: clip; }
.ct section { position: relative; isolation: isolate; }

/* 1 · opening: black from the photo's jackets sweeps across on load; huge "let's talk" */
.ct-open { min-height: 100svh; display: flex; align-items: center; color: #fff; }
.ct-open::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #0D0E0F;
  clip-path: polygon(-35% 0, 100% 0, 100% 100%, -70% 100%); animation: ct-sweep 1.15s cubic-bezier(.7, 0, .2, 1) both; }
@keyframes ct-sweep { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, 65% 100%); } }
.ct-open-inner { width: 100%; padding: calc(var(--header-h) + 2rem) 0 clamp(3rem, 8vw, 6rem); }
.ct-kicker { display: flex; gap: .35em; white-space: nowrap; font-size: clamp(5rem, 17vw, 16rem); font-weight: 300; line-height: .9; letter-spacing: -.045em;
  transform: translateX(calc(-28% + var(--kx, 0px))); animation: ct-glide 1.4s cubic-bezier(.2, .8, .2, 1) .25s both; }
.ct-kicker span:not(:nth-child(2)) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
@keyframes ct-glide { from { opacity: 0; transform: translateX(calc(-28% + 18vw)); } }
.ct-intro, .ct-mail-row, .ct-extra { padding: 0 clamp(1.5rem, 9vw, 9rem); max-width: 60rem; }
.ct-intro { margin-top: clamp(2rem, 4vw, 3rem); font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 300; line-height: 1.5; color: rgba(255,255,255,.8);
  animation: ct-up 1s cubic-bezier(.2, .8, .2, 1) .55s both; }
.ct-mail-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 1.5rem; margin-top: 1.75rem; animation: ct-up 1s cubic-bezier(.2, .8, .2, 1) .7s both; }
@keyframes ct-up { from { opacity: 0; transform: translate(-30px, 30px); } }
.ct-mail { position: relative; font-size: clamp(1.75rem, 5vw, 4rem); font-weight: 300; letter-spacing: -.02em; color: #fff; }
.ct-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; background: var(--signal); transform-origin: left; transform: scaleX(.18); transition: transform .6s var(--ease); }
.ct-mail:hover::after, .ct-mail:focus-visible::after { transform: scaleX(1); }
.ct-copy { border: 1px solid rgba(255,255,255,.35); background: none; color: rgba(255,255,255,.85); border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .8125rem; letter-spacing: .04em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ct-copy:hover { background: #fff; color: #0D0E0F; border-color: #fff; }
.ct-copy.is-done { background: var(--signal); border-color: var(--signal); color: #0D0E0F; }
.ct-extra { margin-top: 1.5rem; color: rgba(255,255,255,.7); font-weight: 300; }

/* 2 · form band: the pink sweeps in from the left as you scroll (--p) */
.ct-form-band { color: #111518; padding: clamp(4rem, 9vw, 7rem) 0 calc(var(--tilt) + clamp(3rem, 6vw, 5rem)); }
.ct-form-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--signal);
  clip-path: polygon(0 0, calc(var(--p, 1) * 135%) 0, calc(var(--p, 1) * 135% - 35%) calc(100% - var(--tilt)), 0 100%); }
.ct-form-inner { max-width: 56rem; margin: 0 auto; padding: 0 clamp(1.5rem, 6vw, 4rem);
  transform: translateX(calc((1 - var(--p, 1)) * -10vw)); opacity: calc(.1 + var(--p, 1) * .9); }
.ct-form-title { font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.ct-form { margin-top: clamp(2rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; }
.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-field { position: relative; }
.ct-field--area, .ct-topics, .ct-actions { grid-column: 1 / -1; }
.ct-field input, .ct-field textarea { width: 100%; border: 0; border-bottom: 1.5px solid rgba(17,21,24,.45); background: transparent; color: inherit;
  font: inherit; font-size: 1.125rem; padding: 1.4rem 0 .5rem; border-radius: 0; outline: none; transition: border-color .3s; resize: vertical; }
.ct-field label { position: absolute; left: 0; top: 1.35rem; font-size: 1.125rem; color: rgba(17,21,24,.7); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), color .3s; }
.ct-field input:focus, .ct-field textarea:focus { border-bottom-color: #111518; }
.ct-field input:focus + label, .ct-field input:not(:placeholder-shown) + label,
.ct-field textarea:focus + label, .ct-field textarea:not(:placeholder-shown) + label { transform: translateY(-1.25rem) scale(.72); color: #111518; }
.ct-field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #111518; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.ct-field:focus-within::after { transform: scaleX(1); }
.ct-topics { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-topics legend { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; padding: 0; opacity: .75; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span { display: inline-block; padding: .55rem 1rem; border: 1.5px solid rgba(17,21,24,.5); border-radius: 999px; cursor: pointer; font-size: .9375rem; transition: background .3s, color .3s, transform .3s var(--ease); }
.ct-chip span:hover { transform: translateY(-2px); }
.ct-chip input:checked + span { background: #111518; color: #fff; border-color: #111518; }
.ct-chip input:focus-visible + span { outline: 2px solid #111518; outline-offset: 2px; }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.ct-send { display: inline-flex; align-items: center; gap: .75rem; border: 0; border-radius: 999px; background: #111518; color: #fff; padding: 1rem 1.75rem; font: inherit; font-size: 1.0625rem; cursor: pointer; transition: transform .35s var(--ease), background .3s; }
.ct-send .icon { width: 1rem; height: 1rem; transition: transform .4s var(--ease); }
.ct-send:hover { transform: translateY(-2px); }
.ct-send:hover .icon { transform: translateX(.35rem); }
.ct-send[disabled] { opacity: .6; cursor: wait; }
.ct-status { font-size: 1rem; max-width: 30rem; }
.ct-status.is-ok { font-weight: 700; }

/* 3 · follow: big words drifting sideways with the scroll (--d), outlined until hovered */
.ct-follow { padding: clamp(4rem, 9vw, 7rem) 0 clamp(5rem, 10vw, 8rem); }
.ct-mgmt { max-width: 56rem; margin: 0 auto clamp(3rem, 6vw, 5rem); padding: 0 clamp(1.5rem, 6vw, 4rem); }
.ct-label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.ct-mgmt-text { margin-top: .75rem; font-size: 1.125rem; font-weight: 300; line-height: 1.6; }
.ct-social { list-style: none; margin: 0; padding: 0; }
.ct-social li { transform: translateX(calc(var(--k, 1) * var(--d, 0) * 12vw)); }
.ct-social a { display: inline-flex; align-items: center; gap: .3em; padding: .05em clamp(1.5rem, 9vw, 9rem); font-size: clamp(3rem, 11vw, 9.5rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.05;
  color: transparent; -webkit-text-stroke: 1.2px #111518; transition: color .45s var(--ease); }
.ct-social li:nth-child(even) { text-align: right; }
.ct-social a .icon { width: .35em; height: .35em; color: #111518; stroke-width: 1.2; opacity: 0; transform: translateX(-.3em); transition: opacity .4s, transform .45s var(--ease); }
.ct-social a:hover, .ct-social a:focus-visible { color: #111518; }
.ct-social a:hover .icon, .ct-social a:focus-visible .icon { opacity: 1; transform: none; }

@media (max-width: 700px) {
  .ct-form { grid-template-columns: 1fr; }
  .ct-kicker { transform: translateX(calc(-30% + var(--kx, 0px))); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-open::before, .ct-kicker, .ct-intro, .ct-mail-row { animation: none !important; }
  .ct-form-inner, .ct-social li { transform: none !important; opacity: 1 !important; }
}
/* contact: more modest type */
.ct-kicker { font-size: clamp(3.25rem, 10vw, 9rem); }
.ct-mail { font-size: clamp(1.4rem, 3.4vw, 2.75rem); }
.ct-intro { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); }
.ct-form-title { font-size: clamp(1.9rem, 4.2vw, 3.25rem); }
.ct-social a { font-size: clamp(2.25rem, 6.5vw, 5.5rem); }
.ct-kicker { padding-left: clamp(1.5rem, 9vw, 9rem); transform: translateX(var(--kx, 0px)); animation-name: ct-glide2; }
@keyframes ct-glide2 { from { opacity: 0; transform: translateX(14vw); } }
.ct-kicker span:nth-child(2) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.ct-kicker span:first-child { color: #fff; -webkit-text-stroke: 0; }
@media (max-width: 700px) { .ct-kicker { transform: translateX(var(--kx, 0px)); } }
/* contact opening: light and compact instead of a full black screen */
.ct-open { min-height: 0; color: var(--ink); }
.ct-open::before { display: none; }
.ct-open-inner { padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5rem); }
.ct-intro { margin-top: 0; color: var(--mute); }
.ct-mail { color: var(--ink); font-size: clamp(1.25rem, 2.6vw, 2.1rem); }
.ct-copy { border-color: var(--line); color: var(--ink); }
.ct-copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ct-extra { color: var(--mute); }
.ct-social a { font-size: clamp(3rem, 11vw, 9.5rem); }
.ct-open-inner { max-width: 56rem; margin: 0 auto; padding-left: clamp(1.5rem, 6vw, 4rem); padding-right: clamp(1.5rem, 6vw, 4rem); }
.ct-intro, .ct-mail-row, .ct-extra { padding: 0; }

/* contact: the address in huge type, running right to left; it glides in on arrival */
.ct-open { display: block; padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)); }
.ct-open-inner { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
  animation: ct-run 38s linear infinite; will-change: transform; }
/* three rows of the address, alternating direction, set tight */
/* marquee refinements: rows 1 & 3 solid, row 2 outline; slower; copy button centred; closer to the menu */
.ct-open { padding-top: calc(var(--header-h) + .5rem); }
.ct-open-inner { padding-top: 1.25rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.ct-mail-row { justify-content: center; margin-top: 0; }
/* rows almost touching; bottom row in a light bold */
.ct-mail-row { margin-top: 1.25rem; }
/* four rows — four voices, like the quartet; no bold, a bit smaller */
/* marquee driven by script (speed reacts to scroll); hovering one row lifts out that voice */
/* simpler form: message box grows with the text */
.ct-field textarea { resize: none; overflow: hidden; min-height: 3.2rem; field-sizing: content; }
/* contact pink band: exactly the home project-band effect — colour sweeps in from the right, title glides from the left, the form from the right */
.ct-form-band { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--tilt))); }
.ct-form-band::before { clip-path: polygon(calc(100% - var(--p, 1) * 135%) 0, 100% 0, 100% 100%, calc(100% - var(--p, 1) * 135% - 35%) 100%); }
.ct-form-inner { transform: none; opacity: 1; }
.ct-form-title { transform: translateX(calc((1 - var(--p, 1)) * -9vw)); }
.ct-form { transform: translateX(calc((1 - var(--p, 1)) * 9vw)); opacity: calc(.15 + var(--p, 1) * .85); }
@media (prefers-reduced-motion: reduce) { .ct-form-title, .ct-form { transform: none !important; opacity: 1 !important; } }

/* ===== Tipografia: Inter (Display òptic) + IBM Plex Mono ===== */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-opsz-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; 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: "Inter"; src: url("../fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; 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; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-opsz-italic.woff2") format("woff2-variations"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02FF,U+1E00-1E9F,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02FF,U+1E00-1E9F,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
:root { --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
/* Mono only for navigation: menu, menu button, languages, wordmark */
.nav-main a, .menu-toggle-label, .langs a, .wordmark-small {
  font-family: var(--mono); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
@media (min-width: 900px) {
  .nav-main a { text-transform: uppercase; font-size: .8125rem; letter-spacing: .02em; }
}

/* ===== Enllaços del menú: lletres en cascada + imant ===== */
/* Mask: same line box as the text, so the link keeps its exact size */
.roll { display: inline-flex; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll .ch { display: inline-block; position: relative; white-space: pre;
  /* leave: 400 ms, 25 ms per letter, last letter first */
  transition: transform 400ms cubic-bezier(.34, 1.3, .64, 1);
  transition-delay: calc((var(--n) - 1 - var(--i)) * 25ms); }
.roll .ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }
/* enter: 450 ms, 35 ms per letter, small overshoot */
.is-in > .roll .ch { transform: translateY(-100%);
  transition: transform 450ms cubic-bezier(.34, 1.45, .64, 1);
  transition-delay: calc(var(--i) * 35ms); }
.nav-main a.has-roll::after { display: none; }
.nav-main a.has-roll:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .roll .ch { transition: none !important; transform: none !important; } }

.home-dark:hover .home-dark-title { letter-spacing: -.035em; }

/* Desktop header: languages on the same line as the main menu, socials hanging just below */
@media (min-width: 1024px) {
  .nav-meta { position: relative; display: flex; flex-direction: row; align-items: center; gap: 0; }
  .langs { align-items: center; line-height: 1.5; }
  .langs li { display: block; line-height: 1.5; }
  .nav-main a, .langs a { display: block; line-height: 1.5; }
  .nav-meta .social { position: absolute; top: calc(100% + .5rem); right: 0; }
}

/* ===== Wordmark: one line, same mono as the menu ===== */
.site-header .wordmark { flex-direction: row; align-items: baseline; gap: .55em; line-height: 1.5; white-space: nowrap; }
.site-header .wordmark-big, .site-header .wordmark-small,
.is-scrolled .wordmark-big, .is-scrolled .wordmark-small {
  font-family: var(--mono); font-size: .9375rem; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase;
  margin: 0; padding: 0; transition: none; }
.site-header .wordmark-big { font-weight: 500; }
.site-header .wordmark-small { font-weight: 400; opacity: .5; }
@media (max-width: 1023px) {
  .site-header .wordmark-big, .site-header .wordmark-small { font-size: .875rem; }
}


/* "Llegeix-ne més" links: IBM Plex Mono in capitals, like the menu */
.text-link { font-family: var(--mono); font-weight: 400; font-size: .8125rem; text-transform: uppercase; letter-spacing: .02em; }

/* Social icons in their own brand colour (same thin line icons). On dark photos and on
   the coloured project slides they stay white/black so they don't clash. */
html body:not(.menu-open):not(.header-on-dark):not(.page-projects) .site-header .social a[aria-label="Instagram"] { color: #D62976 !important; }
html body:not(.menu-open):not(.header-on-dark):not(.page-projects) .site-header .social a[aria-label="Facebook"] { color: #1877F2 !important; }
html body:not(.menu-open):not(.header-on-dark):not(.page-projects) .site-header .social a[aria-label="YouTube"] { color: #FF0000 !important; }
html body:not(.menu-open):not(.header-on-dark):not(.page-projects) .site-header .social a[aria-label="Spotify"] { color: #1DB954 !important; }
html body:not(.menu-open):not(.header-on-dark):not(.page-projects) .site-header .social a[aria-label="Apple Music"] { color: #FA2D48 !important; }

/* ===== Home concerts: white teaser strip (Leonkoro-style) =====
   White boxes 1px apart, 16px padding; day 24px over month 12px caps; city 18px,
   time 15px grey; hall in italics with a coloured arrow; "all concerts" centred. */
[data-concerts="vidre"] .hero-concerts { padding: 0 36px; bottom: 1.65rem; }
@media (min-width: 701px) {
  [data-concerts="vidre"] .hero-concerts-list { display: flex !important; gap: 2px !important; align-items: stretch; }
  [data-concerts="vidre"] .hero-concerts-list > li { flex: 1 1 0; min-width: 0; margin: 0 !important; }
}
[data-concerts="vidre"] .hero-concerts-list > li,
[data-concerts="vidre"] .hero-concerts-list > li + li {
  background: #fff !important; border: 0 !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
  transition: transform .3s ease !important; }
[data-concerts="vidre"] .hero-concerts .concert,
[data-concerts="vidre"] .hero-concerts .concert:first-child {
  display: flex !important; align-items: flex-start; gap: 0; padding: 16px !important; color: #1E293B; font-family: var(--sans); }
[data-concerts="vidre"] .hero-concerts .concert-date { flex: none; width: auto; margin: 0; padding: 0 24px; text-align: center; display: block; line-height: 1; }
[data-concerts="vidre"] .hero-concerts .concert-day,
[data-concerts="vidre"] .hero-concerts .concert:first-child .concert-day {
  display: block; font: 400 24px/32px var(--sans) !important; letter-spacing: 0; color: #1E293B !important; margin: 0; }
[data-concerts="vidre"] .hero-concerts .concert-mon {
  display: block; font: 400 12px/16px var(--sans) !important; letter-spacing: 1.2px; text-transform: uppercase; color: #1E293B !important; margin: 0; }
[data-concerts="vidre"] .hero-concerts .concert-body { min-width: 0; line-height: 1; }
[data-concerts="vidre"] .hero-concerts .concert-place { display: block; margin: 0 0 2px; }
[data-concerts="vidre"] .hero-concerts .concert-city {
  display: inline-block; margin-right: 4px; font: 400 18px/28px var(--sans) !important; letter-spacing: 0; text-transform: none; color: #1E293B !important; }
[data-concerts="vidre"] .hero-concerts .concert-time {
  font: 400 15px/15px var(--sans) !important; letter-spacing: 0; color: #9CA3AF !important; }
[data-concerts="vidre"] .hero-concerts .concert-venue { margin: 0; font: italic 400 16px/16px var(--sans) !important; }
[data-concerts="vidre"] .hero-concerts .concert-venue a {
  display: block; font-style: italic; color: #1E293B !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
[data-concerts="vidre"] .hero-concerts .concert-venue .icon { display: inline-block; vertical-align: -2px; margin-left: 4px; width: 15px; height: 15px; color: var(--accent) !important; }
[data-concerts="vidre"] .hero-all a {
  display: flex; align-items: center; justify-content: center; gap: 4px; height: 100%; padding: 16px !important;
  font: 400 16px/1 var(--sans) !important; letter-spacing: 0; text-transform: none; color: #1E293B !important; }
[data-concerts="vidre"] .hero-all a .icon { color: var(--accent) !important; }
@media (any-hover: hover) {
  [data-concerts="vidre"] .hero-concerts-list > li:hover { transform: translateY(-4px) !important; background: #fff !important; }
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-day,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-mon,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-city,
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-venue a,
  [data-concerts="vidre"] .hero-all a:hover { color: #1E293B !important; }
  [data-concerts="vidre"] .hero-concerts .concert:hover .concert-time { color: #9CA3AF !important; }
}
@media (max-width: 700px) {
  [data-concerts="vidre"] .hero-concerts { padding: 0 16px; bottom: 1.25rem; }
}
/* Concerts float just above the bottom edge; a small scroll arrow sits in the gap */
[data-concerts="vidre"] .hero .hero-cue { bottom: .1rem; width: 1.2rem; height: 1.2rem; }

/* Vertical "BIO" label beside the bio excerpt, in the menu's mono.
   Rotated as a whole so the letter rollover still works in its own direction. */
.side-label {
  font-family: var(--mono); font-size: 1rem; line-height: 1.5; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; display: inline-block; white-space: nowrap; }
@media (min-width: 861px) {
  .home-split > div { position: relative; }
  .home-split .side-label {
    position: absolute; top: .45rem; left: -3.6rem;
    transform-origin: 0 0; transform: rotate(-90deg) translateX(-100%); }
}
@media (max-width: 860px) {
  .home-split .side-label { margin-bottom: .75rem; }
}

/* Vertical "PROJECTES" beside the project title in the coloured band */
.home-dark .side-label { color: var(--pfg, #fff); }
@media (min-width: 861px) {
  .home-dark-inner > .side-label {
    grid-column: 1; grid-row: 1 / span 3; align-self: end; justify-self: start; position: relative; z-index: 2;
    margin-left: -3.6rem; margin-bottom: .2rem;
    transform-origin: 0 100%; transform: translateX(1.5em) rotate(-90deg); }
}
@media (max-width: 860px) {
  .home-dark-inner > .side-label { margin-bottom: .75rem; }
}



.main { overflow-x: clip; }

/* ===== Bio page: full-screen dark cover under a transparent white header ===== */
.page-bio .main:has(> .bio-hero:first-child) { padding-top: 0; }
html:has(.bio-hero) { scroll-behavior: smooth; scroll-padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html:has(.bio-hero) { scroll-behavior: auto; } }
.bio-hero { height: 100svh; min-height: 30rem; background: #0D0E0F; }
.bio-hero .bio-cue {
  bottom: .6rem; width: 1.6rem; height: 1.6rem; color: #fff; opacity: .55; filter: none;
  animation: cue-breathe 3s var(--ease) 1.6s infinite; transition: opacity .4s var(--ease); }
.bio-hero .bio-cue .icon { width: 1.2rem; height: 1.2rem; stroke-width: 1.25; }
.bio-hero .bio-cue:hover { opacity: 1; transform: none; }
/* the bio text comes up right under the (hidden) header when the arrow is clicked */
#bio-text { scroll-margin-top: 0; }

/* Bio: the quote band is black too, and the cover photo fades into it */
.bio-body .pull-quote:not(.pull-quote--small) { --signal: #0D0E0F; --on-signal: #ffffff; }
.bio-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(to top,
    #0D0E0F 0%, rgba(13,14,15,.95) 12%, rgba(13,14,15,.8) 28%, rgba(13,14,15,.55) 46%,
    rgba(13,14,15,.3) 64%, rgba(13,14,15,.12) 80%, rgba(13,14,15,.03) 92%, rgba(13,14,15,0) 100%); }
.bio-hero .bio-cue { z-index: 2; }

/* ===== Home: wide photo between the quartet text and the project band =====
   Fades out into the white page at the top and the sides; the coloured project band
   overlaps its lower part with a diagonal edge (parallel to the band's own bottom edge). */
.home-photo { position: relative; z-index: 0; height: clamp(22rem, 62vw, 50rem); overflow: hidden; }
.home-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.home-photo + .home-dark { margin-top: calc(-1 * var(--tilt) - 1px); position: relative; z-index: 2;
  clip-path: polygon(0 0, 100% var(--tilt), 100% 100%, 0 calc(100% - var(--tilt))) !important;
  padding-top: var(--tilt); }

/* Contact: the five addresses, one per line — name in the menu's mono, address in Lato */
.ct-people { max-width: var(--wrap); margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.ct-people-list { list-style: none; margin: 0 auto; padding: 0; max-width: 52rem; }
.ct-people-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding: 1.1rem 0; border-top: 1px solid var(--line); }
.ct-people-list li:last-child { border-bottom: 1px solid var(--line); }
.ct-people-who { font-family: var(--mono); font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.ct-people-inst { color: var(--mute); margin-left: .6em; }
.ct-people-mail { font-size: clamp(1.0625rem, 1.8vw, 1.375rem); font-weight: 300; color: var(--ink); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .45s var(--ease); }
.ct-people-mail:hover, .ct-people-mail:focus-visible { background-size: 100% 1px; }
@media (max-width: 640px) {
  .ct-people-list li { grid-template-columns: 1fr; gap: .3rem; }
}

/* Project band: straight bottom edge (the top still cuts the photo diagonally) */
.home-dark { clip-path: none !important; padding-bottom: 0 !important; }
.home-photo + .home-dark { clip-path: polygon(0 0, 100% var(--tilt), 100% 100%, 0 100%) !important; }

/* Home video under the project band: the Media video, wider than 16:9, cropped at the bottom */
.home-video { position: relative; overflow: hidden; aspect-ratio: 2.05 / 1; background: #0D0E0F; }
.home-video-frame { position: absolute; inset: 0; pointer-events: none; }
.home-video-frame iframe { position: absolute; top: 50%; left: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; transform: translateY(-50%); }
@media (max-width: 700px) { .home-video { aspect-ratio: 16 / 9; } }
/* the home video is black and white; colour comes in under the mouse */
.home-video-frame iframe { filter: grayscale(1); transition: filter .9s var(--ease); }
@media (any-hover: hover) { .home-video:hover .home-video-frame iframe { filter: grayscale(0); } }
/* the whole video is a link to the Media page */
.home-video-link { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.home-video-link:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }

/* Small contact block at the bottom of the home page */
.home-contact { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 861px) { .home-contact > div { min-height: 9.5rem; } }
.home-contact-mail { display: inline-block; font-size: clamp(1.5rem, 3vw, 2.375rem); font-weight: 300; letter-spacing: -.01em; color: var(--ink);
  text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.home-contact-mail:hover, .home-contact-mail:focus-visible { background-size: 100% 1px; }
.home-contact .text-link { display: flex; margin-top: 1.1rem; }
.home-contact, .home-contact > div { text-align: left; }
.home-contact-mail { display: table; }

/* Contact block as a black closing band (mirrors the quote band at the top of the page) */
.home-contact { max-width: none; background: #0D0E0F; color: #fff; text-align: center !important;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter); display: block; border: 0; }
.home-contact > div { text-align: center !important; min-height: 0 !important; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.home-contact .side-label { position: static !important; transform: none !important; color: rgba(255,255,255,.6); font-size: .8125rem; letter-spacing: .3em; margin: 0; }
.home-contact-mail { color: #fff; font-size: clamp(1.75rem, 4.2vw, 3.25rem); }
.home-contact .text-link { color: #fff; margin-top: .4rem; }
.home-contact .text-link .icon { color: #fff; }

/* TEST: teal quote band on the home page */
.home-quote.home-band { --signal: #0D0E0F; }

/* Contact band: slimmer, with a rising diagonal top edge that cuts into the video above */
.home-contact { position: relative; z-index: 2;
  padding: calc(var(--tilt) + clamp(1.75rem, 3.5vw, 2.75rem)) var(--gutter) clamp(2.25rem, 4.5vw, 3.5rem);
  margin-top: calc(-1 * var(--tilt));
  clip-path: polygon(0 var(--tilt), 100% 0, 100% 100%, 0 100%); }
.home-contact > div { gap: .7rem; }
.home-contact-mail { font-size: clamp(1.5rem, 3.4vw, 2.625rem); }
/* even slimmer contact band */
.home-contact { padding: calc(var(--tilt) + clamp(.9rem, 2vw, 1.5rem)) var(--gutter) clamp(1.25rem, 2.6vw, 2rem); }
.home-contact > div { gap: .45rem; }
.home-contact .side-label { font-size: .75rem; }
.home-contact-mail { font-size: clamp(1.25rem, 2.6vw, 2rem); }
.home-contact .text-link { margin-top: .15rem; }

/* the closing contact band takes the same petrol as the opening quote */
.home-contact { background: #0D0E0F; }

/* TEST: white contact footer band (dark text) */
.home-contact { background: #fff !important; color: var(--ink); }
.home-contact .side-label { color: var(--mute); }
.home-contact-mail, .home-contact .text-link, .home-contact .text-link .icon { color: var(--ink); }

/* Video: show the bottom of the frame (the cellist's feet) above the contact band's diagonal.
   Crop only from the top; the band's slanted edge overlaps empty space under the video. */
.home-video { aspect-ratio: auto; height: calc(100vw / 2.05 + var(--tilt)); }
.home-video-frame iframe { top: auto; bottom: var(--tilt); transform: none; }
@media (max-width: 700px) { .home-video { height: calc(100vw * 9 / 16 + var(--tilt)); } }

/* No dark wedge: the video fills its whole box (bottom-aligned, cropped only at the top) and its own
   bottom edge is the rising diagonal; the white contact band simply follows below. */
.home-video { background: transparent; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt)), 0 100%); }
.home-video-frame iframe { bottom: 0; }
.home-contact { margin-top: 0; clip-path: none; padding-top: clamp(1.5rem, 3vw, 2.25rem); }
/* crop more from the top so the musicians sit in the middle of the frame */
.home-video { height: calc(100vw / 2.45 + var(--tilt)); }
@media (max-width: 700px) { .home-video { height: calc(100vw / 2.1 + var(--tilt)); } }

/* TEST: Syne Bold for the project titles */
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212; }
@font-face { font-family: "Syne"; src: url("../fonts/syne-latin-ext-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02FF,U+1E00-1E9F,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF; }
.home-dark-title, .proj-title { font-family: "Syne", var(--sans); font-weight: 700; letter-spacing: -.035em; line-height: .95; }
/* Syne is wide: smaller size so the home title sits on two lines */
.home-dark-title { font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
/* contact footer: slimmer still */
.home-contact { padding: clamp(.9rem, 1.8vw, 1.35rem) var(--gutter) clamp(.9rem, 1.8vw, 1.35rem) !important; }
.home-contact > div { gap: .3rem; }
.home-contact .side-label { font-size: .6875rem; }
.home-contact-mail { font-size: clamp(1.125rem, 2vw, 1.5rem); }
.home-contact .text-link { margin-top: 0; font-size: .75rem; }
/* TEST: white project title on the home band */
.home-dark .home-dark-title { color: #fff !important; }

/* ===== Projects: everything on one screen on a computer =====
   Title on top; short lead with the folded text on the left, programme on the right. */
@media (min-width: 981px) {
  .proj-inner { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 3.5rem; }
  .proj-title { font-size: clamp(2.75rem, 5.4vw, 5.25rem); }
  .proj-body { margin-top: clamp(1.5rem, 2.6vw, 2.25rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proj-text .proj-lead { margin-top: 0; }
}
.proj-text .proj-lead { margin-top: 0; font-style: normal; font-weight: 300; font-size: clamp(1.25rem, 1.9vw, 1.625rem); line-height: 1.35; }
.proj-more { margin-top: 1.25rem; }
.proj-more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .4em;
  font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; text-transform: uppercase; }
.proj-more summary::-webkit-details-marker { display: none; }
.proj-more summary .icon { width: .9em; height: .9em; transition: transform .4s var(--ease); }
.proj-more[open] summary .icon { transform: rotate(180deg); }
.proj-more .proj-more-close, .proj-more[open] .proj-more-open { display: none; }
.proj-more[open] .proj-more-close { display: inline; }
.proj-more > p:first-of-type { margin-top: 1.25rem; }
.proj-programme { margin-top: 0; }
@media (min-width: 981px) {
  /* programme starts level with the lead, a little tighter so it fits on one screen */
  .proj-programme { border-top: 0; padding-top: .35rem; }
  .proj-works { margin-top: 1.1rem; }
  .proj-works li { padding-bottom: .75rem; }
  .proj-inner { padding-top: calc(var(--header-h) + .75rem); padding-bottom: 2.75rem; }
}

/* "Read more" on project slides: the text opens like a score being turned —
   a thin line draws down the margin (as in the programme) and each paragraph
   is uncovered by a diagonal wipe, one after the other. */
.proj-more-body { position: relative; overflow: hidden; padding-left: 1.25rem; }
.proj-more-body::before { content: ""; position: absolute; left: 0; top: 1.25rem; bottom: .4rem; width: 1px;
  background: color-mix(in srgb, var(--fg) 45%, transparent); transform-origin: top; transform: scaleY(0);
  transition: transform .9s cubic-bezier(.65, 0, .2, 1); }
.proj-more-body > p {
  clip-path: polygon(0 0, 0 0, -12% 100%, 0 100%); opacity: .2; transform: translateX(-.6rem);
  transition: clip-path .85s cubic-bezier(.65, 0, .2, 1), opacity .7s ease, transform .85s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(.15s + var(--i, 0) * .14s); }
.proj-more.is-in .proj-more-body::before { transform: scaleY(1); }
.proj-more.is-in .proj-more-body > p { clip-path: polygon(0 0, 112% 0, 100% 100%, 0 100%); opacity: 1; transform: none; }
.proj-more.is-closing .proj-more-body > p { transition-duration: .35s; transition-delay: 0s; }
.proj-more.is-closing .proj-more-body::before { transition-duration: .35s; }
@media (prefers-reduced-motion: reduce) {
  .proj-more-body > p, .proj-more-body::before { transition: none !important; clip-path: none !important; opacity: 1 !important; transform: none !important; }
}
/* projects: title back to its full size; no margin line on the unfolded text */
@media (min-width: 981px) { .proj-title { font-size: clamp(3.25rem, 7vw, 6.5rem); } }
.proj-more-body { padding-left: 0; }
.proj-more-body::before { display: none; }
/* project subtitles: a little heavier and more compact so they read as one statement */
.proj-text .proj-lead { font-weight: 400; font-size: clamp(1.125rem, 1.6vw, 1.4375rem); line-height: 1.4; letter-spacing: -.005em; max-width: 30rem; }

/* ===== Project programme, redesigned like a printed concert programme =====
   Numbered in Syne (the title's face), composer in the menu's mono, work in Lato;
   hairlines between works, and where the music runs on, the line carries "attacca". */
.proj-works { margin-top: 1rem; counter-reset: w; border-bottom: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.proj-works li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); column-gap: .25rem; align-items: baseline;
  padding: .7rem 0 .65rem; counter-increment: w; border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); }
.proj-works li::before { content: counter(w, decimal-leading-zero); position: static; width: auto; height: auto; border-radius: 0; background: none;
  grid-row: 1 / span 2; font-family: "Syne", var(--sans); font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; line-height: 1.5; }
.proj-works li::after { display: none !important; }
.proj-composer { grid-column: 2; font-family: var(--mono); font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.proj-work { grid-column: 2; font-size: 1rem; font-weight: 400; line-height: 1.35; margin-top: .1rem; }
.proj-works--attacca li + li .proj-composer::before { content: none; }
.proj-works--attacca li + li { position: relative; }
.proj-works--attacca li + li > .proj-composer::after {
  content: "attacca"; position: absolute; top: 0; right: 0; transform: translateY(-55%);
  padding: 0 0 0 .5rem; background: var(--bg); font-family: var(--sans); font-style: italic; font-size: .75rem;
  letter-spacing: .02em; text-transform: none; opacity: .85; }
@media (min-width: 981px) { .proj-works li { padding: .55rem 0 .5rem; } }
@media (min-width: 981px) {
  .proj-works li { padding: .42rem 0 .4rem; }
  .proj-work { margin-top: 0; line-height: 1.3; }
  .proj-works { margin-top: .75rem; }
}


/* Programme (option A without numbers): composer + work, hairlines, "attacca" on the line */
.proj-works li { grid-template-columns: minmax(0, 1fr); }
.proj-works li::before { content: none !important; }
.proj-composer, .proj-work { grid-column: 1; }

/* Projects: key facts under the subtitle (fills the left column), programme label in mono */
.proj-facts { list-style: none; margin: 2.25rem 0 0; padding: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem;
  border-top: 1px solid color-mix(in srgb, var(--fg) 30%, transparent); max-width: 30rem;
  font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.proj-dates { list-style: none; margin: 1.25rem 0 0; padding: 0; font-size: .9375rem; }
.proj-dates li + li { margin-top: .3rem; }
.proj-dates span { font-family: var(--mono); font-size: .75rem; letter-spacing: .04em; margin-right: .6rem; }
.proj-programme-title { font-family: var(--mono); font-size: .75rem; letter-spacing: .06em; }
.proj-programme-title + .proj-works { margin-top: .9rem; }

/* Fewer stacked rules: no rule above the facts or the programme, and no rule above the first work
   (on mobile those three lines followed each other) */
.proj-facts { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.proj-programme { border-top: 0 !important; }
.proj-works { border-bottom: 0; }
.proj-works li:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 980px) {
  .proj-programme { margin-top: 1.75rem; }
  .proj-body { gap: 0; }
}

/* Project band on the home page: title and side label white; lead and link keep the dark text colour */
.home-dark .side-label { color: #fff !important; }

/* ===== Opening animation (first visit to the home page) =====
   The photo's empty backdrop, then the four musicians one by one, then the logo,
   the menu and the concerts, all on the same beat. intro.js adds .intro-N
   classes to <html> as each beat lands. */
.hero-media .intro-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 40%);
  animation: none; opacity: 0; pointer-events: none; }
.hero-media .intro-plate { z-index: 1; transition: opacity .45s ease; }
.hero-media .intro-musician { transform: translateY(1.2%); transition: opacity .32s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
.hero-media .intro-layer.is-in { opacity: 1; transform: none; }
.hero-media .intro-layer.is-out { opacity: 0; transition: opacity .35s ease; }
.bw-photos .hero-media .intro-layer { filter: grayscale(1); }
@media (max-width: 767px) { .hero-media .intro-layer { object-position: var(--focus-m, var(--focus, 50% 40%)); } }
html.intro .hero-media .hero-img { opacity: 0; }
html.intro .hero-media img, .hero-media.intro-played img { animation: none; }
html.intro .site-header .wordmark,
html.intro .site-header .menu-toggle,
html.intro .site-header .nav-main a,
html.intro .site-header .langs,
html.intro .site-header .social,
html.intro .hero-concerts,
html.intro .hero-cue { opacity: 0 !important; pointer-events: none; }

html.intro.intro-logo .site-header .wordmark,
html.intro.intro-menu .site-header .menu-toggle,
html.intro.intro-menu .site-header .nav-main a,
html.intro.intro-menu .site-header .langs,
html.intro.intro-menu .site-header .social { opacity: 1 !important; transform: none; transition: opacity .35s ease, transform .5s cubic-bezier(.16, 1, .3, 1); }
/* the concerts land straight on the photo, no fade or slide */
html.intro.intro-concerts .hero-concerts,
html.intro.intro-concerts .hero-cue { opacity: 1 !important; transition: none !important; }
/* keep the intro's musician layers inside the photo, under the concerts */
.hero-media { z-index: 0; }

/* ===== Simple opening of the home page (first visit) =====
   A quick fade: the photo and the logo almost at once, then the menu,
   languages, social links and concerts together, a moment later. */
@keyframes enter-fade { from { opacity: 0; } }
.hero-media img { animation-duration: .5s; }
html.enter .hero-media .hero-img,
html.enter .site-header .wordmark { animation: enter-fade .5s ease both; }
html.enter .site-header .menu-toggle,
html.enter .site-header .nav-main a,
html.enter .site-header .langs,
html.enter .site-header .social,
html.enter .hero-concerts { animation: enter-fade .45s ease .3s both; }

/* Contact page: mint green instead of the project pink */
body.page-contact { --signal: #1ED6A0; --on-signal: #111518; --accent: #0E8A69; --accent-bg: #e3f8f1; }

/* Contact: the address in mono, four voices that phase in and out of step (see site.js) */
.ct-phase { display: block; overflow-x: clip; color: var(--ink); text-decoration: none; animation: ct-glide2 1.4s cubic-bezier(.2, .8, .2, 1) .15s both; }
.ct-phase-row { display: block; overflow-x: clip; }
.ct-phase-track { display: inline-flex; white-space: nowrap; font: 400 clamp(2.1rem, 6.4vw, 6rem)/1.08 var(--mono); letter-spacing: 0; text-transform: lowercase; will-change: transform; }
.ct-phase-row:nth-child(2) { color: color-mix(in srgb, var(--ink) 72%, transparent); }
.ct-phase-row:nth-child(3) { color: color-mix(in srgb, var(--ink) 48%, transparent); }
.ct-phase-row:nth-child(4) { color: color-mix(in srgb, var(--ink) 28%, transparent); }
.ct-phase-row { transition: color .45s var(--ease); }
.ct-phase.is-unison .ct-phase-row { color: var(--ink); }
.ct-phase.is-unison .ct-phase-row:nth-child(n) .ct-phase-track span { color: inherit; }
.ct-phase.is-unison .ct-phase-row:first-child { color: var(--accent); }
@media (any-hover: hover) { .ct-phase:hover .ct-phase-row { color: var(--accent); } }

/* Quote band on the home page: plain black, still; the quote fades in as it arrives (--q from site.js) */
.home-quote.home-band.is-fade blockquote { opacity: var(--q, 1); transform: translate(var(--px, 0px), calc(var(--py, 0px) + (1 - var(--q, 1)) * 14px)); }
.home-quote.home-band.is-fade figcaption { opacity: calc(var(--q, 1) * .75); }

/* Colour sweeps (home project band, contact form band): the diagonal is now a skewed layer
   moved with transform instead of an animated clip-path, so the browser's compositor moves it
   and it no longer stutters on fast scrolling. --skew (the angle of the diagonal) comes from site.js. */
.home-dark, .ct-form-band { overflow: hidden; }
.home-dark::before, .ct-form-band::before {
  clip-path: none !important; inset: 0 auto 0 0 !important; width: 170%;
  transform-origin: 0 100%;
  transform: translateX(calc((.65 - 1.35 * var(--p, 1)) / 1.7 * 100%)) skewX(calc(-1 * var(--skew, 20deg)));
  will-change: transform; backface-visibility: hidden;
}
.home-dark .home-dark-title, .home-dark .home-dark-lead, .home-dark .text-link,
.ct-form-title, .ct-form { will-change: transform, opacity; }

/* =====================================================================
   Concerts page (Nov 2026 redesign)
   ===================================================================== */
.cx-inner, .cx-next-inner, .cx-season, .cx-note, .cx-archive { max-width: var(--wrap); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.cx-label { font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 1.25rem; }

/* 1 · next concert: black band with the site's diagonal edge */
.cx-next { background: #0D0E0F; color: #fff; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--tilt)), 0 100%);
  padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 calc(var(--tilt) + clamp(3rem, 6vw, 5rem)); }
.cx-kicker { display: flex; align-items: center; gap: .9rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.cx-count { color: #0D0E0F; background: #fff; border-radius: 999px; padding: .4rem .7rem; letter-spacing: .1em; }
.cx-next-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1.5rem, 5vw, 4.5rem); align-items: start; }
.cx-next-date { display: flex; flex-direction: column; align-items: flex-start; }
.cx-next-day { font-weight: 300; font-size: clamp(6rem, 15vw, 13.5rem); line-height: .78; letter-spacing: -.05em; margin-left: -.06em; }
.cx-next-mon { margin-top: 1.1rem; font: 400 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.cx-next-body { padding-top: .35rem; }
.cx-next-city { font-weight: 300; font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.03em; }
.cx-next-city .cx-country { color: rgba(255,255,255,.55); vertical-align: .9em; font-size: .75rem; }
.cx-next-venue { margin-top: 1rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-style: italic; color: rgba(255,255,255,.82); }
.cx-next-venue .cx-time { font-style: normal; font-family: var(--mono); font-size: .8em; letter-spacing: .04em; }
.cx-next-with { margin-top: .5rem; font-size: .9375rem; color: rgba(255,255,255,.65); }
.cx-next-prog { margin-top: 1rem; font-size: .9375rem; color: rgba(255,255,255,.8); }
.cx-next-prog li + li { margin-top: .2rem; }
.cx-next .cx-tag { margin-top: 1.4rem; }
.cx-status { margin-top: 1rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.cx-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.cx-btn { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .8rem 1.35rem; background: #fff; color: #0D0E0F; font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid #fff; transition: background .3s var(--ease), color .3s var(--ease); }
.cx-btn .icon { width: .9rem; height: .9rem; }
.cx-btn:hover { background: transparent; color: #fff; }
.cx-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.cx-btn--ghost:hover { background: #fff; color: #0D0E0F; border-color: #fff; }
.cx-empty { font-weight: 300; font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.15; max-width: 22ch; }

/* project tag: the project's colour and its title in Syne, as on the Projects page */
.cx-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: .38rem .75rem .42rem; background: var(--tag); color: var(--tag-fg);
  font-family: "Syne", var(--sans); font-weight: 700; font-size: .8125rem; letter-spacing: -.01em; line-height: 1; white-space: nowrap; transition: transform .3s var(--ease); }
.cx-tag:hover { transform: translateY(-2px); }
.cx-tag--big { font-size: 1rem; padding: .5rem .95rem .55rem; }
.cx-tag--small { font-size: .6875rem; padding: .28rem .55rem .32rem; }

/* 2 · the rest of the season */
.cx-season { margin-top: clamp(3rem, 7vw, 5.5rem); }
.cx-list { border-bottom: 1px solid var(--line); }
.cx-year { font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; color: var(--mute); padding: 2rem 0 .9rem; }
.cx-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto 4.5rem auto; column-gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  border-top: 1px solid var(--line); padding: 1.35rem 0; position: relative; transition: background .35s var(--ease); }
.cx-row::before { content: ""; position: absolute; inset: 0 calc(-1 * var(--gutter)); background: var(--soft); opacity: 0; z-index: -1; transition: opacity .35s var(--ease); }
.cx-row:hover::before { opacity: 1; }
.cx-date { display: flex; align-items: baseline; gap: .55rem; }
.cx-day { font-weight: 300; font-size: 2.75rem; line-height: .9; letter-spacing: -.04em; min-width: 1.4ch; }
.cx-mon { font: 400 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cx-city { font-size: 1.375rem; line-height: 1.2; letter-spacing: -.01em; transition: transform .35s var(--ease); }
.cx-row:hover .cx-city { transform: translateX(.35rem); }
.cx-country { font: 400 .6875rem/1 var(--mono); letter-spacing: .1em; color: var(--mute); margin-left: .2rem; }
.cx-venue { margin-top: .2rem; font-size: .9375rem; font-style: italic; color: var(--mute); }
.cx-venue .concert-toggle { font-style: italic; color: inherit; }
.cx-time { font: 400 .8125rem/1 var(--mono); letter-spacing: .04em; color: var(--text); text-align: right; }
.cx-go { display: flex; align-items: center; gap: .9rem; justify-content: flex-end; }
.cx-link { display: inline-flex; align-items: center; gap: .35rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.cx-link .icon { width: .8rem; height: .8rem; }
.cx-cal { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.cx-cal .icon { width: 1rem; height: 1rem; }
.cx-cal:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.cx-row.is-cancelled .cx-city, .cx-row.is-cancelled .cx-day { text-decoration: line-through; color: var(--mute); }
.cx-proj { display: flex; align-items: center; gap: .6rem; }
.cx-proj .cx-status { color: var(--mute); }
.cx-row .concert-details { grid-column: 1 / -1; }

.cx-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-size: .8125rem; color: var(--mute); }
.cx-note .icon { width: 1rem; height: 1rem; flex: none; }

/* 3 · archive */
.cx-archive { margin-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.cx-stats { font-weight: 300; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.12; letter-spacing: -.02em; max-width: 24ch; }
.cx-years { display: flex; flex-wrap: wrap; gap: .5rem; margin: clamp(1.75rem, 3vw, 2.5rem) 0 1.5rem; }
.cx-years button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: .5rem .85rem; font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; color: var(--ink); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.cx-years button span { color: var(--mute); margin-left: .25rem; }
.cx-years button:hover { border-color: var(--ink); }
.cx-years button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.cx-years button[aria-pressed="true"] span { color: rgba(255,255,255,.6); }
.cx-ayear-title { font: 500 .6875rem/1 var(--mono); letter-spacing: .14em; color: var(--mute); padding: 1.75rem 0 .75rem; }
.cx-archive.is-filtered .cx-ayear { display: none; }
.cx-archive.is-filtered .cx-ayear.is-on { display: block; animation: cx-in .45s var(--ease) both; }
.cx-archive.is-filtered.is-one .cx-ayear-title { display: none; }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px); } }
.cx-alist { border-bottom: 1px solid var(--line); }
.cx-arow { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(0, 1.5fr) auto; column-gap: 1.5rem; align-items: baseline; border-top: 1px solid var(--line); padding: .85rem 0; font-size: .9375rem; }
.cx-adate { font: 400 .75rem/1 var(--mono); letter-spacing: .06em; color: var(--mute); }
.cx-acity { color: var(--ink); }
.cx-avenue { font-style: italic; color: var(--mute); }
.cx-avenue .concert-toggle { font-style: italic; color: inherit; text-align: left; }
.cx-arow .concert-details { grid-column: 2 / -1; }

@media (max-width: 760px) {
  .cx-next-grid { grid-template-columns: 1fr; row-gap: 1.75rem; }
  .cx-next-date { flex-direction: row; align-items: flex-end; gap: 1rem; }
  .cx-next-mon { margin: 0 0 .5rem; }
  .cx-row { grid-template-columns: 4.25rem minmax(0, 1fr) auto; row-gap: .6rem; align-items: start; }
  .cx-date { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .cx-day { font-size: 2.25rem; }
  .cx-proj { grid-column: 2 / 3; grid-row: 2; }
  .cx-time { grid-column: 3; grid-row: 1; align-self: start; padding-top: .35rem; }
  .cx-go { grid-column: 3; grid-row: 2; }
  .cx-link { font-size: 0; gap: 0; border: 0; } .cx-link .icon { width: 1rem; height: 1rem; }
  .cx-arow { grid-template-columns: 3.5rem minmax(0, 1fr); row-gap: .25rem; }
  .cx-avenue, .cx-aproj { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) { .cx-row:hover .cx-city, .cx-tag:hover { transform: none; } .cx-archive.is-filtered .cx-ayear.is-on { animation: none; } }
.page-concerts .main:has(> .cx) { padding-top: 0; }
.cx-next .cx-time { color: rgba(255,255,255,.7); text-align: left; }
.cx-next-city .cx-country { margin-left: .5rem; vertical-align: 1.6em; }
.cx-list, .cx-alist { list-style: none; margin: 0; padding: 0; }
.cx-date .cx-mon { display: flex; flex-direction: column; gap: .3rem; }
.cx-date .cx-mon span + span { color: color-mix(in srgb, var(--mute) 70%, transparent); }
@media (max-width: 760px) { .cx-date { flex-direction: row; align-items: center; } .cx-date .cx-mon { gap: .2rem; } }
@media (max-width: 760px) {
  .cx-next-city .cx-country { vertical-align: baseline; }
  .cx-row { grid-template-columns: 5.5rem minmax(0, 1fr) auto; }
  .cx-time { grid-column: 2; grid-row: 2; text-align: left; padding-top: 0; color: var(--mute); }
  .cx-proj { grid-column: 2; grid-row: 3; }
  .cx-proj:empty { display: none; }
  .cx-go { grid-column: 3; grid-row: 1; align-self: center; }
}
.cx-stats { max-width: 30ch; text-wrap: balance; }



/* next concert, minimal: the project's colour, its title in Syne, the facts in mono and Lato */
.cx-next { background: var(--nbg, #0D0E0F); color: var(--nfg, #fff); }
.cx-next .cx-kicker { color: color-mix(in srgb, var(--nfg, #fff) 62%, transparent); gap: .5rem; margin-bottom: clamp(1.5rem, 3.5vw, 2.5rem); }
.cx-next-title { font-family: "Syne", var(--sans); font-weight: 700; font-size: clamp(3.25rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.035em; }
.cx-next-title a { color: inherit; }
.cx-next-title--city { font-family: var(--sans); font-weight: 300; letter-spacing: -.03em; }
.cx-next-when { margin-top: clamp(1.5rem, 3vw, 2.25rem); font: 400 .875rem/1 var(--mono); letter-spacing: .08em; }
.cx-next-where { margin-top: .75rem; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.cx-next-with { margin-top: .35rem; font-size: .9375rem; color: color-mix(in srgb, var(--nfg, #fff) 72%, transparent); }
.cx-next .cx-actions { gap: 2rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.cx-act { display: inline-flex; align-items: center; gap: .45rem; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: inherit; border-bottom: 1px solid currentColor; padding-bottom: .35rem; transition: opacity .3s var(--ease); }
.cx-act .icon { width: .9rem; height: .9rem; }
.cx-act:hover { opacity: .6; }

/* next concert: big-date layout on the project's colour (text colour follows the background) */
.cx-next .cx-kicker { gap: .9rem; }
.cx-next .cx-count { background: var(--nfg, #fff); color: var(--nbg, #0D0E0F); }
.cx-next .cx-next-mon, .cx-next .cx-next-city .cx-country { color: color-mix(in srgb, var(--nfg, #fff) 65%, transparent); }
.cx-next .cx-next-venue { color: color-mix(in srgb, var(--nfg, #fff) 85%, transparent); }
.cx-next .cx-time { color: color-mix(in srgb, var(--nfg, #fff) 75%, transparent); }
.cx-next-proj { display: inline-flex; margin-top: 1.4rem; border: 1.5px solid currentColor; border-radius: 999px; padding: .45rem .95rem .5rem;
  font-family: "Syne", var(--sans); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; line-height: 1; color: inherit; transition: background .3s var(--ease), color .3s var(--ease); }
.cx-next-proj:hover { background: var(--nfg, #fff); color: var(--nbg, #0D0E0F); }
.cx-next .cx-btn { background: var(--nfg, #fff); color: var(--nbg, #0D0E0F); border-color: var(--nfg, #fff); }
.cx-next .cx-btn:hover { background: transparent; color: var(--nfg, #fff); }
.cx-next .cx-btn--ghost { background: transparent; color: var(--nfg, #fff); border-color: color-mix(in srgb, var(--nfg, #fff) 45%, transparent); }
.cx-next .cx-btn--ghost:hover { background: var(--nfg, #fff); color: var(--nbg, #0D0E0F); border-color: var(--nfg, #fff); }
.cx-next .cx-actions { gap: .75rem; }

/* minimal next concert: project title (Syne) and a large thin date on one line */
.cx-min-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 3rem; }
.cx-min-date { display: flex; flex-direction: column; align-items: flex-end; }
.cx-min-day { font-weight: 200; font-size: clamp(3.25rem, 7vw, 6.5rem); line-height: .85; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.cx-min-meta { margin-top: .8rem; font: 400 .8125rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--nfg, #fff) 70%, transparent); }
.cx-min .cx-next-where { margin-top: clamp(1.75rem, 3.5vw, 2.75rem); padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--nfg, #fff) 30%, transparent); }
@media (max-width: 760px) {
  .cx-min-head { flex-direction: column; align-items: flex-start; }
  .cx-min-date { align-items: flex-start; }
}
.cx-next .cx-actions:has(.cx-act) { gap: 2rem; }
@media (max-width: 760px) { .cx-min-head { gap: .9rem; } .cx-min-day { font-size: 3.75rem; } }

/* next concert, variant: the day very large and thin on the left, the project in Syne on the right */
.cx-alt { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.cx-alt-date { display: flex; flex-direction: column; }
.cx-alt-day { font-weight: 200; font-size: clamp(8rem, 19vw, 17rem); line-height: .74; letter-spacing: -.06em; margin-left: -.07em; }
.cx-alt-meta { margin-top: 1.4rem; font: 400 .8125rem/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--nfg, #fff) 72%, transparent); }
.cx-alt-body { padding-top: .2rem; }
.cx-alt .cx-next-where { margin-top: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 760px) {
  .cx-alt { grid-template-columns: 1fr; row-gap: 1.5rem; }
  .cx-alt-date { flex-direction: row; align-items: flex-end; gap: 1.1rem; }
  .cx-alt-day { font-size: 7.5rem; }
  .cx-alt-meta { margin: 0 0 .3rem; }
}
/* smaller day: about the height of the project title block */
.cx-alt-day { font-size: clamp(5.5rem, 11vw, 10rem); line-height: .78; }
@media (max-width: 760px) { .cx-alt-day { font-size: 5.5rem; } }
/* month / weekday beside the day (as on the phone), not tucked underneath */
.cx-alt-date { flex-direction: row; align-items: flex-end; gap: 1.1rem; }
.cx-alt-meta { margin: 0 0 .35rem; }
.cx-next { padding-bottom: calc(var(--tilt) + clamp(2rem, 4vw, 3rem)); }
.cx-next .cx-next-prog { margin-top: 1.1rem; font-size: .9375rem; color: color-mix(in srgb, var(--nfg, #fff) 80%, transparent); }
.cx-next .cx-next-prog li + li { margin-top: .25rem; }
.cx-next-title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: .06em; text-underline-offset: .12em; transition: text-decoration-color .3s var(--ease); }
.cx-next-title a:hover { text-decoration-color: currentColor; }
.cx-next .cx-actions { row-gap: 1rem; }

/* archive: one list, no year filter */
.cx-archive .cx-label { margin-bottom: 1rem; }
@media (max-width: 760px) { .cx-arow { grid-template-columns: 5.75rem minmax(0, 1fr); } }

/* Menu button (phones/tablets): three slanted bars, like the site's diagonals; they turn into a cross when open */
@media (max-width: 1023px) {
  .menu-toggle, .menu-toggle[aria-expanded="true"] { border: 0 !important; background: none !important; padding: .55rem .35rem; margin-right: -.35rem; font-size: 0; }
  .menu-toggle[aria-expanded="true"]::before { content: none; }
  .menu-toggle-label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; }
  .menu-toggle .menu-toggle-lines { display: flex; align-items: center; justify-content: center; gap: 6px; width: 1.75rem; height: 1.35rem; }
  .menu-toggle .menu-toggle-lines i { display: block; width: 1.5px; height: 100%; background: currentColor !important; transform: skewX(-22deg); transition: transform .45s var(--ease), opacity .3s var(--ease); }
  .menu-toggle .menu-toggle-lines i:nth-child(4) { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateX(7.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2) { opacity: 0; transform: skewX(-22deg) scaleY(.2); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { transform: translateX(-7.5px) rotate(-45deg); }
  .menu-toggle:hover .menu-toggle-lines i:nth-child(2) { transform: skewX(-22deg) translateY(-2px); }
  .menu-toggle[aria-expanded="true"]:hover .menu-toggle-lines i:nth-child(2) { transform: skewX(-22deg) scaleY(.2); }
}
/* four bars — one per member of the quartet */
@media (max-width: 1023px) {
  .menu-toggle .menu-toggle-lines { width: 2rem; gap: 5px; }
  .menu-toggle .menu-toggle-lines i:nth-child(4) { display: block; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateX(9.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(2),
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(3) { opacity: 0; transform: skewX(-22deg) scaleY(.2); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(4) { transform: translateX(-9.75px) rotate(-45deg); }
  .menu-toggle:hover .menu-toggle-lines i:nth-child(3) { transform: skewX(-22deg) translateY(2px); }
  .menu-toggle[aria-expanded="true"]:hover .menu-toggle-lines i:nth-child(3) { transform: skewX(-22deg) scaleY(.2); }
}
/* next-concert links a bit smaller */
.cx-act { font-size: .6875rem; letter-spacing: .1em; gap: .4rem; padding-bottom: .3rem; }
.cx-act .icon { width: .8rem; height: .8rem; }
.cx-next .cx-actions:has(.cx-act) { gap: 1.6rem; }

/* Cover = exactly the visible screen. 100svh can come out shorter than the screen inside some
   in-app browsers, which left a strip of the black band below the photo; site.js sets --hero-h
   from the real window height (only when the width changes, so it doesn't jump while scrolling). */
.hero { height: var(--hero-h, 100svh); }
@media (max-width: 767px) {
  .hero { min-height: 0; }
}

/* next concert: the three links always on one line, on phones too */
.cx-next .cx-actions:has(.cx-act) { flex-wrap: nowrap; gap: 1.6rem; }
.cx-act { white-space: nowrap; }
@media (max-width: 480px) { .cx-next .cx-actions:has(.cx-act) { gap: 1.1rem; } .cx-act { letter-spacing: .06em; } }

/* menu bars shorter, closer to the height of the ATENEA QUARTET letters */
@media (max-width: 1023px) {
  .menu-toggle .menu-toggle-lines { height: .95rem; gap: 4px; width: 1.6rem; }
  .menu-toggle .menu-toggle-lines i { width: 1.4px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(1) { transform: translateX(8.1px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines i:nth-child(4) { transform: translateX(-8.1px) rotate(-45deg); }
}

/* Phones, home page: on arrival the name sits centred and the menu is hidden; after a short scroll
   the name slides to its usual place on the left and the menu bars fade in (site.js sets --wm-x). */
@media (max-width: 1023px) {
  .page-home .site-header .wordmark-big, .page-home .site-header .wordmark-small {
    transition: transform .7s cubic-bezier(.65, 0, .35, 1), font-size .5s var(--ease); }
  .page-home .site-header .menu-toggle-lines { transition: opacity .45s var(--ease) .25s; }
  body.page-home.wm-centre:not(.is-scrolled-page):not(.menu-open) .site-header .wordmark-big,
  body.page-home.wm-centre:not(.is-scrolled-page):not(.menu-open) .site-header .wordmark-small { transform: translateX(var(--wm-x, 0px)); }
  body.page-home.wm-centre:not(.is-scrolled-page):not(.menu-open) .site-header .menu-toggle-lines { opacity: 0; transition-delay: 0s; }
  body.page-home.wm-centre:not(.is-scrolled-page):not(.menu-open) .site-header .menu-toggle { pointer-events: none; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .page-home .site-header .wordmark-big, .page-home .site-header .wordmark-small { transition: none; }
}
.wm-noanim .site-header .wordmark-big, .wm-noanim .site-header .wordmark-small, .wm-noanim .site-header .menu-toggle-lines { transition: none !important; }

/* Home, computers: only the next 3 concerts, then the "all concerts" box */
@media (min-width: 768px) {
  .hero .hero-concerts-list > li.concert:nth-child(n+4) { display: none !important; }
}

/* Home quote: hidden until site.js has worked out how visible it should be (stops the quote
   flashing and sliding away on load when the band peeks in under the cover) */
@media (prefers-reduced-motion: no-preference) {
  .home-quote.home-band:not(.is-fade) blockquote, .home-quote.home-band:not(.is-fade) figcaption { opacity: 0; }
}

/* Home on phones: black behind the page, so Safari's top and bottom bars (and the overscroll
   bounce) read black, together with theme-color in the page head */
@media (max-width: 1023px) {
  html:has(body.page-home) { background: var(--white); }
}
/* Safari on iOS colours its top bar from the page background (it ignores theme-color), so on the
   home page the body itself is black; the content keeps its white background */
@media (max-width: 1023px) {
  body.page-home:not(.menu-open):not(.past-hero) { background: #000000; }
  .page-home .main, .page-home .site-footer { background: var(--white); }
}

/* Home on phones: at most the next 4 concerts + "all concerts", and the position shown as thin
   lines inside the bottom of the white card (one line per card, the current one dark) */
@media (max-width: 700px) {
  .hero .hero-concerts-list > li.concert:nth-child(n+5) { display: none !important; }
  .hero-concerts { position: absolute; }
  .hero .hero-concerts-list > li { padding-bottom: .55rem !important; }
  .swipe-dots { position: absolute; z-index: 2; left: calc(1rem + .9rem); right: calc(1rem + .75rem + .9rem); bottom: .6rem;
    margin: 0 !important; gap: 5px !important; pointer-events: none; }
  .swipe-dots span { flex: 1 1 0; width: auto !important; height: 2px !important; border-radius: 0 !important;
    background: rgba(17, 21, 24, .14) !important; box-shadow: none !important; transform: none !important; transition: background .3s; }
  .swipe-dots span.is-active { background: #111518 !important; }
  .page-home .hero-cue { bottom: .1rem; }
}
@media (max-width: 700px) {
  .swipe-dots { bottom: .3rem; }
  .swipe-dots span { height: 1px !important; }
  .hero .hero-concerts-list > li { padding-bottom: .3rem !important; }
}
/* phones: concerts card almost touching the bottom of the screen, no "scroll down" arrow */
@media (max-width: 700px) {
  .hero .hero-concerts, [data-concerts] .hero .hero-concerts { bottom: .45rem !important; }
  .page-home .hero-cue { display: none !important; }
}

/* phones: one 18px side margin for header and content (the home concert card keeps its own) */
@media (max-width: 1023px) {
  .site-header { padding-left: var(--gutter) !important; padding-right: var(--gutter) !important; }
}
@media (max-width: 700px) {
  :root { --gutter: 18px; }
}

/* Phones: body takes the colour of the top of the page (site.js sets --top-bg) so Safari's strip
   by the clock matches; the content itself keeps a white background */
@media (max-width: 1023px) {
  body:not(.menu-open) { background: var(--top-bg, var(--white)); }
  .main, .site-footer { background: var(--white); }
}

/* iPhone: the page runs edge to edge, under the clock (viewport-fit=cover in the page head), so the
   strip by the clock shows the real page — photo or colour — instead of a colour Safari picks.
   The header and everything placed under it move down by the height of that strip
   (--safe-top is 0 on computers and phones without it). The body-colour trick is switched off. */
:root { --safe-top: env(safe-area-inset-top, 0px); --header-h: calc(6rem + var(--safe-top)); }
.site-header { padding-top: var(--safe-top) !important; }
.site-header.is-scrolled { height: calc(4.5rem + var(--safe-top)); }
@media (max-width: 1023px) {
  :root { --header-h: calc(4.25rem + var(--safe-top)); }
  .site-header.is-scrolled { height: calc(4.25rem + var(--safe-top)); }
  body:not(.page-home) { background: var(--white) !important; }
  html:has(body.page-home) { background: var(--white); }
}
/* phones: slimmer concert card on the home page */
@media (max-width: 700px) {
  [data-concerts="vidre"] .hero .hero-concerts .concert, [data-concerts="vidre"] .hero .hero-concerts .concert:first-child { padding-top: 11px !important; padding-bottom: 12px !important; min-height: 0 !important; }
  .hero .hero-concerts-list .concert, .hero .hero-all a { min-height: 0 !important; }
}

/* Scrolling down: only the name slides away; the menu (four bars) always stays on screen */
body.header-hidden:not(.menu-open) .site-header { transform: none !important; }
.site-header .wordmark { transition: opacity .35s var(--ease), transform .45s var(--ease); }
body.header-hidden:not(.menu-open) .site-header .wordmark { opacity: 0; transform: translateY(-120%); pointer-events: none; }
/* the bars stay without any box; their colour follows the background (black on light and coloured
   sections, white on dark ones) through the existing header-on-dark check */

/* contact page on phones: the list of e-mail addresses takes less room */
@media (max-width: 700px) {
  .ct-people { padding-top: 1.25rem !important; padding-bottom: 2rem !important; }
  .ct-people-list > li { padding-top: .7rem !important; padding-bottom: .75rem !important; }
  .ct-people-who { font-size: .6875rem !important; }
  .ct-people-mail { font-size: 1.0625rem !important; margin-top: .15rem !important; display: inline-block; }
}
@media (max-width: 700px) {
  .ct-open-inner { padding-bottom: 1.5rem !important; }
  .ct-people-list li { gap: .15rem !important; }
}

/* contact: the mint sweep follows the scroll through the browser's own scroll-driven animation,
   which runs off the main thread (smooth on iPhone), forwards and backwards with the finger */
@keyframes ct-sweep {
  from { transform: translateX(calc(.65 / 1.7 * 100%)) skewX(calc(-1 * var(--skew, 20deg))); }
  to   { transform: translateX(calc(-.7 / 1.7 * 100%)) skewX(calc(-1 * var(--skew, 20deg))); }
}
@supports (animation-timeline: view()) {
  /* the band (not its ::before, which sits inside the band's own clipping box) defines the timeline */
  .ct-form-band.sweep-css { view-timeline: --ct-band block; }
  .ct-form-band.sweep-css::before {
    animation: ct-sweep linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
    animation-timeline: --ct-band; animation-range: cover 5vh cover 85vh;
  }
}
@media (prefers-reduced-motion: reduce) { .ct-form-band.sweep-css::before { animation: none; } }

/* ---- Scroll-linked effects run by the browser itself (scroll-driven animations): smooth on
   iPhone, and they follow the finger forwards and backwards. Browsers without support keep the
   script versions in site.js. Ranges reproduce the old script maths. ---- */
@keyframes sd-glide-l { from { translate: -9vw 0; } to { translate: 0 0; } }
@keyframes sd-glide-r { from { translate: 9vw 0; opacity: .15; } to { translate: 0 0; opacity: 1; } }
@keyframes sd-glide-l10 { from { translate: -10vw 0; opacity: .1; } to { translate: 0 0; opacity: 1; } }
@keyframes sd-quote { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes sd-cap { from { opacity: 0; } to { opacity: .75; } }
@keyframes sd-pic { from { translate: 0 var(--dy, 8%); scale: 1.35; } to { translate: 0 0; scale: 1; } }
@keyframes sd-kick { from { translate: 0 0; } to { translate: -35vh 0; } }
@keyframes sd-drift { from { translate: calc(var(--k, 1) * 7vw) 0; } to { translate: calc(var(--k, 1) * -7vw) 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* home: pink project band — sweep + text glide */
    .home-dark { view-timeline: --home-band block; }
    .home-dark::before { animation: ct-sweep linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --home-band; animation-range: cover 5vh cover 85vh; }
    .home-dark .home-dark-title { transform: none !important; animation: sd-glide-l linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --home-band; animation-range: cover 5vh cover 85vh; }
    .home-dark .home-dark-lead, .home-dark .text-link { transform: none !important; opacity: 1; animation: sd-glide-r linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --home-band; animation-range: cover 5vh cover 85vh; }
    /* contact: text of the mint band glides in with the sweep */
    .ct-form-band.sweep-css .ct-form-title { transform: none !important; animation: sd-glide-l linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --ct-band; animation-range: cover 5vh cover 85vh; }
    .ct-form-band.sweep-css .ct-form { transform: none !important; opacity: 1; animation: sd-glide-r linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --ct-band; animation-range: cover 5vh cover 85vh; }
    /* home: Haefliger quote fades in */
    .home-quote.fade-css { view-timeline: --quote block; }
    .home-quote.fade-css blockquote { opacity: 1; animation: sd-quote linear both; animation-timing-function: cubic-bezier(.5, 1, .89, 1);
      animation-timeline: --quote; animation-range: cover 8vh cover 43vh; }
    .home-quote.fade-css figcaption { animation: sd-cap linear both; animation-timing-function: cubic-bezier(.5, 1, .89, 1);
      animation-timeline: --quote; animation-range: cover 8vh cover 43vh; }
    /* home: photos settle from a deep zoom, one after another */
    .home-pics-grid { view-timeline: --pics block; }
    .home-pics-grid > li img { animation: sd-pic linear both; animation-timing-function: cubic-bezier(.33, 1, .68, 1); animation-timeline: --pics; }
    .home-pics-grid > li:nth-child(1) img { animation-range: cover 0vh cover 52.7vh; }
    .home-pics-grid > li:nth-child(2) img { animation-range: cover 11.9vh cover 64.6vh; }
    .home-pics-grid > li:nth-child(3) img { animation-range: cover 23.8vh cover 76.5vh; }
    /* contact: big kicker line drifts left as the page scrolls; social links drift sideways */
    .ct-kicker { animation: ct-glide2 1.4s cubic-bezier(.2, .8, .2, 1) .25s both, sd-kick linear both;
      animation-timeline: auto, scroll(root); animation-range: normal, 0px 100vh; }
    .ct-social { view-timeline: --social block; }
    .ct-social li { transform: none !important; animation: sd-drift linear both; animation-timeline: --social; }
  }
}

/* Bio cover: separate photo (and crop) for phones, chosen in the admin */
.bio-hero-media picture { display: contents; }
.bio-hero-img { object-position: var(--focus, 50% 35%); }
@media (max-width: 767px) { .bio-hero-img { object-position: var(--focus-m, var(--focus, 50% 35%)); } }
/* phones: the Bio photo is shown whole (no cropping): the cover takes the photo's own shape */
@media (max-width: 767px) {
  .bio-hero { height: auto !important; min-height: 0 !important; background: #000; }
  .bio-hero-media { position: relative !important; inset: auto !important; height: auto !important; }
  .bio-hero-media img { position: relative !important; inset: auto !important; width: 100% !important; height: auto !important; object-fit: contain; display: block; }
}

/* Bio: members in the site's label voice (as on the contact page) — name in mono capitals,
   instrument beside it in grey; the "Membres" label in mono too */
#members-label { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; }
.member-row-name { font-family: var(--mono); font-size: .8125rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.member-row-inst { font-family: var(--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin-top: .35rem; display: block; }
.member-row a:hover .member-row-name { text-decoration: underline; text-underline-offset: .25em; }
/* same rhythm as the contact list: name and instrument on one line; one column on phones */
.member-row-name, .member-row-inst { letter-spacing: .04em; }
.member-row-inst { display: inline-block; margin: 0 0 0 .8rem; }
@media (max-width: 700px) {
  .member-row ul { grid-template-columns: 1fr !important; column-gap: 0 !important; }
  .member-row li a, .member-row li > div { padding-top: .8rem !important; padding-bottom: .8rem !important; }
  .member-row-name { font-size: .75rem; }
}
.member-row-inst { display: block; margin: .35rem 0 0; }
@media (max-width: 700px) {
  .member-row-name { display: inline; }
  .member-row-inst { display: inline-block; margin: 0 0 0 .8rem; }
}

/* ---- Bio: each member's biography opens in place, under the names, behind a black band that
   sweeps in along the site's diagonal (no separate page; the old pages stay as a fallback) ---- */
.member-row ul[data-members] > .member-item { order: 1; }
.member-row ul[data-members] > .member-panel { order: 2; grid-column: 1 / -1; display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .65s cubic-bezier(.65, 0, .35, 1); }
.member-row ul[data-members] > .member-panel.is-open { grid-template-rows: 1fr; }
.member-panel-clip { overflow: hidden; min-height: 0; position: relative; isolation: isolate; }
.member-panel-clip::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 150%; z-index: -1; background: var(--ink);
  transform-origin: 0 100%; transform: translateX(70%) skewX(-20deg); transition: transform .75s cubic-bezier(.65, 0, .35, 1); }
.member-panel.is-open .member-panel-clip::before { transform: translateX(-20%) skewX(-20deg); }
.member-panel-inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3rem); color: #fff; }
.member-panel-inner > * { opacity: 0; translate: 2.5rem 0; transition: opacity .5s var(--ease), translate .7s var(--ease); }
.member-panel.is-open .member-panel-inner > * { opacity: 1; translate: 0 0; transition-delay: .3s; }
.member-panel.is-open .member-panel-inner > .member-panel-text { transition-delay: .42s; }
.member-panel-photo { margin: 0; }
.member-panel-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; filter: grayscale(1); }
.member-panel-head { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 1.25rem; font: 400 .8125rem/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.member-panel-head span + span { color: rgba(255, 255, 255, .55); }
.member-panel-quote { margin: 0 0 1.5rem; font-weight: 300; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.35; }
.member-panel-quote p { margin: 0; }
.member-panel-quote cite { display: block; margin-top: .5rem; font: 400 .6875rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .55); font-style: normal; }
.member-panel .prose, .member-panel .prose p { color: rgba(255, 255, 255, .88); }
.member-panel-close { margin-top: 1.25rem; background: none; border: 0; padding: .3rem 0; color: #fff; cursor: pointer;
  font: 400 .6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.member-row a[aria-expanded="true"] { border-color: var(--ink); }
.member-row a[aria-expanded="true"] .member-row-name { text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 700px) {
  .member-row ul[data-members] > .member-panel { order: 0; }
  .member-row ul[data-members] > .member-item { order: 0; }
  .member-panel-inner { grid-template-columns: 1fr; padding: 1.5rem 1.25rem 1.75rem; gap: 1.25rem; }
  .member-panel-photo img { aspect-ratio: 1 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  .member-row ul[data-members] > .member-panel, .member-panel-clip::before, .member-panel-inner > * { transition: none !important; }
}
.member-row li.member-panel > .member-panel-clip { padding: 0 !important; border: 0 !important; }
/* the black band: a diagonal edge sweeping right → left (clip-path, so the angle does not depend
   on how long the biography is), ending fully covered */
.member-panel-clip::before { width: 100% !important; inset: 0 !important; transform: none !important;
  clip-path: polygon(calc(100% + 7rem) 0, calc(100% + 7rem) 0, 100% 100%, 100% 100%);
  transition: clip-path .8s cubic-bezier(.65, 0, .35, 1) !important; }
.member-panel.is-open .member-panel-clip::before { clip-path: polygon(-7rem 0, calc(100% + 7rem) 0, 100% 100%, -7rem 100%); }
.member-panel-inner:not(:has(.member-panel-photo)) { grid-template-columns: minmax(0, 44rem); }
@media (prefers-reduced-motion: reduce) { .member-panel-clip::before { transition: none !important; } }

/* Bio "solo": the other names step aside along the diagonal and fade; the chosen one grows */
.member-row .member-item { transition: opacity .38s var(--ease), translate .45s cubic-bezier(.65, 0, .35, 1); }
.member-row .member-item.is-tacet { opacity: 0; translate: 2.2rem -1.1rem; pointer-events: none; }
.member-row .member-item.is-gone { display: none; }
.member-row .member-item .member-row-name { transition: font-size .5s cubic-bezier(.65, 0, .35, 1), letter-spacing .5s var(--ease); }
.member-row .member-item.is-chosen { grid-column: 1 / -1; }
.member-row .member-item.is-chosen .member-row-name { font-size: clamp(1.35rem, 3.2vw, 2.25rem); letter-spacing: .02em; text-decoration: none !important; }
.member-row .member-item.is-chosen .member-row-inst { font-size: .75rem; }
.member-row .member-item.is-chosen > a { border-top-color: var(--ink); padding-bottom: 1rem; }
@media (max-width: 700px) {
  .member-row .member-item.is-chosen .member-row-name { display: block; }
  .member-row .member-item.is-chosen .member-row-inst { display: block; margin: .4rem 0 0; }
}
@media (prefers-reduced-motion: reduce) { .member-row .member-item, .member-row .member-item .member-row-name { transition: none; } }
/* the chosen name above already says who it is */
.member-row ul[data-members] .member-panel-head { display: none; }
/* biography on the page background (no black band): text in the usual colours */
.member-panel-clip::before { display: none !important; }
.member-panel-inner { color: var(--ink); padding-left: 0 !important; padding-right: 0 !important; padding-top: clamp(1rem, 2.5vw, 1.75rem) !important; }
.member-panel .prose, .member-panel .prose p { color: var(--ink); }
.member-panel-quote cite, .member-panel-head span + span { color: var(--mute); }
.member-panel-close { color: var(--ink); border-bottom-color: var(--line); }

/* mobile menu text: pages a touch smaller and a little more spaced, languages clearly smaller than the pages */
@media (max-width: 1023px) {
  .site-menu .nav-main a { font-size: 1.1875rem !important; padding-top: 10px !important; padding-bottom: 10px !important; }
  .site-menu .langs a { font-size: .8125rem !important; }
}

/* touch screens keep :hover after a tap, which left the closed name underlined; only real hover underlines */
@media (any-hover: none) {
  .member-row li > a:hover { border-color: var(--line); }
  .member-row li > a:hover .member-row-name, .member-row a:hover .member-row-name { text-decoration: none; }
  .member-row a[aria-expanded="true"] .member-row-name { text-decoration: none; }
}

/* home quote band in a near-black monochrome grey instead of black */
.home-quote.home-band { --signal: #1c1c1c !important; }
/* no blue tap flash on the member names on phones */
.member-row a[data-member] { -webkit-tap-highlight-color: transparent; }

/* Bio names, smoother: the others leave quickly so the chosen one can start rising sooner, its size
   change is animated by the script (no font-size transition fighting it), and the biography opens
   with a softer ease that overlaps the end of the movement */
.member-row .member-item { transition: opacity .24s ease, translate .34s cubic-bezier(.22, .61, .36, 1) !important; }
.member-row .member-item .member-row-name { transition: none !important; }
.member-row ul[data-members] > .member-panel { transition: grid-template-rows .8s cubic-bezier(.22, .61, .36, 1) !important; }
.member-panel-inner > * { transition: opacity .45s ease, translate .8s cubic-bezier(.22, .61, .36, 1) !important; }
.member-panel.is-open .member-panel-inner > * { transition-delay: .18s !important; }
.member-panel.is-open .member-panel-inner > .member-panel-text { transition-delay: .28s !important; }
/* the name must be a box (not inline) so the script can scale it back down when closing */
@media (max-width: 700px) { .member-row .member-row-name { display: inline-block; } .member-row .member-item.is-chosen .member-row-name { display: block; } }

/* Media page with a cover photo: its header paints the social icons white over the photo, which made
   them invisible in the open (white) menu; inside the menu they keep their own colours */
.page-media.has-cover.menu-open .site-menu .social a[aria-label="Facebook"] { color: #1877F2; }
.page-media.has-cover.menu-open .site-menu .social a[aria-label="YouTube"] { color: #FF0000; }
.page-media.has-cover.menu-open .site-menu .social a[aria-label="Instagram"] { color: #D62976; }
.page-media.has-cover.menu-open .site-menu .social a[aria-label="Spotify"] { color: #1DB954; }
.page-media.has-cover.menu-open .site-menu .social a[aria-label="Apple Music"] { color: #FA2D48; }

/* mobile menu: social icons closer to the languages */
@media (max-width: 1023px) { .site-menu .social { margin-top: 1.1rem !important; } }

/* when the menu shrinks the page, a hairline of white showed between the cover photo and the quote
   band (two edges meeting on a fraction of a pixel); the band now overlaps the photo by 2px */
.page-home .home-quote.home-band { margin-top: -2px; }

/* Bio panel: the height no longer animates (the script plays the opening with transforms and a
   clip instead); the text inside still fades in */
.member-row ul[data-members] > .member-panel { transition: none !important; }
.member-panel-inner > * { transition: opacity .5s ease, translate .8s cubic-bezier(.22, .61, .36, 1) !important; }
.member-panel.is-open .member-panel-inner > * { transition-delay: .25s !important; }
.member-panel.is-open .member-panel-inner > .member-panel-text { transition-delay: .35s !important; }

/* Bio names: a small "+" at the right of each name says it opens; on the open one it turns into "–" */
.member-row a[data-member] { position: relative; padding-right: 1.75rem; }
.member-row a[data-member]::before,
.member-row a[data-member]::after {
  content: ""; position: absolute; right: .15rem; top: calc(.9rem + .72em); width: .5rem; height: 1px;
  background: var(--ink); transition: transform .5s cubic-bezier(.45, .05, .2, 1), opacity .3s ease;
}
.member-row a[data-member]::after { transform: rotate(90deg); }
.member-row a[data-member][aria-expanded="true"]::before { transform: rotate(180deg); }
.member-row a[data-member][aria-expanded="true"]::after { transform: rotate(180deg); }
.member-row .member-item.is-chosen a[data-member]::before,
.member-row .member-item.is-chosen a[data-member]::after { top: calc(.9rem + .8em); width: .65rem; }

/* Home: the halls the quartet has played in, as a single line between two hairlines that runs
   continuously from right to left (two copies of the list, so the loop has no seam) */
.home-venues { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.home-venues-ticker { display: flex; width: max-content; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  animation: venues-run 38s linear infinite; }
.home-venues { overflow: hidden; }
.home-venues-run { display: flex; margin: 0; padding: 0; list-style: none; font: 400 .875rem/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.home-venues-run li { display: flex; align-items: baseline; padding: .85rem 0; }
.home-venues-run li span { margin-left: .7em; color: var(--mute); font-size: .75rem; }
.home-venues-run li::after { content: ""; align-self: center; width: 1px; height: .9em; margin: 0 1.6em; background: var(--mute); transform: rotate(20deg); }
@keyframes venues-run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .home-venues-ticker { animation: none; } }
/* the halls line now sits under "El quartet", before the photo */
.home-venues { padding: clamp(1rem, 3vw, 2rem) 0 clamp(2.5rem, 6vw, 4.5rem); }

/* quote author and role in the mono type, upper and lower case as written */
.home-quote figcaption, .bio-body .pull-quote:not(.pull-quote--small) figcaption {
  font-family: var(--mono); text-transform: none; letter-spacing: .01em; font-size: .75rem; line-height: 1.5; }
/* author in capitals on its own line, role underneath in grey */
.home-quote figcaption .quote-name, .bio-body .pull-quote figcaption .quote-name { display: block; text-transform: uppercase; letter-spacing: .08em; color: #fff; opacity: 1; }
.home-quote figcaption .quote-role, .bio-body .pull-quote figcaption .quote-role { display: block; margin-top: .3rem; color: rgba(255, 255, 255, .55); }
.home-quote.home-band figcaption { opacity: 1 !important; }
.home-quote figcaption .quote-role, .bio-body .pull-quote figcaption .quote-role { text-wrap: balance; }
/* halls line closer to "Llegeix-ne més" (the quartet section keeps less space underneath) */
.home-split:has(+ .home-venues) { padding-bottom: 1.5rem; }
.home-venues { padding-top: 0; }
/* role back in the text type (Lato), the name stays mono; the dash above the author becomes a hairline */
.home-quote figcaption .quote-role, .bio-body .pull-quote figcaption .quote-role {
  font-family: "Lato", system-ui, sans-serif; font-size: .8125rem; letter-spacing: 0; line-height: 1.45; margin-top: .4rem; }
.home-quote figcaption::before { width: 1.75rem !important; height: 1px !important; opacity: .45; margin-bottom: 1.1rem !important; }
/* no dash above the quote author: the name in mono capitals already separates it */
.home-quote figcaption::before { display: none !important; }
.home-quote figcaption { margin-top: 1.75rem; }

/* Quotes (home and bio): the usual opening and closing marks inside the text, in the project pink
   and a touch heavier and larger than the text, so they read as a small accent */
.home-quote blockquote p::before, .bio-body .pull-quote:not(.pull-quote--small) blockquote p::before { content: "“" !important; }
.home-quote blockquote p::after, .bio-body .pull-quote:not(.pull-quote--small) blockquote p::after { content: "”" !important; }
.home-quote blockquote p::before, .home-quote blockquote p::after,
.bio-body .pull-quote:not(.pull-quote--small) blockquote p::before,
.bio-body .pull-quote:not(.pull-quote--small) blockquote p::after { color: #fff; font-weight: 700; font-size: 1.25em; line-height: 0; }
.home-quote blockquote p::before, .bio-body .pull-quote:not(.pull-quote--small) blockquote p::before { margin-right: .04em; }
.home-quote blockquote p::after, .bio-body .pull-quote:not(.pull-quote--small) blockquote p::after { margin-left: .03em; }
/* the halls line waits at the start (Wigmore Hall first) and only begins to run once it is on screen */
.home-venues-ticker { animation-play-state: paused; }
.home-venues.is-running .home-venues-ticker { animation-play-state: running; }
.home-venues-ticker { margin-left: var(--gutter); }
/* the two hairlines run the full width, not from the indented start of the line */
.home-venues-ticker { border-top: 0; border-bottom: 0; }
.home-venues { padding-top: 0 !important; padding-bottom: 0 !important; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }



/* Option "amagar cita" (admin → Configuració → Efecte de la cita; body class fx-hide-quote).
   Home: you scroll normally until the whole quote has been seen; then, as you keep scrolling, the quote
   band slides up faster than the page and tucks in behind the cover photo, leaving only the black
   triangle of its slanted foot showing. Everything below it (El quartet, the rest, the footer) rises
   with it, so the distances stay as they are. --qd (set by site.js) is how far it travels: the band's
   height minus the triangle. The page is cut short by that same distance at the end, so no empty space is left there. Native scroll-driven animation; without support nothing moves. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    body.page-home.fx-hide-quote { timeline-scope: --qband; }
    body.fx-hide-quote.page-home .hero { position: relative; z-index: 4; }
    body.fx-hide-quote.page-home .home-quote.home-band { view-timeline: --quote block, --qband block, --qsweep block !important; }
    body.fx-hide-quote.page-home .home-quote.home-band, body.fx-hide-quote.page-home .home-quote ~ * {
      animation: qband-hide linear both !important; animation-timeline: --qband !important; animation-range: contain 0% contain 55% !important; }
    body.fx-hide-quote.page-home.qd-ready .main { height: calc(var(--mainh) - var(--qd, 0px)); overflow: clip; }
  }
}
@keyframes qband-hide { from { translate: 0 0; } to { translate: 0 calc(-1 * var(--qd, 0px)); } }

/* Home quote band: the grey sweeps in along the site's diagonal as you scroll, like the pink project
   band but mirrored (it comes in from the left, the slant leaning the other way). Native
   scroll-driven animation, so it follows the finger smoothly; without support the band is simply grey. */
.home-quote.home-band { background: transparent !important; isolation: isolate; overflow: hidden; }
.home-quote.home-band::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: 170%; z-index: -1;
  background: var(--signal); transform-origin: 100% 100%;
  transform: translateX(calc(.7 / 1.7 * 100%)) skewX(var(--skew, 20deg));
  will-change: transform; backface-visibility: hidden;
}
@keyframes qband-sweep {
  from { transform: translateX(calc(-.65 / 1.7 * 100%)) skewX(var(--skew, 20deg)); }
  to   { transform: translateX(calc(.7 / 1.7 * 100%)) skewX(var(--skew, 20deg)); }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home-quote.home-band { view-timeline: --quote block, --qsweep block; }
    .home-quote.home-band::before { animation: qband-sweep linear both; animation-timing-function: cubic-bezier(.45, 0, .55, 1);
      animation-timeline: --qsweep; animation-range: cover 0vh cover 60vh; }
  }
}

/* credit required by the free country database (DB-IP Lite, CC BY 4.0): one small grey line at the very end */
.geo-credit { margin: 0; padding: .9rem var(--gutter) 1.1rem; background: var(--white); text-align: center; font: 400 .625rem/1.2 var(--mono); letter-spacing: .04em; }
.geo-credit a { color: rgba(17, 21, 24, .35); text-decoration: none; }
.geo-credit a:hover { color: var(--ink); }

/* Media cover video on tall screens (phones): the 16:9 film is wider than the screen, so the frame
   glides slowly and without stopping from the left of the quartet to the right and back, like a camera
   operator. The turning points stop where the outer players reach the edge of the shot (no empty
   background beyond them). 0 = left edge of the film, 1 = right edge.
   The film is moved with its position (left), not with a transform: some phones stop playing a video
   inside a frame that is being transformed all the time. */
@media (max-aspect-ratio: 1/1) {
  .video-cover-frame iframe {
    left: calc(.5 * (100vw - var(--cover-h, 100svh) * 1.7778));
    transform: translateY(-50%);
    animation: cover-director 22s ease-in-out infinite alternate;
  }
  @keyframes cover-director {
    from { left: calc(.28 * (100vw - var(--cover-h, 100svh) * 1.7778)); }  /* first violin at the left edge */
    to   { left: calc(.72 * (100vw - var(--cover-h, 100svh) * 1.7778)); }  /* cello at the right edge */
  }
}
@media (max-aspect-ratio: 1/1) and (prefers-reduced-motion: reduce) {
  .video-cover-frame iframe { animation: none; }
}

/* Press kit at the end of the biography: a pink band whose top edge rises in a diagonal, like the
   slanted bands of the contact page; the site's link lettering (mono, caps) and the download arrow. */
.bio-presskit { max-width: 40rem; margin: 3rem auto 0; }
.bio-presskit .text-link {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 1.6rem 1.25rem 1.15rem; background: var(--signal); color: var(--on-signal);
  font-size: .9375rem; letter-spacing: .05em; text-decoration: none;
  clip-path: polygon(0 .9rem, 100% 0, 100% 100%, 0 100%);
  transition: background .3s;
}
.bio-presskit .text-link svg { color: var(--on-signal); }
.bio-presskit .text-link:hover, .bio-presskit .text-link:focus-visible { background: #c55a7e; }

/* The device would not start the cover video by itself: Vimeo's own player (with its controls and
   play button) is shown instead, whole, in landscape 16:9, full width from the very top of the page
   (under the header), with nothing cut off and no black bars: the section is as tall as the film.
   Same on phones, iPads and computers. No camera moves, no sound button of ours. */
.video-cover.is-stalled { height: auto; min-height: 0; }
.video-cover.is-stalled .video-cover-frame { position: relative; inset: auto; pointer-events: auto; }
.video-cover.is-stalled .video-cover-frame iframe {
  position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9;
  min-width: 0; min-height: 0; transform: none; left: auto; animation: none;
}
.video-cover.is-stalled .sound-toggle, .video-cover.is-stalled .scroll-cue { display: none; }

/* Media gallery: no zoom, no scroll drift. Each photo only fades in softly the first time it comes
   into view: from transparent and slightly blurred and lower, to sharp (see site.js). */
.gallery-item img { transform: none !important; animation: none !important; clip-path: none !important; }
.gallery-item { transition: opacity 1.4s cubic-bezier(.22,.61,.36,1), filter 1.4s cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1); transition-delay: var(--gd, 0s); }
.gallery-item.is-hidden { opacity: 0; filter: blur(10px); transform: translateY(1.5rem); }
@media (prefers-reduced-motion: reduce) { .gallery-item { transition: none; } .gallery-item.is-hidden { opacity: 1; filter: none; transform: none; } }

/* Media cover video = exactly the visible screen, measured once when the page opens (site.js sets
   --cover-h). It is NOT updated while scrolling: when the browser bars hide on scroll the screen gets
   taller, and following it made the film grow (a small zoom). Only a new width (turning the phone)
   measures again. */
.video-cover { height: var(--cover-h, 100svh); }
.video-cover-frame iframe { min-height: var(--cover-h, 100svh); min-width: calc(var(--cover-h, 100svh) * 1.7778); }


/* Phones, home page, first screen: only the photo and the logo (photo size unchanged). Whatever
   comes right below the photo (seen under the browser's see-through bottom bar) stays black until the
   visitor starts to scroll; then it fades in and the concerts appear with a quick fade from blurred. */
@media (max-width: 767px) {
  body.page-home::after {
    content: ""; position: fixed; left: 0; right: 0; top: var(--hero-h, 100svh); bottom: 0; height: 100lvh;
    background: #000; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .45s ease;
  }
  html.home-intro body.page-home::after { opacity: 1; }
  /* Safari also paints the page colour under its bars and when the page is pulled: black too */
  html.home-intro, html.home-intro body.page-home { background-color: #000 !important; }
  html.home-intro body.page-home .hero-concerts { animation: none !important; opacity: 0 !important; pointer-events: none; }
  html.home-revealed body.page-home .hero-concerts { animation: home-concerts-in .5s cubic-bezier(.22,.61,.36,1) both !important; }
}
@keyframes home-concerts-in { from { opacity: 0; filter: blur(10px); transform: translateY(.6rem); } to { opacity: 1; filter: none; transform: none; } }
