:root {
  --paper: #0f0e0c;
  --paper-2: #171512;
  --ink: #ebe6db;
  --muted: #9b9285;
  --line: rgba(235, 230, 219, 0.16);
  --accent: #c8a06a;
  --header-bg: rgba(15, 14, 12, 0.82);
  --contact-bg: #ebe6db;
  --contact-fg: #17140f;
  --contact-muted: rgba(23, 20, 15, 0.62);
  --contact-line: rgba(23, 20, 15, 0.2);
  --contact-hover: #7b2d26;
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "EB Garamond", Garamond, Georgia, serif;
  --label: "Inter", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 38rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15em; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.label {
  font-family: var(--label);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.link {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: color 0.3s, background-size 0.4s;
}
.link:hover { color: var(--accent); background-size: 0 1px; background-position: 100% 100%; }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.top.scrolled { border-bottom-color: var(--line); }
.brand { font-family: var(--display); font-size: 1.25rem; letter-spacing: 0.04em; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a { transition: color 0.3s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.lang { display: flex; gap: 0.5rem; padding-left: clamp(1rem, 2.2vw, 2.25rem); border-left: 1px solid var(--line); }
.lang .on { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 0.4rem 0; cursor: pointer; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 7rem var(--pad) 3rem;
  background: #0f0e0c; color: #f1ede4;
}
.hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15, 14, 12, 0.6) 0%, rgba(15, 14, 12, 0) 22%, rgba(15, 14, 12, 0) 46%, rgba(15, 14, 12, 0.88) 82%, #0f0e0c 100%);
}
.hero .label { color: rgba(241, 237, 228, 0.75); }
.hero .horizon::after { background: rgba(241, 237, 228, 0.7); }
.epigraph { display: flex; justify-content: center; text-align: center; padding: clamp(1.75rem, 3vw, 2.75rem) var(--pad); }
.epigraph .hero-quote { max-width: 32rem; font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.4; }
.epigraph .hero-quote cite { margin-top: 0.6rem; }
.portrait { margin: 2.2rem 0 0; max-width: 24rem; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3.25rem, 8.6vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}
.hero h1 span { display: block; }
.hero h1 span + span { padding-left: clamp(1.5rem, 9vw, 9rem); font-style: italic; }
.horizon {
  display: flex; align-items: center; gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}
.horizon::after { content: ""; flex: 1; height: 1px; background: var(--ink); transform-origin: left; animation: draw 1.6s cubic-bezier(.2,.7,.2,1) both 0.3s; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-foot {
  display: grid; grid-template-columns: minmax(0, 34rem) auto; gap: 2rem;
  align-items: end; justify-content: space-between;
}
.hero-quote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.35; }
.hero-quote cite { display: block; margin-top: 0.8rem; font-style: normal; }
.scroll { writing-mode: vertical-rl; }

/* Sections */
section { padding: clamp(5rem, 11vw, 10rem) var(--pad); border-top: 1px solid var(--line); scroll-margin-top: 3.5rem; }
.grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); }
.head .num { font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--accent); display: block; margin-bottom: 0.6rem; }
h2 {
  margin: 0;
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.01em;
}
h3 { margin: 0 0 1rem; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.1; }
.prose { max-width: var(--measure); }
.prose .lead { font-family: var(--display); font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.3; margin-bottom: 1.4em; }
.head .sticky { position: sticky; top: 6rem; }

.press { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.press blockquote { margin: 0; padding: 2.5rem clamp(1.25rem, 2.4vw, 2.5rem) 0; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; border-left: 1px solid var(--line); }
.press blockquote:first-child { padding-left: 0; border-left: 0; }
.press blockquote:last-child { padding-right: 0; }
.press q { display: block; font-family: var(--display); font-style: italic; font-size: 1.5rem; line-height: 1.25; quotes: "\201C" "\201D"; }
.press cite { display: block; margin-top: 0; font-style: normal; }

/* "More" text */
.js .more-body { display: none; }
.js .more-body.open { display: block; }
.more-btn { display: none; margin-top: 1.4rem; padding: 0 0 3px; border: 0; cursor: pointer; color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: color 0.3s; }
.js .more-btn { display: inline-block; }
.more-btn:hover { color: var(--accent); }
.more-btn::after { content: "  +"; }
.more-btn[aria-expanded="true"]::after { content: "  –"; }

.story { background: var(--paper-2); }
.story .prose p:first-of-type::first-letter {
  font-family: var(--display); font-size: 4.6em; line-height: 0.8; float: left; padding: 0.08em 0.1em 0 0;
}
.facts { list-style: none; margin: 3rem 0 0; padding: 0; max-width: var(--measure); }
.facts li { display: grid; grid-template-columns: 7rem 1fr; gap: 1.5rem; padding: 0.9rem 0; border-top: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.45; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .label { padding-top: 0.35rem; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ink); }
.project { padding: clamp(2rem, 4vw, 3.5rem) clamp(0rem, 3vw, 3rem) 0 0; }
.project + .project { padding-left: clamp(1.25rem, 2.4vw, 2.5rem); padding-right: clamp(0rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.project .label { display: block; margin-bottom: 1.4rem; }
.project h3 { font-size: clamp(1.8rem, 2.7vw, 2.6rem); font-weight: 300; }
.project h3 em { font-style: italic; }
.project p { max-width: 30rem; }
.project .more { display: inline-block; margin-top: 0.6rem; }

/* Listen */
.player { position: relative; aspect-ratio: 16 / 9; background: #000; margin-top: clamp(3rem, 6vw, 5rem); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.programme { list-style: none; margin: 2.5rem 0 0; padding: 0; counter-reset: p; }
.programme li { border-top: 1px solid var(--line); }
.programme li:last-child { border-bottom: 1px solid var(--line); }
.programme button {
  width: 100%; display: grid; grid-template-columns: 2.5rem minmax(0, 5fr) minmax(0, 5fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.15rem 0; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; color: inherit; transition: padding 0.35s, color 0.3s;
}
.programme button::before { counter-increment: p; content: counter(p, upper-roman); font-family: var(--display); font-style: italic; color: var(--muted); }
.programme button:hover, .programme button[aria-pressed="true"] { padding-left: 0.75rem; color: var(--accent); }
.programme .work { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.programme .where { color: var(--muted); font-size: 1rem; line-height: 1.4; }
.programme button:hover .where, .programme button[aria-pressed="true"] .where { color: inherit; }

/* Concerts */
.dates { list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.dates li:last-child { border-bottom: 1px solid var(--line); }
.dates .when { font-family: var(--display); font-size: 1.45rem; line-height: 1.2; }
.dates strong { font-weight: 400; font-family: var(--display); font-size: 1.45rem; line-height: 1.2; display: block; }
.dates span.d { color: var(--muted); font-size: 1rem; }
.note { margin-top: 2rem; color: var(--muted); font-style: italic; }
.past-wrap { margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.past { list-style: none; margin: 1.4rem 0 0; padding: 0; columns: 2; column-gap: clamp(2rem, 6vw, 6rem); }
.past li { break-inside: avoid; display: grid; grid-template-columns: 6.2rem minmax(0, 10rem) minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; line-height: 1.35; }
.past .pd { font-family: var(--display); font-size: 1.2rem; color: var(--muted); }
.past .pv { color: var(--muted); }

/* Contact */
.contact { background: var(--contact-bg); color: var(--contact-fg); border-top: 0; }
.contact .label, .contact .head .num { color: var(--contact-muted); }
.contact .big { font-family: var(--display); font-weight: 300; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.1; display: inline-block; word-break: break-word; }
.contact .link:hover { color: var(--contact-hover); }
.contact-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--contact-line); }
.contact-cols p { margin: 0.8rem 0 0; font-size: 1.0625rem; line-height: 1.5; }
.foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem var(--pad); background: var(--contact-bg); color: var(--contact-muted); border-top: 1px solid var(--contact-line); }

/* Mailing list */
.signup { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--contact-line); }
.signup-lead { margin: 0.8rem 0 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.25; }
.signup-form { max-width: 36rem; }
.signup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 1.2rem; border-bottom: 1px solid currentColor; }
.signup-row input { flex: 1 1 12rem; min-width: 0; background: none; border: 0; border-radius: 0; padding: 0.6rem 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.2; color: inherit; outline: none; }
.signup-row input::placeholder { color: var(--contact-muted); opacity: 1; }
.signup-row input[aria-invalid="true"] { color: var(--contact-hover); }
.signup-form button { background: none; border: 0; padding: 0.95rem 0; cursor: pointer; color: inherit; font-family: var(--label); font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s; }
.signup-form button:hover { color: var(--contact-hover); }
.signup-form button[disabled] { opacity: 0.5; cursor: default; }
.signup-check { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 1rem; font-size: 1rem; line-height: 1.4; color: var(--contact-muted); cursor: pointer; }
.signup-check input { flex: none; width: 1rem; height: 1rem; margin: 0.2rem 0 0; accent-color: var(--contact-fg); }
.signup-msg { min-height: 1.4em; margin: 0.8rem 0 0; font-size: 1rem; font-style: italic; color: var(--contact-muted); }
.signup-msg[data-kind="error"] { color: var(--contact-hover); }
.signup-done { margin: 0; font-family: var(--display); font-size: 1.6rem; line-height: 1.25; }

/* Light version, shown with ?theme=light */
html[data-theme="light"] {
  --paper: #f4f0e8;
  --paper-2: #ebe6db;
  --ink: #17140f;
  --muted: #6e665a;
  --line: rgba(23, 20, 15, 0.16);
  --accent: #7b2d26;
  --header-bg: rgba(244, 240, 232, 0.88);
  --contact-bg: #17140f;
  --contact-fg: #f4f0e8;
  --contact-muted: rgba(244, 240, 232, 0.62);
  --contact-line: rgba(244, 240, 232, 0.2);
  --contact-hover: #d9b9a6;
}
.foot .label { color: inherit; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  body { font-size: 1.125rem; }
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: 3.4rem 0 auto 0; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    padding: 1.6rem var(--pad) 2rem; background: var(--paper); border-bottom: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  }
  .nav.open { visibility: visible; opacity: 1; transform: none; }
  .lang { padding-left: 0; border-left: 0; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; }
  .grid, .press, .projects, .contact-cols, .signup { grid-template-columns: 1fr; }
  .press blockquote, .press blockquote:last-child { padding: 2rem 0 0; border-left: 0; }
  .past { columns: 1; }
  .past li { grid-template-columns: 5.6rem minmax(0, 1fr); gap: 0.1rem 1rem; }
  .past .pv { grid-column: 2; }
  .portrait { max-width: 100%; }
  .head .sticky { position: static; }
  .scroll { display: none; }
  .project, .project + .project { padding: 2rem 0 0; border-left: 0; }
  .project + .project { margin-top: 2.5rem; border-top: 1px solid var(--line); }
  .programme button { grid-template-columns: 2rem 1fr; gap: 0.2rem 1rem; }
  .programme .where, .programme .dur { grid-column: 2; }
  .dates li, .facts li { grid-template-columns: 1fr; gap: 0.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .horizon::after { animation: none; }
}