/* Existing Clara staff artwork; CSS crops retain the original drawing and white background. */
.c-reasons::before{top:-24px;right:0;width:260px;height:130px;background:url("../../src/score-original.jpg") right bottom/800px auto no-repeat;opacity:.68;mix-blend-mode:multiply;z-index:-1}
.c-contact::before{display:none!important}
.c-contact__action{position:relative;isolation:auto}
.c-contact .c-contact__action::before{content:"";position:absolute;left:auto;right:-32px;top:-90px;width:280px;height:140px;background:url("../../src/score-original.jpg") right bottom/860px auto no-repeat;filter:invert(1);mix-blend-mode:screen;opacity:.52;-webkit-mask:none;mask:none;pointer-events:none;z-index:-1}
/* Photo-backed page titles share the news banner's overlay. */
:root {
  --title-photo-overlay: linear-gradient(90deg, rgb(255 255 255 / 74%), rgb(255 255 255 / 97%) 30% 70%, rgb(255 255 255 / 74%));
}
.p-teacher__breadcrumb,
.p-vienna__breadcrumb,
:is(.p-special, .p-lesson-videos, .p-inperson) .p-special__breadcrumb {
  color: #51474a;
}
.p-teacher__title,.p-vienna__title{position:relative;isolation:isolate;padding:24px 0 64px;background:#fff;overflow:hidden}
.p-teacher__title{--clara-title-photo:url("../../src/profile-banner.jpg");--clara-photo-position:center}
.p-vienna__title{--clara-title-photo:url("../../src/vienna-original.jpg");--clara-photo-position:50% 48%}
.p-teacher__title::before,.p-vienna__title::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--title-photo-overlay),var(--clara-title-photo);background-position:center,var(--clara-photo-position);background-size:cover;pointer-events:none}
.p-teacher__title .container,.p-vienna__title .container{position:relative}
.p-teacher__title .eyebrow,.p-vienna__title .eyebrow{justify-content:center;margin:0 0 14px}
.p-teacher__title h1,.p-vienna__title h1{text-align:center;color:var(--wine)}
.p-teacher__breadcrumb,.p-vienna__breadcrumb{margin-bottom:40px}
/* Staff sits entirely in the outside gutter; no text or photos underneath. */
.p-teacher main,.p-vienna main{position:relative;isolation:isolate}
.p-teacher main::after,.p-vienna main::after{content:"";position:absolute;right:12px;top:440px;width:clamp(0px,calc((100vw - 1120px)/2 - 32px),240px);height:240px;background:url("../../src/score-original.jpg") right bottom/320% auto no-repeat;opacity:.72;mix-blend-mode:multiply;pointer-events:none;z-index:-1}
.p-vienna main::after{top:650px;width:clamp(0px,calc((100vw - 960px)/2 - 32px),260px)}
@media(max-width:1200px){.p-teacher main::after,.p-vienna main::after{display:none}}
@media(max-width:768px){
 .p-teacher__title,.p-vienna__title{padding:20px 0 44px}
 .p-teacher__breadcrumb,.p-vienna__breadcrumb{margin-bottom:30px}
 .p-teacher__title h1,.p-vienna__title h1{font-size:30px}
 .c-contact .c-contact__action::before{right:-20px;top:-68px;width:210px;height:105px;background-position:right -72px bottom;background-size:650px auto;opacity:.45}
}
/* Screen blending makes the inverted white paper transparent against the wine panel.
   Avoid subtractive multi-image masks, whose loading/compositing can show a solid rectangle. */


/* Both original motifs: the opening sweep on the left, the fuller staff on the right. */
.p-teacher main::after,.p-vienna main::after{display:none}
.p-teacher__record[aria-labelledby="awards-title"]{position:relative}
.p-teacher__record[aria-labelledby="awards-title"]::after{content:"";position:absolute;right:calc((1180px - 100vw)/2 + 12px);top:80px;width:clamp(0px,calc((100vw - 1180px)/2 - 32px),270px);height:240px;background:url("../../src/score-original.jpg") right bottom/320% auto no-repeat;mix-blend-mode:multiply;opacity:.78;pointer-events:none;z-index:-1}
.c-intro::before{content:"";position:absolute;top:50px;left:12px;width:clamp(0px,calc((100vw - 820px)/2 - 40px),260px);height:190px;background:url("../../src/score-original.jpg") left top/420% auto no-repeat;mix-blend-mode:multiply;opacity:.64;pointer-events:none}
.c-pricing{position:relative;isolation:isolate}
.c-pricing::after{content:"";position:absolute;right:12px;top:90px;width:clamp(0px,calc((100vw - 1180px)/2 - 32px),240px);height:220px;background:url("../../src/score-original.jpg") right bottom/320% auto no-repeat;mix-blend-mode:multiply;opacity:.7;pointer-events:none;z-index:-1}
@media(max-width:1200px){.p-teacher__record[aria-labelledby="awards-title"]::after,.c-pricing::after{display:none}}

@media (768px < width <= 1200px) {
 .c-intro::before {
  top: 12px;
  left: clamp(16px, 2vw, 24px);
  width: clamp(142px, 17vw, 200px);
  height: 88px;
  opacity: .54;
 }
}

/* Larger, lighter accents only on the home and teacher pages. */
@media(min-width:1201px){
 .c-intro::before{left:-24px;top:36px;width:clamp(0px,calc(70vw - 630px),364px);height:266px;opacity:.5}
 .p-teacher__record[aria-labelledby="awards-title"]::after{right:calc((1180px - 100vw)/2);top:50px;width:clamp(0px,calc(70vw - 870.8px),378px);height:336px;opacity:.58;mask-image:linear-gradient(90deg,transparent,#000 18%)}
}
.c-reasons::before{top:-50px;width:338px;height:169px;background-size:1040px auto;opacity:.52}
@media (max-width: 768px) {
 .c-intro {
  padding-top: 94px;
 }
 .c-intro::before {
  top: 2px;
  left: 16px;
  width: 142px;
  height: 90px;
  background-size: 600px auto;
  opacity: .54;
 }
 .c-intro::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  width: 124px;
  height: 74px;
  background: url("../../src/score-original.jpg") right bottom -13px / 350px auto no-repeat;
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
 }
 .c-reasons::before { display: none; }
}

/* Consolidate the decoration around the teacher introduction; keep data lists clean. */
.c-pricing::after,.p-teacher__record[aria-labelledby="awards-title"]::after{display:none}
.p-teacher main{overflow-x:clip}
.p-teacher__intro{position:relative;isolation:isolate}
@media(min-width:1201px){
 .p-teacher__portrait{position:relative}
 .p-teacher__portrait::before{
  content:"";
  position:absolute;
  left:clamp(-72px, calc((1120px - 100vw) / 2 + 16px), -12px);
  bottom:calc(100% + 16px);
  width:clamp(290px, 28vw, 380px);
  aspect-ratio:1.95;
  background:url("../../src/score-original.jpg") left 5%/390% auto no-repeat;
  mix-blend-mode:multiply;
  opacity:.72;
  pointer-events:none;
 }
 .p-teacher__intro::after{content:"";position:absolute;right:calc((1120px - 100vw)/2 - 80px);bottom:0;width:340px;height:230px;background:url("../../src/score-original.jpg") right bottom/1088px auto no-repeat;mix-blend-mode:multiply;opacity:.5;mask-image:linear-gradient(90deg,transparent,#000 25%);z-index:-1;pointer-events:none}
}

/* A single quiet accent accompanies the home-page portrait. */
.c-profile__portrait{isolation:isolate}
.c-profile__portrait::after{content:"";position:absolute;left:-34px;top:-32px;width:150px;height:110px;background:url("../../src/score-original.jpg") left top/630px auto no-repeat;mix-blend-mode:multiply;opacity:.42;pointer-events:none;z-index:0}
.c-profile__portrait img{position:relative;z-index:1}
.profile-photo-crop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 10 / 9;
  overflow: hidden;
  border-radius: 6px;
}

.profile-photo-crop > img {
  position: absolute;
  top: 0;
  left: 0;
  width: 161.3%;
  max-width: none;
  height: auto;
  transform: translate(-19%, -12%);
}

.c-profile__portrait .profile-photo-crop > img,
.p-teacher__portrait .profile-photo-crop > img {
  position: absolute;
  width: 161.3%;
  border-radius: 0;
}
@media(max-width:980px){.c-profile__portrait::after{left:-10px;top:-24px;width:130px;height:95px;background-size:546px auto;opacity:.38}}

/* Home profile: one broad lower-right accent replaces the small portrait motif. */
.c-profile__portrait::after{display:none}
.c-profile{position:relative;isolation:isolate;overflow:clip}
@media(min-width:1201px){.c-profile::after{content:"";position:absolute;right:-45px;bottom:16px;width:340px;height:220px;background:url("../../src/score-original.jpg") right bottom/1088px auto no-repeat;mix-blend-mode:multiply;opacity:.48;mask-image:linear-gradient(180deg,transparent,#000 32%);pointer-events:none;z-index:-1}}
@media (max-width: 768px) {
 .c-profile::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 124px;
  height: 72px;
  background: url("../../src/score-original.jpg") right bottom -13px / 340px auto no-repeat;
  mix-blend-mode: multiply;
  opacity: .5;
  pointer-events: none;
  z-index: -1;
 }
}

/* Reserve the projecting logo's footprint for all lesson/teacher breadcrumbs. */
.p-special__breadcrumb,.p-teacher__breadcrumb,.p-vienna__breadcrumb,.news-title .news-breadcrumb{
 --breadcrumb-logo-edge:224px;
 padding-inline-start:max(0px,calc(var(--breadcrumb-logo-edge) - (100vw - 100%) / 2));
}
@media(max-width:1400px){
 .p-special__breadcrumb,.p-teacher__breadcrumb,.p-vienna__breadcrumb,.news-title .news-breadcrumb{--breadcrumb-logo-edge:184px}
}
@media(max-width:768px){
 .p-special__breadcrumb,.p-teacher__breadcrumb,.p-vienna__breadcrumb,.news-title .news-breadcrumb{padding-inline-start:0;padding-block-start:8px}
}

.c-contact .c-contact__text--trial h2 {
  font-size: clamp(22px, 5.8vw, 26px);
  letter-spacing: .02em;
  text-wrap: balance;
}

.c-contact .c-contact__text--trial p {
  font-size: clamp(17px, 1.6vw, 19px);
}

/* Move the button and note within the existing panel spacing. */
.c-contact__text--trial + .c-contact__action > :is(.btn, p) {
  position: relative;
  inset-block-start: 12px;
}

.c-contact__text--trial + .c-contact__action > .btn {
  font-size: 16px;
}

.c-contact:has(.c-contact__text--trial) {
  overflow: clip;
}

.c-contact__text--trial + .c-contact__action::before {
  right: -16px;
}

@media (min-width: 769px) {
  .c-contact__text--trial + .c-contact__action::before {
    top: -78px;
    right: -116px;
  }

  .c-contact__text--trial {
    min-width: 0;
    container-type: inline-size;
  }

  .c-contact .c-contact__text--trial h2 {
    font-size: min(31px, 4.45cqw);
  }
}

@media (769px <= width <= 980px) {
  .c-contact__inner:has(> .c-contact__text--trial) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .c-contact__inner:has(> .c-contact__text--trial) > .c-contact__action {
    justify-self: start;
  }
}

/* Shared trial invitation: approved placement and visibility on every page. */
#contact .c-contact__action::before { top: -108px; right: -78px; width: 420px; height: 210px; background-size: 1290px auto; opacity: .92; }
@media (min-width: 981px) {
  #contact .c-contact__action::before { top: -48px; right: calc(100% - 52px); width: 340px; height: 250px; background-size: 960px auto; transform: rotate(-8deg); transform-origin: center; }
}
@media (max-width: 768px) {
  #contact .c-contact__action::before { top: -86px; right: -22px; width: 320px; height: 160px; background-size: 984px auto; opacity: .82; }
}
