/* One-page layout. Base controls live in site.css; this file owns the page geometry. */
:root {
  --site-width: 1176px;
  --page-gutter: max(clamp(16px, 3.2vw, 38px),env(safe-area-inset-left,0px),env(safe-area-inset-right,0px));
  --header-height: 100px;
  --footer-height: 64px;
  --paper: #f3f0e8;
  --panel: #fffdf8;
  --ink: #213e33;
  --muted: #425b4d;
  --gold: #745535;
  --line: #adbba9;
  --soft: #dbe8d733;
  --accent: #264d3d;
  --accent-text: #fffdf4;
  --glass: #f3f0e8bf;
  --reading-glass: #f3f0e80d;
  --texture: url('../images/barock-perlmutt.jpg');
}
:root[data-palette=dark] {
  color-scheme: dark;
  --paper: #1d2e1d;
  --panel: #263926;
  --ink: #fff5e5;
  --muted: #eee2cd;
  --gold: #efd4a4;
  --line: #879b85;
  --soft: #62816e33;
  --accent: #efd4a4;
  --accent-text: #20372c;
  --glass: #1d2e1dbf;
  --reading-glass: #1d2e1d0d;
  --texture: url('../images/barock-dunkel-r6.jpg');
}
/* Keep the reading width unchanged when a modal hides the page scrollbar. */
html { scrollbar-gutter: stable; scroll-padding-top: calc(var(--header-height) + 16px); }
body.onepage { min-width: 0; width: 100%; max-width: var(--site-width); margin-inline: auto; background: var(--paper); color: var(--ink); overflow-wrap: anywhere; }
.onepage .wrap { width: calc(100% - 2 * var(--page-gutter)); max-width: 1100px; min-width: 0; margin-inline: auto; }
.onepage main { min-height: 0; padding: 0; }
.onepage .baroque-band::before { display: none; }
.onepage :is(.chapter,.content-section,.landing,.two-column,.media-grid,.form-row,.bio-chapter,.sidebar) { min-width: 0; }
.onepage :is(p,h2,h3,h4,li,label,a,td,th) { overflow-wrap: anywhere; }
.onepage :is(video,iframe,input,textarea,select) { max-width: 100%; }
.onepage .button { min-width: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.onepage .chapter { scroll-margin-top: var(--header-height); }
.onepage :is(.site-header,.site-footer,dialog,.content-section) {
  --ink: inherit; /* The concrete palette is shared below, not derived from old band names. */
}
:root[data-palette=light] .onepage :is(.site-header,.site-footer,dialog,.content-section) {
  --paper:#f3f0e8;--panel:#fffdf8;--ink:#213e33;--muted:#425b4d;--gold:#745535;--line:#adbba9;--soft:#dbe8d733;--accent:#264d3d;--accent-text:#fffdf4;--glass:#f3f0e8bf;
}
:root[data-palette=dark] .onepage :is(.site-header,.site-footer,dialog,.content-section) {
  --paper:#1d2e1d;--panel:#263926;--ink:#fff5e5;--muted:#eee2cd;--gold:#efd4a4;--line:#879b85;--soft:#62816e33;--accent:#efd4a4;--accent-text:#20372c;--glass:#1d2e1dbf;
}

/* Header: its real height is measured once per layout change. */
.onepage .site-header { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top,0px); border: 0; box-shadow: none; color: var(--ink); background: var(--glass); backdrop-filter: blur(5.4px); }
.onepage .header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; min-height: 0; padding-block: 9px; }
.onepage .brand { flex: 0 1 320px; min-width: 0; max-width: 100%; align-items: center; padding: 0; background: none; text-decoration: none; color: #795725; }
.onepage .brand-name { display: block; width: 100%; min-width: 0; }
.onepage .brand-name .pen-signature { display: block; width: 100%; height: auto; }
.onepage .brand-name [data-pen-tenor] { display: block; }
/* Name and designation share one SVG coordinate system at every size. */
.onepage .brand-role { display: none; }
:root[data-palette=dark] .onepage .brand { color: #e5c994; }
.onepage .header-tools { display: flex; flex: 0 0 auto; gap: 10px; max-width: 100%; align-items: center; justify-content: center; flex-wrap: wrap; }
.onepage .icon-button { flex: 0 0 auto; width: 44px; height: 44px; }
.onepage .language-switch a { width: 40px; height: 38px; }

/* The normal-flow hero is also the no-JavaScript and failed-image fallback. */
.onepage .landing-portrait { position: relative; isolation: isolate; background: #f3f0e8; color: #213e33; padding: 0; overflow-anchor: none; }
.onepage .landing-image { position: relative; width: 100%; overflow: hidden; background: #f3f0e8; }
.onepage .landing-image picture { display: block; }
.onepage .landing-image .stage-image { display: block; width: 100%; height: auto; max-width: none; }
.onepage .landing-content { width: calc(100% - 2 * var(--page-gutter)); margin: 0 auto; padding: 28px 0 64px; }
.onepage .landing .eyebrow { color: #213e33; font-size: 1.1811rem; line-height: 1.45; letter-spacing: .08em; margin: 0 0 20px; font-weight: 400; }
.onepage .signature { position: relative; display: block; width: min(620px,100%); margin: 0 0 20px; font-weight: 400; color: #795725; line-height: 1; }
.onepage .signature-static { display: block; width: 100%; height: auto; }
.onepage .signature-static [data-logo-tenor] { display: block; }
.onepage .landing .actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin: 0; }
.onepage .landing .actions .button { flex: 1 1 10rem; min-width: 0; min-height: 44px; white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; padding: 10px 14px; font-size: 1.1811rem; background: #ead6bb; color: #173c2e; border: 1px solid #173c2e80; box-shadow: 0 2px 6px #08140d30; }
.onepage .landing .actions .button:is(:hover,:focus-visible) { background: #fff5e5; color: #173c2e; border-color: #173c2e; }
.onepage .hero-viewport-probe { position: fixed; inset: 0 auto auto 0; width: 0; height: 100vh; height: 100lvh; padding: 0 env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px); box-sizing: content-box; visibility: hidden; pointer-events: none; }
.onepage .hero-composed { --hero-bottom-extension: 0px; min-height: max(var(--hero-height),calc(100vh - var(--header-height) - var(--hero-footer-space,0px) + var(--hero-bottom-extension))); }
@supports (height: 100lvh) {
  .onepage .hero-composed { min-height: max(var(--hero-height),calc(100lvh + env(safe-area-inset-bottom,0px) - var(--header-height) - var(--hero-footer-space,0px) + var(--hero-bottom-extension))); }
}
/* Phone browsers can paint past their reported large viewport below the
   floating toolbar. Extend the photo separately from the accepted composition. */
@media (max-width: 700px) and (orientation: portrait) {
  .onepage .hero-composed { --hero-bottom-extension: 64px; }
}
.onepage .hero-composed .landing-content { display: contents; }
.onepage .hero-composed .landing-image { position: absolute; inset: 0; height: 100%; }
.onepage .hero-composed[data-hero-mode=stacked] .landing-image { background: #172b24; }
.onepage .hero-composed[data-panorama=true] .landing-image { background: linear-gradient(#f9f9f9,#e8e9e8); }
.onepage .hero-composed[data-panorama=true] .landing-image .stage-image { mask-image: linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); }
.onepage .hero-composed[data-hero-mode=stacked] .landing-image .stage-image { mask-image: linear-gradient(#000 calc(100% - 32px),transparent); }
.onepage .hero-composed .landing-image .stage-image { position: absolute; left: var(--image-x,0px); top: var(--image-top); width: var(--image-width,100%); height: auto; }
.onepage .hero-composed :is(.signature,.eyebrow,.actions) { position: absolute; z-index: 2; margin: 0; }
.onepage .hero-composed .signature { left: var(--logo-x); top: var(--logo-y); width: var(--logo-width); color: #e5c994; filter: drop-shadow(0 1px 2px #08140db3); }
.onepage .hero-composed .eyebrow { left: var(--caption-x); top: var(--caption-y); width: var(--caption-width); }
.onepage .hero-composed .actions { left: var(--actions-x); top: var(--actions-y); width: var(--actions-width); }
.onepage .hero-composed[data-hero-mode=wide] .signature { color: #795725; filter: none; }
.onepage .hero-composed[data-hero-mode=wide] .actions { flex-direction: column; }
.onepage .hero-composed[data-hero-mode=wide] .actions .button { flex: 0 1 auto; }
.onepage .hero-composed[data-caption-surface=dark] .eyebrow { color: #fff5e5; text-shadow: 0 1px 3px #08140d; }
.onepage .hero-missing .landing-image { display: none; }
.onepage .hero-credit { position: absolute; right: 12px; bottom: calc(12px + var(--hero-bottom-extension,0px)); z-index: 4; color: #fff5e5; }
.onepage .hero-credit summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #fff5e580; border-radius: 50%; background: #0f1e1880; font-size: 1.1811rem; }
.onepage .hero-credit summary::-webkit-details-marker { display: none; }
.onepage .hero-credit-panel { position: absolute; right: 52px; bottom: 0; width: max-content; max-width: min(330px,calc(100vw - 88px)); padding: 14px 18px; border-radius: 12px; background: #0f1e18e6; color: #fff5e5; line-height: 1.5; font-size: 1.1811rem; }

/* Chapter photographs retain their original zoom, fade and navigation timeline. */
.onepage .photo-transition { position: relative; height: min(756px,max(160px,calc(100svh - var(--header-height)))); min-height: 0; overflow: clip; isolation: isolate; background: #f3f0e8; }
.onepage .photo-window { position: relative; width: 100%; height: 100%; overflow: hidden; background: #f3f0e8; }
.onepage .moving-photo { position: absolute; inset: 0; opacity: var(--photo-opacity,1); }
.onepage .moving-photo picture { display: block; position: absolute; inset: 0; overflow: hidden; }
.onepage .photo-transition .stage-image { position: absolute; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; }
.onepage .transition-heading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 var(--page-gutter) 2.3622rem; color: #173c2e; pointer-events: none; text-align: center; }
.onepage .transition-heading h2 { font: 400 clamp(2rem,1.5rem + 2vw,2.8346rem)/1.15 Georgia,serif; margin: 0; max-width: 100%; text-wrap: balance; }
.onepage .transition-rule { display: block; width: 68px; height: 2px; flex: 0 0 auto; margin-bottom: .9449rem; background: #ffe2a7; opacity: var(--rule-opacity,1); }
.onepage .scene-1 .transition-heading,.onepage .scene-3 .transition-heading,.onepage .scene-5 .transition-heading { align-items: flex-start; text-align: left; }
.onepage .scene-2 .transition-heading { align-items: flex-end; text-align: right; }
.onepage .content-section { position: relative; padding: 2.3622rem 0; color: var(--ink); background: var(--paper) var(--texture) 0 var(--pattern-offset-y,0px)/560px 560px repeat; }
.onepage .content-section > .wrap { container-type: inline-size; }
.onepage .content-section:not(.gallery-section) > .wrap { padding: clamp(18px,3vw,32px); background: var(--reading-glass); backdrop-filter: blur(4px); border: 1px solid #73826c47; box-shadow: 0 6px 24px #08140d24; }
.onepage .section-intro { margin-bottom: 2rem; max-width: 740px; }
.onepage .content-section :is(h2,h3,h4,p,li,label,summary,td,th) { color: var(--ink); }
/* 8 mm at the default text size; scales with the visitor's text-size setting. */
.onepage .rep-group > h3 { font-size: 1.889764rem; }

.onepage .content-section :is(.eyebrow,.date-stamp,.tag,.form-help,.settings-help) { color: var(--gold); }
.onepage .content-section .button { background: var(--accent); color: var(--accent-text); }
.onepage .content-section .button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.onepage .content-section .two-column { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap: clamp(24px,4vw,56px); }
.onepage .content-section .sidebar { border: 0; padding: 0; }
.onepage .content-section .form-row { grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
.onepage .content-section .media-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap: 36px; }
.onepage .download-row { flex-wrap: wrap; }
.onepage .event { grid-template-columns: minmax(80px,6.5rem) minmax(0,1fr); gap: 24px; }
.onepage .event > .button { grid-column: 2; justify-self: start; }
.onepage .content-section :is(input,textarea,select) { background: var(--panel); color: var(--ink); }
.onepage .bio-lead { font: clamp(1.6rem,1.2rem + 2vw,2.65rem)/1.25 Georgia,serif; margin: 0 0 24px; }
.onepage .bio-intro-copy { max-width: 45ch; margin: 0 0 28px; line-height: 1.85; }
.onepage .bio-chapter { display: grid; grid-template-columns: minmax(150px,.7fr) minmax(0,2fr); gap: clamp(28px,5vw,70px); padding: 36px 0; border-top: 1px solid var(--line); }
.onepage .bio-chapter-label h3 { font: clamp(1.7rem,1.2rem + 1vw,2.35rem)/1.15 Georgia,serif; }
.onepage .bio-chapter-label p { line-height: 1.6; }
.onepage .bio-chapter-copy { max-width: 68ch; line-height: 1.85; }
.onepage .bio-chapter-copy p { margin-bottom: 20px; }

.onepage .bio-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--line); padding-top: 25px; }
.onepage .recording-intro { margin-bottom: 30px; }
.onepage .recording-intro h3 { font: clamp(1.6rem,1.2rem + 1vw,2.15rem)/1.2 Georgia,serif; }
.onepage .concert-video { width: 100%; max-width: 360px; justify-self: center; }
.onepage .concert-video-frame { aspect-ratio: 9/16; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #142b25; }
.onepage .concert-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.onepage .recording-work { margin: 22px 0 8px; }
.onepage .recording-source { margin-top: 30px; }
.onepage .video-error { border-left: 2px solid var(--gold); padding-left: 12px; }
.onepage .gallery-intro { max-width: 60ch; margin-bottom: 30px; }
.onepage .press-reviews { margin-top: 40px; }
.onepage .press-quotes { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,24rem),1fr)); gap: 30px 48px; }
.onepage .press-quote { margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.onepage .press-quote blockquote { margin: 0; padding: 0; border: 0; }
.onepage .press-quote blockquote p { font: 400 clamp(1.35rem,1.2rem + .5vw,1.6rem)/1.5 Georgia,serif; margin: 0 0 16px; text-wrap: pretty; }
.onepage .press-quote figcaption { line-height: 1.65; }
.onepage .press-quote figcaption p { margin: 0 0 10px; }
.onepage .press-quote cite { display: block; font-style: normal; }
.onepage .press-quote time { display: block; color: var(--muted); font-size: .9rem; margin-top: 3px; }

/* Footer uses the same frame as the document, without pixel-position coupling. */
.onepage .site-footer { position: relative; inset: auto; width: 100%; max-width: var(--site-width); color: var(--ink); background: var(--glass); border: 0; padding: env(safe-area-inset-bottom,0px) 0 0; backdrop-filter: blur(8px); }
.onepage .footer-inner { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; align-items: center; padding-block: 1.2rem; gap: 12px 24px; line-height: 1.4; }
.onepage .footer-links { flex-wrap: wrap; gap: 10px 20px; }
.onepage.footer-pinned .site-footer { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); z-index: 20; }
.onepage.footer-pinned main { padding-bottom: var(--footer-height); }

/* Dialogs are bounded by the visible viewport, with a reachable close button. */
.onepage :is(#menu-dialog,#settings-dialog) { color: var(--ink); background: var(--glass); max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); overflow: auto; overscroll-behavior: contain; backdrop-filter: blur(9px) saturate(105%); -webkit-backdrop-filter: blur(9px) saturate(105%); }
.onepage .dialog-top { position: relative; z-index: 2; background: transparent; }
.onepage .dialog-top { gap: 12px; }
.onepage .dialog-top h2 { min-width: 0; flex: 1; }
.onepage .settings-group { min-width: 0; }
.onepage .settings-group legend { max-width: 100%; }
.onepage .theme-options label { min-width: 0; max-width: 100%; }
.onepage .menu-foot { flex-wrap: wrap; }
.onepage #menu-dialog { position: fixed; inset: var(--menu-content-top,100px) var(--menu-content-right,16px) auto auto; margin: 0; width: min(400px,calc(100vw - 24px)); height: auto; max-height: max(0px,calc(100dvh - var(--menu-content-top,100px) - 12px)); }
.onepage #settings-dialog { position: fixed; inset: var(--settings-top,100px) auto auto var(--settings-left,12px); margin: 0; width: min(440px,calc(100vw - 24px)); height: auto; max-height: max(0px,calc(100dvh - var(--settings-top,100px) - 12px)); }
.onepage #settings-dialog .dialog-body { display: flex; flex-direction: column; max-height: calc(100dvh - var(--settings-top,100px) - 14px); }
.onepage #settings-dialog .dialog-top { flex: 0 0 auto; }
.onepage #settings-dialog .dialog-scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.onepage .menu-links a { padding: 14px; font-size: 1.5rem; }
.onepage .menu-links a[aria-current] { color: var(--accent-text); background: var(--accent); box-shadow: inset 4px 0 #d8bb84; }
.onepage .menu-links a:is(:hover,:focus-visible) { color: #123327; background: #ead7b4; }
.onepage #menu-dialog[open] { animation: menu-arrive 240ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes menu-arrive { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
/* Chapter titles receive focus for orientation, but are not interactive controls. */
.onepage main :is(section,h2)[tabindex='-1']:focus { outline: none; }

@container (max-width: 42rem) {
  .onepage .bio-chapter { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .onepage .repertoire-table :is(th,td) { overflow-wrap: anywhere; }
}
@media (max-width: 700px) {
  .onepage .header-inner { gap: 6px 12px; }
  .onepage .brand { flex-basis: 220px; }
  .onepage .brand-role { font-size: 1rem; letter-spacing: .06em; }
  .onepage .bio-chapter { grid-template-columns: minmax(0,1fr); gap: 20px; }
  /* Phone layouts always have two actions above the full-width enquiry. */
  .onepage .landing:not([data-hero-mode=wide]) .actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .onepage .landing:not([data-hero-mode=wide]) .actions .button:last-child { grid-column: 1 / -1; white-space: nowrap; }
}
@media (max-width: 480px) {
  .onepage .dialog-top h2 { font-size: clamp(1.2rem,6vw,1.6rem); }
  .onepage .header-inner { justify-content: center; padding-block: 6px; }
  .onepage .brand { flex-basis: 100%; width: 200px; max-width: 200px; }
  .onepage .brand-role { font-size: .95rem; }
  .onepage .header-tools { gap: 10px; }
  .onepage .content-section > .wrap { width: calc(100% - 24px); }
  .onepage .content-section:not(.gallery-section) > .wrap { padding: 18px; }
  .onepage .event { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .onepage .event > .button { grid-column: 1; }
  .onepage .event .date-stamp { border-right: 0; }
  .onepage .footer-inner { align-items: flex-start; flex-direction: column; }
  .onepage .landing .actions { gap: 8px; }
  .onepage .landing .actions .button { flex-basis: 8rem; padding: 8px 10px; }
}
@media (max-height: 600px) and (min-width: 481px) {
  .onepage .brand { flex-basis: 200px; }
  .onepage .brand-role { font-size: 1rem; }
  .onepage .header-inner { padding-block: 5px; }
  .onepage .dialog-body { padding: 18px; }
  .onepage .menu-links a { padding-block: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .onepage .photo-transition .stage-image { will-change: auto; }
  .onepage #menu-dialog[open] { animation: none; }
}
@media print {
  .onepage .site-header,.onepage .site-footer { display: none; }
  .onepage main,.onepage.footer-pinned main { padding: 0; }
  .onepage .landing-portrait { min-height: 0; }
  .onepage .landing-image,.onepage .hero-credit,.onepage .landing .actions { display: none; }
  .onepage .hero-composed .landing-content { display: block; }
  .onepage .hero-composed :is(.signature,.eyebrow) { position: static; width: min(450px,100%); color: #000; filter: none; }
  .onepage .photo-transition,.onepage .photo-window { height: auto; overflow: visible; background: none; }
  .onepage .moving-photo,.onepage .transition-rule { display: none; }
  .onepage .transition-heading { position: static; padding: 20px 0; color: #000; }
  .onepage .content-section { background: none; padding: 0 0 20px; }
  .onepage .content-section > .wrap { width: 100%; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }
}
