.rehearsal-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(27rem, 44vw, 39rem);
  display: grid;
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(5.5rem, 12vw, 10rem);
  overflow: hidden;
  background: #10211e;
  color: #fffefb;
}
.rehearsal-image { position: absolute; z-index: -2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 92%; }
.rehearsal-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #10211eea, #10211ec9 29%, #10211e38 70%, transparent), linear-gradient(0deg, #10211ec9, transparent 38%); }
.rehearsal-hero-inner h1 { max-width: 12ch; font-size: clamp(3.2rem, 8vw, 7.3rem); line-height: .96; letter-spacing: -.07em; text-wrap: balance; }
.rehearsal-hero-inner .eyebrow { margin-bottom: 1rem; color: #b4f4df; }
.rehearsal-hero-inner p:not(.eyebrow) { max-width: 36rem; margin-block: 1.15rem 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.24rem); text-wrap: pretty; }
.rehearsal-hero :focus-visible, .rehearsal-instrument :focus-visible { outline-color: #afeed9; }
.rehearsal-stage { position: relative; padding-block: 0 clamp(3rem, 8vw, 7rem); background: linear-gradient(180deg, #10211e 0%, #17322b 42%, #10211e 100%); color: #fffefb; }
.rehearsal-instrument {
  position: relative;
  z-index: 1;
  top: clamp(-5.25rem, -6vw, -2.5rem);
  margin-bottom: clamp(-5.25rem, -6vw, -2.5rem);
  overflow: hidden;
  border: 1px solid #9be5cc5c;
  border-radius: clamp(1rem, 2vw, 1.75rem);
  background: #1b362f;
  box-shadow: inset 0 1px #e1fff64d, 0 24px 95px #050d0a73;
}
@supports (backdrop-filter: blur(1px)) {
  .rehearsal-instrument { background: linear-gradient(150deg, #274c43eb, #172f29e8 45%, #0e211de8); backdrop-filter: blur(22px) saturate(128%); }
}
.rehearsal-interface { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; padding: clamp(1.2rem, 4vw, 2.7rem); border-bottom: 1px solid #d4f3e92c; }
.rehearsal-interface h2 { max-width: 13ch; font-size: clamp(1.8rem, 3.6vw, 3.5rem); line-height: 1.02; letter-spacing: -.05em; }
.rehearsal-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .85rem; }
.rehearsal-selector { display: grid; gap: .4rem; min-width: 0; font-weight: 700; }
.rehearsal-selector span { font-size: .9rem; color: #cef2e6; }
.rehearsal-selector select { width: 100%; min-height: 3rem; padding: .55rem .6rem; border: 1px solid #b7e5db7c; border-radius: .55rem; background: #142d26; color: #fffefb; }
.rehearsal-stage-data { display: grid; grid-template-columns: minmax(0,.68fr) minmax(0,1fr); grid-template-rows: repeat(2,auto); }
.rehearsal-lane { position: relative; display: grid; align-items: center; padding: clamp(1.3rem, 3.2vw, 2.5rem) clamp(1.2rem, 4vw, 2.7rem); border-right: 1px solid #d4f3e92c; }
.rehearsal-lane-first { grid-column: 1; grid-row: 1; border-bottom: 1px solid #d4f3e92c; }
.rehearsal-lane-second { grid-column: 1; grid-row: 2; }
.rehearsal-lane figcaption { padding-left: 1rem; border-left: 2px solid #14b58a; }
.rehearsal-lane-second figcaption { border-color: #9ac6de; }
.rehearsal-lane figcaption > span { color: #caeee2; font-size: .875rem; font-weight: 690; }
.rehearsal-lane h3 { margin-block: .35rem .45rem; font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 730; line-height: 1.1; letter-spacing: -.025em; }
.rehearsal-lane p { color: #e2ebe5; }
.rehearsal-overlap { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; padding: clamp(1.3rem, 4vw, 2.9rem); background: radial-gradient(ellipse at 100% 0%, #18836d36, transparent 61%); }
.rehearsal-overlap .eyebrow { color: #a7e9d4; }
.rehearsal-overlap h3 { max-width: 21ch; margin-block: .42rem .7rem; font-size: clamp(1.75rem, 3.7vw, 3.3rem); font-weight: 730; line-height: 1; letter-spacing: -.048em; text-wrap: balance; }
.rehearsal-overlap h4 { margin-bottom: .5rem; font-size: 1.06rem; }
.rehearsal-overlap ol { display: grid; gap: .45rem; margin: 0; padding-left: 1.25rem; }
.rehearsal-overlap li::marker { color: #a7e9d4; font-weight: 700; }
.rehearsal-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; align-items: center; margin-top: 1.4rem; }
.rehearsal-link { color: #fffefb; font-weight: 700; padding-block: .5rem; }
.rehearsal-status { margin-top: .55rem; color: #cef2e6; }
.rehearsal-status:empty { margin-top: 0; }
#rehearsal-copy-fallback { display: grid; gap: .4rem; margin-top: .75rem; }
#rehearsal-copy-text { width: 100%; min-height: 7rem; padding: .5rem .7rem; color: #10211e; background: #fffefb; font: inherit; }
.rehearsal-overlap.is-updated { animation: rehearsal-reveal .3s ease-out; }
@keyframes rehearsal-reveal { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 820px) {
  .rehearsal-interface { grid-template-columns: 1fr; }
  .rehearsal-interface h2 { max-width: 20ch; }
  .rehearsal-stage-data { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rehearsal-lane-first, .rehearsal-lane-second { grid-row: 1; border-bottom: 1px solid #d4f3e92c; }
  .rehearsal-lane-second { grid-column: 2; border-right: 0; }
  .rehearsal-overlap { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 500px) {
  .rehearsal-hero { min-height: 28rem; }
  .rehearsal-image { object-position: 60% 91%; }
  .rehearsal-hero::after { background: linear-gradient(90deg, #11251fe7, #11251f80 82%), linear-gradient(0deg, #10211e88, transparent 36%); }
  .rehearsal-controls, .rehearsal-stage-data { grid-template-columns: 1fr; }
  .rehearsal-lane-first, .rehearsal-lane-second, .rehearsal-overlap { grid-column: 1; grid-row: auto; border-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rehearsal-overlap.is-updated { animation: none; }
}
