@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400..800&display=swap');

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --panel: #fff;
  --text: #000;
  --muted: var(--text);
  --gold: #e0c378;
  --gold-ink: #70591d;
  --line: #cdbd91;
  --primary: #101b30;
  --primary-text: #fff;
  --primary-hover: #263b5f;
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --site-font: 'DM Sans', system-ui, sans-serif;
  font: 1rem/1.6 var(--site-font);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button, .account {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  position: relative; isolation: isolate; overflow: hidden;
  padding: .6rem 1.05rem; border: 2px solid var(--line); border-radius: .7rem;
  background: var(--panel); color: var(--text); text-decoration: none; cursor: pointer; font-weight: 600;
  box-shadow: 0 1px 2px #101b3014;
  transition: transform 230ms var(--motion-ease), box-shadow 230ms var(--motion-ease), background-color 200ms ease, border-color 200ms ease;
}
:is(button, .button, .account)::before,
:is(button, .button, .account)::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
}
:is(button, .button, .account)::before {
  width: 84%; height: 17px; right: -3%; top: calc(50% - 8px);
  background: repeating-linear-gradient(to bottom, currentColor 0 1px, transparent 1px 4px);
  mask-image: linear-gradient(90deg, transparent, #000 70%, #000);
  transform: rotate(-10deg);
  opacity: .09;
  transition: opacity 220ms ease;
}
:is(button, .button, .account)::after {
  inset: -10% auto -10% 0; width: 55%;
  background: linear-gradient(100deg, transparent 12%, #fff6 49%, transparent 88%);
  transform: translateX(-125%) skewX(-15deg);
}
button:hover:enabled, .button:hover, .account:hover { border-color: var(--gold-ink); }
button:disabled, button:disabled:hover { cursor: default; opacity: .48; }
:is(button:enabled, .button, .account):active { transform: scale(.97); }
:focus-visible { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.primary:hover, button.primary:hover:enabled { background: var(--primary-hover); }
.secondary { background: transparent; }
.shell { max-width: 1260px; width: min(91%, 1260px); margin-inline: auto; }
.site-header { border-bottom: 2px solid var(--line); background: var(--panel); }
.navigation, .footer { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; padding-block: 1.15rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.22rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; white-space: nowrap; }
.wordmark img { width: clamp(3.3rem, 5.5vw, 4.4rem); height: auto; object-fit: contain; }
.wordmark em, .eyebrow { color: var(--gold-ink); font-style: normal; }
.navigation nav { display: flex; gap: clamp(.85rem, 2.4vw, 2.1rem); flex-wrap: wrap; }
.navigation nav a { position: relative; text-decoration: none; color: var(--muted); font-weight: 600; transition: color 180ms ease; }
.navigation nav a::after {
  content: ''; position: absolute; inset: auto 0 -.3rem; height: 2px;
  background: var(--gold-ink); transform: scaleX(0); transform-origin: left;
  transition: transform 230ms var(--motion-ease);
}
.navigation nav a:is(:hover, :focus-visible, [aria-current])::after { transform: scaleX(1); }
.navigation nav a:hover, .navigation nav a[aria-current] { color: var(--gold-ink); }
.nav-toggle { display: none; flex: 0 0 44px; width: 44px; padding: 0; }
.nav-toggle span { display: block; width: 18px; height: 12px; border-block: 2px solid currentColor; position: relative; }
.nav-toggle span::after { content: ''; position: absolute; inset: 3px 0 auto; border-top: 2px solid currentColor; }
.account { white-space: nowrap; }
main { flex: 1 0 auto; min-width: 0; }
h1, h2, h3 { font-weight: 750; letter-spacing: -.04em; line-height: 1.12; margin: 0 0 .6em; }
h1 { font-size: clamp(2.65rem, 6.4vw, 6.5rem); letter-spacing: -.055em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.45rem; }
p { color: var(--muted); margin: 0 0 1.15rem; }
.eyebrow { font-size: .9rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; }
.hero {
  --text: #fff;
  --muted: var(--text);
  --gold-ink: var(--gold);
  --primary: var(--gold);
  --primary-text: #101b30;
  --primary-hover: #f2dc9e;
  position: relative; isolation: isolate; overflow: hidden; color: var(--text); background: #101b30; border-bottom: 2px solid var(--line);
}
.hero-grid { display: grid; align-items: center; min-height: clamp(520px, 42vw, 740px); padding-block: 4rem 5rem; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 40% top; pointer-events: none; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #101b3018 20%, #101b3075 48%, #101b30ed 78%); }
.hero-copy { width: min(100%, 34rem); justify-self: end; }
.hero h1 { margin-bottom: .28em; }
.hero h1 em { display: block; color: var(--gold); font-style: normal; }
.intro { max-width: 37ch; font-size: 1.14rem; }
.actions { display: flex; gap: .65rem; flex-wrap: wrap; align-items: center; }
.player { position: relative; margin: 0; min-width: 0; max-width: 100%; }
.accordion-strip { --key-tile: 144px; height: clamp(38px, 5vw, 70px); overflow: hidden; background: #101b30; border-bottom: 2px solid var(--line); touch-action: pan-y pinch-zoom; cursor: pointer; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.accordion-strip:focus-visible { outline-offset: -3px; }
.accordion-keys {
  height: 100%; width: calc(100% + var(--key-tile));
  background: #f8f6ef url('/assets/dirke-harmonike.png') left top / var(--key-tile) 100% repeat-x;
}
.music-trail { position: fixed; inset: 0; z-index: 20; pointer-events: none; overflow: hidden; }
.music-trail span {
  position: absolute; color: #f3cf72; font: 700 clamp(2.4rem, 8vw, 2.85rem)/1 Georgia, 'Segoe UI Symbol', serif;
  -webkit-text-stroke: .9px #624915; text-shadow: 0 2px 6px #101b3066;
  animation: music-trail-rise 950ms ease-out both;
}
@keyframes music-trail-rise {
  from { opacity: 1; transform: translate(-50%, -40%) scale(.9); }
  35% { opacity: 1; }
  to { opacity: 0; transform: translate(calc(-50% + var(--note-drift)), -72px) scale(1.08); }
}
.player video { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; background: #070707; object-fit: contain; border-radius: .45rem; }
.player-frame { padding: .4rem; border: 2px solid var(--line); border-radius: .65rem; background: var(--panel); box-shadow: 0 12px 32px #101b301a; position: relative; }
.player figcaption { color: var(--muted); margin-top: .75rem; }
.player-controls { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .7rem; }
.player-controls button { font-size: .93rem; padding-inline: .7rem; }
.player-controls button[hidden] { display: none; }
.section, .page { padding-block: clamp(2.4rem, 6vw, 5rem); }
.offerings, .gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
.offer { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: .6rem; overflow: hidden; background: var(--panel); }
.offer-art { display: block; width: 100%; height: auto; aspect-ratio: 2; object-fit: cover; border-bottom: 2px solid var(--line); }
.offer-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.3rem, 3vw, 2.7rem); }
.offer-copy .button { margin-top: auto; }
.artist-social { text-align: center; border-top: 2px solid var(--line); }
.artist-social .actions { justify-content: center; }
.social-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: .65rem; background: #fff; transition: background-color 180ms ease; }
.social-icon:hover { background-color: #e9eef8; }
.social-icon svg { width: 30px; height: 30px; fill: currentColor; }
.social-youtube { color: #ff0033; }
.social-facebook { color: #0866ff; }
.social-instagram { color: #c13584; }
.offer p { max-width: 44ch; }
.artist-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.5rem, 6vw, 5rem); }
.artist-story-copy p { font-size: 1.1rem; max-width: 58ch; }
.featured-music { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); border-bottom: 2px solid var(--line); }
.featured-cover { position: relative; margin: 0; width: min(100%, 410px); justify-self: center; overflow: hidden; border: 2px solid var(--line); border-radius: .75rem; background: #101b30; }
.featured-cover img { display: block; width: 100%; height: auto; }
.featured-cover figcaption { position: absolute; inset: auto 0 0; padding: 2rem 1rem 1.25rem; background: linear-gradient(transparent, #101b30ed 48%); color: var(--gold); text-align: center; }
.featured-cover span { display: block; margin-top: .35rem; color: #fff; font-size: .95rem; }
.featured-cover strong { font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 750; letter-spacing: -.045em; }
.artist-archive { margin: 0; }
.artist-archive > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.artist-archive img { display: block; width: 100%; height: auto; border: 2px solid var(--line); border-radius: .55rem; }
.artist-archive figcaption { margin-top: .65rem; color: var(--muted); }
.footer { border-top: 2px solid var(--line); flex-wrap: wrap; }
.footer > a[href^="mailto:"] { color: var(--muted); overflow-wrap: anywhere; }
.footer-credit { flex-basis: 100%; text-align: center; color: var(--muted); }
.page h1 { font-size: clamp(2.5rem, 5.5vw, 4.7rem); }
.page > p { max-width: 65ch; }
.section-image { display: block; width: 100%; height: auto; border-radius: .6rem; }
.gallery-section { margin-top: 2rem; }
.gallery-section + .gallery-section { padding-top: 2rem; border-top: 2px solid var(--line); }
.gallery-heading { justify-content: space-between; margin-bottom: 1rem; }
.gallery-heading h2 { margin: 0; }
.gallery-section .gallery { grid-template-columns: 1fr; }
.gallery-section .gallery-photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); align-items: start; }
.gallery-photos .gallery-media { max-height: none; margin: 0; background: transparent; }
.gallery-item { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 3vw, 2.5rem); }
.gallery-item:target { scroll-margin-top: 1rem; }
.gallery-visual { padding: .5rem; }
.gallery-copy { min-width: 0; overflow-wrap: anywhere; }
.gallery-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.15rem); }
.gallery-media { display: block; width: 100%; max-height: 450px; object-fit: contain; background: #090909; border-radius: .4rem; margin-bottom: 1rem; }
.gallery-item .gallery-media { margin-bottom: 0; }
.gallery-description { font-size: 1.125rem; white-space: pre-wrap; }
.orchestra-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.55rem, 3vw, 1.25rem); max-width: 650px; margin-block: 1.5rem; }
.orchestra-member { width: 100%; padding: clamp(.55rem, 2.5vw, 1.6rem); }
.orchestra-member .gallery-media { aspect-ratio: 4 / 5; object-fit: cover; object-position: center 33%; background: var(--bg); }
.orchestra-member h2 { font-size: clamp(1.05rem, 4vw, 1.55rem); margin-bottom: .35rem; }
.orchestra-member .orchestra-bio { margin-top: .65rem; font-size: .9375rem; line-height: 1.5; }
.orchestra-lead { max-width: 315px; }
.gallery-stamp { border-top: 2px solid var(--line); padding-top: .75rem; margin: .85rem 0; font-style: normal; color: var(--muted); }
.gallery-stamp strong { color: var(--gold-ink); }
.file-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem .7rem; }
.file-picker span { overflow-wrap: anywhere; min-width: 0; }
.file-picker small { flex: 0 0 100%; font-size: .9rem; }
.lesson-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1.25rem, 5vw, 4rem); }
.lesson-intro p { max-width: 46ch; font-size: 1.15rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(1.25rem, 5vw, 4rem); max-width: 1000px; }
.booking { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; margin-block: 2rem; }
.panel { min-width: 0; overflow-wrap: anywhere; background: var(--panel); border: 2px solid var(--line); border-radius: .55rem; padding: clamp(1rem, 3vw, 1.6rem); }
.calendar-head { display: flex; gap: .5rem; justify-content: space-between; align-items: center; margin: 1rem 0; }
.calendar-head strong { text-transform: capitalize; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; text-align: center; }
.calendar-grid button { width: 100%; padding-inline: 0; }
button[aria-pressed="true"] { color: #101b30; background: var(--gold); border-color: var(--gold-ink); }
.calendar-grid span { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: .4rem; margin-bottom: 1rem; }
.slot { flex-direction: column; padding: .3rem; }
.slot small { font-size: .88rem; }
label { display: grid; gap: .3rem; margin-bottom: .8rem; }
input, select, textarea { min-width: 0; max-width: 100%; width: 100%; min-height: 44px; font-size: max(16px, 1rem); background: var(--panel); color: var(--text); border: 2px solid #9aa8be; border-radius: .35rem; padding: .55rem .65rem; }
input::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 110px; resize: vertical; }
.form { width: 100%; max-width: 580px; }
.stack { display: grid; gap: 1rem; margin-top: 1.3rem; }
.status { color: var(--gold-ink); font-weight: 700; }
.feedback { margin-top: .8rem; color: var(--gold-ink); }
.feedback:empty { display: none; }
.muted { color: var(--muted); }
.request { scroll-margin-top: 1rem; }
.request:target { outline: 2px solid var(--gold); }
.proposal-form { display: flex; align-items: end; gap: .6rem; flex-wrap: wrap; margin-top: .8rem; }
.proposal-form label { margin: 0; }
.calendar-grid button::before, .slot::before { opacity: .05; }
@keyframes button-glint {
  to { transform: translateX(215%) skewX(-15deg); }
}
@keyframes enter-content {
  from { opacity: .68; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-accordion-keys { to { transform: translateX(calc(-1 * var(--key-tile))); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  :is(button:enabled, .button, .account):hover:not(:active) {
    transform: translateY(-2px); box-shadow: 0 5px 13px #101b3024;
  }
  :is(button:enabled, .button, .account):hover::before { opacity: .14; }
  :is(button:enabled, .button, .account):hover::after { animation: button-glint 520ms var(--motion-ease); }
  :is(.calendar-grid button:enabled, .slot:enabled):hover::after { animation: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .page > h1 { animation: enter-content 470ms var(--motion-ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 50ms; }
  .hero-copy > :nth-child(3) { animation-delay: 100ms; }
  .hero-copy > :nth-child(4) { animation-delay: 150ms; }
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 25%) {
    .accordion-keys { animation: slide-accordion-keys auto linear both; animation-timeline: scroll(root block); }
    :is(.offer, .artist-story, .gallery-item, .lesson-intro, .contact-grid, .booking) {
      animation: enter-content auto linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    :is(.offer, .artist-story, .gallery-item, .lesson-intro, .contact-grid, .booking):focus-within { animation: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .music-trail { display: none; }
  :is(button, .button, .account, .navigation nav a, .navigation nav a::after) { transition: none; }
  :is(button:enabled, .button, .account):active { transform: none; }
}
@media (max-width: 850px) {
  .navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .45rem; padding-block: .65rem; }
  .navigation .wordmark { justify-self: start; font-size: clamp(1.05rem, 3.5vw, 1.25rem); }
  .navigation .wordmark img { width: clamp(2.9rem, 10.5vw, 3.8rem); }
  .nav-toggle:not([hidden]) { display: inline-flex; grid-column: 3; grid-row: 1; }
  .navigation .account { grid-column: 2; grid-row: 1; padding-inline: .65rem; }
  .navigation nav { grid-column: 1 / -1; display: grid; gap: 0; }
  .nav-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .navigation nav a { display: flex; align-items: center; min-height: 44px; padding: .45rem .65rem; }
  .navigation nav a::after { inset-inline: .65rem; bottom: .25rem; }
  .hero-grid { min-height: clamp(510px, 75svh, 660px); align-items: end; padding-block: 2rem 4.7rem; }
  .hero-video { object-position: 34% top; }
  .hero::before { background: linear-gradient(180deg, #101b3012 14%, #101b3040 40%, #101b30ed 77%); }
  .hero-copy { justify-self: start; }
  .hero h1 em { display: inline; }
}
@media (max-width: 670px) {
  .wordmark { font-size: 1.15rem; }
  .offerings, .gallery, .booking, .lesson-intro, .contact-grid, .gallery-item, .artist-story { grid-template-columns: minmax(0, 1fr); }
  .featured-cover { width: min(100%, 340px); }
  .page h1, .hero h1 { overflow-wrap: anywhere; }
  .hero .actions, .page > .actions, .proposal-form { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .page .form button[type="submit"], .proposal-form button, #lesson-form > button[type="submit"] { width: 100%; }
  .calendar-grid { gap: .2rem; }
  .calendar-head button { flex: 0 0 44px; padding-inline: 0; }
  .calendar-head strong { text-align: center; }
  .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot { min-height: 48px; }
  .player-frame, .gallery-visual { padding: .25rem; }
  .player-controls { gap: .35rem; padding: .15rem; }
  .player-controls button { flex: 1 1 auto; }
  .gallery-media { max-height: min(450px, 72vh); }
  .gallery-item .gallery-copy { padding: 1rem; }
  .footer { gap: .65rem; }
}
