/* Alexander Guggenberger – Pianist & Keyboarder
   Plain CSS, no framework. Colours and fonts live in the variables below. */

@font-face {
  font-family: "Aboreto";
  src: url("../fonts/aboreto-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-italic-latin.woff2") format("woff2");
  font-weight: 300 400; font-style: italic; font-display: swap;
}

:root {
  --ink: #12100e;
  --ink-2: #1d1a17;
  --paper: #faf7f2;
  --ivory: #f1ebe1;
  --line: #e2d9cc;
  --text: #2b2723;
  --muted: #6a6158;
  --gold: #9a7744;        /* on light backgrounds */
  --gold-2: #cfab70;      /* on dark backgrounds, buttons */
  --gold-3: #e3c690;
  --on-accent: #12100e;  /* text on accent-filled buttons */
  --on-dark: #f4efe7;
  --on-dark-muted: #bdb3a5;
  --on-dark-soft: #e3dbcf;
  /* the same colours as r, g, b for see-through shades: rgba(var(--ink-rgb), .5) */
  --ink-rgb: 18, 16, 14;
  --band-rgb: 14, 12, 10;
  --light-rgb: 244, 239, 231;
  --accent-rgb: 207, 171, 112;
  --accent-dark-rgb: 154, 119, 68;

  --font-display: "Aboreto", "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --radius-btn: 2.5px;   /* buttons and fields, a little less round than cards and photos (owner 2026-11-19) */
  --header-h: 72px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%;
       -webkit-tap-highlight-color: transparent; } /* no blue flash on tap (Android); buttons have their own :active look */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
p, h1, h2, h3, ul, dl, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-2); color: var(--on-accent); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.6em;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: .95rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.link-pill:active, .quick-btn:active, .filter:active, .round-btn:active, .lb-btn:active, .yt-link:active { transform: scale(.97); }
.g-open:active img { opacity: .85; }
.site-nav ul a:active, .gig-year summary:active { opacity: .7; }
.btn-sm { min-height: 40px; padding: .45em 1.2em; font-size: .82rem; }
.btn-gold { background: var(--gold-2); color: var(--on-accent); }
.btn-gold:hover { background: var(--gold-3); color: var(--on-accent); }
.btn-ghost { border-color: rgba(var(--light-rgb), .55); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(var(--light-rgb), .08); color: var(--on-dark); }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #2e2924; color: var(--paper); }
.text-link { font-size: .95rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .3s, box-shadow .3s;
}
/* The solid/blurred background sits on a separate layer: a blur (backdrop-filter) on the header
   itself would trap the full-screen phone menu inside the header bar. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(var(--ink-rgb), .94); box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  opacity: 0; transition: opacity .3s;
}
.site-header.is-solid::before { opacity: 1; }
@supports (backdrop-filter: blur(8px)) {
  .site-header::before { background: rgba(var(--ink-rgb), .82); backdrop-filter: blur(10px); }
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: calc(1320px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.brand { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--gold-3); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 22px; }
.site-nav ul a { font-size: .92rem; letter-spacing: .03em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav ul a:hover, .site-nav ul a.is-current { color: var(--gold-3); border-bottom-color: currentColor; }
.nav-extra { display: flex; align-items: center; gap: 18px; }
/* the enquiry button in the bar: white (owner 2026-11-19); gold on hover */
.nav-extra .btn-gold { background: #fff; border-color: var(--gold-2); box-shadow: inset 0 0 0 1px var(--gold-2); color: var(--ink); } /* white, with a 2 px gold frame (owner); the inner line keeps the button's size */
.nav-extra .btn-gold:hover { background: var(--gold-3); border-color: var(--gold-2); color: var(--ink); }
.yt-link { display: inline-flex; color: var(--on-dark); transition: color .2s, transform .2s; }
.yt-link:hover { color: var(--gold-3); transform: translateY(-1px); }
.yt-link svg { width: 28px; height: 20px; }
.yt-link .yt-play { fill: var(--ink); }
.lang-switch { display: flex; gap: 6px; font-size: .85rem; letter-spacing: .08em; color: var(--on-dark-muted); }
.lang-switch { gap: 12px; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: .75; transition: opacity .2s; }
.lang-switch a:hover, .lang-switch a[aria-current] { opacity: 1; }
.flag { display: inline-block; width: 16px; height: 16px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.flag svg { display: block; width: 100%; height: 100%; }
.lang-switch a[aria-current] { color: var(--on-dark); font-weight: 500; }
/* only the current language's flag; a click opens the other one (owner) */
.lang-switch { position: relative; }
.lang-current { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.lang-current .flag { width: 20px; height: 20px; transition: box-shadow .2s; }
.lang-current:hover .flag, .lang-current[aria-expanded="true"] .flag { box-shadow: 0 0 0 2px var(--gold-2); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: -8px; z-index: 5; min-width: 9.5rem; padding: 6px; border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 6px; background: rgb(18, 16, 14); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.lang-menu[hidden] { display: none; }
.lang-switch .lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 4px; color: var(--on-dark); opacity: 1;
  font-size: .9rem; letter-spacing: .04em; text-decoration: none; }
.lang-switch .lang-menu a:hover { background: rgba(var(--light-rgb), .08); color: var(--gold-3); }
.site-nav .lang-switch .lang-menu a { font-family: var(--font-body); font-size: .92rem; text-transform: none; border-bottom: 0; }
.site-nav .lang-menu { flex-direction: column; gap: 0; }
@media (max-width: 1180px) { .lang-menu { left: -8px; right: auto; } }
.nav-toggle { display: none; }

/* computers: at the top only the name and a menu button; opening it, or scrolling down, shows the full bar.
   Nothing moves when it changes (owner): the menu button lies on top of the bar's right end and cross-fades with the
   links and the dark background, all with the same duration and easing. */
@media (min-width: 1181px) {
  .header-inner { position: relative; }
  .site-header::before { transition: opacity .45s cubic-bezier(.4, 0, .2, 1); }
  .site-nav { margin-left: auto; transition: opacity .45s cubic-bezier(.4, 0, .2, 1) .08s, visibility 0s; } /* comes in just after the menu button has gone */
  .nav-toggle {
    display: grid; place-items: center; position: absolute; top: 50%; right: calc(var(--gutter) - 8px); margin-top: -22px; width: 44px; height: 44px;
    background: none; border: 0; color: inherit; cursor: pointer; transition: opacity .4s cubic-bezier(.4, 0, .2, 1) .18s, visibility 0s; /* back after the links have gone */
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 26px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; content: "";
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -8px; }
  .nav-toggle-bars::after { position: absolute; top: 8px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }
  .site-header.is-solid .nav-toggle, body.nav-open .nav-toggle {
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .18s;
  }
  .site-header:not(.is-solid) .site-nav:not(.is-open) {
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s cubic-bezier(.4, 0, .2, 1), visibility 0s linear .25s;
  }
  body.nav-open .site-header::before { opacity: 1; } /* the bar opened at the top gets its background too */
}


/* computers: a small gold dot between the menu entries (owner 2026-11-19) */
@media (min-width: 1181px) {
  .site-nav ul { gap: 0; align-items: center; }
  .site-nav ul li { display: flex; align-items: center; }
  .site-nav ul li + li::before { content: ""; flex: none; width: 3px; height: 3px; margin: 0 11px; border-radius: 50%; background: var(--gold-2); opacity: .85; }
}

/* computers: the current entry has one gold line that glides from entry to entry (main.js); hover only changes the colour */
.nav-ink { display: none; }
@media (min-width: 1181px) {
  .site-nav { position: relative; }
  .nav-ink {
    display: block; position: absolute; left: 0; top: 0; width: 0; height: 1px; background: var(--gold-3); opacity: 0; pointer-events: none;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), width .45s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
  }
  .nav-ink.is-on { opacity: 1; }
  .site-nav ul a { transition: color .25s ease; }
  .site-nav ul a:hover, .site-nav ul a.is-current { border-bottom-color: transparent; }
}

/* small computers (1181-1360 px): seven menu entries need a slightly tighter bar */
@media (min-width: 1181px) and (max-width: 1360px) {
  .header-inner { gap: 16px; }
  .brand { font-size: .98rem; letter-spacing: .04em; }
  .site-nav { gap: 18px; }
  .site-nav ul { gap: 0; }
  .site-nav ul li + li::before { margin: 0 7px; }
  .site-nav ul a { font-size: .86rem; letter-spacing: .01em; }
  .nav-extra { gap: 12px; }
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s, opacity .25s; content: "";
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before { position: absolute; top: -7px; }
  .nav-toggle-bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 40px;
    padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav ul a { font-family: var(--font-display); font-size: clamp(1.6rem, 6.5vw, 2.2rem); letter-spacing: .03em; }
  .nav-extra { gap: 24px; }
  .lang-switch { font-size: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--on-dark); background: var(--ink);
  overflow: hidden;
}
.hero-top { display: contents; } /* phones: the block that fills the first screen */
.hero-media, .hero-media picture { position: absolute; inset: 0; z-index: -2; }
.hero-poster, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-video { opacity: 0; transition: opacity .25s ease; }
.hero-video.is-playing { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(var(--ink-rgb), .82) 0%, rgba(var(--ink-rgb), .55) 38%, rgba(var(--ink-rgb), .08) 72%),
    linear-gradient(0deg, rgba(var(--ink-rgb), .85) 0%, rgba(var(--ink-rgb), 0) 38%),
    linear-gradient(180deg, rgba(var(--ink-rgb), .55) 0%, rgba(var(--ink-rgb), 0) 22%);
}
.hero-content { padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(36px, 6vh, 64px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3);
}
.eyebrow::before { content: ""; flex: none; width: var(--eyebrow-w, 36px); height: var(--eyebrow-h, 1px); background: currentColor; }
.hero-title {
  margin-top: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 8.4vw, 5.6rem); line-height: 1.04; letter-spacing: .02em;
}
.hero-name { display: block; }
.hero-name > span { display: block; }
.hero-title .eyebrow { display: inline-flex; margin-bottom: 20px; font-family: var(--font-body); font-size: .85rem; line-height: 1.3; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-3); }
.hero-lead { text-wrap: balance; max-width: 34em; margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--on-dark-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 34px; }
.hero-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 18px; padding-bottom: 22px; border-top: 1px solid rgba(var(--light-rgb), .16);
}
.hero-refs { display: flex; align-items: baseline; gap: .45em; flex: 1 1 auto; min-width: 0; font-size: .88rem; letter-spacing: .04em; color: var(--on-dark-muted); }
.hero-refs span { white-space: nowrap; }
.hero-refs-label { flex: none; color: var(--gold-3); }
a.hero-refs { text-decoration: none; transition: color .2s; }
a.hero-refs:hover, a.hero-refs:focus-visible { color: var(--on-dark); }
/* the venues in one line (owner): longer than the room, they fade out before "Videos ansehen" and run as a ticker on hover
   (on touch screens by themselves); main.js sets .is-long and the speed */
.hero-refs-view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.hero-refs-track { display: inline-flex; }
.hero-refs-copy { display: none; }
.hero-refs:not(.is-long) .hero-refs-list > .sep:last-child { display: none; }
.hero-refs.is-long .hero-refs-view { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 120px), transparent); }
.hero-refs.is-long .hero-refs-copy { display: inline; }
.hero-refs.is-long .hero-refs-track { animation: hero-refs-run var(--refs-dur, 60s) linear infinite paused; }
.hero-refs.is-long:hover .hero-refs-track { animation-play-state: running; }
@media (hover: none) { .hero-refs.is-long .hero-refs-track { animation-play-state: running; } }
@media (prefers-reduced-motion: reduce) { .hero-refs.is-long .hero-refs-track { animation: none; } }
@keyframes hero-refs-run { to { transform: translateX(-50%); } }
.hero-foot-actions { flex: none; display: flex; align-items: center; gap: 14px; }
.hero-videos-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  color: var(--on-dark); font-size: .9rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
}
.hero-videos-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.hero-videos-link:hover { color: var(--gold-3); }
.hero-videos-link:hover svg { transform: translateX(3px); }
.hero-videos-link-phone { display: none; }
@media (max-width: 700px) {
  .hero-videos-link-phone { display: inline-flex; margin-top: 14px; color: var(--gold-3); }
  .hero-foot .hero-videos-link { display: none; }
  .hero-foot-actions { display: none; }
}
.video-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 4px;
  background: none; border: 0; color: var(--on-dark-muted); font-size: .82rem; letter-spacing: .06em; cursor: pointer;
}
.video-toggle:hover { color: var(--on-dark); }
.video-toggle-icon { width: 28px; height: 28px; border: 1px solid currentColor; border-radius: 3px; display: grid; place-items: center; }
.video-toggle-icon::before { content: ""; width: 8px; height: 9px; border-inline: 2.5px solid currentColor; }
.video-toggle[aria-pressed="true"] .video-toggle-icon::before { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; margin-left: 2px; }

@media (max-width: 700px) {
  /* the first screen on any phone ends just below the buttons: text and buttons take what they
     need, the video gets the rest (svh = screen height with the browser bars showing) */
  .hero { min-height: 0; justify-content: flex-start; }
  .hero-top { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
  .hero-media { position: relative; inset: auto; flex: 1 1 auto; height: auto; min-height: 190px; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(var(--ink-rgb), 0) 42%), linear-gradient(180deg, rgba(var(--ink-rgb), .6) 0%, rgba(var(--ink-rgb), 0) 24%); }
  .hero::after { display: none; }
  .hero-poster, .hero-video { object-position: 84% 50%; }
  .hero-content { position: relative; margin-top: -64px; padding-top: 0; padding-bottom: 24px; }
  .hero-title .eyebrow { margin-bottom: 12px; }
  .hero-lead { margin-top: 14px; }
  .hero-foot { padding-top: 14px; padding-bottom: 16px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-foot-actions { width: 100%; }
  .hero-refs { flex-wrap: wrap; width: 100%; }
  .hero-refs-label { flex-basis: 100%; }
}

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-ivory { background: var(--ivory); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-photo { isolation: isolate; overflow: hidden; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.section-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(var(--band-rgb), .84); }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head-row > div:first-child { max-width: 46rem; }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.1; letter-spacing: .03em;
}
.section-title::after { content: ""; display: block; width: var(--orn-w, 56px); height: var(--orn-h, 1px); margin-top: 18px; background: var(--gold); }
.section-dark .section-title::after { background: var(--gold-2); }
.section-sub { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.section-dark .section-sub { color: var(--on-dark-muted); }
.section-dark .section-sub a:hover { color: var(--gold-3); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-text > * + * { margin-top: 1.1em; }
.about-text .section-title { margin-bottom: 1.4em; }
.lede { font-size: clamp(1.2rem, 2vw, 1.45rem); line-height: 1.5; font-weight: 300; color: var(--ink); }
.about-photo { position: static; }
/* .photo-frame carries a frame (design-variants.css), .photo-clip clips the photo and its reveal (About and enquiry photos) */
.photo-frame { position: relative; display: block; isolation: isolate; }
.photo-clip { display: block; overflow: clip; border-radius: var(--radius); }
.about-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: .6em; }
.link-pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px 8px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-btn); background: #fff;
  font-size: .95rem; text-decoration: none; transition: border-color .2s, color .2s;
}
.link-pill:hover { border-color: var(--gold); }
.link-pill small { color: var(--muted); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.link-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.link-pill svg path[d^="M8 5"] { fill: var(--gold); stroke: none; }

.facts-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: clamp(48px, 7vw, 88px); }
@media (min-width: 761px) { .genre-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.fact-card { padding: clamp(24px, 3.5vw, 36px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.fact-card h3, .refs-title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: .04em; }
.genre-list, .lineup-list { margin-top: 18px; }
.genre-list > div, .lineup-list > div { display: grid; grid-template-columns: 11rem 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.genre-list dt, .lineup-list dt { font-weight: 500; }
.genre-list dd, .lineup-list dd { margin: 0; color: var(--muted); }
.fact-note { margin-top: 14px; font-size: .95rem; color: var(--muted); }

.refs { margin-top: clamp(48px, 7vw, 88px); }
.refs-sub { margin-top: 6px; color: var(--muted); }
.ref-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 22px; }
.ref-list li { display: flex; flex-direction: column; padding: 14px 0; border-top: 1px solid var(--line); }
.ref-name { font-weight: 500; }
.ref-stars { color: var(--gold); font-size: .7rem; letter-spacing: .1em; vertical-align: .25em; margin-left: 4px; white-space: nowrap; }
.ref-meta { font-size: .92rem; color: var(--muted); }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.platform-badge { display: block; border-radius: 3px; transition: transform .2s; }
.platform-badge:hover { transform: translateY(-2px); }
.platform-badge img { height: 52px; width: auto; }
.platform-badge-round img { height: 64px; border-radius: 50%; }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .about-photo img { aspect-ratio: 4 / 3; object-position: 40% 35%; }
  .facts-grid { grid-template-columns: 1fr; }
  .ref-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ref-list { grid-template-columns: 1fr; }
  .genre-list > div, .lineup-list > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- gallery ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter {
  min-height: 40px; padding: 6px 18px; border-radius: var(--radius-btn); cursor: pointer;
  border: 1px solid #cfc4b4; background: transparent; font-size: .92rem;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px; grid-auto-flow: dense; gap: 10px;
}
.g-item { position: relative; }
.g-item.g-tall { grid-row: span 2; }
.g-item:first-child:not(.g-tall) { grid-column: span 2; grid-row: span 2; }
.g-item[hidden] { display: none; }
.g-open {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0;
  background: var(--ink-2); overflow: hidden; cursor: zoom-in; border-radius: 3px;
}
.g-open[data-kind="youtube"], .g-open[data-kind="video"] { cursor: pointer; }
.g-open img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.g-open:hover img { transform: scale(1.04); }
.g-cap {
  position: absolute; inset: auto 0 0 0; padding: 28px 14px 12px;
  background: linear-gradient(0deg, rgba(var(--ink-rgb), .85), rgba(var(--ink-rgb), 0));
  color: var(--on-dark); font-size: .85rem; line-height: 1.35; text-align: left; text-wrap: balance;
  opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s;
}
.g-open:hover .g-cap, .g-open:focus-visible .g-cap { opacity: 1; transform: none; }
.g-play {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; translate: -50% -50%;
  border-radius: 50%; background: rgba(var(--ink-rgb), .6); border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: blur(2px); transition: background-color .2s, transform .2s;
}
.g-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 16px solid #fff; border-block: 11px solid transparent; }
.g-open:hover .g-play { background: var(--gold-2); transform: scale(1.06); }
.g-ext {
  position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: 3px;
  background: rgba(var(--ink-rgb), .75); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .04em;
}
.gallery-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 32px; }

@media (hover: none) { .g-cap { opacity: 1; transform: none; font-size: .78rem; padding: 22px 10px 8px; } }
@media (hover: none) and (max-width: 640px) { .g-cap { font-size: .72rem; padding: 20px 8px 7px; } }
@media (max-width: 640px) { .g-cap { font-size: .72rem; } }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 140px; gap: 6px; }
  .g-play { width: 46px; height: 46px; }
  .g-play::after { left: 18px; top: 14px; border-left-width: 13px; border-block-width: 9px; }
}

/* ---------- lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(var(--ink-rgb), .96); color: var(--on-dark);
}
.lightbox::backdrop { background: rgba(var(--ink-rgb), .9); }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 64px 72px 12px; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: calc(100vh - 170px); max-height: calc(100dvh - 170px); object-fit: contain; }
.lb-stage iframe { width: min(100%, calc((100dvh - 180px) * 16 / 9)); aspect-ratio: 16 / 9; border: 0; }
.lb-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 12px 72px 22px; }
.lb-title { font-weight: 500; }
.lb-caption { color: var(--on-dark-muted); font-size: .92rem; }
.lb-count { color: var(--on-dark-muted); font-size: .85rem; letter-spacing: .1em; white-space: nowrap; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .25); border-radius: var(--radius-btn); background: rgba(var(--ink-rgb), .5); color: #fff; cursor: pointer;
}
@media (hover: hover) { .lb-btn:hover { border-color: var(--gold-2); color: var(--gold-3); } }
.lightbox:focus { outline: none; }
.lb-btn svg, .round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 14px; top: 50%; translate: 0 -50%; }
.lb-next { right: 14px; top: 50%; translate: 0 -50%; }
.lb-close { right: 14px; top: 12px; }
@media (max-width: 640px) {
  /* phones: photo, then a row "‹ 3 / 29 ›", then the caption, so nothing overlaps */
  .lightbox[open] {
    grid-template-columns: auto 1fr auto; grid-template-rows: minmax(0, 1fr) auto auto;
    grid-template-areas: "stage stage stage" "prev count next" "text text text";
  }
  .lb-stage { grid-area: stage; padding: 64px 0 8px; }
  .lb-stage img, .lb-stage video { max-height: calc(100vh - 250px); max-height: calc(100dvh - 250px); }
  .lb-bar { display: contents; }
  .lb-prev, .lb-next { position: static; translate: none; margin: 6px 16px; }
  .lb-prev { grid-area: prev; }
  .lb-next { grid-area: next; }
  .lb-count { grid-area: count; align-self: center; justify-self: center; }
  .lb-text { grid-area: text; padding: 6px 16px 22px; }
}

/* ---------- reviews ---------- */
.reviews .section-bg { object-position: 50% 30%; }
.carousel-controls { display: flex; gap: 10px; flex: none; }
.round-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-btn); cursor: pointer;
  border: 1px solid rgba(var(--light-rgb), .35); background: transparent; color: var(--on-dark);
}
@media (hover: hover) { .round-btn:hover:not(:disabled) { border-color: var(--gold-2); color: var(--gold-3); } }
.round-btn:disabled { opacity: .3; cursor: default; }
.carousel { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel { container-type: inline-size; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100cqi - 2 * 20px) / 3); gap: 20px; padding-bottom: 4px; }
.r-card { scroll-snap-align: start; }
.r-card figure {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 32px 28px 26px; border: 1px solid rgba(var(--light-rgb), .14); border-radius: var(--radius);
  background: rgba(var(--light-rgb), .04);
}
.r-card blockquote { position: relative; padding-top: 34px; }
.r-card blockquote::before {
  content: "“"; position: absolute; top: -14px; left: -2px;
  font-family: Georgia, serif; font-size: 4rem; line-height: 1; color: var(--gold-2);
}
.r-title { text-wrap: balance; font-weight: 500; font-size: 1.08rem; margin-bottom: 10px; color: var(--on-dark); }
.r-card blockquote p:not(.r-title) { color: var(--on-dark-soft); font-weight: 300; }
.r-card figcaption { display: flex; flex-direction: column; padding-top: 16px; border-top: 1px solid rgba(var(--light-rgb), .14); }
.r-name { font-weight: 500; letter-spacing: .02em; }
.r-date { font-size: .85rem; color: var(--on-dark-muted); }
@media (max-width: 1000px) { .review-track { grid-auto-columns: calc((100cqi - 20px) / 2); } }
@media (max-width: 640px) {
  /* phones: one review per swipe, each card only as tall as its text */
  .review-track { grid-auto-columns: 86%; gap: 12px; align-items: start; }
  .r-card { scroll-snap-stop: always; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}

/* ---------- prices ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.price-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.price-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; letter-spacing: .04em; }
.price-sub { color: var(--muted); margin-top: 4px; }
.price-rows { width: 100%; margin: 26px 0 18px; }
.price-rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.price-rows dd { margin: 0; font-family: var(--font-display); font-size: 1.6rem; white-space: nowrap; color: var(--ink); }
.from { font-family: var(--font-body); font-size: .85rem; color: var(--muted); letter-spacing: .04em; }
.price-note { color: var(--muted); font-size: .95rem; margin-bottom: 28px; }
.price-card .btn { margin-top: auto; }
.price-card-featured { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.price-card-featured .price-sub { color: var(--on-dark-muted); }
.price-big { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; margin-top: 18px; color: var(--gold-3); }
.check-list { margin: 14px 0 32px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--on-dark-soft); font-weight: 300; }
.check-list li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px;
  border-left: 1.5px solid var(--gold-2); border-bottom: 1.5px solid var(--gold-2); transform: rotate(-45deg);
}
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } .price-card-featured { order: -1; } }

/* ---------- gigs ---------- */
.gigs .section-bg-right { object-position: 75% 40%; }
.gigs::after { background: linear-gradient(90deg, rgba(var(--band-rgb), .94) 0%, rgba(var(--band-rgb), .88) 55%, rgba(var(--band-rgb), .7) 100%); }
.gigs-inner { max-width: calc(900px + 2 * var(--gutter)); margin-left: max(0px, calc((100% - var(--container) - 2 * var(--gutter)) / 2)); }
.gigs-next-title, .gigs-past-title {
  font-size: .85rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 14px;
}
.gigs-past-title { margin-top: 56px; }
.gigs-empty { color: var(--on-dark-muted); }
.gig-list { display: grid; }
.gig { display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid rgba(var(--light-rgb), .12); }
.gig-list > .gig:last-child { border-bottom: 1px solid rgba(var(--light-rgb), .12); }
.gig-date {
  display: grid; justify-items: center; align-content: center; width: 64px; height: 68px;
  border: 1px solid rgba(var(--accent-rgb), .55); border-radius: 3px; line-height: 1.05;
}
.gig-d { font-family: var(--font-display); font-size: 1.6rem; color: var(--on-dark); }
.gig-m { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); }
.gig-y { font-size: .66rem; letter-spacing: .1em; color: var(--on-dark-muted); }
.gig-act { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); margin-bottom: 2px; }
.gig-act a { color: inherit; }
.gig-act a:hover { color: var(--on-dark); }
.gig-title { font-weight: 500; line-height: 1.35; text-wrap: balance; }
.gig-meta { margin-top: 3px; font-size: .92rem; color: var(--on-dark-muted); }
.gig-venue:not(:last-child)::after { content: "\00a0·"; color: rgba(var(--accent-rgb), .8); }
.gig-time { white-space: nowrap; }
.gig-venue a, .gig-title a, .gig-act a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(var(--light-rgb), .25); }
.gig-venue a:hover, .gig-title a:hover, .gig-act a:hover { color: var(--gold-3); border-color: currentColor; }
.gig-venue .gig-map { display: inline-flex; vertical-align: -2px; margin-left: 5px; border: 0; color: var(--gold-2); }
.gig-venue .gig-map svg { width: 14px; height: 14px; fill: currentColor; }
.gig-venue .gig-map:hover { color: var(--gold-3); }
.ref-name a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.ref-name a:hover { color: var(--gold); border-color: currentColor; }
.gig-year { border-top: 1px solid rgba(var(--light-rgb), .12); }
.gig-year:last-child { border-bottom: 1px solid rgba(var(--light-rgb), .12); }
.gig-year summary {
  display: flex; align-items: center; gap: 14px; padding: 16px 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.3rem; letter-spacing: .06em;
}
.gig-year summary::-webkit-details-marker { display: none; }
.gig-year summary::after {
  content: ""; margin-left: auto; width: 10px; height: 10px;
  border-right: 1.5px solid var(--gold-2); border-bottom: 1.5px solid var(--gold-2); transform: rotate(45deg); transition: transform .2s;
}
.gig-year[open] summary::after { transform: rotate(-135deg); }
.gig-count { font-family: var(--font-body); font-size: .8rem; letter-spacing: .04em; color: var(--on-dark-muted); border: 1px solid rgba(var(--light-rgb), .2); border-radius: 3px; padding: 1px 8px; }
.gig-year .gig-list { padding-bottom: 12px; }
.gig-year .gig { grid-template-columns: 52px 1fr; padding: 10px 0; opacity: .85; }
.gig-year .gig-date { width: 52px; height: 56px; border-color: rgba(var(--light-rgb), .2); }
.gig-year .gig-d { font-size: 1.25rem; }
.gig-year .gig-list > .gig:last-child { border-bottom: 0; }
@media (max-width: 560px) {
  .gig { grid-template-columns: 54px 1fr; gap: 14px; }
  .gig-date { width: 54px; height: 60px; }
}

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.hashtag { margin-top: 10px; color: var(--gold); font-weight: 500; letter-spacing: .02em; }
.quick-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; margin: 32px 0 40px; }
.quick-btn {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 14px 16px;
  border: 1px solid #d6cbbb; border-radius: var(--radius-btn); background: var(--paper);
  text-decoration: none; transition: border-color .2s, background-color .2s;
}
.quick-btn:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.quick-btn svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.quick-btn svg.icon-wa { fill: var(--gold); stroke: none; }
.quick-btn span { display: flex; flex-direction: column; font-weight: 500; line-height: 1.3; min-width: 0; }
.quick-btn small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.quick-btn small.nowrap { white-space: nowrap; }
.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form .lbl { font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.req { color: var(--gold); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #cfc4b4; border-radius: var(--radius-btn); background: #fff;
  font-weight: 400; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-dark-rgb), .18); }
.contact-form .is-invalid { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.form-privacy { flex: 1 1 260px; font-size: .85rem; color: var(--muted); }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2f6b3a; }
.form-status.is-error { color: #b3261e; }
.contact-photo { position: static; }
.contact-photo img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-photo { display: none; }
}
@media (max-width: 640px) {
  .quick-contact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-dark); letter-spacing: .05em; }
.footer-role { margin-top: 6px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold-3); }
.footer-links { display: grid; gap: 6px; align-content: start; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(var(--light-rgb), .1); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- legal page ---------- */
.legal { padding-top: calc(var(--header-h) + 56px); padding-bottom: 96px; }
.legal .container { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: .03em; }
.legal h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 5.4vw, 1.6rem); letter-spacing: .03em; margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal h3 { font-size: 1.1rem; font-weight: 500; margin-top: 32px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; }
.legal li + li { margin-top: 4px; }
.legal-header { position: sticky; background: var(--ink); }

/* ---------- phones: contact button that opens WhatsApp / phone / e-mail / YouTube ---------- */
.contact-dial { display: none; }
@media (max-width: 760px) {
  .contact-dial.js-ready {
    display: block; position: fixed; z-index: 40; right: 16px; bottom: max(16px, env(safe-area-inset-bottom));
    transition: opacity .25s, transform .25s, visibility 0s;
  }
  .contact-dial.is-hidden, body.nav-open .contact-dial {
    opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none;
    transition: opacity .25s, transform .25s, visibility 0s linear .25s;
  }
  .cd-scrim {
    position: fixed; inset: 0; background: rgba(var(--ink-rgb), .62); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s;
  }
  .contact-dial.is-open .cd-scrim { opacity: 1; visibility: visible; transition: opacity .25s, visibility 0s; }
  .cd-toggle {
    position: relative; display: grid; place-items: center; width: 58px; height: 58px; padding: 0;
    border: 0; border-radius: 50%; cursor: pointer;
    background: var(--gold-2); color: var(--on-accent);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3), 0 0 0 1px rgba(var(--ink-rgb), .12);
    transition: background-color .2s, transform .2s;
  }
  .cd-toggle:active { transform: scale(.94); background: var(--gold-3); }
  .cd-toggle svg { grid-area: 1 / 1; width: 26px; height: 26px; transition: opacity .2s, transform .25s; }
  .cd-ico-open { fill: currentColor; }
  .cd-ico-close { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; opacity: 0; transform: rotate(-90deg); }
  .contact-dial.is-open .cd-ico-open { opacity: 0; transform: rotate(90deg); }
  .contact-dial.is-open .cd-ico-close { opacity: 1; transform: none; }
  /* closed: the invisible option list must not catch touches (it sits over the page) */
  .cd-items { position: absolute; right: 3px; bottom: 74px; display: grid; gap: 14px; justify-items: end; pointer-events: none; }
  .contact-dial.is-open .cd-item { pointer-events: auto; }
  .cd-item {
    display: flex; align-items: center; gap: 12px; text-decoration: none;
    opacity: 0; transform: translateY(12px) scale(.92); visibility: hidden;
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .contact-dial.is-open .cd-item { opacity: 1; transform: none; visibility: visible; transition: opacity .22s, transform .22s, visibility 0s; }
  .contact-dial.is-open li:nth-child(4) .cd-item { transition-delay: 0s; }
  .contact-dial.is-open li:nth-child(3) .cd-item { transition-delay: .04s; }
  .contact-dial.is-open li:nth-child(2) .cd-item { transition-delay: .08s; }
  .contact-dial.is-open li:nth-child(1) .cd-item { transition-delay: .12s; }
  .cd-label {
    padding: 8px 14px; border-radius: var(--radius-btn); background: var(--paper); color: var(--ink);
    font-size: 1rem; font-weight: 500; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); white-space: nowrap;
  }
  .cd-icon {
    display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
    background: var(--paper); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  }
  .cd-icon svg { width: 25px; height: 25px; fill: currentColor; }
  .cd-icon-yt svg { width: 28px; height: 20px; }
  .cd-yt-play { fill: var(--paper); }
  .cd-item:active .cd-icon, .cd-item:active .cd-label { background: var(--gold-3); }
}
@media (prefers-reduced-motion: reduce) {
  .cd-item, .contact-dial.is-open .cd-item { transform: none; }
}

/* phones: no blur behind the header; blurring is expensive for phone graphics chips and made scrolling stutter */
@media (max-width: 760px) {
  .site-header::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(var(--ink-rgb), .96); }
}

/* ---------- playable keyboard divider ---------- */
.keys-divider { --key-w: 30px; position: relative; height: 96px; background: var(--ink); border-top: 2px solid var(--gold-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.keys-divider-slim { height: 66px; border-top-width: 1px; }
.keys-divider:not(.is-built) { display: none; }
.keys-row { position: absolute; inset: 0; display: flex; }
.key-w {
  flex: 1 1 0; position: relative; border-right: 1px solid rgba(var(--ink-rgb), .35);
  background: linear-gradient(180deg, #fffdf8 0%, #f2ece2 88%, #e2d9cb 100%);
  border-radius: 0 0 3px 3px; cursor: pointer; transition: background-color .08s, transform .08s;
}
.key-b {
  position: absolute; top: 0; height: 62%; z-index: 1; border-radius: 0 0 3px 3px; cursor: pointer;
  background: linear-gradient(180deg, #2c2925 0%, #12100e 85%);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08), 0 2px 3px rgba(0, 0, 0, .35);
}
.key-w.is-down { background: linear-gradient(180deg, #f3e3c2 0%, var(--gold-3) 100%); transform: translateY(1px); }
.key-b.is-down { background: linear-gradient(180deg, var(--gold) 0%, #5f4a2a 100%); }
.keys-hint {
  position: absolute; right: 10px; top: -30px; padding: 2px 10px; border-radius: 3px;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: var(--paper);
  pointer-events: none; transition: opacity .4s;
}
.keys-divider.was-played .keys-hint { opacity: 0; }
@media (max-width: 640px) { .keys-divider { --key-w: 24px; height: 78px; } .keys-divider-slim { height: 57px; } }

/* ---------- animations (only when JavaScript runs; without it everything is simply visible) ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
html.js .hero-title .eyebrow, html.js .hero-name > span, html.js .hero-lead, html.js .hero-foot {
  animation: rise-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
html.js .hero-title .eyebrow { animation-delay: .1s; }
html.js .hero-name > span:first-child { animation-delay: .25s; }
html.js .hero-name > span:last-child { animation-delay: .4s; }
html.js .hero-lead { animation-delay: .6s; }
html.js .hero-foot { animation-delay: .85s; }

html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
/* photos open like a curtain */
html.js .reveal-img { overflow: clip; } /* the enlarged image before its reveal must not widen the page on tablets */
html.js :is(.about-photo, .contact-photo).reveal-img { overflow: visible; } /* here .photo-clip does that, so a frame may reach past the photo */
html.js .reveal-img img { clip-path: inset(0 0 100% 0); transform: scale(1.1); }
html.js .reveal-img.is-in img {
  clip-path: inset(0 0 0 0); transform: none;
  transition: clip-path 1.3s cubic-bezier(.7, 0, .2, 1), transform 1.8s cubic-bezier(.2, .7, .2, 1);
}
/* review cards only fade (no movement): a swipe during the fade must still scroll */
html.js .r-card.reveal { transform: none; }
/* the gold line under each heading draws itself */
html.js .section-title.reveal::after { width: 0; transition: width .9s ease .35s; }
html.js .section-title.reveal.is-in::after { width: var(--orn-w, 56px); }
/* slow drift of background photos and the header video (set by the script) */
.section-photo .section-bg { will-change: transform; }

/* ---------- a grand piano fading away behind the main keyboard (test) ---------- */
.keys-divider:not(.keys-divider-slim)::after {
  content: ""; position: absolute; left: max(0px, calc(50% - 540px)); right: max(0px, calc(50% - 540px)); bottom: 100%;
  aspect-ratio: 1000 / 300; pointer-events: none;
  background: url("../img/piano-ghost.svg") center bottom / 100% auto no-repeat;
  opacity: .2;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .45) 30%, transparent 80%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .45) 30%, transparent 80%);
}
/* the section above stays readable on top of the drawing */
.section:has(+ .keys-divider) > .container { position: relative; z-index: 1; }

/* ---------- repertoire: searchable list from the Excel file ---------- */
.repertoire { display: grid; gap: 14px; }
.rep-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.rep-count { color: var(--muted); font-size: .92rem; }
.repertoire .fact-note { margin-top: 0; }
.rep-search { position: relative; }
.rep-search svg { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; pointer-events: none; }
.rep-search input {
  width: 100%; min-height: 48px; padding: 10px 14px 10px 42px; border: 1px solid #cfc4b4; border-radius: var(--radius-btn);
  background: var(--paper); font: inherit; font-size: 1rem;
}
.rep-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--accent-dark-rgb), .18); }
.rep-filters { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.rep-filters select {
  min-height: 40px; padding: 6px 34px 6px 12px; border: 1px solid #cfc4b4; border-radius: var(--radius-btn); background-color: #fff; font: inherit; font-size: .92rem;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 17px, calc(100% - 13px) 17px; background-size: 5px 5px; background-repeat: no-repeat;
}
.rep-occ { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-table-wrap { max-height: min(560px, 70vh); overflow: auto; border-top: 1px solid var(--line); overscroll-behavior: contain; }
.rep-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rep-table th { position: sticky; top: 0; z-index: 1; background: #fff; text-align: left; padding: 0; border-bottom: 1px solid var(--line); }
.rep-table th button {
  width: 100%; padding: 10px 8px; border: 0; background: none; font: inherit; font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: left; cursor: pointer; white-space: nowrap;
}
.rep-table th button:hover { color: var(--ink); }
.rep-table th button[aria-sort]::after { content: " ↑"; color: var(--gold); }
.rep-table th button[aria-sort="descending"]::after { content: " ↓"; }
.rep-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rep-t { font-weight: 500; color: var(--ink); }
.rep-a { color: var(--text); }
.rep-g, .rep-o { color: var(--muted); white-space: nowrap; }
.rep-y { color: var(--muted); font-variant-numeric: tabular-nums; }
.rep-table tbody tr:hover td { background: rgba(var(--accent-rgb), .08); }
.rep-empty { padding: 18px 8px; color: var(--muted); }
/* under the search field: open the list (owner), and the Excel file */
.rep-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rep-bar .rep-toggle, .rep-bar .link-pill { min-height: 44px; }
/* a genre or decade chosen: the field is dark, like the occasion buttons that are on */
.rep-filters select.is-active { background-color: var(--ink); border-color: var(--ink); color: var(--paper);
  background-image: linear-gradient(45deg, transparent 50%, var(--paper) 50%), linear-gradient(135deg, var(--paper) 50%, transparent 50%); }
.rep-filters select option { background: #fff; color: var(--ink); }
/* collapsed (only with JavaScript; without it the full list simply shows) */
html.js .repertoire:not(.is-open) .rep-filters, html.js .repertoire:not(.is-open) .rep-table-wrap { display: none; }
@media (max-width: 640px) {
  .rep-table thead { display: none; }
  .rep-table, .rep-table tbody { display: block; }
  .rep-table tr { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
  .rep-table td { padding: 0; border: 0; }
  .rep-t { grid-column: 1; }
  .rep-y { grid-column: 2; grid-row: 1; text-align: right; }
  .rep-a { grid-column: 1 / -1; font-size: .9rem; }
  .rep-g, .rep-o { display: inline; font-size: .82rem; grid-column: 1 / -1; }
  .rep-table tr > .rep-g { grid-row: 3; grid-column: 1; }
  .rep-table tr > .rep-o { grid-row: 3; grid-column: 2; justify-self: end; padding-left: 0; }
  .rep-filters select { flex: 1 1 140px; }
}

/* ---------- keyboard under the reviews: the section darkens to black and the keys come out of it ---------- */
.reviews::after {
  background: linear-gradient(180deg, rgba(var(--band-rgb), .80) 0%, rgba(var(--band-rgb), .88) 45%, rgba(8, 7, 6, .97) 85%, #080706 100%);
}
.keys-from-above { --body: #080706; height: 124px; background: var(--body); border-top: 0; }
.keys-from-above .keys-row { top: 16px; bottom: 12px; } /* black key slip in front of the keys, like on a real grand */
.keys-from-above::before { content: ""; position: absolute; inset: auto 0 0 0; height: 12px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, #1a1714, var(--body)); box-shadow: 0 -1px 0 rgba(255, 255, 255, .06); }
/* the keys disappear under the black body of the piano */
.keys-from-above .keys-row::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 14px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--body), rgba(8, 7, 6, 0));
}
.keys-from-above .keys-hint { top: -30px; right: 14px; background: transparent; color: var(--gold-3); }
.keys-from-above::after { display: none; } /* no drawn piano here: the dark section is the piano */
@media (max-width: 640px) { .keys-from-above { height: 100px; } .keys-from-above .keys-row { top: 12px; bottom: 9px; } .keys-from-above::before { height: 9px; } }

/* repertoire: show that it opens */
.rep-teaser { display: none; }
html.js .repertoire:not(.is-open) .rep-teaser {
  display: block; margin-top: -4px; white-space: nowrap; overflow: hidden; cursor: pointer;
  font-style: italic; font-weight: 300; color: var(--muted);
  -webkit-mask-image: linear-gradient(to right, #000 65%, transparent); mask-image: linear-gradient(to right, #000 65%, transparent);
}
html.js .repertoire:not(.is-open) .rep-teaser:hover { color: var(--ink); }
.rep-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.repertoire.is-open .rep-toggle svg { transform: rotate(180deg); }
.repertoire.is-open .rep-toggle { background: transparent; color: var(--text); border-color: #cfc4b4; }
.repertoire { gap: 12px; }

/* ---------- grand piano photo, the playable keys laid exactly over the photo's own keys (html[data-flg]; 1 = off) ----------
   Every size is a fraction of the case width --cw, measured on the photo (tools/piano_photo.py prints them):
   keys start .117730 from the left and are .769267 wide; from the keys to the front of the case .115366, of which the
   white keys take .092671 (80.33%); black keys .648 of a white key; the photo shows .336643 (front) or 1.272813 (whole piano) above the keys.
   The photo decides the keyboard here: the 'Tastatur' looks change nothing in size, colour or frame. */
.piano-photo { display: none; }
html[data-flg]:not([data-flg="1"]) .piano-photo {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; height: calc(100% + var(--pp-h)); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, #000 calc(100% - var(--pp-h) * .7), transparent calc(100% - var(--pp-h) * .04));
  mask-image: linear-gradient(to top, #000 calc(100% - var(--pp-h) * .7), transparent calc(100% - var(--pp-h) * .04));
}
.piano-photo i { --pos: center bottom; position: absolute; inset: 0; background: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat; }
.piano-photo i:last-child { display: none; }
html[data-flg]:not([data-flg="1"]) { --cw-min: 1300px; --pp-h: calc(max(100vw * 1.0106, var(--cw-min)) * .336643); }
html[data-flg]:not([data-flg="1"]) .reviews { padding-bottom: calc(var(--section-y) + var(--pp-h) - 40px); }
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above {
  /* computers: the case's sides at the screen edges (the photo has 22 px of margin); never narrower than --cw-min, so the reviews
     above always fit inside the piano (on smaller screens a little of its sides is cut off instead) */
  --cw: max(calc(100cqw * 1.0106), var(--cw-min)); container-type: inline-size; height: calc(var(--cw-min) * .115366); aspect-ratio: auto;
  --key-count: 52; overflow-x: clip; border-top: 0;
  background: transparent; /* the dark ends where the piano ends: around its front the page shows */
}
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above::before { display: none; } /* the photo has its own key slip */
@media (min-width: 1301px) { html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above { height: auto; aspect-ratio: 2093 / 244; } } /* exact, from the strip's own width */
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .keys-row {
  left: calc(50% - var(--cw) / 2 + var(--cw) * .11773); right: auto; width: calc(var(--cw) * .769267);
  top: 0; bottom: auto; height: 80.33%; border: 0; background: #2a2929; box-shadow: -2px 0 0 #0c0b0b, 2px 0 0 #0c0b0b;
}
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .keys-row::before { height: 7px; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); }
/* key colours as in the photo: white keys 219 at the back to 235 at the front, black keys 32 */
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .key-w {
  background: linear-gradient(180deg, #d9d8d9 0%, #e6e6e6 35%, #ececec 100%); border: 0; border-right: 1px solid #9c9b9c;
  border-radius: 0 0 2px 2px; box-shadow: none; opacity: 1;
}
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .key-b {
  height: 64.8%; background: linear-gradient(180deg, #1b1a1b 0%, #222122 80%, #2f2e2f 100%); border: 0;
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .4); border-radius: 0 0 2px 2px; opacity: 1;
}
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .key-w.is-down { background: linear-gradient(180deg, #e9dcc0 0%, var(--gold-3) 100%); transform: none; }
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .key-b.is-down { background: linear-gradient(180deg, var(--gold) 0%, #5f4a2a 100%); }
/* on the black fallboard just above the keys (50 of 2115 px of the photo), at the right end of the keyboard */
html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above .keys-hint { top: calc(var(--cw) * -.01182); transform: translateY(-50%); line-height: 1; padding: 0;
  right: max(12px, calc(50% - var(--cw) / 2 + var(--cw) * .113 + 14px)); left: auto; background: transparent; color: var(--gold-3); }
/* phones and tablets: the whole piano across the screen with both cheeks, like on a computer (owner 2026-11-19), so the keys
   are thinner; no minimum width here */
@media (max-width: 999px) {
  html[data-flg]:not([data-flg="1"]) { --pp-h: calc((100vw - var(--sbw, 0px)) * 1.0106 * .336643); }
  html[data-flg]:not([data-flg="1"]) .keys-divider.keys-from-above { --cw: calc(100cqw * 1.0106); aspect-ratio: auto; height: calc(var(--cw) * .115366); }
}
/* 8: the photo's own keys are the keyboard; a played key lights up in the accent colour */
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .keys-row { background: transparent; box-shadow: none; }
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .keys-row::before { display: none; }
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-w,
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-b { background: transparent; border-color: transparent; box-shadow: none; }
/* the blend modes stay on all the time (owner: a pressed key flashed as a rectangle): with them the colour only takes
   the key's own shape in the photo; switched on with the press, the first frame and the fade on release ran without them */
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-w { mix-blend-mode: multiply; }   /* only the white parts take the colour */
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-b { mix-blend-mode: screen; }     /* only the black key does */
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-w.is-down { background: var(--gold-3); transition: none; }
html[data-flg="8"]:not([data-flg="1"]) .keys-divider.keys-from-above .key-b.is-down { background: var(--gold-2); transition: none; }
/* while a piece plays by itself no fades at all: a key is lit exactly on the frames its note sounds */
.keys-divider.is-auto :is(.key-w, .key-b) { transition: none; }

/* the pieces it can play, on the black fallboard at the left end of the keyboard ("Spiel mich" sits at the right end) */
.keys-songs { display: none; }
html[data-flg="8"] .keys-divider.keys-from-above .keys-songs {
  display: flex; align-items: center; gap: 2px; position: absolute; z-index: 3; top: calc(var(--cw) * -.01182); transform: translateY(-50%);
  left: max(10px, calc(50% - var(--cw) / 2 + var(--cw) * .1177 + 6px));
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1; color: var(--gold-3); white-space: nowrap;
}
.keys-songs-label { margin-right: 6px; opacity: .75; }
.keys-songs button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none;
  border: 1px solid transparent; border-radius: var(--radius-btn); padding: 4px 8px; cursor: pointer; }
.keys-songs button:hover, .keys-songs button:focus-visible { border-color: rgba(var(--accent-rgb), .55); }
.keys-songs button[aria-pressed="true"] { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.keys-songs button[aria-pressed="true"]::before { content: "■\00a0"; font-size: .85em; }
.keys-songs button.is-loading { animation: keys-songs-wait .6s ease-in-out infinite alternate; }
@keyframes keys-songs-wait { to { opacity: .45; } }
.keys-songs-list { display: flex; gap: 2px; }
.keys-songs-toggle { display: none; }
/* phones and tablets: the fallboard is too thin for words, so one button sits just below the keyboard and opens the list */
@media (max-width: 999px) {
  html[data-flg="8"] .keys-divider.keys-from-above .keys-songs { top: calc(100% + 10px); transform: none; left: var(--gutter); color: var(--gold); }
  html[data-flg="8"] .keys-divider.keys-from-above .keys-hint { display: none; }
  .keys-songs-label, .keys-songs-list { display: none; }
  .keys-songs .keys-songs-toggle { display: block; padding: 7px 10px; border-color: rgba(var(--accent-dark-rgb), .45); background: var(--paper); }
  .keys-songs-toggle[aria-expanded="true"] { border-color: var(--gold); }
  .keys-songs.is-open .keys-songs-list { color: var(--gold-3);
    display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; top: calc(100% + 6px); min-width: 11rem;
    padding: 6px; border: 1px solid rgba(var(--accent-rgb), .4); border-radius: 6px; background: rgba(12, 10, 8, .97); box-shadow: 0 10px 28px rgba(0, 0, 0, .4);
  }
  .keys-songs-list button { padding: 11px 12px; text-align: left; }
}
@media (max-width: 640px) { html[data-flg="8"] .keys-divider.keys-from-above .keys-hint { display: none; } }

/* ---------- the piano continues up as the background of the reviews (every photo option but 'Ganzer Flügel') ----------
   Same image and scale as the keys strip (--cw, bottom aligned at the keys line), so the two meet without a seam.
   Around the piano the page stays light; the piano is darkened only behind the text, and in full colour towards the keys. */
.piano-bg { display: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews { background: transparent; color: var(--on-dark); }
/* the reviews sit lower in the piano (owner): more piano above the heading, the cards closer to the keys */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) { --rev-shift: 160px; }
@media (max-width: 640px) { html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) { --rev-shift: 80px; } }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews { padding-top: calc(var(--section-y) + var(--rev-shift)); padding-bottom: calc(var(--section-y) + var(--pp-h) - 40px - var(--rev-shift)); }
/* the layer sits in a zero-height anchor between the reviews and the keys, behind every section (z-index -1 on the page),
   so it can reach up behind the gallery; the case width comes from the page width without the scrollbar (--sbw, set by main.js) */
.piano-anchor { display: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .piano-anchor { display: block; position: relative; height: 0; --cw: max(calc((100vw - var(--sbw, 0px)) * 1.0106), var(--cw-min)); }
@media (max-width: 999px) { html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .piano-anchor { --cw: calc((100vw - var(--sbw, 0px)) * 1.0106); } }
/* the gallery above turns from ivory to see-through over its last part, so the fading piano shows there */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) #fotos-videos { background: linear-gradient(to bottom, var(--ivory) calc(100% - var(--fade-up) - 120px), rgba(241, 235, 225, .5) calc(100% - var(--fade-up) * .75), rgba(241, 235, 225, 0) calc(100% - var(--fade-up) * .4)); }
html { --fade-up: 540px; --pcw: max(calc((100vw - var(--sbw, 0px)) * 1.0106), var(--cw-min, 1300px)); }
@media (max-width: 999px) { html { --pcw: calc((100vw - var(--sbw, 0px)) * 1.0106); } }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) #gallery-more { background: var(--paper); } /* stays readable over the fading piano */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .section-bg, html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews::after { display: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .section-title::after { background: var(--gold-2); }
/* the cards and arrows carry their own dark ground: readable over the piano and over the light page beside its curved side */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .r-card figure { background: rgba(12, 10, 8, .95); border-color: rgba(var(--accent-rgb), .42); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .r-card blockquote p:not(.r-title) { color: #eee8dd; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .r-card figcaption { border-color: rgba(var(--accent-rgb), .3); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .section-title, html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .section-sub { text-shadow: 0 1px 14px rgba(0, 0, 0, .75), 0 0 2px rgba(0, 0, 0, .5); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .section-sub { color: #e3dbcf; }
/* where the piano ends below the heading (phones: the piano is only as tall as 1.27 screen widths), the heading is on the light page */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews.head-off-piano .section-title { color: var(--ink); text-shadow: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews.head-off-piano .section-title::after { background: var(--gold); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews.head-off-piano .section-sub { color: var(--muted); text-shadow: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews.head-off-piano .section-sub a:hover { color: var(--gold); }
/* inside the piano the text column is narrower: two reviews side by side once three would get too thin */
@media (min-width: 641px) { @container (max-width: 1000px) { html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .review-track { grid-auto-columns: calc((100cqi - 20px) / 2); } } }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .reviews .round-btn { background: rgba(12, 10, 8, .95); border-color: rgba(var(--light-rgb), .3); color: var(--on-dark); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .piano-bg {
  display: block; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; pointer-events: none;
  height: calc(var(--rev-h, 1400px) + var(--fade-up));
  /* the fade starts just above the reviews heading (--head-h, from main.js) and runs to the layer's top, --fade-up into the gallery;
     --S is where it starts, --Z how long it runs, --a1 ... --a5 its shape (the "Verlauf" options below change them) */
  --S: calc(var(--head-h, 1100px) + var(--fade-from, -30px));
  --Z: calc(var(--rev-h, 1400px) + var(--fade-up) - var(--S));
  --fade: linear-gradient(to top, #000 var(--S), rgba(0, 0, 0, var(--a1, .86)) calc(var(--S) + var(--Z) * .14), rgba(0, 0, 0, var(--a2, .62)) calc(var(--S) + var(--Z) * .32),
    rgba(0, 0, 0, var(--a3, .38)) calc(var(--S) + var(--Z) * .52), rgba(0, 0, 0, var(--a4, .18)) calc(var(--S) + var(--Z) * .7), rgba(0, 0, 0, var(--a5, .06)) calc(var(--S) + var(--Z) * .86), transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade);
}
.piano-bg i, .piano-bg b, .piano-bg::after { --pos: center bottom calc(var(--cw) * -.115366); position: absolute; inset: 0; }
.piano-bg i { background: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat; }
.piano-bg i:nth-of-type(2) { display: none; }
.piano-bg b {
  /* darker behind the reviews only: lighter towards the keys, and gone above the heading, so the piano fades out in its own colours */
  background: linear-gradient(to top, rgba(8, 7, 6, .04) 0, rgba(8, 7, 6, .04) calc(var(--pp-h) * .3), rgba(8, 7, 6, .66) calc(var(--pp-h) + 30px),
    rgba(8, 7, 6, .72) calc(var(--head-h, 1100px) - 30px), rgba(8, 7, 6, .5) calc(var(--head-h, 1100px) + 130px), rgba(8, 7, 6, .24) calc(var(--head-h, 1100px) + 330px),
    rgba(8, 7, 6, .07) calc(var(--head-h, 1100px) + 510px), rgba(8, 7, 6, 0) calc(var(--head-h, 1100px) + 670px));
  -webkit-mask: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat; mask: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat;
}
/* ---------- "Verlauf": how the piano fades out above the reviews (preview options, html[data-fade]; 1 = the rule above) ---------- */
/* 2 quick, 3 slow, 4 full (stays strong, goes late), 5 even, 6 early (starts behind the reviews) */
html[data-fade="2"] { --fade-up: 240px; --fade-from: -10px; --a1: .78; --a2: .5; --a3: .26; --a4: .1; --a5: .03; }
html[data-fade="3"] { --fade-up: 1000px; --fade-from: -40px; --a1: .93; --a2: .78; --a3: .56; --a4: .33; --a5: .13; }
html[data-fade="4"] { --fade-up: 640px; --a1: .99; --a2: .95; --a3: .85; --a4: .6; --a5: .24; }
html[data-fade="5"] { --fade-up: 640px; --a1: .86; --a2: .68; --a3: .48; --a4: .3; --a5: .14; }
html[data-fade="6"] { --fade-up: 700px; --fade-from: calc(var(--head-h, 1100px) * -.42); --a1: .9; --a2: .72; --a3: .5; --a4: .28; --a5: .1; }
/* 7 fading photo: the colour turns sepia on the way up, then goes */
html:is([data-fade="7"], [data-fade="8"]) { --fade-up: 640px; --a1: .96; --a2: .86; --a3: .66; --a4: .4; --a5: .15; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"])[data-fade="7"] .piano-bg::after {
  content: ""; position: absolute; inset: 0; mix-blend-mode: color;
  background: linear-gradient(to top, rgba(170, 140, 100, 0) var(--S), rgba(170, 140, 100, .85) calc(var(--S) + var(--Z) * .3), rgb(170, 140, 100) calc(var(--S) + var(--Z) * .5));
  -webkit-mask: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat; mask: url("../img/piano-whole-2115.webp") var(--pos) / var(--cw) auto no-repeat;
}
/* 8 mist: it goes soft on the way up */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"])[data-fade="8"] .piano-bg::after {
  content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(to top, transparent var(--S), #000 calc(var(--S) + var(--Z) * .4)); mask-image: linear-gradient(to top, transparent var(--S), #000 calc(var(--S) + var(--Z) * .4));
}
/* 9 halftone dots, 10 strings, 11 grain: the piano breaks up into a pattern (820 px tall masks, tools: fade_masks.py) */
html:is([data-fade="9"], [data-fade="10"], [data-fade="11"]) { --fade-up: 700px; }
html[data-fade="9"] { --pat: url("../img/fade-raster.png"); --pat-size: 11px 820px; }
html[data-fade="10"] { --pat: url("../img/fade-saiten.png"); --pat-size: 7px 820px; }
html[data-fade="11"] { --pat: url("../img/fade-korn.png"); --pat-size: 320px 820px; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]):is([data-fade="9"], [data-fade="10"], [data-fade="11"]) .piano-bg {
  -webkit-mask: linear-gradient(#000, #000) left bottom / 100% calc(var(--S) + 1px) no-repeat, var(--pat) left 0 bottom var(--S) / var(--pat-size) repeat-x;
  mask: linear-gradient(#000, #000) left bottom / 100% calc(var(--S) + 1px) no-repeat, var(--pat) left 0 bottom var(--S) / var(--pat-size) repeat-x;
}
/* 12 whole: no fade, the piano ends with its own round end; the gallery turns see-through just above it */
html[data-fade="12"] { --fade-up: max(80px, calc(var(--pcw) * 1.272813 - var(--rev-h, 1400px) + 16px)); }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"])[data-fade="12"] .piano-bg { -webkit-mask: none; mask: none; }
html[data-flg]:not([data-flg="1"]):not([data-flg="3"])[data-fade="12"] #fotos-videos { background: linear-gradient(to bottom, var(--ivory) calc(100% - var(--fade-up) - 220px), rgba(241, 235, 225, 0) calc(100% - var(--fade-up) + 10px)); }

/* the strip only shows the keys part of the image */
html[data-flg]:not([data-flg="1"]):not([data-flg="3"]) .piano-photo { height: 100%; -webkit-mask-image: none; mask-image: none; }

/* prose: no lone short word on the last line (owner's line-break rule) */
.section-sub, .fact-note, .refs-sub, .platforms p, .lede, .about-text p { text-wrap: pretty; }
