/* The glass and the empty set were rendered with the same light. */
.ray-opening {
  --studio-green: #55775a;
  --studio-ivory: #f4f5e9;
}
.ray-opening main { isolation: isolate; }
.ray-opening .opening-sequence {
  background: var(--studio-green);
  border-radius: 0 0 var(--section-radius) var(--section-radius);
}
.opening-divider {
  height: clamp(32px, 5.5vw, 64px);
  position: relative;
  z-index: -1;
  background: #fff;
  /* Carry the same white behind the curved edges of both green sections. */
  box-shadow: 0 calc(0px - var(--section-radius)) #fff, 0 var(--section-radius) #fff;
}
.ray-opening .opening:has(.studio-aperture), .ray-opening .care-intro { background: transparent; }
.ray-opening .opening picture { display: contents; }
.studio-light-field {
  --set-art: url('/assets/studio-reach-wide-field.webp');
  --exit-fade: linear-gradient(transparent 52%, rgb(85 119 90 / 14%) 68%, var(--studio-green) 98%);
  position: absolute;
  inset: 0;
  pointer-events: none;
  isolation: isolate;
  background: var(--studio-green) var(--set-art) no-repeat;
  background-position: var(--set-x, 50%) var(--set-y, 0px);
  /* Same scale and top edge as the glass; the empty set continues 50% farther down. */
  background-size: var(--set-width, 100%) auto;
}
@media (max-aspect-ratio: 1/1) {
  .studio-light-field { --set-art: url('/assets/studio-reach-portrait-field.webp'); }
}
.studio-light-field::before, .studio-light-field::after {
  content: "";
  position: absolute;
  inset: var(--visit-join, 100svh) 0 0;
}
.studio-light-field::before {
  background: var(--exit-fade);
}
/* Soft reflected fill only lifts the darkest green underneath small print.
   It cannot dull the brighter part of the beam, and fades out before the credits. */
.studio-light-field::after {
  mix-blend-mode: lighten;
  background: linear-gradient(90deg, transparent calc(var(--reading-left, 40%) - max(22vw, 140px)),
    #69896d var(--reading-left, 40%), #69896d var(--reading-right, 94%),
    transparent calc(var(--reading-right, 94%) + max(18vw, 100px)));
  -webkit-mask-image: linear-gradient(transparent, #000 var(--reading-top, 23%), #000 var(--reading-bottom, 82%), transparent);
  mask-image: linear-gradient(transparent, #000 var(--reading-top, 23%), #000 var(--reading-bottom, 82%), transparent);
}
/* Only the molecules fall away at the join. The light underneath has no section boundary. */
.ray-opening .studio-expanded-still {
  -webkit-mask-image: linear-gradient(#000 calc(var(--glass-join, 100%) - 86px), transparent var(--glass-join, 100%));
  mask-image: linear-gradient(#000 calc(var(--glass-join, 100%) - 86px), transparent var(--glass-join, 100%));
}
.ray-opening .booking-readability {
  --booking-blur: linear-gradient(transparent, #000 42%, #000 max(42%, calc(var(--booking-join, 100%) - 55px)), transparent var(--booking-join, 100%));
  -webkit-mask-image: var(--booking-blur);
  mask-image: var(--booking-blur);
}
.ray-opening .opening .opening-signature { color: #000; }
.ray-opening .opening :is(.opening-heading, .opening-area) {
  color: var(--studio-ivory);
}
.ray-opening .opening-booking { border-top-color: #e7ecdb40; }
.ray-opening .opening-readability::after {
  /* A light wash of sage softens the glass; the headline has no halo. */
  background: var(--upper-glaze, linear-gradient(100deg, rgb(219 229 212 / 17%), rgb(219 229 212 / 22%) 48% 84%, rgb(219 229 212 / 10%)));
}
.ray-opening .booking-readability::after { background: linear-gradient(100deg, rgb(218 229 212 / 13%), rgb(218 229 212 / 7%) 68%, transparent); }
.ray-opening .opening .opening-area { color: #06140c; }
.ray-opening .opening-heading h1 { color: #0d261a; text-shadow: none; }
.ray-opening .visit-choice:first-child { background: linear-gradient(155deg, #304b3ed6, #142b25e3 82%); }
.ray-opening .visit-choice:is(.mobile-details-choice, .text-choice) { background: linear-gradient(155deg, #e7ecdd99, #c3d0bc8f); }
.ray-opening .opening-heading .folio { color: #07170e; }
.ray-opening header:not(.is-scrolled):not(:focus-within):not(:has([aria-expanded="true"]))
:is(.navlinks > a:not(.btn), .service-nav-label > a, .service-toggle) {
  color: #041009;
}
.ray-opening .care-intro { color: #10261b; }
.ray-opening .care-intro :is(.folio, .visit-columns p, .visit-location, a) { color: #091910; }
.ray-opening .care-intro .visit-columns h3 { color: #091910; }
.ray-opening .care-intro .visit-columns article,
.ray-opening .care-intro .compare-link { border-color: #17342778; }
.ray-opening .care-intro a { text-decoration-color: #173427a8; }
.ray-opening .care-intro a:hover { color: #050e08; text-decoration-color: currentColor; }
.ray-opening .care-intro a:focus-visible { outline-color: #10271d; }
@media (min-width: 761px) and (max-width: 1020px) {
  .ray-opening .opening-readability {
    --upper-glaze: radial-gradient(ellipse 46% 47% at 18% 55%, rgb(22 47 33 / 27%) 12%, transparent 98%),
      linear-gradient(100deg, rgb(219 229 212 / 17%), rgb(219 229 212 / 22%) 48% 84%, rgb(219 229 212 / 10%));
  }
}
@media (max-width: 58em) {
  .ray-opening header:not(.is-scrolled):not(:focus-within):not(:has([aria-expanded="true"])) .menu {
    color: #fffef5;
    background: rgb(20 43 37 / 70%);
  }
}
@media (max-width: 760px) and (max-aspect-ratio: 1/1) {
  /* The phone crop otherwise loses the ray to the left before the visit headline.
     Ease into a longer projection of the empty set, starting at the same point. */
  .studio-light-field::before {
    --tail-stretch: 2.65;
    background: var(--exit-fade) 0 0 / 100% 100% no-repeat,
      var(--studio-green) var(--set-art) var(--set-x, 0px) calc((var(--set-y, 0px) - var(--visit-join, 100svh)) * var(--tail-stretch)) /
      var(--set-width, 100%) calc(var(--set-height, 100svh) * 1.5 * var(--tail-stretch)) no-repeat;
    -webkit-mask-image: linear-gradient(transparent, #000 min(16%, 100px));
    mask-image: linear-gradient(transparent, #000 min(16%, 100px));
  }
}
