/* Seams belong to their publication. All surface changes are confined to the home project theater. */
#theater.studio-theater {
  --join-studio:var(--paper,#101010);
  --join-head:#1c1c1c;
  --join-foot:#202020;
  --join-nav:#171717;
  --join-rim:clamp(8px,1.1vw,18px);
  border:0;outline:0;box-shadow:none;background:var(--join-studio);
}
#theater[data-project=valence] {--join-head:#1c1d19;--join-foot:#171915;--join-nav:#131612;}
#theater[data-project=vesper] {--join-head:#282c27;--join-foot:#e9e0cb;--join-nav:#27312a;--join-nav-ink:#eee9da;}
#theater[data-project=meridian] {--join-head:#050505;--join-foot:#080808;--join-nav:#0c0c0c;}
#theater[data-project=ember] {--join-head:#33221c;--join-foot:#33221c;--join-nav:#231b17;}
#theater[data-project=northline] {--join-head:#243c35;--join-foot:#243c35;--join-nav:#192a24;}
#theater[data-project=signal] {--join-head:#141619;--join-foot:#141619;--join-nav:#111416;}
#theater[data-project=civic] {--join-head:#212121;--join-foot:#24312d;--join-nav:#1b1b1b;}
#theater[data-project=food] {--join-head:#293c31;--join-foot:#eee7d5;--join-nav:#27312a;--join-nav-ink:#eee9da;}

#theater.studio-theater .exhibit-meta {
  background:linear-gradient(180deg,var(--join-studio),var(--join-head) 96%);border:0;box-shadow:none;
}
#theater .exhibit-deck {border:0;box-shadow:none;background:transparent;}
#theater.studio-theater .scene-entry {
  background:linear-gradient(180deg,var(--join-foot),var(--join-foot) 18%,var(--join-nav));border:0;box-shadow:none;
}
#theater.studio-theater .scene-entry::before {content:none;}
#theater.studio-theater .project-controls {
  background:linear-gradient(180deg,var(--join-nav),var(--join-studio));border:0;box-shadow:none;
}
/* Fall off from the illuminated paper around the launch plate into the shared navigation. */
#theater:is([data-project=vesper],[data-project=food]) .scene-entry {
  padding-block:20px;
  background:linear-gradient(180deg,var(--join-foot),transparent 28%),
    radial-gradient(ellipse 110% 170% at 45% -65%,var(--join-foot) 45%,#bab7a1 57%,#797e6e 69%,#485348 81%,var(--join-nav) 99%);
}
#theater:is([data-project=vesper],[data-project=food]) .project-controls :is(button,button b,small),
#theater:is([data-project=vesper],[data-project=food]) #project-position,
#theater:is([data-project=vesper],[data-project=food]) #project-position::after {
  color:var(--join-nav-ink);text-shadow:none;
}
#theater:is([data-project=vesper],[data-project=food]) .project-controls button:is(:hover,:focus-visible) b {
  color:#fffdf1;text-decoration:underline;text-underline-offset:3px;
}
#theater:is([data-project=vesper],[data-project=food]) .project-controls button:focus-visible {outline-color:#ebe5ca;}
@media(min-width:860px) {
  #theater.studio-theater::before {
    content:"";position:absolute;inset:0;z-index:5;pointer-events:none;
    background:linear-gradient(90deg,var(--join-studio),transparent var(--join-rim),transparent calc(100% - var(--join-rim)),var(--join-studio));
  }
  #theater .project-controls {padding-inline:calc(var(--join-rim) + 2px);}
}

/* The coachwork keeps its specular highlights; only the unprinted margins meet the lamp desk. */
#theater #stage .wk-valence .va-stage::after {
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(180deg,var(--join-head),transparent clamp(19px,3vw,43px),transparent calc(100% - 24px),#131510);
}
#theater #stage .wk-valence .va-console {
  border-top:0;background:linear-gradient(180deg,#131510,#1c1e19 30%,var(--join-foot));
}
/* The model and its drafting paper share a softly lit lower edge. The image/loupe coordinates stay registered. */
#theater #vesper-study #light-plate::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:1;
  background:linear-gradient(180deg,var(--join-head),rgba(40,44,39,.985) 4px,rgba(40,44,39,.79) clamp(12px,1.7vw,24px),rgba(40,44,39,.25) clamp(22px,3.2vw,46px),transparent clamp(33px,5vw,72px),transparent calc(100% - clamp(17px,2.7vw,38px)),#d8cfba);
}
#theater #vesper-study #light-plate::after {content:none;}
#theater #vesper-study .light-notation,#theater #vesper-study .light-mark {z-index:2;}
#theater #vesper-study #detail-lens {z-index:3;}
#theater #vesper-study .light-instrument {
  background:linear-gradient(180deg,#d8cfba,#e5ddc9);border:0;color:#39372e;
}
#theater #vesper-study .light-caption,#theater #vesper-study .light-caption small,
#theater #vesper-study .light-preset {color:#463c2e;}
#theater #vesper-study #lens-toggle {background:#ddd3bb;color:#37372a;border-color:#83765e;text-shadow:none;}
#theater #vesper-study .light-preset[aria-pressed=true],#theater #vesper-study #lens-toggle[aria-pressed=true] {background:#bfb296;color:#25291f;}
#theater #vesper-study .model-details {background:#e5ddc9;border:0;}
#theater #vesper-study .wk-junction-index {
  border:0;background:linear-gradient(180deg,#e5ddc9,var(--join-foot));box-shadow:none;
}
#theater #vesper-study .wk-junction-image {mix-blend-mode:multiply;}
#theater #stage .mde-room .mde-switch {background:var(--join-head);border-block:0;}
#theater #stage .md-galaxies .md-proof-line {border-top:0;}
#theater #stage .md-galaxies .md-rights {background:var(--join-foot);}
#theater #stage .mde-worktop:not(.mde-gallery) {background-color:var(--join-foot);}

/* The woodcut lives on the same roast stock as the catalogue. The ticket itself stays a sharp-edged object. */
#theater #stage .cf-roast .ea-imprint {border-bottom:0;}
#theater #stage .cf-roast .ea-photobay {clip-path:none;background:var(--join-foot);}
#theater #stage .cf-roast .ea-photobay>.cf-print {
  mask-image:linear-gradient(90deg,transparent,#000 clamp(12px,2.9vw,46px)),
    linear-gradient(180deg,transparent,#000 clamp(15px,2.7vw,44px),#000 calc(100% - clamp(15px,2.7vw,44px)),transparent);
  mask-composite:intersect;
}
/* The relief print recedes toward the green field book, while the mapped route retains its surveyed lines. */
#theater #stage .cf-trail .nl-hero {background:var(--join-foot);}
#theater #stage .cf-trail .nl-hero>.cf-print {
  mask-image:linear-gradient(90deg,#000 65%,rgba(0,0,0,.96) 78%,transparent),
    linear-gradient(180deg,transparent,rgba(0,0,0,.015) 4px,rgba(0,0,0,.64) clamp(14px,2vw,29px),#000 clamp(24px,3.3vw,48px),#000 calc(100% - clamp(14px,2.6vw,40px)),transparent);
  mask-composite:intersect;
}
#theater #stage .cf-trail .nl-book {background:var(--join-foot);border:0;}
#theater #stage .signal-proof {background:var(--join-foot);border:0;box-shadow:none;}
#theater #stage .signal-proof>header {border-top:0;}
#theater #stage .score-picker .score-artwork {border:0;background:transparent;}
#theater #stage .score-picker .score-land {
  mask-image:linear-gradient(180deg,transparent,#000 11%,#000 77%,transparent);
}
#theater #stage .score-picker .score-artwork::after {background:var(--join-foot);}
#theater #stage .tt-edition .tt-title {border:0;background:var(--join-head);}
#theater #stage .tt-edition .tt-image {background:#143746;}
#theater #stage .tt-edition .tt-image::after {content:none;}
#theater #stage .tt-edition .tt-image img {
  mask-image:linear-gradient(90deg,#000 72%,rgba(0,0,0,.90) 88%,transparent),
    linear-gradient(180deg,transparent,#000 clamp(13px,2vw,30px),#000 89%,transparent);
  mask-composite:intersect;
}
#theater #stage .tt-edition .fde-stations {border-block:0;background:var(--join-foot);}
/* The food photograph bridges the green cloth of the masthead and the warm comparison page. */
#theater #stage .sm-cover {border:0;}
#theater #stage .sm-cover .sm-cover-banner {
  background:var(--join-head);border:0;color:#efe4c7;
}
#theater #stage .sm-cover .sm-cover-banner :is(span,strong) {color:inherit;}
#theater #stage .sm-cover .sm-cover-art {border:0;background:linear-gradient(180deg,var(--join-head),var(--join-foot) 67%);}
#theater #stage .sm-cover .sm-cover-art img {
  mask-image:linear-gradient(180deg,transparent,#000 clamp(18px,2.9vw,45px),#000 calc(100% - clamp(21px,3.2vw,49px)),transparent);
}
@media(max-width:680px) {
  #theater #stage .cf-roast .ea-slip {
    padding:23px 8px 6px;
    background:linear-gradient(180deg,transparent,var(--join-foot) 65%);
    color:#efdec6;box-shadow:none;filter:none;
  }
  #theater #stage .cf-roast .ea-ticket-body {padding:0;color:inherit;}
  #theater #stage .cf-roast .ea-ticket-body>span {color:#d3b99b;}
  #theater #stage .cf-roast .ea-photobay>.cf-print {
    mask-image:linear-gradient(90deg,#000 75%,rgba(0,0,0,.93) 88%,transparent),linear-gradient(180deg,transparent,#000 15px,#000 88%,transparent);
  }
  #theater #stage .cf-trail .nl-hero>.cf-print,
  #theater #stage .tt-edition .tt-image img {
    mask-image:linear-gradient(180deg,transparent,rgba(0,0,0,.015) 4px,rgba(0,0,0,.7) 15px,#000 24px,#000 72%,rgba(0,0,0,.88) 89%,transparent);
  }
}
@media(forced-colors:active) {
  #theater.studio-theater::before,#theater:is([data-project=vesper],[data-project=food])::after {display:none;}
  #theater #stage .cf-print,#theater #stage .tt-edition .tt-image img,#theater #stage .score-land,#theater #stage .sm-cover-art img {mask:none;}
  #theater #vesper-study #light-plate::before {display:none;}
}
/* The architectural print and the invitation are on a continuous sheet of drawing stock. */
#theater[data-project=vesper] { --join-foot:#efe7d0; }
#theater #project-window #vesper-study { box-shadow:none; }
#theater #project-window #vesper-study #light-plate::before {
  background:linear-gradient(180deg,var(--join-head),rgba(40,44,39,.98) 4px,rgba(40,44,39,.78) 23px,transparent 64px,transparent calc(100% - 44px),var(--join-foot));
}
@media (min-width:901px) {
  #theater #project-window #vesper-study .light-instrument {
    padding-top:calc(var(--drawing-gutter) + 28px);
    background:linear-gradient(180deg,var(--join-head),#6b6d5f 12px,#c7c2ac 27px,var(--drawing-paper) 47px);
  }
}
#theater #stage[data-scene=civic] .tt-edition .tt-title::before {
  background:linear-gradient(to bottom,var(--join-head),rgba(18,51,61,.78) 45%,transparent);
}
#theater #stage[data-scene=northline] .cf-trail .nl-hero::after {
  mask-image:linear-gradient(to bottom,transparent,#000 28px);
}

/* Carry the project stock through the reading and launch controls, feathering only the surfaces. */
#works #theater.studio-theater {
  --edge-falloff:clamp(7px,3.6vw,72px);
  --side-mask:linear-gradient(90deg,transparent,#0002 calc(var(--edge-falloff) * .18),#000d calc(var(--edge-falloff) * .72),#000 var(--edge-falloff),#000 calc(100% - var(--edge-falloff)),#000d calc(100% - var(--edge-falloff) * .72),#0002 calc(100% - var(--edge-falloff) * .18),transparent);
  background:transparent;
}
#works #theater[data-project=aletheia] {--join-foot:#17130e;}
#works #project-window::before {
  content:"";position:absolute;z-index:4;inset:0 0 auto;height:2px;pointer-events:none;
  background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--wash) 50%,#777) 17%,color-mix(in srgb,var(--wash) 60%,#eee) 50%,color-mix(in srgb,var(--wash) 50%,#777) 83%,transparent) top / 100% 1px no-repeat,
             linear-gradient(90deg,transparent,#0008 12% 88%,transparent) bottom / 100% 1px no-repeat;
}
#works #theater .project-scripture {background:transparent;}
#works #theater .project-scripture::after,
#works #theater[data-project] #project-footer::before {
  content:"";display:block;position:absolute;inset:0;z-index:-1;pointer-events:none;
}
#works #theater .project-scripture::after {
  background:linear-gradient(0deg,var(--join-foot),transparent 35%),
             radial-gradient(ellipse at 24% 27%,var(--verse-edge),transparent 74%),var(--verse-ground);
  mask-image:var(--side-mask),linear-gradient(#000,transparent 32px);
}
#works #theater[data-project] #project-footer {
  position:relative;isolation:isolate;background:transparent;
  padding-bottom:calc(clamp(12px,1.65vw,24px) + 24px);
}
#works #theater[data-project] #project-footer::before {
  background:linear-gradient(180deg,var(--join-foot),var(--footer-tone) 42%,color-mix(in srgb,var(--footer-tone) 90%,var(--join-nav)));
  mask-image:var(--side-mask),linear-gradient(#000 0 calc(100% - 30px),#000d calc(100% - 23px),#0002 calc(100% - 6px),transparent);
  mask-composite:intersect;
}
@media(max-width:750px) {
  #works #theater.studio-theater {--side-mask:linear-gradient(#000,#000);}
}
@media(forced-colors:active) {
  #works #project-window::before {height:1px;background:CanvasText;}
  #works #theater .project-scripture::after,#works #theater[data-project] #project-footer::before {display:none;}
}

/* Ease the pale drafting and recipe sheets into a dark studio surround above the controls. */
#works #theater:is([data-project=vesper],[data-project=food]) .project-scripture {
  --verse-ground:#191a16;--verse-edge:#272822;--verse-ink:#f1ecdf;--verse-accent:#c6b999;
  padding-top:calc(clamp(22px,2.4vw,36px) + 32px);
}
#works #theater:is([data-project=vesper],[data-project=food]) .project-scripture::before {
  inset:0 0 auto;height:32px;background:linear-gradient(var(--join-foot),color-mix(in srgb,var(--join-foot) 87%,transparent) 14%,color-mix(in srgb,var(--join-foot) 30%,transparent) 58%,transparent);pointer-events:none;
}
#works #theater:is([data-project=vesper],[data-project=food]) .project-scripture::after {
  background:radial-gradient(ellipse at 28% 18%,var(--verse-edge),transparent 70%),var(--verse-ground);
}
#works #theater:is([data-project=vesper],[data-project=food]) #project-footer {
  --footer-tone:#191a16;--footer-ink:#eee9dc;--footer-label:#c0bba9;
}
#works #theater:is([data-project=vesper],[data-project=food]) #project-footer::before {background:linear-gradient(var(--footer-tone),#11120f);}
