/* =========================================================
   Tacheles Kultur — Flensburg
   The same building method as shaulbustan.com: flat colour
   fields cut hard against each other, four values and no
   fifth, three type voices, nothing rounded.
   The values are Tacheles' own, lifted from the existing
   site: paper white, the pale Baltic mist of its hero, the
   deep navy of its dark blocks, and one blue that carries
   every link and every mark.
   ========================================================= */

/* ---------- Self-hosted type. Never linked from Google:
     German rulings treat the request itself as a transfer. ---------- */

@font-face {
  font-family: 'Roboto'; src: url('../fonts/roboto-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed'; src: url('../fonts/roboto-condensed-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant'; src: url('../fonts/cormorant-300.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Cormorant'; src: url('../fonts/cormorant-300-italic.woff2') format('woff2');
  font-weight: 300; font-style: italic; font-display: swap;
}

/* ---------- The four values ---------- */

:root {
  --paper: #ffffff;   /* the ground most of the site stands on */
  --mist:  #c2d0e0;   /* the pale blue-grey of the existing hero */
  --deep:  #0d1b2b;   /* the navy of its dark blocks */
  --blue:  #176be0;   /* the one accent, on links and marks */
  --ink:   #1d1e20;   /* type on light ground */

  --bg: var(--paper);
  --text: var(--ink);
  --muted: #4a5560;
  --faint: #6d7885;
  --line: rgba(29, 30, 32, 0.16);

  --font-display: 'Roboto Condensed', 'Roboto', system-ui, sans-serif;
  --font: 'Roboto', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-quote: 'Cormorant', Georgia, serif;

  --reading: 68ch;
  --wrap: 1280px;
  --pad: clamp(1.2rem, 5vw, 4rem);
  --header-h: 74px;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* A dark field re-points the tokens rather than restating every rule. */
.field--deep, .field--blue {
  --text: var(--paper);
  --muted: #b9c6d4;
  --faint: #8fa0b3;
  --line: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.field--paper { background: var(--paper); }
.field--mist  { background: var(--mist); --line: rgba(29, 30, 32, 0.22); }
.field--deep  { background: var(--deep); }
.field--blue  { background: var(--blue); --line: rgba(255, 255, 255, 0.3); }

/* ---------- Reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 400; font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.field--deep :focus-visible, .field--blue :focus-visible { outline-color: var(--paper); }

.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: var(--pad); }
.wrap--reading { max-width: calc(var(--reading) + var(--pad) * 2); }
.section { padding-block: clamp(4rem, 9vw, 8.5rem); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--deep); color: var(--paper); padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 0; }

/* ---------- Voice one: Roboto Condensed states ---------- */

.section-title, .hero__name, h1, h2, h3, h4 {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.005em; line-height: 0.95;
}
.section-title {
  font-size: clamp(2rem, 6vw, 4.6rem);
  margin: 0 0 clamp(2rem, 4vw, 3.4rem);
}
.section-title--center { text-align: center; }
.section-title::after {
  content: ''; display: block; width: 4.5rem; height: 2px;
  background: var(--blue); margin-top: clamp(1rem, 2vw, 1.6rem);
}
.section-title--center::after { margin-inline: auto; }
.field--deep .section-title::after, .field--blue .section-title::after { background: var(--paper); }

.eyebrow {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.74rem;
  color: var(--blue); margin: 0 0 0.9rem;
}
.field--deep .eyebrow, .field--blue .eyebrow { color: var(--mist); }

/* ---------- Voice two: Roboto informs ---------- */

p { max-width: var(--reading); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.stack > * + * { margin-top: 1rem; }

.link-underline { border-bottom: 1px solid var(--line); transition: border-color 0.3s var(--ease), color 0.3s var(--ease); }
.link-underline:hover, .link-underline:focus-visible { border-color: currentColor; color: var(--blue); }
.field--deep .link-underline:hover, .field--blue .link-underline:hover { color: var(--mist); border-color: var(--mist); }

.btn {
  display: inline-block; font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.92rem;
  padding: 0.9rem 2.2rem; background: var(--blue); color: var(--paper);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--paper); }
.field--deep .btn, .field--blue .btn { background: var(--paper); color: var(--ink); }
.field--deep .btn:hover, .field--blue .btn:hover { background: var(--mist); color: var(--ink); }
.btn--plain {
  background: none; color: var(--blue); padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.btn--plain:hover, .btn--plain:focus-visible { background: none; color: var(--ink); border-color: var(--ink); }

.toggle {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem;
  border-bottom: 1px solid var(--line); padding: 0.35rem 0 0.4rem;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.toggle:hover, .toggle:focus-visible { color: var(--blue); border-color: var(--blue); }
.center-action { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- Voice three: Cormorant sings ---------- */

.quote {
  font-family: var(--font-quote); font-weight: 300; font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.4;
  max-width: 30ch;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 120;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  padding-inline: var(--pad);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-fixed {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(29, 30, 32, 0.12);
}
.brand { display: flex; align-items: center; gap: 0.65rem; margin-right: auto; }
.brand img { width: 26px; height: auto; }
.brand span {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.02rem; letter-spacing: 0.03em; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.8vw, 1.8rem); }
.nav a, .nav .nav-label {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.84rem;
  transition: color 0.3s var(--ease);
}
.nav a:hover, .nav a:focus-visible, .nav .nav-label:hover { color: var(--blue); }
.nav a[aria-current="page"] { color: var(--blue); }

.header-right { display: flex; align-items: center; gap: 1.1rem; }
.lang {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  display: flex; gap: 0.3rem;
}
.lang .is-active { color: var(--blue); }
.lang a:hover { color: var(--blue); }

.burger { display: none; width: 30px; height: 18px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child { bottom: 0; }

/* ---------- Projects opens on click, never on hover ----------
   A hover panel flickers by nature: the pointer crossing the gap
   leaves the item, the panel closes, the layout shifts, hover
   fires again. A click has none of those failure modes. */

.nav-item { position: relative; }
.nav-label { cursor: pointer; display: inline-flex; align-items: center; }
.nav-sub {
  position: absolute; top: 100%; left: 50%; translate: -50% 0;
  display: grid; min-width: 15rem; padding: 0.9rem 0;
  background: rgba(13, 27, 43, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.nav-item.is-open .nav-sub { opacity: 1; visibility: visible; }
.nav-sub a { padding: 0.5rem 1.4rem; white-space: nowrap; color: var(--paper); font-size: 0.82rem; }
.nav-sub a:hover { color: var(--mist); }

/* =========================================================
   Full-screen menu
   ========================================================= */

.site-nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--deep); color: var(--paper);
  display: grid; justify-items: center; align-content: center;
  padding: var(--pad);
  /* centred while it fits, scrollable the moment an open group makes it taller
     than the screen — otherwise the last links would be unreachable. */
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
body.menu-open .site-nav-overlay { opacity: 1; visibility: visible; }
.site-nav-overlay__close { position: absolute; top: 1.4rem; right: var(--pad); width: 30px; height: 30px; }
.site-nav-overlay__close span {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--paper);
}
.site-nav-overlay__close span:first-child { transform: rotate(45deg); }
.site-nav-overlay__close span:last-child { transform: rotate(-45deg); }
.site-nav-overlay__links { display: grid; gap: 0.4rem; text-align: center; }
.site-nav-overlay__links a, .site-nav-overlay__links .nav-label {
  font-family: var(--font-display); font-weight: 700;
  text-transform: uppercase; font-size: clamp(1.6rem, 7vw, 2.6rem); line-height: 1.15;
}
/* Opening the group animates grid-template-rows from 0fr to 1fr rather than a
   max-height. A max-height needs a number larger than the content, and when the
   content outgrows it — or the transition is interrupted — the panel slices the
   links in half. 1fr resolves to the content's own height, so it cannot. */
.site-nav-overlay__links .nav-sub {
  position: static; translate: none; background: none; opacity: 1; visibility: visible;
  display: grid; grid-template-rows: 0fr; min-width: 0;
  transition: grid-template-rows 0.4s var(--ease);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0;
}
.site-nav-overlay__links .nav-sub > * { min-height: 0; }
.site-nav-overlay__links .nav-sub__inner {
  /* No padding here: padding survives a zero-height row and would leave a gap
     under a closed group. The spacing lives on the links instead. */
  overflow: hidden; display: grid; gap: 0.2rem; padding: 0;
}
.site-nav-overlay__links .nav-item.is-open .nav-sub { grid-template-rows: 1fr; }
.site-nav-overlay__links .nav-sub__inner > a:first-child { padding-top: 0.7rem; }
.site-nav-overlay__links .nav-sub__inner > a:last-child { padding-bottom: 0.9rem; }
.site-nav-overlay__links .nav-sub a { font-size: 1rem; font-weight: 400; padding: 0.3rem 0; }
.site-nav-overlay__foot {
  position: absolute; inset: auto 0 clamp(1.5rem, 5vh, 3rem) 0;
  display: flex; justify-content: center; gap: 1.4rem; align-items: center;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  /* lvh, not svh: on an iPhone svh stops short of the screen and a strip of
     the next section shows under the hero. */
  min-height: 100svh; min-height: 100lvh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--pad) clamp(3rem, 8vh, 6rem);
  text-align: center;
}
.hero__mark { width: clamp(90px, 14vw, 170px); margin: 0 auto clamp(1.4rem, 3vw, 2.4rem); }
.hero__name {
  font-size: clamp(2.6rem, 11vw, 7.5rem); line-height: 0.88; letter-spacing: 0.01em;
}
.hero__line {
  margin: clamp(1.2rem, 3vw, 2rem) auto 0; max-width: 46ch;
  font-size: clamp(0.98rem, 1.4vw, 1.15rem); color: var(--muted);
}

.hero--photo { position: relative; min-height: 100svh; min-height: 100lvh;
               padding: 0; place-items: stretch; text-align: left; }
.hero--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__over {
  position: relative; z-index: 1; align-self: end; width: 100%;
  padding-block: clamp(4rem, 16vh, 10rem) clamp(2rem, 6vh, 4rem);
  background: linear-gradient(to top,
              rgba(13,27,43,0.94) 0%, rgba(13,27,43,0.84) 24%,
              rgba(13,27,43,0.46) 56%, transparent 100%);
  color: var(--paper);
}
.hero__over .hero__line { margin-inline: 0; color: var(--mist); }

/* =========================================================
   One concert, given the room it deserves
   ========================================================= */

.event-feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
.event-feature__shot img { width: 100%; }
.event-feature__when {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.88rem;
  color: var(--mist); margin: 0 0 0.5rem;
}
.event-feature__where { font-size: 0.92rem; color: var(--muted); margin: 0 0 1.6rem; }
.event-feature h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 0 0 0.8rem; }
.event-feature__sub {
  font-family: var(--font-quote); font-style: italic; font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem); margin: 0 0 1.6rem;
}
.event-feature p { font-size: 0.96rem; }

.fact-list { list-style: none; display: grid; gap: 0.45rem; margin: 1.8rem 0 0; }
.fact-list li {
  display: flex; gap: 0.7rem; align-items: baseline; font-size: 0.9rem;
  border-bottom: 1px solid var(--line); padding-bottom: 0.45rem;
}
.fact-list__k {
  flex: 0 0 auto; color: var(--faint); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.11em; min-width: 9rem;
}

/* =========================================================
   Projects — a list, not tiles
   ========================================================= */

.project-list { display: grid; gap: 0; }
.project {
  display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto;
  gap: 0 clamp(1rem, 2.5vw, 2rem); align-items: baseline;
  padding: clamp(1.3rem, 2.4vw, 1.9rem) 0;
  border-top: 1px solid var(--line); text-align: left; width: 100%;
  transition: color 0.3s var(--ease), padding-left 0.35s var(--ease);
}
.project-list .project:last-child { border-bottom: 1px solid var(--line); }
.project:hover, .project:focus-visible { color: var(--blue); padding-left: 0.5rem; }
.field--deep .project:hover, .field--mist .project:hover { color: var(--blue); }
.project__when {
  font-family: var(--font-display); font-weight: 500; letter-spacing: 0.08em;
  font-size: 0.82rem; color: var(--faint); text-transform: uppercase;
}
.project__name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.05rem, 2vw, 1.5rem); line-height: 1.1;
}
.project__sub {
  display: block; font-family: var(--font); font-weight: 400; text-transform: none;
  letter-spacing: 0; font-size: 0.86rem; color: var(--muted); margin-top: 0.3rem;
}
.project__more {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue);
}

/* the detail, opened */
.detail { width: min(1100px, 100%); max-height: 86vh; overflow-y: auto; text-align: left; padding-right: 0.7rem; }
.detail h3 { font-size: clamp(1.5rem, 3.4vw, 2.6rem); margin: 0 0 0.5rem; }
.detail__sub {
  font-family: var(--font-quote); font-style: italic; font-weight: 300;
  font-size: 1.15rem; color: var(--mist); margin: 0 0 1.6rem;
}
.detail p { max-width: 66ch; margin-bottom: 1rem; font-size: 0.96rem; }
.detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.2rem; margin: 1.8rem 0; }
.detail__k {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.13em; font-size: 0.68rem; color: var(--mist); margin-bottom: 0.3rem;
}
.detail__v { font-size: 0.9rem; line-height: 1.6; }
.detail__shot { margin-bottom: 1.8rem; }
.detail__shot img { width: 100%; }

/* =========================================================
   Photographs
   ========================================================= */

.tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.tile {
  display: block; width: 100%; position: relative;
  aspect-ratio: 3 / 2; overflow: hidden; background: var(--mist);
  outline-offset: 4px;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.05); }

.sponsors { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.sponsors img { max-height: 62px; width: auto; }

/* =========================================================
   Form
   ========================================================= */

.form { display: grid; gap: 1.4rem; max-width: 40rem; }
.field label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 0.4rem; }
.field input, .field textarea {
  width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.55rem 0; transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field--deep .field input:focus, .field--deep .field textarea:focus { border-color: var(--paper); }
.form .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: var(--faint); }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--deep); color: var(--mist);
  padding-block: clamp(2.2rem, 5vw, 3.6rem); font-size: 0.86rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; justify-content: space-between; }
.site-footer a:hover { color: var(--paper); }

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(13, 27, 43, 0.97); color: var(--paper);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
  --line: rgba(255, 255, 255, 0.22); --muted: #b9c6d4; --faint: #8fa0b3;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
/* Constrain the column: an auto grid column is sized from the content's own
   intrinsic width, which made width:100% inside it resolve wider than the
   space available and pushed the video off the right edge on a phone. */
.lightbox__body {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}
.lightbox__frame, .lightbox__figure, .detail { max-width: 100%; }
.lightbox__close {
  position: absolute; top: 1.4rem; right: clamp(1rem, 4vw, 3rem);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.84rem; color: var(--mist);
}
.lightbox__close:hover { color: var(--paper); }
.lightbox__img { max-width: min(1300px, 100%); max-height: 80vh; object-fit: contain; }
.lightbox__figure { display: grid; justify-items: center; gap: 0.9rem; }
.lightbox__credit { font-size: 0.8rem; color: var(--faint); }
.lightbox__nav {
  position: absolute; top: 50%; translate: 0 -50%; font-size: 2.4rem; color: var(--mist);
  padding: 0.4rem 0.9rem; line-height: 1;
}
.lightbox__nav--prev { left: clamp(0.3rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.3rem, 2vw, 1.5rem); }
.lightbox__nav:hover { color: var(--paper); }
.lightbox__frame { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   Motion — slow, and only where it means something
   ========================================================= */

.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* line-height under 1 lets the ink sit outside the line box top and bottom,
   so the mask grows both ways and is pulled back with negative margins. */
.word { display: inline-block; overflow: hidden; vertical-align: bottom;
        padding: 0.2em 0 0.3em; margin: -0.2em 0 -0.3em; }
.js .word > span {
  display: inline-block; transform: translateY(150%);
  transition: transform 1s var(--ease); transition-delay: calc(var(--w, 0) * 80ms);
}
.section-title.is-visible .word > span { transform: none; }
.section-title[data-split] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .word > span { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   Narrower screens
   ========================================================= */

@media (max-width: 1100px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 900px) {
  /* .header-right holds only the language switch, which the overlay carries
     instead. Leaving the empty box in the flex row was what stopped the
     hamburger reaching the right edge. */
  .nav, .header-right { display: none; }
  .burger { display: block; margin-left: auto; }
  body.menu-open .burger { opacity: 0; pointer-events: none; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { aspect-ratio: 1 / 1; }
  /* No hover on a touch screen, so nothing waits behind one. */
  .tile img { transform: none; }
  .tile:hover img { transform: none; }
  .event-feature { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; gap: 0.35rem; }
  .project__more { justify-self: start; }
  .fact-list li { flex-direction: column; gap: 0.1rem; }
  .fact-list__k { min-width: 0; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .detail__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Home page blocks
   ========================================================= */

/* The sentence that carries the whole organisation, in the quiet voice. */
.pull {
  font-family: var(--font-quote); font-style: italic; font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem); line-height: 1.4;
  max-width: 34ch; margin: 0 0 clamp(2.5rem, 5vw, 4rem);
}
.about-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.about-grid h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.lede-gap { margin-bottom: clamp(2rem, 4vw, 3rem); }
.action-gap { margin-top: 2rem; }
.bank-list { max-width: 32rem; margin-inline: auto; text-align: left; }
.centered { text-align: center; }
.centered p { margin-inline: auto; }
.note-gap { margin-top: 1.6rem; }

/* A tint of the brand blue, for the one place it must read on the navy. */
:root { --blue-lift: #5b9cff; }

.detail__shot figcaption {
  margin-top: 0.5rem; font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--faint);
}
.detail__shot--pair {
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1rem; align-items: start;
}
.detail__shot--pair figcaption { grid-column: 1 / -1; }
.detail__v--budget { color: var(--blue-lift); }

/* On the blue field the faint grey collapses to about 1.6:1. Labels there
   are white held back by opacity instead. */
.field--blue { --faint: rgba(255, 255, 255, 0.82); --muted: rgba(255, 255, 255, 0.9); }
.field--blue .fact-list li { border-bottom-color: rgba(255, 255, 255, 0.35); }

@media (max-width: 560px) { .detail__shot--pair { grid-template-columns: 1fr; } }

/* Send is a word, not a box — the same decision as on shaulbustan.com. */
.btn--text {
  background: none; border: 0; padding: 0.5rem 0;
  color: var(--text); letter-spacing: 0.12em;
}
.btn--text:hover, .btn--text:focus-visible { background: none; color: var(--blue); }
.field--deep .btn--text, .field--blue .btn--text { background: none; color: var(--paper); }
.field--deep .btn--text:hover, .field--blue .btn--text:hover { background: none; color: var(--mist); }

.spacer { height: clamp(2rem, 4vw, 3rem); }

/* =========================================================
   Weltivale
   ========================================================= */

.wv-day + .wv-day { margin-top: clamp(3rem, 6vw, 5rem); }
.wv-day__title {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  padding-bottom: 0.7rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 2px solid var(--blue);
}
.field--deep .wv-day__title, .field--blue .wv-day__title { border-bottom-color: var(--paper); }

.wv-item {
  display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.8rem); align-items: start;
  padding-block: clamp(1.8rem, 3.5vw, 2.8rem);
  border-top: 1px solid var(--line);
}
.wv-item:first-of-type { border-top: 0; padding-top: 0; }
.wv-item__shot img { width: 100%; }
.wv-item__shot figcaption { margin-top: 0.4rem; font-size: 0.72rem; color: var(--faint); }
/* An item without a photograph gives its whole width to the text. */
.wv-item:not(:has(.wv-item__shot)) { grid-template-columns: 1fr; }
.wv-item__when {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.76rem;
  color: var(--blue); margin: 0 0 0.5rem;
}
.field--deep .wv-item__when, .field--mist .wv-item__when { color: var(--blue); }
.wv-item h4 { font-size: clamp(1.2rem, 2.4vw, 1.8rem); margin: 0 0 0.9rem; }
.wv-item p { font-size: 0.94rem; margin-bottom: 0.8rem; }

.wv-claim {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.4rem, 4vw, 3rem); line-height: 1.02; max-width: 20ch;
}

@media (max-width: 800px) {
  .wv-item { grid-template-columns: 1fr; }
}

/* A page whose hero is a photograph carries its header in white until the
   header goes solid — near-black type over a dark picture reads as nothing. */
body[data-header="over"] .site-header { color: var(--paper); }
body[data-header="over"] .site-header .lang .is-active { color: var(--mist); }
body[data-header="over"] .site-header:not(.is-fixed) .nav a:hover,
body[data-header="over"] .site-header:not(.is-fixed) .nav .nav-label:hover,
body[data-header="over"] .site-header:not(.is-fixed) .lang a:hover { color: var(--mist); }
body[data-header="over"] .site-header.is-fixed { color: var(--ink); }
body[data-header="over"] .site-header.is-fixed .lang .is-active { color: var(--blue); }
/* The dark mark would disappear too, so it is inverted while it sits on the photo. */
body[data-header="over"] .site-header:not(.is-fixed) .brand img { filter: invert(1) brightness(2); }

/* =========================================================
   Legal pages
   ========================================================= */

.legal .section-title { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal-h {
  font-family: var(--font-display); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.78rem;
  color: var(--blue);
  margin: 2.4rem 0 0.7rem; padding-top: 1.3rem; border-top: 1px solid var(--line);
}
.legal-h:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { font-size: 0.96rem; line-height: 1.8; margin-bottom: 0.9rem; }
.legal code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }

/* Anything still to be supplied is marked, so it cannot go live unnoticed. */
.todo {
  background: #ffe9a8; color: var(--ink);
  padding: 0.05em 0.35em; font-weight: 500;
}

/* ---------- Weltivale: the video sits under the photograph ---------- */

.wv-frame { position: relative; aspect-ratio: 16 / 9; background: var(--deep); }
.wv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- the festival mark, across the full measure ---------- */

.wv-logo-band { padding-block: clamp(3rem, 8vw, 7rem); }
.wv-logo-band img { width: min(760px, 82%); margin-inline: auto; height: auto; }

/* ---------- Weltivale media: the photograph, then the video ---------- */

.wv-item__media { display: grid; gap: 0.9rem; align-content: start; }
.wv-item__shot img { width: 100%; }
.wv-item__shot figcaption { margin-top: 0.4rem; font-size: 0.72rem; color: var(--faint); }

/* ---------- The full-screen menu, on a phone ---------- */

@media (max-width: 900px) {
  .site-nav-overlay { align-content: center; padding-block: calc(var(--header-h) + 1rem) 6rem; }
  .site-nav-overlay__links { gap: 0.1rem; }
  .site-nav-overlay__links > a,
  .site-nav-overlay__links .nav-label { display: block; padding: 0.45rem 0; }
  /* The group label needs to read as openable, not as a dead heading. */
  .site-nav-overlay__links .nav-label::after {
    content: ''; display: inline-block; vertical-align: middle;
    width: 0; height: 0; margin-left: 0.55rem;
    border-top: 8px solid currentColor;
    border-left: 6px solid transparent; border-right: 6px solid transparent;
    transition: transform 0.3s var(--ease);
  }
  .site-nav-overlay__links .nav-item.is-open .nav-label::after { transform: rotate(180deg); }
  .site-nav-overlay__links .nav-item.is-open .nav-label { color: var(--mist); }
  .site-nav-overlay__links .nav-sub a { color: var(--mist); }
  .site-nav-overlay__foot .lang { font-size: 1rem; letter-spacing: 0.12em; }
  .site-nav-overlay__foot .lang .is-active { color: var(--mist); }
  .site-nav-overlay__foot .lang a { color: rgba(255, 255, 255, 0.6); }
  .site-nav-overlay__close { top: calc((var(--header-h) - 30px) / 2); right: var(--pad); }
}

/* Over a photograph the brand blue sinks into the picture. The scrim behind
   the hero is navy, so the eyebrow reads in mist there, as on a dark field. */
.hero__over .eyebrow { color: var(--mist); }


/* The Weltivale hero carries its type at the foot of the picture, so on a
   phone it keeps clear of Safari's toolbar. */
@media (max-width: 700px) {
  .hero__over { padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px)); }
}

/* The honeypot. Off-screen rather than display:none — the better bots skip
   hidden fields, and a field they skip catches nothing. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
