/* =========================================================================
   Andreas Garcia — pianist & composer
   Palette: the instrument itself — ebony, aged ivory, antique brass.
   Type: Fraunces (display + short body) / IBM Plex Mono (the liner-notes voice)
   ========================================================================= */

:root {
  /* --- colour: warm monochrome + one brass --- */
  --ink:        #131210;   /* page — warm near-black / ebony            */
  --ink-raise:  #1a1714;   /* raised surfaces                          */
  --ink-2:      #211d18;   /* cards, inputs                            */
  --line:       #2e2a23;   /* hairlines                                */
  --line-soft:  #241f1a;
  --ash:        #9a9085;   /* secondary text (readable)                */
  --ash-dim:    #6e665c;   /* tertiary / decorative                    */
  --bone:       #e9e2d4;   /* primary text — aged ivory                */
  --bone-soft:  #cfc7b8;
  --brass:      #c2a36b;   /* the one accent — antique brass           */
  --brass-soft: #d8bd8c;
  --brass-tint: rgba(194,163,107,.14);
  --alert:      #d28f6f;   /* functional only: form error text         */

  /* --- type --- */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-mono:  clamp(.74rem, .70rem + .18vw, .82rem);
  --t-body:  clamp(1rem, .96rem + .22vw, 1.14rem);
  --t-lead:  clamp(1.22rem, 1.08rem + .6vw, 1.6rem);
  --t-h3:    clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem);
  --t-h2:    clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --t-h1:    clamp(2.6rem, 1.7rem + 4vw, 4.6rem);
  --t-hero:  clamp(3.1rem, 1.4rem + 8.4vw, 8.5rem);

  /* --- space + layout --- */
  --sp-1: .5rem;  --sp-2: .85rem; --sp-3: 1.25rem; --sp-4: 2rem;
  --sp-5: 3rem;   --sp-6: 4.5rem; --sp-7: 7rem;
  --section: clamp(4rem, 3rem + 6vw, 8rem);
  --wrap: 1180px;
  --wrap-narrow: 880px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --radius: 3px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================== reset / base =============================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "SOFT" 0, "WONK" 0;
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--bone);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* warm vignette so the page reads like a dim room, darker at the edges */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2;
  background: radial-gradient(120% 90% at 50% 12%, transparent 55%, rgba(0,0,0,.34) 100%);
}

/* film grain — ties to the grainy photo; static, whisper quiet */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 3;
  opacity: .045;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, iframe, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--brass); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--sp-3); top: -3rem;
  background: var(--brass); color: var(--ink);
  font-family: var(--mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: .08em;
  padding: .55rem .9rem; z-index: 60;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--sp-3); }

/* ============================ layout utils ============================= */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.divider { border: 0; border-top: 1px solid var(--line); }

/* ============================ typography =============================== */
.kicker {
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--brass);
  display: inline-flex; align-items: center; gap: .7em;
}
.kicker::before {
  content: ""; width: 1.6rem; height: 1px;
  background: currentColor; opacity: .7;
}
.kicker--plain::before { display: none; }

.display, h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
  font-weight: 380;
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: var(--bone);
  text-wrap: balance;
}
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 420; line-height: 1.1; }
em, .italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 4; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.45;
  color: var(--bone-soft);
  font-weight: 360;
  font-variation-settings: "opsz" 72;
  max-width: 34ch;
}
.prose { max-width: 60ch; color: var(--bone-soft); }
.prose p + p { margin-top: var(--sp-3); }
.muted { color: var(--ash); }
.meta {
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ash);
  line-height: 1.7;
}
.meta strong { color: var(--bone); font-weight: 500; }

/* link with brass underline that draws in on hover */
.tlink {
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--bone);
  display: inline-flex; align-items: center; gap: .55em;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease), color .25s var(--ease);
}
.tlink:hover, .tlink:focus-visible { color: var(--brass-soft); background-size: 100% 1px; }
.tlink .arr { transition: transform .3s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* ============================== buttons =============================== */
.btn {
  font-family: var(--mono);
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .95em 1.5em;
  border: 1px solid var(--brass);
  color: var(--brass-soft);
  background: transparent;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--bone); background: transparent; color: var(--bone); }

/* =============================== header =============================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(19, 18, 16, 0.9); /* fallback where color-mix isn't supported */
  background: color-mix(in srgb, var(--ink) 50%, transparent);
  backdrop-filter: blur(10px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: 1.05rem;
}
.brand {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-size: 1.32rem; font-weight: 460; letter-spacing: -.01em;
  color: var(--bone); white-space: nowrap;
}
.brand .dot { color: var(--brass); }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.2rem); list-style: none; }
.nav-links a {
  font-family: var(--mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ash); position: relative; padding-block: .3rem;
  transition: color .25s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a[aria-current="page"] { color: var(--bone); }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brass);
}
.nav-toggle { display: none; }

/* =============================== hero ================================= */
.hero { position: relative; padding-top: clamp(2.5rem, 5vw, 5rem); padding-bottom: clamp(2rem, 4vw, 4.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.hero-intro { position: relative; z-index: 2; }
.hero-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 0;
  font-size: var(--t-hero);
  font-weight: 360; line-height: .92; letter-spacing: -.03em;
  color: var(--bone); margin-block: .35em .1em;
}
.hero-name .row2 { display: block; font-style: italic; color: var(--brass-soft); font-variation-settings: "opsz" 144, "SOFT" 6; }
.hero-tag {
  font-size: var(--t-lead); color: var(--bone-soft);
  font-variation-settings: "opsz" 60; line-height: 1.4; max-width: 30ch;
  margin-top: var(--sp-3);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }

.hero-media { position: relative; }
.frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(194,163,107,.06);
}
.frame::after { /* warm duotone wash + edge vignette to seat the photo in the room */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(19,18,16,.05), rgba(19,18,16,.5)),
    radial-gradient(120% 100% at 70% 40%, transparent 50%, rgba(19,18,16,.55) 100%);
  mix-blend-mode: multiply;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  aspect-ratio: 1 / 1;
}
.frame--portrait img { aspect-ratio: 4 / 5; }
.frame-cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: .14em; color: var(--bone);
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  backdrop-filter: blur(4px);
  padding: .6rem .9rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* ============================= statement ============================= */
/* only the direct-child quote gets display sizing — keep it off the nested
   prose/meta so element selectors don't clobber the component classes */
.statement-grid > p {
  font-family: var(--serif);
  font-variation-settings: "opsz" 110;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.6rem);
  line-height: 1.28; font-weight: 350; letter-spacing: -.01em;
  color: var(--bone); max-width: 24ch;
}
.statement-grid > p .x { color: var(--brass-soft); font-style: italic; font-variation-settings: "opsz" 110, "SOFT" 6; }
.statement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,5rem); align-items: center; }
.statement-aside .prose { color: var(--bone-soft); }
/* this photo stays in colour (overrides the frame's grayscale duotone) — only
   a soft vignette to seat it against the dark page */
.statement-figure img { filter: contrast(1.04) brightness(.98); }
.statement-figure::after {
  background: radial-gradient(120% 100% at 50% 38%, transparent 62%, rgba(19,18,16,.35) 100%);
  mix-blend-mode: normal;
}

/* jazz page-head — intro text beside the band photo */
.head-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.band-figure img { aspect-ratio: 3 / 2; filter: contrast(1.04) brightness(.98); }
.band-figure::after {
  background: radial-gradient(120% 100% at 50% 42%, transparent 62%, rgba(19,18,16,.38) 100%);
  mix-blend-mode: normal;
}

/* =================== signature: the three-voices triptych ============= */
.section-head { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.section-head h2 { max-width: 16ch; }
.section-head .prose { margin-top: .2rem; }

.triptych {
  display: flex; gap: 6px;
  min-height: clamp(360px, 46vw, 540px);
}
.voice {
  position: relative; overflow: hidden;
  flex: 1 1 0; min-width: 0;
  border: 1px solid var(--line);
  background: var(--ink-raise);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.25rem, 2vw, 2rem);
  text-decoration: none; color: var(--bone);
  transition: flex-grow .55s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease);
}
.voice + .voice { }
.voice:hover, .voice:focus-visible, .voice:focus-within { flex-grow: 2.1; border-color: var(--brass); background: var(--ink-2); }
.voice:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
/* the photo behind each panel — toned to the site's monochrome so the three
   cohere instead of clashing; darkest at the foot where the labels sit, and
   it blooms brighter when the panel is the active one */
.voice__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 35%;
  filter: grayscale(1) contrast(1.04) brightness(.6);
  transition: filter .6s var(--ease), transform 1.2s var(--ease);
  z-index: 0;
}
.voice::before { /* legibility scrim — light at the top so the image reads */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(19,18,16,.22) 0%, rgba(19,18,16,.12) 36%,
    rgba(19,18,16,.74) 76%, rgba(19,18,16,.95) 100%);
}
.voice:hover .voice__img, .voice:focus-within .voice__img {
  filter: grayscale(0) contrast(1.02) brightness(.96); transform: scale(1.045);
}
/* the pianist sits at the far left — anchor the crop there so he's always in
   frame at rest; the panel widens on hover and reveals the rest of the trio */
.voice--jazz .voice__img { object-position: 0% 30%; }
.voice--film .voice__img { object-position: 50% 50%; }
/* the score reads best as a negative — pale notation on an ink ground */
.voice--classical .voice__img {
  filter: invert(1) grayscale(1) contrast(1.04) brightness(.74); object-position: 50% 42%;
}
/* on hover the score "develops" from negative back to the real page */
.voice--classical:hover .voice__img, .voice--classical:focus-within .voice__img {
  filter: invert(0) grayscale(0) contrast(1) brightness(.98); transform: scale(1.045);
}
.voice__no {
  font-family: var(--mono); font-size: var(--t-mono);
  letter-spacing: .14em; color: var(--brass); position: relative; z-index: 2;
}
.voice__name {
  position: relative; z-index: 2;
  font-family: var(--serif); font-variation-settings: "opsz" 144;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); font-weight: 380; line-height: 1;
  letter-spacing: -.02em; margin-top: var(--sp-2);
}
/* Per-panel description, revealed on hover/focus. Currently switched OFF —
   delete the single `display: none` line below to bring it back (hover reveal
   on desktop; always shown on mobile via the rule in the mobile media query). */
.voice__desc {
  display: none;
  position: relative; z-index: 2;
  color: var(--ash); max-width: 32ch; margin-top: var(--sp-2);
  font-size: var(--t-body);
  opacity: 0; max-height: 0; transform: translateY(6px);
  transition: opacity .45s var(--ease), max-height .55s var(--ease), transform .45s var(--ease);
}
.voice:hover .voice__desc, .voice:focus-within .voice__desc { opacity: 1; max-height: 7rem; transform: none; }
.voice__cue {
  position: relative; z-index: 2; margin-top: var(--sp-3);
  font-family: var(--mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: .14em; color: var(--brass-soft);
  display: inline-flex; align-items: center; gap: .5em;
}
.voice__cue .arr { transition: transform .3s var(--ease); }
.voice:hover .voice__cue .arr, .voice:focus-within .voice__cue .arr { transform: translateX(4px); }

/* ========================= records / albums ========================== */
.record {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--line);
}
.record:last-child { border-bottom: 1px solid var(--line); }
.record-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2) var(--sp-4); }
.record-title { font-size: var(--t-h3); font-weight: 420; }
.record-title .x { font-style: italic; color: var(--brass-soft); font-variation-settings: "opsz" 144, "SOFT" 6; }
.record-meta { margin-left: auto; text-align: right; }
.record-body { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
.record-note { color: var(--ash); max-width: 46ch; }

.embed { position: relative; background: var(--ink-2); border: 1px solid var(--line); }
.embed iframe { width: 100%; border: 0; display: block; }

/* featured release — release notes beside a full-height album player */
.feature { display: grid; grid-template-columns: 1fr 440px; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.feature-player { width: 100%; }
/* transparent frame: the player sizes the cover to its width, so any leftover
   iframe height (more visible on narrow screens) blends into the page */
.feature-player .embed { background: transparent; border: 0; }

/* placeholder, on-brand media players for classical & film */
.placeholder-note {
  font-style: italic; color: var(--ash); font-variation-settings: "opsz" 40;
  display: flex; align-items: center; gap: .7em;
}
.placeholder-note::before { content: ""; width: 1.4rem; height: 1px; background: var(--brass); opacity: .8; }

.player {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3); background: var(--ink-2);
  border: 1px solid var(--line);
}
.player__btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--brass); background: transparent; color: var(--brass-soft);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.player__btn:hover, .player__btn:focus-visible { background: var(--brass); color: var(--ink); }
.player__btn svg { width: 14px; height: 14px; }
.player__main { flex: 1 1 auto; min-width: 0; }
.player__title { font-family: var(--serif); font-variation-settings: "opsz" 90; font-size: 1.15rem; color: var(--bone); }
.player__wave { width: 100%; height: 30px; margin-top: .35rem; color: var(--ash-dim); }
.player__time { font-family: var(--mono); font-size: var(--t-mono); color: var(--ash); letter-spacing: .1em; flex: none; }

.reel {
  position: relative; aspect-ratio: 16 / 9;
  background: var(--ink-2); border: 1px solid var(--line);
  overflow: hidden; display: grid; place-items: center;
}
.reel__poster { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.reel__play {
  position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--brass); background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--brass-soft); display: grid; place-items: center; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.reel__play:hover, .reel__play:focus-visible { background: var(--brass); color: var(--ink); transform: scale(1.06); }
.reel__cap {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .12em;
  color: var(--bone); background: color-mix(in srgb, var(--ink) 70%, transparent);
  padding: .5rem .8rem; border-top: 1px solid var(--line); border-right: 1px solid var(--line);
}

.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
.work { display: flex; flex-direction: column; gap: var(--sp-3); }
.work-cover { aspect-ratio: 1 / 1; border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.work-cover svg { width: 100%; height: 100%; }

/* ============== real media: image-backed audio player + video ========= */
.piece-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-7); }
.piece { display: flex; flex-direction: column; gap: var(--sp-3); }
.piece-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-1) var(--sp-3); }
.piece-cap h3 { font-size: var(--t-h3); }
.piece-cap .x { font-style: italic; color: var(--brass-soft); font-variation-settings: "opsz" 144, "SOFT" 6; }
.piece-cap .meta { margin-left: auto; }

/* the audio plays "over the image" — same dark + brass language as the
   Bandcamp player: art forward, a play control, a seek bar and times */
.player2__stage {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--ink-2);
  aspect-ratio: 1 / 1;
}
.player2--wide .player2__stage { aspect-ratio: 16 / 9; }
.player2__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s var(--ease);
}
.player2__img.is-on { opacity: 1; }

/* hover overlay: programme note (left) + performance credits (right) */
.player2__info {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; align-items: center; gap: var(--sp-5);
  padding: clamp(1.5rem, 3.2vw, 2.75rem); padding-bottom: 4.75rem;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  opacity: 0; transition: opacity .45s var(--ease);
}
.player2__desc {
  max-width: 40%; color: var(--bone);
  font-family: var(--serif); font-variation-settings: "opsz" 40;
  font-size: clamp(.95rem, .88rem + .35vw, 1.18rem); line-height: 1.55;
}
.player2__credits {
  max-width: 52%; margin-left: auto; text-align: right;
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .03em;
  line-height: 1.9; color: var(--bone-soft);
}
.player2__credits p + p { margin-top: 1.3em; }
.player2__credits strong { color: var(--brass-soft); font-weight: 500; letter-spacing: .08em; }
/* the wide (two-movement) player is shorter — denser note, more width for it */
.player2--wide .player2__info { align-items: flex-start; padding: clamp(1rem, 2.2vw, 1.6rem) clamp(1.25rem, 3vw, 2.25rem) 3.5rem; }
.player2--wide .player2__desc { max-width: 60%; font-size: clamp(.68rem, .64rem + .22vw, .8rem); line-height: 1.45; }
.player2--wide .player2__credits { max-width: 32%; }
/* reveal on hover only (desktop); the bottom bar keeps playback control */
@media (hover: hover) {
  .player2--info:hover .player2__info { opacity: 1; }
  .player2--info:hover .player2__big { opacity: 0; pointer-events: none; }
}

.player2__big {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: clamp(58px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--bone);
  background: color-mix(in srgb, var(--ink) 50%, transparent);
  border: 1px solid color-mix(in srgb, var(--brass) 78%, transparent);
  backdrop-filter: blur(3px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease);
}
.player2__big:hover, .player2__big:focus-visible { background: var(--brass); color: var(--ink); border-color: var(--brass); }
.player2__big svg { width: 36%; height: 36%; }
.player2.is-playing .player2__big { opacity: 0; transform: translate(-50%, -50%) scale(.8); pointer-events: none; }

.player2__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-3) var(--sp-3);
  /* ramp to near-solid ink at the foot so the controls stay legible over
     light artwork (e.g. the Upstairs Forest drawing) as well as dark */
  background: linear-gradient(180deg, transparent,
    color-mix(in srgb, var(--ink) 55%, transparent) 38%,
    color-mix(in srgb, var(--ink) 94%, transparent));
}
.player2__mini {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--brass-soft);
  background: transparent; border: 1px solid color-mix(in srgb, var(--brass) 55%, transparent);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.player2__mini:hover, .player2__mini:focus-visible { background: var(--brass); color: var(--ink); }
.player2__mini svg { width: 13px; height: 13px; }
.player2__t { flex: none; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--bone); text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.player2__seek { flex: 1 1 auto; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.player2__track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--bone) 22%, transparent); }
.player2__fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; border-radius: 2px; background: var(--brass); }
.player2__fill::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--brass-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent);
}
/* movement markers on the combined timeline — click to jump to that movement's
   start; hover to read its title */
.player2__mark {
  position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
  width: 16px; height: 20px; display: grid; place-items: center;
  cursor: pointer; pointer-events: auto; z-index: 3;
}
.player2__mark::before {
  content: ""; width: 2px; height: 13px; border-radius: 1px; background: var(--bone);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 60%, transparent);
  transition: background-color .2s var(--ease), height .2s var(--ease);
}
.player2__mark:hover::before, .player2__mark:focus-visible::before { background: var(--brass-soft); height: 16px; }
.player2__tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; pointer-events: none;
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .06em; color: var(--bone);
  background: color-mix(in srgb, var(--ink) 92%, transparent); border: 1px solid var(--line);
  padding: .45em .65em; border-radius: 2px; box-shadow: 0 8px 22px -10px rgba(0,0,0,.85);
  opacity: 0; transition: opacity .2s var(--ease); z-index: 4;
}
.player2__mark--start .player2__tip { left: 0; transform: none; }
.player2__mark:hover .player2__tip, .player2__mark:focus-visible .player2__tip { opacity: 1; }
.player2__seek:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 3px; }
/* play / pause icon swap, driven by the .is-playing class on the player */
.player2 .i-pause { display: none; }
.player2.is-playing .i-play { display: none; }
.player2.is-playing .i-pause { display: block; }

/* Aspect ratio via the padding-ratio hack with an absolutely-positioned video.
   The `aspect-ratio` property let Safari rescale these boxes during the elastic
   overscroll at the page bottom; a video anchored to a padding-sized box is not
   affected by that. */
.videoframe { position: relative; border: 1px solid var(--line); background: #000; overflow: hidden; }
.videoframe::before { content: ""; display: block; padding-top: 56.25%; } /* 16:9 */
.videoframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

/* jazz: two records side by side, the live clips in a gallery underneath */
.records-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start; border-top: 1px solid var(--line); padding-top: var(--sp-5);
}
.records-grid > article { display: flex; flex-direction: column; gap: var(--sp-4); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.clip { display: flex; flex-direction: column; gap: .85rem; }
.clip__cap { display: flex; flex-direction: column; gap: .3rem; }
.clip__title { font-family: var(--serif); font-variation-settings: "opsz" 80; font-size: 1.15rem; font-style: italic; color: var(--bone-soft); line-height: 1.2; }
/* title on the left, composer credit right-aligned on the same line */
.clip__line { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.clip__line .clip__title { min-width: 0; }
.clip__by { flex: none; font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ash); white-space: nowrap; }
.clip__meta { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }

/* =============================== contact ============================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.contact-aside .prose { color: var(--ash); }
.contact-direct { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }

.form { display: grid; gap: var(--sp-3); }
.field { display: grid; gap: .5rem; }
.field--row { grid-template-columns: 1fr 1fr; gap: var(--sp-3); display: grid; align-items: start; }
.field label, .label {
  font-family: var(--mono); font-size: var(--t-mono);
  text-transform: uppercase; letter-spacing: .14em; color: var(--ash);
}
.input, .select, .textarea {
  font-family: var(--serif); font-variation-settings: "opsz" 40; font-size: var(--t-body);
  color: var(--bone); background: var(--ink-2);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; width: 100%;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.textarea { resize: vertical; min-height: 8rem; line-height: 1.6; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%239a9085' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem;
}
.input::placeholder, .textarea::placeholder { color: var(--ash-dim); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-tint);
}
.form-foot { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-1); }
.form-msg { font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .04em; }
.form-msg[data-state="ok"] { color: var(--brass-soft); }
.form-msg[data-state="err"] { color: var(--alert); }
.field-err { color: var(--alert); font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .04em; min-height: 1em; }

/* =============================== footer ============================= */
.site-footer { border-top: 1px solid var(--line); padding-block: var(--sp-6) var(--sp-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-5); }
.footer-brand .brand { font-size: 1.6rem; }
.footer-blurb { color: var(--ash); max-width: 30ch; margin-top: var(--sp-2); }
.footer-col h4 {
  font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase;
  letter-spacing: .16em; color: var(--ash-dim); font-weight: 400; margin-bottom: var(--sp-3);
}
.footer-col ul { list-style: none; display: grid; gap: .7rem; }
.footer-col a { color: var(--bone-soft); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--brass-soft); }
.footer-base {
  margin-top: var(--sp-6); padding-top: var(--sp-3); border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); justify-content: space-between;
  font-family: var(--mono); font-size: var(--t-mono); letter-spacing: .08em; color: var(--ash-dim);
  text-transform: uppercase;

  .footer-base-blurb {
    display: none;
  }
}

/* ============================ page header ============================ */
.page-head { padding-top: clamp(3rem, 6vw, 6rem); padding-bottom: var(--sp-5); }
.page-head h1 { font-size: var(--t-h1); margin-top: var(--sp-3); }
.page-head .lead { max-width: 46ch; margin-top: var(--sp-3); }

/* in-page section anchors offset for sticky header */
.anchor { scroll-margin-top: 6rem; }

.subnav { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); margin-top: var(--sp-4); }
.subnav a {
  font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .14em;
  color: var(--ash); border: 1px solid var(--line); padding: .5rem .9rem; border-radius: 100px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.subnav a:hover { color: var(--brass-soft); border-color: var(--brass); }

/* ============================== reveal =============================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* page-load entrance for the hero */
.load-up { opacity: 0; transform: translateY(20px); animation: loadUp .9s var(--ease) forwards; }
.load-up.d1 { animation-delay: .08s; }
.load-up.d2 { animation-delay: .18s; }
.load-up.d3 { animation-delay: .28s; }
.load-fade { opacity: 0; animation: loadFade 1.2s var(--ease) .15s forwards; }
@keyframes loadUp { to { opacity: 1; transform: none; } }
@keyframes loadFade { to { opacity: 1; } }

/* ============================ responsive ============================= */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-media { order: -1; max-width: 460px; }
  .statement-grid, .contact-grid { grid-template-columns: 1fr; }
  .statement p { max-width: none; }
  .feature { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature-player { max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5em;
    background: var(--ink); border: 1px solid var(--line); color: var(--bone);
    font-family: var(--mono); font-size: var(--t-mono); text-transform: uppercase; letter-spacing: .12em;
    padding: .5rem .8rem; cursor: pointer;
    position: relative; z-index: 70; /* keep the toggle above the open drawer */
  }
  .nav-links {
    position: fixed; top: 0; right: 0; left: auto;
    height: 100vh; height: 100dvh; width: min(78vw, 320px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--sp-4);
    background: var(--ink-raise); border-left: 1px solid var(--line);
    padding: var(--gutter); transform: translateX(100%);
    transition: transform .4s var(--ease); z-index: 50;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.1rem; color: var(--bone); }
  .nav-links a[aria-current="page"]::after { display: none; }
  .triptych { flex-direction: column; min-height: 0; }
  .voice { flex: none; min-height: 220px; justify-content: flex-end; padding: var(--sp-4); }
  .voice:hover, .voice:focus-within { flex-grow: 0; }
  .voice__name { margin-top: var(--sp-1); }
  /* mobile shows the description without a hover — active once the
     `display: none` in the base .voice__desc rule is removed */
  .voice__desc { opacity: 1; max-height: none; transform: none; }
  /* no hover on touch — let the photos sit a little brighter at rest */
  .voice__img { filter: grayscale(1) contrast(1.04) brightness(.72); }
  .voice--classical .voice__img { filter: invert(1) grayscale(1) contrast(1.05) brightness(.82); }
  .work-grid { grid-template-columns: 1fr; }
  .piece-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .head-split { grid-template-columns: 1fr; }
  .records-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .record-meta { margin-left: 0; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* honour reduced-motion: stillness over spectacle */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .load-up, .load-fade { opacity: 1; transform: none; animation: none; }
  .voice__desc { opacity: 1; max-height: 7rem; transform: none; }
}
