:root {
  --ivory: #f4f0e5;
  --paper: #fbf8ef;
  --ink: #12263a;
  --burgundy: #7d2638;
  --brass: #a8874c;
  --faint: rgba(18, 38, 58, .14);
  --muted: #657078;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); line-height: 1.65; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--burgundy); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--burgundy); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .65rem 1rem; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { min-height: 88vh; padding: clamp(1rem, 3vw, 3rem) max(1rem, calc((100vw - 1240px) / 2)); display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--ink); }
.masthead__rule { display: flex; align-items: center; gap: 1rem; color: var(--burgundy); font: 700 .68rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.masthead__rule::before, .masthead__rule::after { content: ''; height: 1px; background: var(--brass); flex: 1; }
.identity { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: center; gap: clamp(3rem, 9vw, 9rem); padding: 3rem 0; }
.kicker, .eyebrow { color: var(--burgundy); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 8ch; margin-bottom: 1.2rem; font: 400 clamp(4rem, 10vw, 9rem)/.82 var(--serif); letter-spacing: -.065em; }
.role { max-width: 34ch; font: italic 400 clamp(1.2rem, 2.3vw, 1.85rem)/1.35 var(--serif); }
.contact-line { display: flex; flex-wrap: wrap; gap: .7rem 1.7rem; margin-top: 2.4rem; font-size: .82rem; font-weight: 700; }
.portrait-wrap { position: relative; margin: 0; }
.portrait { position: relative; z-index: 1; display: block; width: 100%; max-height: 520px; aspect-ratio: 4/5; object-fit: cover; filter: saturate(.75) contrast(1.04); border: 1px solid var(--ink); }
.portrait-staves { position: absolute; inset: -1.4rem -1.4rem 2rem 2rem; background: repeating-linear-gradient(to bottom, transparent 0 14px, var(--brass) 15px 16px); }
.portrait-wrap figcaption { position: relative; z-index: 2; width: max-content; margin: -1.1rem 0 0 -1rem; padding: .35rem .85rem; background: var(--burgundy); color: white; font: italic .82rem var(--serif); }

.section-shell { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
section { scroll-margin-top: 2rem; }
.section-mark { color: var(--brass); font: italic 2rem/1 var(--serif); }
h2 { font: 400 clamp(2.6rem, 5vw, 4.8rem)/1 var(--serif); letter-spacing: -.045em; }
.overture { display: grid; grid-template-columns: 60px 1.4fr .6fr; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(5rem, 10vw, 9rem); }
.summary { max-width: 760px; font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.55 var(--serif); }
.summary p:first-child::first-letter { float: left; margin: .08em .12em 0 0; color: var(--burgundy); font: 4em/.72 var(--serif); }
.legend { align-self: end; border-top: 4px double var(--ink); border-bottom: 1px solid var(--ink); padding: 1.2rem 0; }
.legend__title { font: italic 1.15rem var(--serif); }
.legend ul { margin: 0; padding: 0; list-style: none; font-size: .75rem; }
.legend li { display: flex; justify-content: space-between; padding: .3rem 0; border-top: 1px solid var(--faint); }
.legend li span { color: var(--burgundy); font-weight: 800; }

.score { padding-block: 5rem; background: var(--ink); color: var(--paper); }
.score__heading { display: grid; grid-template-columns: 60px 1fr; }
.score__heading .section-mark, .score .eyebrow { color: #d2b77d; }
.score__heading p:last-child { color: #c7cdd0; }
.conductor { position: sticky; z-index: 5; top: 0; margin-top: 2rem; padding-block: 1rem; background: var(--ink); border-block: 1px solid rgba(255,255,255,.25); }
.conductor label { display: flex; justify-content: space-between; margin-bottom: .3rem; font-size: .72rem; font-weight: bold; letter-spacing: .12em; text-transform: uppercase; }
.conductor input { width: 100%; accent-color: #d2b77d; cursor: ew-resize; }
.chapters { display: none; gap: .45rem; margin-top: .8rem; }
.chapters button { width: 2.2rem; height: 2.2rem; border: 1px solid #d2b77d; border-radius: 50%; color: var(--paper); background: transparent; font-weight: bold; }
.score-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .5fr); gap: clamp(2rem, 6vw, 6rem); padding-top: 3rem; }
.system { padding: 1rem 0 2.5rem; opacity: .44; transition: opacity .25s ease; }
.system.is-active { opacity: 1; }
.system header { display: flex; gap: 1rem; align-items: baseline; }
.system h3 { margin: 0; font: 400 1.35rem var(--serif); }
.system header p { margin: 0; color: #adb7bd; font-size: .72rem; }
.measure { color: #d2b77d; font: 700 .65rem var(--sans); }
.staff { position: relative; margin-top: 1rem; }
.staff__lane { position: relative; display: flex; align-items: center; height: 22px; border-block: 1px solid rgba(255,255,255,.19); }
.staff__lane + .staff__lane { border-top: 0; }
.staff__lane span { position: absolute; right: calc(100% + .6rem); color: #d2b77d; font-size: .48rem; }
.staff__lane i { width: 100%; height: 1px; background: rgba(255,255,255,.19); }
.staff__lane b { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); transform: rotate(-15deg); }
.staff__lane b:nth-of-type(1) { left: 10%; }
.staff__lane b:nth-of-type(2) { left: 17%; }
.staff__lane b:nth-of-type(3) { left: 24%; }
.staff__lane b:nth-of-type(4) { left: 31%; }
.staff__lane b:nth-of-type(5) { left: 38%; }
.staff__lane b:nth-of-type(6) { left: 45%; }
.staff__lane b:nth-of-type(7) { left: 52%; }
.staff__lane b:nth-of-type(8) { left: 59%; }
.staff__lane b:nth-of-type(9) { left: 66%; }
.staff__lane b:nth-of-type(10) { left: 73%; }
.staff__lane b:nth-of-type(11) { left: 80%; }
.staff__lane b:nth-of-type(n+12) { left: 87%; }
.staff__lane:nth-child(2) b { transform: translateX(10px) rotate(-15deg); }
.staff__lane:nth-child(3) b { transform: translateX(20px) rotate(-15deg); }
.staff__lane:nth-child(4) b { transform: translateX(30px) rotate(-15deg); }
.barline { position: absolute; top: 0; right: 0; width: 3px; height: 100%; background: #d2b77d; }
.annotation { position: sticky; top: 7.5rem; align-self: start; min-height: 320px; padding: 2rem; color: var(--ink); background: #d2b77d; box-shadow: 12px 12px 0 var(--burgundy); }
.annotation__number { font: italic .85rem var(--serif); }
.annotation h3 { margin: 2rem 0 .3rem; font: 400 2.2rem/1 var(--serif); }
.annotation__meta { padding-bottom: 1rem; border-bottom: 1px solid var(--ink); font-size: .75rem; font-weight: bold; }
.annotation__note { font: 1rem/1.6 var(--serif); }

.movements { display: grid; grid-template-columns: 60px 1fr; padding-block: clamp(5rem, 10vw, 9rem); }
.movement-list { margin-top: 4rem; border-top: 1px solid var(--ink); }
.movement { display: grid; grid-template-columns: minmax(70px, .2fr) 1.8fr; gap: 2rem; padding: 3rem 0; border-bottom: 1px solid var(--ink); }
.movement__index { color: var(--burgundy); font: italic clamp(2rem, 5vw, 4rem) var(--serif); }
.movement__body { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); }
.movement header > p { margin-bottom: .4rem; color: var(--muted); font-size: .7rem; font-weight: bold; letter-spacing: .1em; }
.movement h3 { margin-bottom: .4rem; font: 400 clamp(1.45rem, 3vw, 2.2rem)/1.1 var(--serif); }
.movement header a { color: var(--burgundy); font-size: .85rem; font-weight: bold; }
.performance-notes { margin: 0; padding: 0; list-style: none; }
.performance-notes li { position: relative; padding: 0 0 1rem 1.6rem; }
.performance-notes li::before { content: '𝄐'; position: absolute; left: 0; color: var(--brass); }
.tech { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 1rem 0 0; border-top: 1px dotted var(--brass); list-style: none; }
.tech li { padding: .28rem .65rem; border: 1px solid var(--faint); font-size: .67rem; font-weight: bold; letter-spacing: .04em; }

.repertoire { display: grid; grid-template-columns: 60px 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); padding-block: 6rem; border-block: 1px solid var(--ink); }
.skill-score { display: grid; grid-template-columns: repeat(2, 1fr); margin: 3rem 0 0; padding: 0; list-style: none; border-top: 4px double var(--ink); }
.skill-score li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--faint); font-family: var(--serif); }
.skill-score span { color: var(--burgundy); font: .62rem var(--sans); }
.credentials { align-self: end; }
.credentials > section { padding: 1.4rem 0; border-top: 1px solid var(--brass); }
.credentials h3 { color: var(--burgundy); font: 700 .7rem var(--sans); letter-spacing: .15em; text-transform: uppercase; }
.credentials h4 { margin-bottom: .2rem; font: 400 1.15rem/1.25 var(--serif); }
.credentials article p { color: var(--muted); font-size: .78rem; }

.coda { display: grid; grid-template-columns: 60px 1fr; padding-block: clamp(5rem, 10vw, 9rem); }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 3rem; border-top: 1px solid var(--ink); }
.quotes figure { margin: 0; padding: 2rem; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.quotes blockquote { margin: 0 0 2rem; font: italic clamp(1rem, 1.6vw, 1.25rem)/1.6 var(--serif); }
.quotes figcaption { display: flex; flex-direction: column; font-size: .72rem; }
.quotes figcaption span { color: var(--muted); }
footer { display: flex; justify-content: space-between; padding: 2rem max(1rem, calc((100vw - 1240px) / 2)); color: var(--paper); background: var(--burgundy); font-size: .75rem; font-weight: bold; letter-spacing: .08em; text-transform: uppercase; }
footer p { margin: 0; }

@media (max-width: 760px) {
  .masthead { min-height: auto; }
  .identity { grid-template-columns: 1fr; gap: 2rem; }
  .identity__copy { padding-top: 2rem; }
  .portrait-wrap { width: min(82%, 380px); margin-left: auto; }
  .overture, .repertoire { grid-template-columns: 36px 1fr; }
  .legend, .credentials { grid-column: 2; }
  .score__heading, .movements, .coda { grid-template-columns: 36px 1fr; }
  .conductor input { display: none; }
  .chapters { display: flex; flex-wrap: wrap; }
  .score-layout { grid-template-columns: 1fr; }
  .annotation { position: relative; top: auto; order: -1; min-height: auto; }
  .movement { grid-template-columns: 48px 1fr; gap: .5rem; }
  .movement__body { grid-template-columns: 1fr; }
  .tech { grid-column: auto; }
  .skill-score, .quotes { grid-template-columns: 1fr; }
  .quotes figure { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
