/* Shared layout and readable controls for the landing and performance pages. */
:root{--muted:#c1b5a5}
main h1,main h2,main h3,main p{overflow-wrap:anywhere}
.nav a,.detail-back,.text-link,.show-book,.footer a{min-height:44px;display:inline-flex;align-items:center}
.links,.detail-nav{gap:28px}
.links a{font-size:14px}
.login,.detail-header>a:last-child{font-size:13px}
.nav .brand{flex-shrink:0}
.hero-side p,.intro,.section-head p,.lesson p,details p,.show-description{font-size:15px;line-height:1.75}
.eyebrow,.show-genre{font-size:11px;line-height:1.6}
.program-note,.show-tags,.detail-note,.footer{font-size:13px;line-height:1.7}
.program-note,.footer{color:var(--muted)}
.button,.text-link,.show-book{font-size:14px}
.show-bottom{flex-wrap:wrap;gap:10px 18px}
.show-bottom strong{font-size:26px}
.show-book{justify-content:center;white-space:nowrap}
.show-body h3 a:hover,.detail-nav a:hover{color:var(--gold)}
summary{min-height:44px;align-items:center;line-height:1.4}
summary:after{flex-shrink:0}
.motion{min-height:44px;min-width:88px;font-size:12px;padding:10px 14px}
.detail-actions a{min-height:48px;text-align:center;display:inline-flex;align-items:center;justify-content:center;line-height:1.5}
.detail-description{font-size:16px;line-height:1.8}
.detail-layout>div{min-width:0}
.detail-poster{aspect-ratio:3/4}
.detail-header .detail-nav a{min-height:44px}
.detail-back{margin-bottom:24px}
#theatre h2{font:normal clamp(30px,4vw,44px)/1.2 Georgia,serif;margin:16px 0 24px}
#theatre>p:not(.eyebrow){line-height:1.7}
.show-art{background:linear-gradient(135deg,#211813,#100c0b)}
@media(max-width:800px){
 .nav:not(.detail-header){height:auto;min-height:112px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 14px;padding-top:12px;padding-bottom:12px}
 .nav:not(.detail-header)>.links{grid-column:1/-1;grid-row:2;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
 .links a:last-child{display:inline-flex}
 .nav:not(.detail-header)>.login{grid-column:2;grid-row:1;white-space:nowrap}
 .hero-copy{align-items:flex-start}
 .studio,.visit{gap:32px}
}
@media(max-width:560px){
 .wrap{padding-left:20px;padding-right:20px}
 .nav .brand b{font-size:16px}.nav .brand small{font-size:7px;letter-spacing:.14em}
 .nav .brand svg{width:22px}.nav .brand{gap:8px}
 .nav .login,.detail-header>a:last-child{font-size:12px}
 .login span{margin-left:5px}
 .hero-copy h2{font-size:clamp(32px,9vw,40px)}
 .hero-side p{font-size:15px}
 .hero-copy .actions{gap:12px 20px}
 .hero-copy .button{width:100%;justify-content:space-between}
 .hero-copy .text-link{padding:12px 0}
 .section-head p{font-size:15px}
 .show-body{padding:20px}
 .show-body h3{font-size:28px;line-height:1.2}
 .show-genre{font-size:11px;letter-spacing:.1em}
 .show-tags{font-size:13px}
 .catalog-more{min-height:48px;font-size:14px;line-height:1.5}
 .detail-title{font-size:clamp(32px,9vw,44px);line-height:1.12}
 .detail-header{gap:4px 12px;padding-top:12px;padding-bottom:12px}
 .detail-header>.brand{font-size:16px;letter-spacing:.02em}
 .detail-nav{gap:24px;font-size:14px}
 .detail-actions{gap:12px;margin:22px 0}
 .detail-actions a{width:100%;font-size:15px;padding:14px 16px}
 .detail-note{font-size:14px}
 .detail-poster{max-height:460px}
 .detail-layout{gap:24px}
 .detail-back{margin-bottom:20px}
 .motion{right:8px;bottom:8px;font-size:11px}
 .curtain-title{top:38%}.curtain-title span{margin:10px 0;font-size:20px}
 .curtain-title small{font-size:8px;letter-spacing:.08em}
 .footer{align-items:flex-start;gap:14px 24px;font-size:12px}
 .footer span{max-width:none}
}

.visit .intro a{display:inline-flex;align-items:center;min-height:44px}

/* Tiny previews occupy the final poster box immediately; full images decode before fading in. */
[data-poster]{position:relative;overflow:hidden;background:#211813}
.detail-art{aspect-ratio:3/4;max-height:750px}
[data-poster] .poster-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;filter:blur(7px);transform:scale(1.04)}
[data-poster] .poster-full{position:relative;display:block;width:100%;height:100%;object-fit:contain;opacity:0;transition:opacity .16s ease}
[data-poster].poster-ready .poster-full{opacity:1}
[data-poster].poster-ready .poster-preview,[data-poster].poster-ready .poster-message{visibility:hidden}
.poster-message{position:absolute;bottom:12px;left:12px;right:12px;padding:8px 10px;background:#100c0bd9;color:#f1e8d7;font-size:12px;text-align:center;z-index:1;opacity:0;animation:poster-message .1s 1.5s forwards}
.poster-error .poster-message{opacity:1;animation:none}
@keyframes poster-message{to{opacity:1}}
@media(max-width:560px){.detail-art{max-height:460px}}
@media(prefers-reduced-motion:reduce){[data-poster] .poster-full{transition:none}}

/* Pill controls: restrained gold, thin edge, soft depth; no emoji glyphs. */
.button,.catalog-more,.show-book,.detail-actions a:first-child{
 border:1px solid #e7c993;border-radius:999px;
 background:linear-gradient(180deg,#e5c88f,#d5af6d);
 color:#261a0e;font-weight:600;line-height:1.45;text-align:center;
 box-shadow:inset 0 1px 0 #fff2cf99,0 3px 10px #0003;
 transition:box-shadow .18s ease,background .18s ease;
 min-height:48px;padding:14px 26px;justify-content:center;
}
.show-book{font-size:13px;padding:11px 20px;white-space:normal}
.detail-actions a:not(:first-child){border-radius:999px;background:linear-gradient(180deg,#251e17,#19130f);border-color:#95794e;color:#e8cc9b;box-shadow:inset 0 1px 0 #d4ae701a,0 3px 10px #0002}
@media(hover:hover){
 .button:hover,.catalog-more:hover,.show-book:hover,.detail-actions a:first-child:hover{background:linear-gradient(180deg,#edd6ab,#debd82);color:#261a0e;box-shadow:inset 0 1px 0 #fff2cf,0 4px 14px #0004}
}
.button:active,.catalog-more:active,.show-book:active,.detail-actions a:active{box-shadow:inset 0 2px 4px #77562733}
@media(max-width:560px){.hero-copy .button{justify-content:center}}
@media(prefers-reduced-motion:reduce){.button,.catalog-more,.show-book,.detail-actions a{transition:none}}

/* Studio enrollment: readable group details followed by one clear action. */
.studio>div{min-width:0}
.studio-enrollment{padding-top:24px}
.studio-groups{margin:0;color:var(--paper);font-size:15px;line-height:1.7}
.studio-groups span{white-space:nowrap}
.studio-enrollment>.program-note{margin:8px 0 0;max-width:52ch}
.studio-signup{display:flex;flex-direction:column;align-items:flex-start;gap:20px;margin-top:24px;padding:24px;border:1px solid var(--line);border-radius:20px;background:#19120f}
.studio-signup .program-note{margin:0;max-width:44ch;font-size:14px;line-height:1.7}
.studio-signup .button{max-width:100%;padding:14px 22px;text-wrap:balance}
@media(min-width:561px) and (max-width:900px){.studio{grid-template-columns:1fr;gap:36px}.studio .intro{max-width:55ch}.studio-signup{flex-direction:row;align-items:center;justify-content:space-between;gap:24px}.studio-signup .program-note{flex:1}.studio-signup .button{flex:0 1 280px}}
@media(max-width:560px){.studio-enrollment{padding-top:22px}.studio-signup{padding:20px;gap:18px;margin-top:22px}.studio-signup .button{width:100%;padding:14px 16px}}
.enrollment{max-width:880px}.enrollment h1{font:normal clamp(36px,6vw,60px)/1.12 Georgia,serif;margin:0 0 24px}.enrollment .intro{max-width:650px}
#studio-form{margin-top:32px;padding:32px;border:1px solid var(--line);border-radius:24px;background:#19120f}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}
#studio-form label{display:block;font-size:15px;line-height:1.6;margin-bottom:22px;color:var(--paper)}
#studio-form input:not([type=checkbox]),#studio-form select,#studio-form textarea{display:block;width:100%;margin-top:8px;border:1px solid #806b4b;border-radius:12px;background:#100c0b;color:var(--paper);font:16px/1.5 Arial,sans-serif;padding:13px 16px;min-height:50px;box-sizing:border-box}
#studio-form textarea{resize:vertical}#studio-form input:focus-visible,#studio-form select:focus-visible,#studio-form textarea:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#studio-form .optional{color:var(--muted);font-size:13px}#studio-form .consent{display:flex;gap:12px;margin-top:24px;font-size:14px}#studio-form input[type=checkbox]{width:22px;height:22px;flex-shrink:0;accent-color:var(--gold);margin-top:2px}
#consent-text{white-space:pre-line}#form-status{line-height:1.6;color:var(--gold)}#studio-form button:disabled{opacity:.55;cursor:wait}#form-success{margin-top:32px;padding:28px;border:1px solid var(--gold);border-radius:24px;line-height:1.7}.form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
@media(max-width:560px){.form-grid{grid-template-columns:1fr}#studio-form{padding:22px 18px}.studio-signup .button,#studio-form>.button{width:100%}}
.legal-links{display:flex;gap:8px 22px;flex-wrap:wrap;flex-basis:100%}.legal-links a{color:var(--muted);font-size:12px;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}.footer{flex-wrap:wrap}

/* Full-width proscenium: the film retains its native ratio, velvet fills the wings. */
.landing .wrap{max-width:1680px;padding-inline:clamp(24px,4vw,80px)}
.landing .nav{max-width:none}
.landing .stage{
 --scene-height:min(57.142857vw, max(280px, calc(100svh - 330px)));
 width:100%;max-width:none;height:var(--scene-height);aspect-ratio:auto;
 background:#210a09 url("media/curtain-v2.webp") center/100% 100% no-repeat;
}
.landing .stage img,.landing .stage .scene-video{
 width:min(100%,calc(var(--scene-height)*1.75));height:100%;left:50%;right:auto;
 transform:translateX(-50%);object-fit:contain;
}
.landing .hero-copy{padding-top:24px;padding-bottom:32px;gap:32px}
.landing .hero-copy h2{font-size:clamp(32px,3.3vw,53px)}
.landing .hero-side{max-width:420px}
.landing .hero-side p{margin-bottom:16px}
.landing .motion{right:clamp(16px,4vw,80px);bottom:16px}
@media(min-width:801px) and (max-height:800px){
 .landing .nav{height:72px}
 .landing .stage{--scene-height:min(57.142857vw,max(240px,calc(100svh - 290px)))}
 .landing .hero-copy{padding-top:16px;padding-bottom:24px}
 .landing .hero-copy h2{font-size:clamp(32px,3vw,44px)}
 .landing .hero-copy .eyebrow{margin-bottom:10px}
}
@media(max-width:800px){
 .landing .stage{--scene-height:57.142857vw}
 .landing .wrap{padding-inline:24px}
 .landing .hero-copy{gap:24px}
}
@media(max-width:560px){
 .landing .wrap{padding-inline:20px}
 .landing .hero-copy{padding-top:22px;padding-bottom:42px}
 .landing .hero-copy h2{font-size:clamp(32px,9vw,40px)}
}

/* Feather only the curtain edges; keep the actor and stage centre fully opaque. */
.landing .stage img,.landing .stage .scene-video{
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
 mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);
}
.landing .stage.video-playing>img{visibility:hidden}
.landing .stage .cloth{transition:opacity .45s ease}
.landing .stage.cloth-settled .cloth{opacity:0}
@media(max-width:800px){
 .landing .stage img,.landing .stage .scene-video{-webkit-mask-image:none;mask-image:none}
}
@media(prefers-reduced-motion:reduce){.landing .stage .cloth{transition:none}}

/* Shared velvet header for the landing, repertoire details and enrollment. */
:is(.landing .nav,.detail-header){
 position:relative;z-index:6;isolation:isolate;
 background-image:linear-gradient(180deg,#12060699,#16070766 65%,#100605b3),url("media/curtain-v2.webp");
 background-size:100% 100%,100% auto;background-position:center,center top;
 background-color:#200909;background-repeat:no-repeat;
 box-shadow:0 10px 20px -10px #080303cc;
}
:is(.landing .nav,.detail-header) .links,:is(.landing .nav,.detail-header) .login{color:#f1e8d7}
:is(.landing .nav,.detail-header) .brand small{color:#d6c7b4}
:is(.landing .nav,.detail-header) a{text-shadow:0 1px 3px #090303}
:is(.landing .nav,.detail-header) .login{border-bottom-color:#c5a37180}
:is(.landing .nav,.detail-header) a:focus-visible{outline:2px solid #f1cf92;outline-offset:4px;border-radius:3px}
@media(hover:hover){:is(.landing .nav,.detail-header) .links a:hover,:is(.landing .nav,.detail-header) .login:hover{color:#f3d196;text-decoration:underline;text-underline-offset:7px}}
@media(max-width:800px){
 :is(.landing .nav,.detail-header){background-size:100% 100%,auto 260px}
 :is(.landing .nav,.detail-header)>:is(.links,.detail-nav){border-top:1px solid #d4ae7026}
}

.detail-header{max-width:none;padding-inline:clamp(24px,4vw,80px);color:#f1e8d7}
.detail-header .detail-nav a:hover{color:#f3d196}
@media(max-width:800px){.detail-header{padding-inline:24px}}
@media(max-width:560px){.detail-header{padding-inline:20px}}
