/* =========================================================
   Ensemble Flensburg — Version 3
   Reference: londonsinfonietta.org.uk

   The layout language of a large contemporary-music company,
   rebuilt in our own code for a small one: a photograph that
   fills the screen with the wordmark laid over it, concerts
   as big alternating rows rather than a table, a statement
   band between sections, a filtered media wall, a row of
   cards on cream, a black support band, and a footer that
   ends on the name.

   Nothing is taken from their site — not the stylesheet, not
   the typeface, not the artwork. The palette is ours: their
   charcoal-and-cream with a hot accent, but the accent is
   the orange out of the Ensemble Flensburg wordmark.

   One family throughout, the way the reference uses one:
   Inter, 300 to 700, self hosted.
   ========================================================= */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-300.woff2') format('woff2');
             font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2');
             font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2');
             font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2');
             font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2');
             font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */

:root {
  --dark:     #11100f;
  --charcoal: #1e1b19;
  --cream:    #ede7dd;
  --flame:    #f49140;          /* the wordmark's orange, the only hot value */
  --white:    #ffffff;
  --grey:     #8b898a;

  --bg: var(--dark);
  --fg: var(--white);
  --hot: var(--flame);          /* what a word turns when the cursor is on it */
  --line: rgba(255, 255, 255, 0.18);
  --dim: rgba(255, 255, 255, 0.62);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --pad: clamp(1.65rem, 3.4vw, 3.6rem);   /* the floor is what a phone gets */
  --wide: 1200px;      /* a column, centred, rather than the full screen */
  --gap: clamp(1rem, 2.4vw, 2.4rem);
  --hdr: 5.2rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* A section states its ground, and every component inside reads the four
   values from it. That is the whole theming mechanism. */
.on-cream {
  --bg: var(--cream); --fg: var(--dark);
  --line: rgba(17, 16, 15, 0.16); --dim: rgba(17, 16, 15, 0.6);
}
.on-dark {
  --bg: var(--dark); --fg: var(--white);
  --line: rgba(255, 255, 255, 0.18); --dim: rgba(255, 255, 255, 0.62);
}
.on-charcoal {
  --bg: var(--charcoal); --fg: var(--white);
  --line: rgba(255, 255, 255, 0.18); --dim: rgba(255, 255, 255, 0.62);
}
.on-flame {
  /* The hot colour is the ground here, so a word hovering to flame would
     simply disappear. On this one ground it goes the other way, to white. */
  --bg: var(--flame); --fg: var(--dark); --hot: var(--white);
  --line: rgba(17, 16, 15, 0.24); --dim: rgba(17, 16, 15, 0.7);
}
/* The funders' marks are all drawn for white paper. On white they need no
   plaque behind them and simply sit on the page. */
.on-white {
  --bg: var(--white); --fg: var(--dark);
  --line: rgba(17, 16, 15, 0.14); --dim: rgba(17, 16, 15, 0.6);
}

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

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--dark); color: var(--white);
  font-family: var(--font); font-weight: 300;
  font-size: clamp(1rem, 1.05vw, 1.09rem); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { 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; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -6rem; z-index: 300;
  background: var(--flame); color: var(--dark); padding: 0.8rem 1.3rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 1rem; }

/* ---------- Type ---------- */

.d1 { font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em;
      font-size: clamp(2rem, 4.6vw, 4rem); line-height: 0.94; }
.d2 { font-weight: 700; text-transform: uppercase; letter-spacing: -0.025em;
      font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 0.98; }
.d3 { font-weight: 600; text-transform: uppercase; letter-spacing: -0.02em;
      font-size: clamp(1.5rem, 2.8vw, 2.4rem); line-height: 1.02; }
.d4 { font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em;
      font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.15; }
.eyebrow { font-weight: 600; text-transform: uppercase; letter-spacing: 0.18em;
           font-size: 0.72rem; color: var(--dim); }
.lede { font-weight: 300; font-size: clamp(1.15rem, 1.9vw, 1.6rem);
        line-height: 1.45; letter-spacing: -0.01em; max-width: 34ch; }
.body { max-width: 60ch; }
.small { font-size: 0.86rem; color: var(--dim); }

/* ---------- Buttons ----------
   Three, and only three: a filled one for the single most important action
   on the page, an outlined one, and a text link with an arrow that draws
   itself forward on hover. */

.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.76rem; white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.btn::after {
  content: ''; width: 1.15em; height: 0.62em; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h21M16 1l5 5-5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  mask: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 12'%3E%3Cpath d='M0 6h21M16 1l5 5-5 5' stroke='%23000' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
  transition: transform 0.3s var(--ease);
}
.btn:hover::after { transform: translateX(4px); }
/* No boxes, no outlines, no rules. A link is words and an arrow, and the only
   thing that happens on hover is the colour. */
.btn--fill, .btn--out, .btn--link {
  padding: 0; background: none; border: 0; color: inherit;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
}
.btn--fill:hover, .btn--out:hover, .btn--link:hover { color: var(--hot); }
.btn--plain::after { display: none; }

/* A link inside a sentence is a link inside a sentence: it keeps the size and
   case of the words around it. The button styles are for standalone actions. */
.u { color: var(--hot); transition: color 0.25s var(--ease); }
.u:hover { color: var(--fg); }

/* ---------- Shell ---------- */

.wrap { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--pad); }
/* The media wall wants the screen, less a margin — the reading column would
   make eight films too small to see. */
.wrap--full { max-width: none; }
.sec { background: var(--bg); color: var(--fg); padding-block: clamp(4rem, 8vw, 8.5rem); }
.sec--flush { padding-block: 0; }

/* Every section opens with the name on the left and, where there is one, the
   catch-all link on the right. The column is narrow; the type inside it is
   not centred. */
.sec__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.2rem 2rem; margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.sec__head p { margin: 0.9rem 0 0; }

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

.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem var(--pad); min-height: var(--hdr);
  color: var(--white);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.hdr.is-stuck { background: var(--dark); box-shadow: 0 1px 0 rgba(255,255,255,0.12); }
/* Nothing at the left. The wordmark is on the photograph, at full size, and a
   second small copy in the corner only competes with it. */
.hdr { justify-content: flex-end; }
.hdr__ctrl { display: flex; align-items: center; gap: clamp(0.7rem, 1.6vw, 1.6rem); }
.hdr__lang { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.14em; }
.hdr__lang a { opacity: 0.6; }
.hdr__lang a:hover { opacity: 1; color: var(--flame); }

/* The menu button says MENU, then CLOSE. A hamburger alone tests people
   for no reason when there is room for the word. */
.menubtn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.74rem;
}
.menubtn__bars { display: grid; gap: 4px; width: 20px; }
.menubtn__bars span { height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
body.nav-open .menubtn__bars span:nth-child(1) { transform: translateY(2.75px) rotate(45deg); }
body.nav-open .menubtn__bars span:nth-child(2) { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- Full-screen navigation ---------- */

.nav {
  position: fixed; inset: 0; z-index: 70;
  background: var(--dark); color: var(--white);
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr) + 2rem) var(--pad) 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.nav-open { overflow: hidden; }
body.nav-open .nav { opacity: 1; visibility: visible; }
.nav__links { display: flex; flex-direction: column; justify-content: center; gap: 0.1rem; }
.nav__links a {
  font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em;
  font-size: clamp(2rem, 7vw, 5.5rem); line-height: 1.06;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s var(--ease);
}
body.nav-open .nav__links a { opacity: 1; transform: none; }
.nav__links a:nth-child(1) { transition-delay: 0.06s; }
.nav__links a:nth-child(2) { transition-delay: 0.10s; }
.nav__links a:nth-child(3) { transition-delay: 0.14s; }
.nav__links a:nth-child(4) { transition-delay: 0.18s; }
.nav__links a:nth-child(5) { transition-delay: 0.22s; }
.nav__links a:nth-child(6) { transition-delay: 0.26s; }
.nav__links a:hover { color: var(--flame); }
.nav__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
}

/* ---------- Hero ----------
   The photograph fills the screen and the wordmark is laid over it. No
   headline: the wordmark is the headline. */

.hero { position: relative; height: 100svh; height: 100lvh; min-height: 34rem; background: #000; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
/* Just enough shading to hold the mark and the link, top and bottom. */
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 28%,
                              rgba(0,0,0,0.10) 60%, rgba(0,0,0,0.72) 100%);
}
.hero__inner {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
/* The real lockup, in the language of the page — the German file carries
   GRENZÜBERSCHREITENDE KOMMUNIKATIVE NEUE MUSIK, the English one CROSS-BORDER
   COMMUNICATIVE NEW MUSIC. Present, and no larger than it needs to be. */
.hero__mark { width: min(26rem, 58vw); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

@media (max-width: 700px) {
  /* The photograph still fills the screen; the wordmark moves to the top,
     where the header leaves room for it. */
  .hero { height: 100svh; height: 100lvh; min-height: 30rem; }
  .hero__inner { justify-content: flex-start;
                 padding-top: calc(var(--hdr) + 0.25rem); padding-bottom: 2rem; }
  .hero__mark { width: min(17rem, 62vw); }
  .menubtn__t { display: none; }
  .hdr__ctrl { gap: 1.1rem; }
  .hero__media::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 34%,
                                rgba(0,0,0,0.10) 70%, rgba(0,0,0,0.55) 100%);
  }
}

/* ---------- Past concerts ----------
   A list, in one column. The picture, the poster and who played and wrote
   are behind the row rather than beside it, so twenty concerts stay
   readable at a glance and one concert can still be looked at properly. */

.clist { display: grid; }
.crow {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr) auto;
  gap: 0.4rem var(--gap); align-items: baseline; width: 100%; text-align: left;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
  transition: color 0.25s var(--ease), padding-inline 0.35s var(--ease);
}
.clist .crow:last-child { border-bottom: 1px solid var(--line); }
.crow:hover, .crow:focus-visible { color: var(--flame); padding-inline: 0.6rem; }
.crow__d { font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.78rem; }
.crow__t { font-weight: 600; text-transform: uppercase; letter-spacing: -0.012em;
           font-size: clamp(1.1rem, 1.9vw, 1.6rem); line-height: 1.12; }
.crow__v { font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
           color: var(--dim); white-space: nowrap; }
.crow--off { opacity: 0.6; }
.crow--off .crow__t { text-decoration: line-through; }
@media (max-width: 760px) {
  .crow { grid-template-columns: 1fr; }
  .crow__v { white-space: normal; }
}

/* the concert, opened */
.cdet { width: min(1100px, 100%); max-height: 84vh; overflow-y: auto; text-align: left;
        padding-right: 0.5rem; }
.cdet__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 0.8rem; }
.cdet__meta span { font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
                   font-size: 0.76rem; }
.cdet__meta span + span { color: rgba(255,255,255,0.62); }
.cdet h3 { margin-bottom: 1.4rem; }
.cdet__note { color: rgba(255,255,255,0.68); max-width: 62ch; }
.cdet__media { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
               gap: var(--gap); margin: 1.6rem 0; align-items: start; }
/* Capped, so the names underneath are on screen with the pictures rather
   than a scroll away. */
.cdet__media img { width: 100%; height: auto; max-height: 42vh; object-fit: contain;
                   object-position: left top; }
.cdet__media figure { margin: 0; }

.cdet__who { display: flex; flex-wrap: wrap;
             gap: var(--gap) clamp(2rem, 6vw, 5rem); margin-top: 1.6rem; }
.cdet__who h4 { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
                font-size: 0.72rem; color: var(--flame); margin-bottom: 0.7rem; }
.cdet__who ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.3rem; }
.cdet__who li { font-size: 0.95rem; }
.cdet__role { color: rgba(255,255,255,0.5); }

/* The programme, as the booklet had it: composer and country, the work, the
   playing time. Numbered, because a concert has an order. */
.cdet__prog { margin-top: 1.8rem; }
.cdet__prog h4 { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
                 font-size: 0.72rem; color: var(--flame); margin-bottom: 0.8rem; }
.cdet__prog ol { margin: 0; padding: 0; list-style: none; counter-reset: w; display: grid; }
.cdet__prog li {
  counter-increment: w;
  display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.2rem 1rem; align-items: baseline;
  padding: 0.75rem 0; border-top: 1px solid rgba(255,255,255,0.14);
}
.cdet__prog li::before {
  content: counter(w, decimal-leading-zero);
  font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
}
.cdet__prog-c { font-weight: 600; }
.cdet__prog-c em { font-style: normal; font-weight: 300; color: rgba(255,255,255,0.55); }
.cdet__prog-t { grid-column: 2; color: rgba(255,255,255,0.75); }
.cdet__prog-d { grid-row: 1; grid-column: 3; font-size: 0.8rem;
                color: rgba(255,255,255,0.5); white-space: nowrap; }
/* Movements sit under the work, indented, one per line. */
.cdet__mov { display: grid; gap: 0.15rem; margin-top: 0.35rem;
             font-size: 0.86rem; color: rgba(255,255,255,0.55); }
.cdet__prog-n { display: block; margin-top: 0.35rem; font-size: 0.82rem;
                color: var(--flame); }
@media (max-width: 640px) {
  .cdet__prog li { grid-template-columns: 2rem minmax(0, 1fr); }
  .cdet__prog-d { grid-row: auto; grid-column: 2; }
}
@media (max-width: 760px) { .cdet__media { grid-template-columns: 1fr; } }

/* ---------- Big picture rows (kept for a future season listing) ----------
   A concert is a row, not a line in a table: the date and the venue on the
   left, the name set large, and a photograph carrying it. */

.evs { display: grid; }
.ev {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--gap); align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.evs .ev:last-child { border-bottom: 1px solid var(--line); }
.ev__body { display: grid; gap: 1rem; align-content: start; }
.ev__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
.ev__date { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.82rem; }
.ev__where { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.ev__title { transition: color 0.3s var(--ease); }
.ev:hover .ev__title { color: var(--flame); }
.ev__note { margin: 0; max-width: 52ch; color: var(--dim); font-size: 0.92rem; }
.ev__fig { overflow: hidden; background: var(--charcoal); aspect-ratio: 3 / 2; }
.ev__fig img { width: 100%; height: 100%; object-fit: cover;
               transition: transform 1.2s var(--ease); }
.ev:hover .ev__fig img { transform: scale(1.045); }
.ev__off {
  display: inline-block; margin-left: 0.6rem; vertical-align: 0.22em;
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em;
  padding: 0.25em 0.6em; background: #b4453c; color: #fff;
}
.ev--off { opacity: 0.6; }
.ev--off .ev__title { text-decoration: line-through; }
.archive[hidden] { display: none; }
.archive__year { font-weight: 600; letter-spacing: 0.2em; font-size: 0.75rem;
                 color: var(--flame); margin: 2.6rem 0 0.4rem; }

@media (max-width: 860px) {
  .ev { grid-template-columns: 1fr; }
  .ev__fig { order: -1; }
}

/* ---------- The statement band ----------
   One line, as large as the screen will carry, on the flame. */

.say { background: var(--flame); color: var(--dark); padding-block: clamp(4rem, 10vw, 10rem); }
.say p { margin: 0; max-width: 18ch; }
/* `.say p` above is the more specific selector, so this one has to name the
   element too or the second line keeps the headline's 18ch measure. */
.say p.say__sub { font-weight: 300; text-transform: none; letter-spacing: -0.01em;
            font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: 1.3;
            max-width: 62ch; margin-top: 1.6rem; }

/* ---------- Explore: one big card, then a filtered wall ---------- */

/* No feature card: every film is the same size, four across, two rows. */

/* the filter row */
.pills {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.2rem, 3vw, 2.6rem); margin-bottom: var(--gap);
}
.pill {
  border: 0; padding: 0.2rem 0 0.4rem; background: none;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem); line-height: 1;
  color: var(--dim);
  transition: color 0.25s var(--ease);
}
.pill:hover { color: var(--fg); }
.pill.is-on { color: var(--flame); }

/* Four across, two rows, as large as the screen allows, and no gap: the wall
   reads as one continuous surface. */
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.cell { padding: 0; display: block; }
.cell__fig { position: relative; overflow: hidden; background: var(--charcoal); aspect-ratio: 3 / 2; }
.cell__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cell:hover .cell__fig img { transform: scale(1.05); }
/* No play mark: the pictures are left alone. A tile lifts a little on hover,
   and that is the whole invitation. */

/* A poster is artwork: it keeps its own proportions and is never cropped. */
.cell--poster .cell__fig { aspect-ratio: 1 / 1.414; }
.cell--poster .cell__fig img { object-fit: contain; background: var(--charcoal); }

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

/* ---------- The facts ----------
   A list rather than a row of cards: the number at the left, set large and
   light, the sentence beside it. Nothing is boxed and nothing scrolls
   sideways — on a phone the rows simply stack. */

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
         gap: clamp(1.4rem, 3vw, 2.8rem); }
.fact {
  display: grid; gap: 0.75rem; align-content: start;
  border-top: 2px solid var(--flame);
  padding-top: clamp(0.9rem, 1.8vw, 1.4rem);
}
.fact__n {
  font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 0.84;
  letter-spacing: -0.05em; white-space: nowrap;
}
.fact p { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--dim); }

/* Two up, then one — never a sideways scroll. */
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
/* No ornament in the cards: the number is the graphic. */

/* ---------- The roster ---------- */

.names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--gap); }
.who {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.3rem 1.5rem; padding: 1rem 0; border-top: 1px solid var(--line);
}
.who__n { font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em;
          font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.who__r { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
          color: var(--dim); text-align: right; }
@media (max-width: 760px) { .names { grid-template-columns: 1fr; } }

/* ---------- Support ---------- */

/* This heading shares its row with the funders' marks, so it is set a step
   down from the section titles rather than at full display size. */
#SUPPORT .d1 { font-size: clamp(1.9rem, 3.4vw, 3rem); }

/* On a phone the two clamps above sit on their floors and the headings stop
   shrinking, which leaves them shouting across a 393px screen. Below 600px
   they go on scaling with the width. */
@media (max-width: 600px) {
  .d1, #SUPPORT .d1 { font-size: clamp(1.45rem, 6.2vw, 2rem); }
}

.two {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
}
/* The half with the photograph in it is the wider one. */
.two--photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
@media (max-width: 860px) { .two--photo { grid-template-columns: 1fr; } }

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

/* Larger marks, closer together — they are the point of this half. Three to
   a row, and the column starts at the top rather than floating in the middle. */
.funders { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
           gap: 0.5rem 0.8rem; align-items: center; }
#SUPPORT .two { align-items: start; }
.funder { padding: 0.4rem; display: grid; place-items: center; min-height: 7.5rem; }
.on-white .funder { background: transparent; }
.funder img { max-height: 6.4rem; max-width: 100%; width: auto; object-fit: contain; }
/* Two columns, so a long funder name wraps in its own column instead of
   running back under the year. */
.years { display: grid; gap: 0.5rem; margin-top: 2rem; }
.years p { margin: 0; font-size: 0.85rem; color: var(--dim);
           display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.2rem 0.8rem; }
.years b { font-weight: 600; letter-spacing: 0.12em; font-size: 0.72rem; color: var(--fg); }
@media (max-width: 560px) { .years p { grid-template-columns: 1fr; } }

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

.form { display: grid; gap: 1.3rem; max-width: 34rem; }
#CONTACT .two { align-items: start; }
.f { display: grid; gap: 0.35rem; }
.f label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
           text-transform: uppercase; color: var(--dim); }
.f input, .f textarea {
  font: inherit; color: inherit; background: none;
  border: 0; border-bottom: 1px solid var(--line); padding: 0.6rem 0;
  transition: border-color 0.25s var(--ease);
}
.f input:focus, .f textarea:focus { border-color: var(--flame); outline: none; }
.f textarea { resize: vertical; min-height: 7rem; }
.hp { position: absolute; left: -9999px; }
.note { font-size: 0.85rem; color: var(--dim); min-height: 1.2em; }

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

/* One line: the menu again, then the imprint and the rights. Nothing else —
   the page has already said everything it has to say. */
.foot { background: var(--dark); color: var(--white); }
.foot__line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem;
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  font-size: 0.8rem; color: rgba(255, 255, 255, 0.62);
}
.foot__line .foot__c { margin-left: auto; }
@media (max-width: 900px) { .foot__line .foot__c { margin-left: 0; } }
.foot__line a { transition: color 0.25s var(--ease); }
.foot__line a:hover { color: var(--flame); }

/* ---------- Lightbox ---------- */

.box {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 8, 0.97);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0.28s;
  color: #fff;
}
.box.is-open { opacity: 1; visibility: visible; }
.box__body { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.box__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; position: relative; background: #000; }
.box__frame iframe { width: 100%; height: 100%; border: 0; }
.box__frame img { width: 100%; height: 100%; object-fit: cover; }
.box__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.2); }
.box__play span { width: 4.4rem; height: 4.4rem; display: grid; place-items: center;
                  background: var(--flame); color: var(--dark);
                  transition: transform 0.3s var(--ease); }
.box__play span::before {
  content: ''; width: 0; height: 0; margin-left: 4px;
  border-left: 17px solid currentColor;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.box__play:hover span { transform: scale(1.07); }
.box__cap { text-align: center; margin-top: 1.2rem; max-width: 58ch; }
.box__cap h3 { margin-bottom: 0.4rem; }
.box__cap p { margin: 0; font-size: 0.78rem; letter-spacing: 0.14em;
              text-transform: uppercase; color: rgba(255,255,255,0.62); }
.box__fig { display: grid; justify-items: center; gap: 0.9rem; }
.box__fig img { max-width: min(1300px, 100%); max-height: 78vh; object-fit: contain; }
.box__credit { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin: 0; }
.box__x { position: absolute; top: 1.3rem; right: clamp(1rem, 4vw, 3rem);
          font-weight: 600; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; }
.box__nav { position: absolute; top: 50%; transform: translateY(-50%);
            font-size: 2rem; line-height: 1; padding: 1rem; color: rgba(255,255,255,0.7); }
.box__nav--p { left: 0.4rem; }
.box__nav--n { right: 0.4rem; }
.box__nav[hidden] { display: none; }

/* ---------- Legal ---------- */

.legal { padding-top: calc(var(--hdr) + clamp(3rem, 7vw, 6rem)); }
.legal h2 { font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em;
            font-size: 0.74rem; color: var(--flame);
            margin: 2.6rem 0 0.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal p { max-width: 64ch; line-height: 1.85; }

/* ---------- Arrival ---------- */

.js .up { opacity: 0; transform: translateY(24px); }
.up.in { opacity: 1; transform: none;
         transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
         transition-delay: calc(var(--i, 0) * 65ms); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .up { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important;
                           transition-duration: 0.001ms !important; }
}
