/* Look and feel. Colours and fonts are at the top of this file. */

/* ---------- Fonts (served from the fonts/ folder, no outside requests) ---------- */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url(fonts/cormorant-garamond-latin-600-italic.woff2) format("woff2"); }
/* Greek letters in headings come from GFS Didot, which Cormorant does not have */
@font-face { font-family: "GFS Didot"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/gfs-didot-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-02FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-02FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-02FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-latin-400-italic.woff2) format("woff2"); unicode-range: U+0000-02FF, U+2000-206F, U+20AC, U+2122, U+2190-2199; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-greek-400-normal.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/alegreya-sans-greek-500-normal.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/alegreya-sans-greek-700-normal.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Alegreya Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/alegreya-sans-greek-400-italic.woff2) format("woff2"); unicode-range: U+0370-03FF, U+1F00-1FFF; }

/* ---------- Colours ----------
   Obsidian ground, aged ivory type, ash grey secondary text, oxblood for buttons
   and accents, forest green for the request panel, olive for tags, dusty violet for focus. */
:root {
  --ground: #0c0c0e;
  --ground-rgb: 12, 12, 14;
  --raised: #17171a;
  --raised-2: #1f1f23;
  --paper: #f3eee3;
  --text: #ece4d0;
  --text-rgb: 236, 228, 208;
  --heading: #f6f1e6;
  --muted: #a9b2ab;
  --accent: #b2434a;
  --accent-rgb: 178, 67, 74;
  --on-accent: #f3ecdc;
  --oxblood: #7b2328;
  --forest: #1d3229;
  --olive: #6b6a3a;
  --violet: #8a76a0;
  --line: rgba(236, 228, 208, 0.14);
  --line-strong: rgba(236, 228, 208, 0.32);
  --display: "Cormorant Garamond", "GFS Didot", Georgia, "Times New Roman", serif;
  --body: "Alegreya Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 4.25rem;
  color-scheme: dark;
}
:root[data-theme="light"] {
  color-scheme: light;
  --ground: #f4efe4;
  --ground-rgb: 244, 239, 228;
  --raised: #ebe4d4;
  --raised-2: #e3dbc8;
  --text: #1b1a17;
  --text-rgb: 27, 26, 23;
  --heading: #15140f;
  --muted: #5b5f5c;
  --accent: #8f2a30;
  --accent-rgb: 143, 42, 48;
  --on-accent: #f4efe4;
  --forest: #dde6df;
  --olive: #d5d2a6;
  --violet: #6e5d78;
  --line: rgba(27, 26, 23, 0.14);
  --line-strong: rgba(27, 26, 23, 0.32);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 1.25rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
@media (max-width: 40rem) { body { font-size: 1.125rem; } }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--oxblood); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
h1:focus, main:focus { outline: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: 76rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--oxblood); color: var(--on-accent); padding: .6rem 1rem; text-decoration: none; }
.skip:focus { top: 1rem; }
.eyebrow { margin: 0 0 1rem; font: 500 0.95rem/1.2 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: .9rem; }
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: currentColor; }
.shell { position: relative; z-index: 2; background: var(--ground); }

/* Split text helpers */
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: transform .5s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(var(--ground-rgb), .82); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom-color: var(--line); }
.site-header.is-hidden { transform: translateY(-101%); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }
.brand { font: 500 clamp(1.25rem, 2vw, 1.55rem)/1 var(--display); text-decoration: none; white-space: nowrap; position: relative; }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 3.4vw, 2.25rem); }
.nav a { position: relative; font-size: 1.0625rem; font-weight: 500; text-decoration: none; color: var(--muted); padding-block: .5rem; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav a[aria-current="true"] { color: var(--text); }
.theme-toggle { background: none; border: 0; color: var(--text); width: 2.4rem; height: 2.9rem; padding: 0; display: grid; place-items: center; cursor: pointer; border-radius: .4rem; }
.theme-toggle svg { width: 1.3rem; height: 2.3rem; overflow: visible; }
.theme-toggle .flame { fill: var(--accent); transform-origin: 50% 100%; transform-box: fill-box; animation: flicker 2.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(161, 58, 63, .6)); }
.theme-toggle .smoke { stroke-dasharray: 20; animation: smoke 3.2s ease-in-out infinite; }
.theme-toggle:hover { opacity: .75; }
@keyframes flicker { 0%, 100% { transform: scale(1) rotate(0deg); } 30% { transform: scale(1.06, .95) rotate(-2deg); } 60% { transform: scale(.96, 1.04) rotate(1.5deg); } }
@keyframes smoke { 0% { stroke-dashoffset: 20; opacity: 0; } 30% { opacity: .7; } 100% { stroke-dashoffset: -20; opacity: 0; } }
@media (max-width: 40rem) {
  :root { --header-h: 3.75rem; }
  .bar { flex-wrap: wrap; height: auto; padding-block: .85rem .3rem; row-gap: .2rem; }
  .brand { font-size: 1.05rem; flex: 1 1 100%; }
  .nav { gap: 1.1rem; margin-left: auto; }
  .nav a { font-size: .98rem; }
}

/* ---------- Social ---------- */
.social { display: flex; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.social a { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text); transition: border-color .25s, color .25s, transform .4s var(--ease); }
.social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.social.labelled { flex-wrap: wrap; gap: .75rem; }
.social.labelled a { width: auto; height: auto; border-radius: 2rem; padding: .55rem 1.1rem .55rem .8rem; display: inline-flex; align-items: center; gap: .6rem; font: 400 1.125rem/1.2 var(--body); text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: .7rem; background: var(--oxblood); color: var(--on-accent); border: 1px solid var(--oxblood); padding: .9rem 1.6rem; font-weight: 600; font-size: .9375rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; text-decoration: none; cursor: pointer; border-radius: 0; isolation: isolate; transition: border-color .3s, color .3s; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before { transform: none; }
.btn:hover { border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: 500; }
.btn.ghost::before { background: var(--text); }
.btn.ghost:hover { color: var(--ground); border-color: var(--text); }
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }
.textlink { position: relative; display: inline-flex; gap: .55rem; align-items: baseline; color: var(--text); text-decoration: none; padding-bottom: .15rem; }
.textlink::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.textlink:hover::after { transform: scaleX(.35); }
.textlink .arr { color: var(--accent); transition: transform .4s var(--ease); }
.textlink:hover .arr { transform: translateX(5px); }

/* Heading rule, kept from the earlier design */
.rule-h::before { content: ""; display: block; width: 2.6rem; height: 2px; background: var(--accent); margin-bottom: .9rem; transform-origin: 0 50%; }

/* ======================================================================
   HOME
   ====================================================================== */

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(2rem, 5vh, 3.5rem); overflow: hidden; }
.hero-photo { position: absolute; right: max(20px, calc((100vw - 76rem) / 2 + 20px)); top: calc(var(--header-h) + 1.5rem); width: min(36vw, 30rem); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; filter: grayscale(1) contrast(1.05); }
.hero-inner { position: relative; width: 100%; }
.hero-kicker { margin: 0 0 .6rem; text-transform: none; letter-spacing: .02em; font: 500 1.2rem/1.2 var(--body); }
.hero-name { position: relative; margin: 0; font: 500 clamp(3.3rem, 12.4vw, 12.5rem)/.84 var(--display); letter-spacing: -.025em; text-transform: lowercase; mix-blend-mode: difference; color: #ece4d0; }
.hero-name .ln { display: block; overflow: hidden; padding: .02em 0 .1em; margin-bottom: -.1em; }
.hero-name .ln + .ln { padding-left: clamp(1.5rem, 9vw, 9rem); }
.hero-name .ln > span { display: inline-block; }
/* The five-line staff the name sits on */
.staff { position: absolute; left: 50%; width: 100vw; margin-left: -50vw; top: .2em; height: .62em; pointer-events: none; overflow: visible; }
.staff line { stroke: rgba(236, 228, 208, .3); stroke-width: .55; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin-top: clamp(1.5rem, 4vh, 2.5rem); }
.hero-places { display: flex; align-items: center; gap: .9rem; margin: 0; color: var(--muted); font-size: 1.125rem; }
.hero-places i { display: inline-block; width: 2.5rem; height: 1px; background: var(--line-strong); }
@media (max-width: 56rem) { .hero-photo { width: min(64vw, 22rem); right: 20px; top: calc(var(--header-h) + 1rem); } }
@media (max-width: 40rem) {
  .hero-photo { width: 78vw; }
  .hero-name { font-size: 16.5vw; }
  .hero-name .ln + .ln { padding-left: 0; }
}

/* Section headings */
.home-sec { padding-top: clamp(3.5rem, 9vw, 6rem); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; margin-bottom: clamp(1.5rem, 4vw, 2.25rem); }
.sec-title { margin: 0; font: 500 clamp(2.2rem, 4.6vw, 3.4rem)/1 var(--display); letter-spacing: -.01em; color: var(--heading); }
.sec-title::before { content: ""; display: block; width: 2.6rem; height: 2px; background: var(--accent); margin-bottom: 1rem; }

/* Works performed: a plain row of logos, as before */
.performed { padding-block: clamp(2.5rem, 6vw, 4rem) 0; }
.performed .sec-title { margin-bottom: 1.75rem; }
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.75rem clamp(2rem, 4vw, 3.25rem); }
.logos img { display: block; width: auto; height: auto; max-width: 11rem; max-height: 2.8rem; filter: brightness(0) invert(.92) sepia(.12); opacity: .85; transition: opacity .3s; }
.logos img:hover { opacity: 1; }
.logos li.keep img { filter: none; }
:root[data-theme="light"] .logos img { filter: brightness(0); opacity: .8; }
:root[data-theme="light"] .logos li.keep img { filter: invert(1); }

/* Biography */
.manifesto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1rem 3rem; padding-top: clamp(3.5rem, 9vw, 6rem); }
.manifesto .eyebrow { margin-top: .6rem; align-self: start; }
.manifesto-text { margin: 0; font: 400 clamp(1.6rem, 3vw, 2.5rem)/1.25 var(--display); color: var(--heading); text-wrap: pretty; }
.manifesto-text .em { color: var(--accent); }
.manifesto-foot { margin: 1.75rem 0 0; }
@media (max-width: 48rem) { .manifesto { grid-template-columns: minmax(0, 1fr); } }

/* Selected works */
.covers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 2.25rem 1.75rem; }
.cover-card { display: grid; gap: .8rem; text-decoration: none; align-content: start; }
.cover-card .img { display: block; background: var(--paper); line-height: 0; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), box-shadow .5s; }
.cover-card img { width: 100%; height: auto; display: block; }
.cover-card:hover .img { transform: translateY(-6px); box-shadow: 0 28px 50px -24px rgba(0, 0, 0, .7); }
.cover-card .t { font: 500 1.6rem/1.15 var(--display); color: var(--heading); transition: color .3s; }
.cover-card .m { color: var(--muted); font-size: 1rem; line-height: 1.35; }
.cover-card:hover .t { color: var(--accent); }
@media (max-width: 40rem) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; } .cover-card .t { font-size: 1.3rem; } }

/* Listen */
.players { display: grid; gap: 1rem; }
.player { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem 1.5rem; align-items: center; padding: 1.4rem clamp(1rem, 3vw, 2rem); background: var(--raised); border: 1px solid var(--line); }
.pl-btn { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1px solid var(--accent); background: var(--oxblood); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.pl-btn:hover { background: var(--accent); }
.pl-btn svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.pl-btn .ring { display: none; }
.pl-body { min-width: 0; display: grid; gap: .5rem; }
.pl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 1rem; justify-content: space-between; }
.pl-title { font: 500 clamp(1.45rem, 2.4vw, 1.85rem)/1.1 var(--display); color: var(--heading); text-decoration: none; }
.pl-title:hover { color: var(--accent); }
.pl-tag { display: inline-block; margin-left: .6rem; padding: .15rem .65rem; border-radius: 2rem; background: var(--olive); color: var(--text); font: 400 .875rem/1.4 var(--body); vertical-align: middle; }
.pl-time { color: var(--muted); font-size: 1rem; font-variant-numeric: tabular-nums; }
.pl-wave { position: relative; height: 3rem; cursor: pointer; touch-action: none; }
.pl-wave canvas { width: 100%; height: 100%; display: block; }
.pl-wave:focus-visible { outline-offset: 4px; }

/* Score call to action */
.cta { margin-block: clamp(3.5rem, 9vw, 6rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--raised); border-left: 2px solid var(--accent); }
.cta h2 { margin: 0; font: 500 clamp(1.8rem, 3.6vw, 2.6rem)/1.1 var(--display); color: var(--heading); }
.cta p { margin: .35rem 0 0; color: var(--muted); max-width: 32rem; }

/* Footer */
.site-foot { position: relative; z-index: 1; background: var(--raised); }
.foot-inner { padding-top: clamp(3rem, 7vh, 4.5rem); }
.foot-top { display: grid; gap: .5rem; }
.foot-kick { margin: 0; color: var(--muted); }
.foot-mail { justify-self: start; font: 500 clamp(1.6rem, 4vw, 3rem)/1.15 var(--display); text-decoration: none; overflow-wrap: anywhere; transition: color .3s; }
.foot-mail:hover { color: var(--accent); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(2rem, 5vh, 3rem); padding-block: 1.25rem 1.75rem; border-top: 1px solid var(--line); }
.foot-bottom p { margin: 0; color: var(--muted); font-size: 1rem; }

/* ======================================================================
   INNER PAGES
   ====================================================================== */
.page { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)); padding-bottom: clamp(4rem, 9vw, 7rem); }
.page-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.h-page { margin: 0; font: 500 clamp(3.4rem, 10vw, 8.5rem)/.9 var(--display); letter-spacing: -.025em; color: var(--heading); }
.lead { margin: 1.25rem 0 0; max-width: 40rem; color: var(--muted); font-size: 1.25rem; }
.h-sm { margin: 0 0 1rem; font: 500 clamp(1.8rem, 3vw, 2.3rem)/1.1 var(--display); color: var(--heading); }
.h-sm::before { content: ""; display: block; width: 2.6rem; height: 2px; background: var(--accent); margin-bottom: .9rem; transform-origin: 0 50%; }

/* Works list */
.filters { display: grid; gap: 1.1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line-strong); background: transparent; padding: .6rem 1.1rem; font-size: 1.0625rem; line-height: 1.1; cursor: pointer; border-radius: 2rem; transition: background .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-accent); font-weight: 700; }
.chip small { opacity: .7; font-size: .85em; margin-left: .3rem; }
.selects { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 18rem)); gap: 1rem 1.5rem; }
.field { display: grid; gap: .35rem; min-width: 0; }
.field > span, legend { font-size: 1rem; color: var(--muted); }
.filters .field > span { color: var(--accent); }
select, input[type="text"], input[type="email"], textarea { width: 100%; background: var(--raised); border: 1px solid var(--line-strong); border-radius: 2px; padding: .75rem .85rem; font-size: 1.125rem; transition: border-color .3s, background .3s; }
select:focus, input:focus, textarea:focus { border-color: var(--accent); }
textarea { resize: vertical; line-height: 1.5; }
.count { margin: 0 0 .4rem; color: var(--muted); font-size: 1rem; }
.thead, .wrow { display: grid; grid-template-columns: 4.5rem minmax(0, 1.2fr) minmax(0, 1.6fr) 6.5rem 1.5rem; gap: .4rem 1.5rem; align-items: baseline; }
.thead { padding-block: .5rem; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 1rem; }
.wrow { position: relative; padding-block: 1.35rem; border-bottom: 1px solid var(--line); text-decoration: none; isolation: isolate; }
.wrow::before { content: ""; position: absolute; inset: 0 -1rem; z-index: -1; background: var(--raised); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.wrow:hover::before, .wrow:focus-visible::before { transform: none; }
.wrow .op { color: var(--accent); font-variant-numeric: tabular-nums; }
.wrow .ti { font: 500 clamp(1.6rem, 2.6vw, 2.05rem)/1.12 var(--display); text-wrap: balance; color: var(--heading); transition: transform .45s var(--ease), color .3s; }
.wrow .ti em { display: block; margin-top: .2rem; font: italic 400 1.15rem/1.3 var(--display); color: var(--muted); }
.wrow .in { min-width: 0; color: var(--text); font-size: 1.0625rem; }
.wrow .du { color: var(--muted); font-size: 1.0625rem; }
.wrow .ar { color: var(--accent); justify-self: end; transition: transform .35s var(--ease); }
.wrow:hover .ti { color: var(--accent); transform: translateX(.5rem); }
.wrow:hover .ar { transform: translateX(4px); }
.empty { padding-block: 2rem; }
@media (max-width: 48rem) {
  .thead { display: none; }
  .wrow { grid-template-columns: minmax(0, 1fr) 1.5rem; grid-template-areas: "op ar" "ti ti" "in in" "du du"; gap: .3rem 1rem; }
  .wrow .op { grid-area: op; } .wrow .ar { grid-area: ar; } .wrow .ti { grid-area: ti; } .wrow .in { grid-area: in; } .wrow .du { grid-area: du; }
  .wrow::before { inset: 0 -20px; }
}

/* Piece page */
.back { display: inline-flex; gap: .5rem; margin-bottom: 1.5rem; color: var(--muted); text-decoration: none; padding-block: .3rem; transition: color .3s; }
.back:hover { color: var(--accent); }
.back span { transition: transform .4s var(--ease); }
.back:hover span { transform: translateX(-4px); }
.piece-head { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.piece-head .op { margin: 0 0 .6rem; }
.piece-head h1 { margin: 0; font: 500 clamp(3rem, 9.5vw, 8rem)/.92 var(--display); letter-spacing: -.025em; color: var(--heading); text-wrap: balance; }
.piece-head .sub { margin: 1rem 0 0; font: italic 400 clamp(1.4rem, 2.4vw, 1.85rem)/1.3 var(--display); color: var(--muted); max-width: 44rem; }
.piece-grid { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.piece-side { display: grid; gap: 2rem; min-width: 0; }
.piece-cover { position: relative; background: var(--paper); line-height: 0; overflow: hidden; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .6); }
.piece-cover img { width: 100%; height: auto; display: block; }
.facts { margin: 0; display: grid; gap: 1.15rem; }
.facts > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .3rem; }
.facts dd { margin: 0; font-size: 1.125rem; }
.facts ul, .facts ol { margin: 0; padding-left: 1.2rem; }
.facts ul.bare { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.facts ul.bare.inst li { border: 1px solid var(--line-strong); border-radius: 2rem; padding: .15rem .7rem; font-size: 1rem; }
.facts ul.bare.perf { display: grid; gap: .45rem; }
.piece-main { display: grid; gap: clamp(3rem, 6vw, 4.5rem); min-width: 0; }
.note { display: grid; gap: 1.1rem; max-width: 42rem; }
.note p { margin: 0; }
.note p:first-child { font: 400 clamp(1.45rem, 2.2vw, 1.75rem)/1.4 var(--display); color: var(--heading); }
.credit { margin: 1rem 0 0; color: var(--muted); font-size: 1.0625rem; font-style: italic; }
.mvts { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.mvts li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); align-items: baseline; padding: .85rem 0; border-bottom: 1px solid var(--line); font: 500 clamp(1.3rem, 2vw, 1.6rem)/1.2 var(--display); color: var(--heading); }
.mvts .mn { font: italic 500 1.1rem/1 var(--display); color: var(--accent); }
.perfnotes { margin: 0; padding: 0; list-style: none; display: grid; gap: .9rem; max-width: 42rem; }
.perfnotes li { padding-left: 1.5rem; position: relative; }
.perfnotes li::before { content: ""; position: absolute; left: 0; top: .8em; width: .7rem; height: 1px; background: var(--accent); }
.pages { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.pages button { display: block; width: 100%; padding: 0; border: 0; background: #fff; line-height: 0; cursor: zoom-in; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); transition: transform .5s var(--ease), box-shadow .5s; }
.pages button:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 30px 50px -18px rgba(0, 0, 0, .6); }
.pages img { width: 100%; height: auto; display: block; }
@media (max-width: 40rem) { .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.score-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; margin-top: clamp(4rem, 9vw, 6rem); border-top: 1px solid var(--line-strong); }
.pn a { display: grid; gap: .3rem; padding-block: 1.75rem; text-decoration: none; }
.pn a.next { text-align: right; justify-items: end; }
.pn .pt { font: 500 clamp(1.5rem, 3.4vw, 2.6rem)/1.1 var(--display); color: var(--heading); transition: color .3s, transform .5s var(--ease); }
.pn a.prev:hover .pt { color: var(--accent); transform: translateX(-.5rem); }
.pn a.next:hover .pt { color: var(--accent); transform: translateX(.5rem); }
@media (max-width: 56rem) {
  .piece-grid { grid-template-columns: minmax(0, 1fr); }
  .piece-side { position: static; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 40rem) { .piece-side { grid-template-columns: minmax(0, 1fr); } .piece-cover { max-width: 15rem; } }

/* Score request */
.req { margin-top: clamp(4rem, 9vw, 6rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line-strong); }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.req-intro { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.req-intro p { margin: 0 0 1rem; max-width: 28rem; }
form.request { display: grid; gap: 1.9rem; min-width: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .65rem; }
.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: block; border: 1px solid var(--line-strong); padding: .65rem 1.2rem; font-size: 1.0625rem; line-height: 1.1; border-radius: 2rem; transition: background .3s, border-color .3s; }
.seg input:checked + span { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-accent); font-weight: 700; }
.seg input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 3px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .35rem 1.5rem; }
.picks label { display: flex; align-items: baseline; gap: .6rem; font-size: 1.0625rem; padding-block: .25rem; cursor: pointer; }
.picks input, .partlist input { accent-color: var(--accent); flex: none; }
.mats { display: grid; gap: 1.1rem; }
.mat { padding: 1.1rem 1.25rem 1.25rem; background: var(--raised); border-left: 2px solid var(--accent); }
.mat legend { font: 500 1.45rem/1.2 var(--display); color: var(--text); float: left; width: 100%; margin: 0 0 .8rem; }
.mat > *:not(legend) { clear: both; }
.mat .seg span { padding: .5rem 1rem; font-size: 1rem; }
.partlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .3rem 1.25rem; margin-top: .9rem; }
.partlist label { display: flex; align-items: baseline; gap: .55rem; font-size: 1.0625rem; cursor: pointer; padding-block: .2rem; }
.parttext { margin-top: .9rem; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem 1.5rem; }
.fields .wide { grid-column: 1 / -1; }
.err { margin: 0; color: #f2a5a5; }
:root[data-theme="light"] .err { color: #9b1c1c; }
.out { display: grid; gap: .9rem; padding: 1.25rem; background: var(--forest); border: 1px solid var(--line-strong); }
.out textarea { background: var(--ground); min-height: 15rem; }
.out-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.send-to { margin: 0; }
.addr { user-select: all; overflow-wrap: anywhere; }
@media (max-width: 56rem) { .req-grid { grid-template-columns: minmax(0, 1fr); } .req-intro { position: static; } }

/* About */
.about { display: grid; grid-template-columns: minmax(14rem, .85fr) minmax(0, 1.7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); overflow: hidden; aspect-ratio: 4 / 5; }
.portrait img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; object-position: 50% 24%; display: block; filter: grayscale(1); }
.bio-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.bio { display: grid; gap: 1.3rem; max-width: 42rem; }
.bio p { margin: 0; }
.bio p:first-child { font: 400 clamp(1.55rem, 2.6vw, 2rem)/1.32 var(--display); color: var(--heading); }
.downloads { margin-top: clamp(2.5rem, 6vw, 4rem); }
.dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem 1.5rem; align-items: center; padding-block: 1.1rem; border-bottom: 1px solid var(--line); }
.dl:first-of-type { border-top: 1px solid var(--line); }
.dl .dn { font: 500 1.6rem/1.2 var(--display); color: var(--heading); }
.dl .dm { color: var(--muted); font-size: 1rem; }
.dl .btn { grid-row: 1 / span 2; grid-column: 2; }
@media (max-width: 56rem) { .about { grid-template-columns: minmax(0, 1fr); } .portrait { position: relative; top: 0; max-width: 24rem; } }
@media (max-width: 48rem) { .dl { grid-template-columns: minmax(0, 1fr); } .dl .btn { grid-row: auto; grid-column: auto; justify-self: start; margin-top: .6rem; } }

/* Contact */
.contact-lead { margin: 0 0 2.5rem; max-width: 36rem; font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.35 var(--display); color: var(--heading); }
.contact-lead a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.contact { margin: 0; border-top: 1px solid var(--line); }
.crow { display: grid; grid-template-columns: minmax(6rem, 10rem) minmax(0, 1fr); gap: .5rem 2rem; align-items: center; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.contact dt, .contact dd { margin: 0; }
.contact dt { color: var(--muted); }
.contact dd { font: 500 clamp(1.6rem, 3.6vw, 2.8rem)/1.2 var(--display); overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; }
.copy-btn { font: 500 .875rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; background: none; border: 1px solid var(--line-strong); padding: .55rem .9rem; cursor: pointer; border-radius: 2rem; transition: border-color .3s, color .3s; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 48rem) { .crow { grid-template-columns: minmax(0, 1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 4.5rem 1rem 1.5rem; background: rgba(8, 8, 9, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #ece4d0; }
.lb-fig { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: .75rem; min-height: 0; }
.lb-fig img { max-height: 100%; max-width: 100%; object-fit: contain; background: #fff; box-shadow: 0 40px 80px -20px #000; min-height: 0; }
.lb-fig figcaption { color: #a9b2ab; font-size: 1rem; }
.lb-nav, .lb-close { background: none; border: 1px solid rgba(236, 228, 208, .3); color: inherit; cursor: pointer; border-radius: 2rem; transition: border-color .3s, color .3s; }
.lb-nav { width: 3.2rem; height: 3.2rem; font-size: 1.3rem; }
.lb-nav:hover, .lb-close:hover { border-color: #b2434a; color: #e88a8f; }
.lb-close { position: absolute; top: 1rem; right: 1rem; padding: .55rem 1.1rem; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 40rem) { .lightbox { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; padding-inline: .75rem; } .lb-nav { position: absolute; bottom: 1.25rem; } .lb-prev { left: 1rem; } .lb-next { right: 1rem; } .lb-fig { padding-bottom: 4rem; } }

/* Reveal defaults: hidden only once the motion script has taken over */
.motion [data-reveal] { opacity: 0; }

/* Reduced motion: everything visible, nothing moves on its own */
@media (prefers-reduced-motion: reduce) {
  .theme-toggle .flame, .theme-toggle .smoke { animation: none; }
  .motion [data-reveal] { opacity: 1; }
  * { transition-duration: .01ms !important; }
}

/* Theme switch: the new colours spread from the candle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
