/* Sound Metaphors Festival 2026 — SM26
   Design reference: Figma node 46:3 (frame width 1512).
   Sizes below are expressed as vw ratios of that 1512 frame, clamped for
   small and very large screens. */

/* ---------------------------------------------------------------- tokens */

:root {
  --black: #000;
  --white: #fff;
  --accent: #ff3b15;          /* the Figma red — used for rules and marks */
  /* White on #ff3b15 is 3.6:1, under the 4.5:1 WCAG AA needs for small text.
     The LIVE tag uses this slightly deeper red instead: 4.6:1, same hue. */
  --accent-tag: #de3312;

  /* type */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-plus: "Archivo Black", "Archivo", Arial, sans-serif;

  /* index row (design px @1512 → vw) */
  --row-border: clamp(2px, 0.217vw, 3.3px);
  --row-pad-y: clamp(9px, 0.797vw, 12px);
  --row-pad-x: clamp(10px, 0.725vw, 11px);
  --row-gap: clamp(10px, 1.159vw, 17.5px);
  --venue-size: clamp(10px, 0.797vw, 12px);
  --name-size: clamp(22px, 2.464vw, 37.3px);
  --tag-size: clamp(9px, 0.725vw, 11px);
  --plus-size: clamp(17px, 1.449vw, 22px);
  --venue-col: clamp(88px, 8.116vw, 123px);
  --body-indent: clamp(0px, 8.841vw, 134px);

  /* rhythm — gaps taken from the Figma stack */
  --gap-hero: clamp(24px, 4.45vw, 68px);
  --gap-names: clamp(32px, 4.8vw, 73px);
  --gap-sm: clamp(24px, 3.1vw, 47px);
  --gap-md: clamp(40px, 6.5vw, 99px);
  --gap-program: clamp(120px, 41vw, 621px);
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  position: relative;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--white);
  color: var(--black);
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 8px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ------------------------------------------------------------ background */

/* The Figma file layers two fluid-art photographs behind a large blurred
   black ellipse: colour bleeds in at the very top of the page and again
   behind the program block. Reproduced with two masked washes. */
.bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--black);
}

.bg__top,
.bg__bottom {
  position: absolute;
  left: 50%;
  width: 142%;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-size: cover;
}

.bg__top {
  top: 0;
  height: clamp(420px, 52vw, 800px);
  background-image: url("assets/bg-top.png");
  background-position: center 22%;
  opacity: 0.8;
  /* Hold the image longer, then let the black take over lower down the hero. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 46%, rgba(0, 0, 0, 0.62) 70%, transparent 100%);
}

.bg__bottom {
  bottom: 0;
  height: clamp(420px, 62vw, 1150px);
  background-image: url("assets/bg-bottom.png");
  background-position: center 55%;
  opacity: 0.85;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 34%, #000 72%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.55) 34%, #000 72%);
}

/* Motion loops sit on top of the still, inside the same mask. A self-hosted
   <video> can simply cover; an embedded player keeps its own 16:9 box, so it
   is blown up until the short edge fills the layer and centred. */
.bg__media {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.5);
  transition: opacity 1.2s ease;
}

.bg__media--yt {
  height: 56.25%;        /* 16:9 of the layer width … */
  min-height: 100%;      /* … grown until the layer is covered */
  min-width: 177.78%;
}

/* The Figma still holds until the loop is actually painting, then cross-fades. */
.is-playing .bg__media { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bg__media { display: none; }
}

/* -------------------------------------------------------------- fx text */

/* The artwork look, rebuilt from live text so new items can just be typed.
   Three layers, in paint order:
     1. the glyphs are knocked out of a fixed image, so the wash behind the
        page appears to show through them;
     2. a white stroke sits behind the fill (paint-order), giving the outline;
     3. drop-shadow follows the glyph outline for the hard white extrude —
        text-shadow cannot be used here, it paints on the box, not the text.

   Tune per element with the three custom properties. */
.fx-text {
  --fx-fill: url("assets/bg-top.png");
  --fx-round: 0.05em;                         /* outline weight */
  --fx-diag: calc(var(--fx-round) * 0.707);   /* the diagonal four */
  --fx-offset: 0.05em;                        /* hard 3D throw */

  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--white);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .fx-text {
    color: transparent;
    background-image: var(--fx-fill);
    /* The image runs at its own scale rather than being squeezed into each
       box — squashing a wide, short heading turns the marble into stripes.
       --fx-shift slides the crop so neighbouring items pick up different
       colour. */
    background-position: var(--fx-shift, center) center;
    background-size: auto;
    background-repeat: repeat;
    /* matches the grading applied to the SVG fill */
    background-blend-mode: multiply;
    background-color: rgba(0, 0, 0, 0.28);
    -webkit-background-clip: text;
    background-clip: text;
    /* Outline: eight ZERO-blur shadows pushed out in eight directions. Each
       one is a hard-edged copy, so the union is a hard-edged outline — no
       fade — and spreading the directions rounds the corners the way
       -webkit-text-stroke (which spikes at every joint) cannot. The ninth
       shadow is the solid extrude; it inherits the rounded silhouette
       because filters chain. saturate lifts the fill, white is unaffected. */
    filter:
      drop-shadow(var(--fx-round) 0 0 var(--white))
      drop-shadow(calc(var(--fx-round) * -1) 0 0 var(--white))
      drop-shadow(0 var(--fx-round) 0 var(--white))
      drop-shadow(0 calc(var(--fx-round) * -1) 0 var(--white))
      drop-shadow(var(--fx-diag) var(--fx-diag) 0 var(--white))
      drop-shadow(calc(var(--fx-diag) * -1) var(--fx-diag) 0 var(--white))
      drop-shadow(var(--fx-diag) calc(var(--fx-diag) * -1) 0 var(--white))
      drop-shadow(calc(var(--fx-diag) * -1) calc(var(--fx-diag) * -1) 0 var(--white))
      drop-shadow(var(--fx-offset) var(--fx-offset) 0 var(--white));
  }
}

/* Section titles: same treatment, heavier outline and a longer throw, matching
   the weight the headings carry in the artwork. */
.section-heading.is-vector { display: flex; justify-content: center; }

.section-heading {
  --fx-round: 0.045em;
  --fx-offset: 0.05em;
  --fx-shift: 40%;
  margin: 0;
  font-size: clamp(52px, 8.4vw, 127px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Once fx-text.js has redrawn an item as SVG the CSS stack is switched off:
   the vector version carries the fill, outline and extrude on its own. */
.fx-text.is-vector {
  background: none;
  filter: none;
  color: inherit;
  line-height: 0;
}

.fx-svg {
  display: block;
  width: auto;
  max-width: 100%;
  overflow: visible;
}

.fx-svg__face,
.fx-svg__extrude {
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  stroke: #fff;
}

.fx-svg__extrude { fill: #fff; }

/* Graded on the pattern's image, not on the <text>: this way the fill can be
   pulled back without touching the white outline or the extrude. */
.fx-svg image {
  filter:
    brightness(var(--fx-brightness, 0.78))
    contrast(var(--fx-contrast, 0.95))
    saturate(var(--fx-saturate, 1.35));
}

/* Vary the crop so a row of items does not read as one repeated swatch. */
.fx-text:nth-of-type(3n + 2) { --fx-shift: 22%; }
.fx-text:nth-of-type(3n + 3) { --fx-shift: 68%; }

/* ---------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(34px, 2.381vw, 36px);
  padding: 6px clamp(10px, 1vw, 16px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.62) 70%, transparent);
  backdrop-filter: blur(6px);
}

.topbar__brand img {
  width: clamp(210px, 25vw, 400px);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
}

.topbar__nav a {
  --fx-round: 0.09em;
  --fx-offset: 0.06em;
  /* Grows a little with the viewport, then stops — big enough to read,
     capped so the bar never dominates. */
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 1;
  transition: transform 0.18s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  transform: translateY(-1px) scale(1.04);
}

/* An arrow marks the links that leave the site. The vector build replaces the
   link's text with an <svg>, so the arrow needs its own alignment there. */
.topbar__nav a[target="_blank"] {
  display: inline-flex;
  align-items: center;
  gap: 0.18em;
}

.topbar__nav a[target="_blank"]::after {
  content: "↗";
  font-size: 0.72em;
  font-style: normal;
  line-height: 1;
  color: var(--white);
}

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

.hero {
  padding-top: var(--gap-hero);
}

.hero__stage {
  position: relative;
  width: min(69.84%, 1056px);
  margin: 0 auto;
  aspect-ratio: 1056 / 594;
}

.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 53.6%;
  transform: translate(-50%, -50%);
  /* Turns on its own. script.js takes the animation over through the Web
     Animations API so hovering can reverse it mid-turn without a jump; this
     rule is the fallback when that API is missing. */
  animation: ring-spin 26s linear infinite;
  will-change: transform;
}

@keyframes ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__ring { animation: none; }

  .names__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero__lockup {
  position: absolute;
  inset: 0;
}

.hero__festival {
  position: absolute;
  top: 38.97%;
  left: 50%;
  width: 24.72%;
  transform: translateX(-50%);
}

.hero__year {
  position: absolute;
  top: 47.2%;
  left: 50%;
  width: 60%;
  margin: 0;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 5.86%;      /* 61.875 / 1056 of the stage width */
  font-size: min(5.86cqw, 62px);
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.01em;
  color: var(--white);
}

.hero__mark {
  position: absolute;
  top: 59.29%;
  left: 50%;
  width: 6.79%;
  transform: translateX(-50%);
}

@supports (container-type: inline-size) {
  .hero__stage { container-type: inline-size; }
  .hero__year { font-size: 5.86cqw; }
}

/* ----------------------------------------------------------------- names */

.names {
  margin-top: var(--gap-names);
  padding: 0 clamp(12px, 2vw, 40px);
}

/* The artwork's own line breaks are gone: the names now reflow, keeping the
   set-by-hand look while each one is its own link. */
.names__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  /* Wider between names than between the pieces of one name, so a wrapped
     name still reads as a single line-up entry. */
  gap: clamp(6px, 0.7vw, 11px) clamp(20px, 2.9vw, 44px);
  max-width: 1512px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

/* The names arrive one after another once the block scrolls into view. */
.names__item {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
  transition-delay: calc(var(--i, 0) * 20ms);
}

.names__list.is-revealed .names__item {
  opacity: 1;
  transform: none;
}

.names__link {
  display: flex;
  align-items: center;
  gap: 0.16em;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.names__link img {
  height: clamp(19px, 4.05vw, 62px);
  width: auto;
}

@media (hover: hover) {
  .names__link:hover {
    transform: translateY(-2px) scale(1.03);
    filter: brightness(1.15);
  }
}

.names__link:focus-visible {
  outline-offset: 6px;
}

.names__fallback {
  width: 100%;
}

/* ----------------------------------------------------------------- dates */

.dates {
  margin-top: var(--gap-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-sm);
}

.dates img {
  width: min(40%, 604px);
}

.dates__mark {
  width: min(11.1%, 168px) !important;
}


/* ---------------------------------------------------------------- tickets */

/* One link per night, sold separately on berghain.berlin. */
.tickets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(8px, 1vw, 16px);
  margin: clamp(18px, 2.2vw, 34px) 0 0;
  padding: 0 clamp(12px, 2vw, 24px);
}

.tickets__link {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  padding: clamp(9px, 0.9vw, 14px) clamp(14px, 1.4vw, 22px);
  border: clamp(2px, 0.217vw, 3.3px) solid var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(11px, 0.86vw, 13px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tickets__night { opacity: 0.6; }

.tickets__cta::after {
  content: " ↗";
  font-family: var(--font-display);
}

@media (hover: hover) {
  .tickets__link:hover {
    background: var(--white);
    color: var(--black);
    transform: translateY(-2px);
  }
}

.tickets__link:focus-visible {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 620px) {
  .tickets { flex-direction: column; align-items: stretch; }
  .tickets__link { justify-content: space-between; }
}

/* ----------------------------------------------------------------- index */

.index {
  margin-top: var(--gap-md);
}

.index h2 {
  margin: 0 0 var(--gap-md);
}

.index__list {
  width: min(98.55%, 1490px);
  margin: 0 auto;
  border-top: var(--row-border) solid var(--white);
}

.row {
  border-bottom: var(--row-border) solid var(--white);
}

.row__summary {
  display: grid;
  grid-template-columns: var(--venue-col) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--row-gap);
  width: 100%;
  padding: var(--row-pad-y) var(--row-pad-x);
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.row__venue {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--venue-size);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.row__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--name-size);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.row__tags {
  display: flex;
  gap: clamp(4px, 0.435vw, 6.6px);
}

.tag {
  padding: clamp(1px, 0.145vw, 2.2px) clamp(4px, 0.435vw, 6.6px);
  border: clamp(1.5px, 0.145vw, 2.2px) solid currentColor;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--tag-size);
  letter-spacing: 0.12em;
  line-height: 1.25;
  white-space: nowrap;
}

.tag--live {
  background: var(--accent-tag);
  border-color: var(--accent-tag);
  color: var(--white);
}

.row__plus {
  font-family: var(--font-plus);
  font-weight: 400;
  font-size: var(--plus-size);
  line-height: 1;
  justify-self: end;
}

.row__plus::before { content: "+"; }

/* open state — the Figma "Row SM26-A03" inverts to a white card */
.row.is-open .row__summary {
  background: var(--white);
  color: var(--black);
}

.row.is-open .tag {
  border-color: var(--black);
}

.row.is-open .tag--live {
  background: var(--accent-tag);
  border-color: var(--accent-tag);
  color: var(--white);
}

.row.is-open .row__plus::before { content: "–"; }

.row__body {
  display: grid;
  grid-template-rows: 0fr;
  background: var(--white);
  color: var(--black);
  transition: grid-template-rows 0.28s ease;
}

.row.is-open .row__body { grid-template-rows: 1fr; }

.row__body > div { overflow: hidden; }

.row__body-inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 1.6vw, 26px);
  padding: 0 var(--row-pad-x) clamp(14px, 1.304vw, 19.7px) var(--body-indent);
}

/* Press photo, always square. The supplied shots run from wide landscape to
   tall portrait; a 1:1 crop keeps the rows even. Weighted slightly above
   centre so faces survive the crop on tall portraits. */
.row__photo {
  flex: 0 0 auto;
  /* Capped at 360px. A 2x screen wants twice the CSS width in real pixels,
     so a 360px box asks for 720 — and 28 of the 29 supplied photos are 796px
     or wider. Larger boxes were upscaling the smaller press shots, which is
     what made some of them look soft. */
  width: clamp(200px, 32%, 360px);
  margin: 0;
  overflow: hidden;
}

.row__photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 28%;
}

.row__text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: clamp(6px, 0.58vw, 8.8px);
  min-width: 0;
}

.row__desc {
  max-width: 78ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(13px, 1.014vw, 15.3px);
  line-height: 1.5;
  opacity: 0.8;
}

.row__slot {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--venue-size);
  line-height: 1.6;
  letter-spacing: 0.16em;
}

@media (hover: hover) {
  .row:not(.is-open) .row__summary:hover { background: rgba(255, 255, 255, 0.08); }
}

/* --------------------------------------------------------------- program */

.program {
  margin-top: var(--gap-program);
  padding: 0 clamp(10px, 0.73vw, 11px) clamp(120px, 25vw, 380px);
  text-align: center;
}

.program h2 { margin: 0; }

.program__note {
  margin: clamp(18px, 2vw, 30px) 0 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, 0.86vw, 13px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ---------------------------------------------------------------- footer */

.footer {
  padding: clamp(28px, 3vw, 46px) clamp(14px, 1.5vw, 24px) clamp(28px, 3vw, 40px);
  border-top: var(--row-border) solid var(--white);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

/* Without backdrop-filter the wash behind would read straight through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .footer { background: rgba(0, 0, 0, 0.82); }
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
  width: min(98.55%, 1490px);
  margin: 0 auto;
}

.footer h2 {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--venue-size);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  opacity: 0.8;
}

.footer__credits a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.footer__credits a:hover,
.footer__credits a:focus-visible {
  border-bottom-color: var(--white);
}

/* Copyright left, credit right, stacking on narrow screens. */
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px clamp(16px, 2vw, 32px);
  width: min(98.55%, 1490px);
  margin: clamp(24px, 3vw, 40px) auto 0 !important;
  font-family: var(--font-mono) !important;
  font-size: var(--venue-size) !important;
  letter-spacing: 0.1em;
  opacity: 0.55 !important;
}

.footer__meta p {
  margin: 0;
  font-family: inherit !important;
  font-size: inherit !important;
  letter-spacing: inherit;
  opacity: 1 !important;
}

.footer__made a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: border-color 0.18s ease;
}

.footer__made a:hover,
.footer__made a:focus-visible { border-bottom-color: var(--white); }

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .row__summary {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "venue plus"
      "name  name"
      "tags  tags";
    row-gap: 8px;
    padding: 14px 12px;
  }

  .row__venue { grid-area: venue; align-self: center; }
  .row__name  { grid-area: name; font-size: clamp(24px, 6.4vw, 40px); }
  .row__tags  { grid-area: tags; flex-wrap: wrap; }
  .row__plus  { grid-area: plus; align-self: center; }

  .tag { font-size: 10px; padding: 2px 6px; border-width: 1.5px; }

  .row__body-inner { padding: 0 12px 16px 12px; }

  /* Tablet: still two columns, the photo just takes less of the row. */
  .row__photo { width: min(38%, 300px); }

  .index__list { width: 100%; }

  .hero__stage { width: min(92%, 1056px); }

  .dates img { width: min(72%, 604px); }
  .dates__mark { width: min(22%, 168px) !important; }

  .index h2 img { width: min(56%, 425px); }
  .program h2 img { width: min(62%, 479px); }
}

/* Phones: one column, photo above the text. */
@media (max-width: 620px) {
  .row__body-inner { flex-direction: column; }

  .row__photo { width: min(72%, 300px); }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }

  .topbar__brand img { width: min(280px, 82%); }

  /* Five items no longer fit on one phone line — let them wrap. */
  .topbar__nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px clamp(12px, 4vw, 20px);
  }

  .topbar__nav img { height: 13px; }

  .names { margin-top: clamp(28px, 7vw, 48px); }
}

@media (min-width: 1900px) {
  .hero__stage { width: min(1512px, 100%); }
}

/* ------------------------------------------------------------ corrections */

.row__name { margin: 0; }

#lineup, #program, #info, #tickets, #practical, #legal, #top { scroll-margin-top: clamp(64px, 8vw, 120px); }
