/* Photography runs to the edges. Its lighting, rather than a separate panel,
   makes a reading area for the headline and description. */
.panorama {
  --focal-height: 51%;
  --mobile-focus: 68%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fffaf2;
  background: #172b25;
}
.panorama-art,
.panorama--scene::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.panorama-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--focal-height);
}
.panorama--scene::after {
  content: "";
  background: linear-gradient(95deg, rgb(12 25 21 / .95) 0%, rgb(12 25 21 / .86) 27%, rgb(12 25 21 / .73) 49%, rgb(12 25 21 / .32) 65%, transparent 82%);
}
.panorama-field {
  position: relative;
  min-height: clamp(310px, 23vw, 400px);
  display: flex;
  flex-direction: column;
}
.panorama-crumb { align-self: flex-start; padding: 12px 0 4px; line-height: 1.32; }
.panorama-crumb b { color: currentColor; opacity: .7; }
.panorama-copy {
  width: 52%;
  max-width: 805px;
  padding-block: 18px 27px;
  margin-block: auto;
}
.panorama-copy h1 {
  color: inherit;
  font-size: clamp(35px, 3.1vw, 55px);
  line-height: .97;
  overflow-wrap: break-word;
}
.panorama-copy p {
  max-width: 66ch;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.48;
  margin: 12px 0 16px;
  text-wrap: pretty;
}
.panorama-copy .cta { min-height: 46px; }
.panorama--scene :focus-visible { outline-color: #ffbb94; }

/* Product photography has white source backgrounds. Multiply carries the
   studio lighting through them without cropping or recoloring the hardware. */
.panorama--studio {
  background: radial-gradient(ellipse at 79% 45%, #fff 2%, #f5f7f0 44%, #e8edde 91%);
  color: #1b3028;
}
.panorama--studio .panorama-art {
  left: 57%;
  right: max(4%, calc((100% - 1540px) / 2));
  top: 7%;
  bottom: 7%;
  mix-blend-mode: multiply;
}
.panorama--studio .panorama-art img { object-fit: contain; object-position: center; }
.panorama--studio .panorama-copy { width: 51%; }
.panorama--studio .cta { background: #203c31; color: #fffaf2; }
.panorama--studio .cta:hover { background: #355543; }
.panorama[data-area="2"], .panorama[data-area="7"], .panorama[data-area="28"] { --focal-height: 4%; }
.panorama[data-area="16"] { --focal-height: 12%; }
.panorama[data-area="11"], .panorama[data-area="12"] { --focal-height: 62%; }
.panorama[data-area="13"], .panorama[data-area="14"] { --focal-height: 8%; }
.panorama[data-area="15"] { --focal-height: 65%; }
.panorama[data-area="25"] { --focal-height: 33%; }
.panorama[data-area="31"], .panorama[data-area="32"] { --mobile-focus: 80%; }

@media (min-width: 1650px) {
  .panorama-copy { width: 54%; }
}
@media (min-width: 651px) and (max-width: 1000px) {
  .panorama-field { min-height: 305px; }
  .panorama-copy { width: 58%; padding-block: 18px 24px; }
  .panorama-copy h1 { font-size: clamp(32px, 4vw, 41px); }
  .panorama--scene::after {
    background: linear-gradient(95deg, rgb(12 25 21 / .95), rgb(12 25 21 / .82) 43%, rgb(12 25 21 / .67) 59%, transparent 90%);
  }
  .panorama--studio .panorama-copy { width: 54%; }
  .panorama--studio .panorama-art { left: 59%; right: 2%; }
}
@media (max-width: 650px) {
  .panorama-field { min-height: 0; }
  .panorama-crumb {
    font-size: .82rem;
    padding-block: 10px;
    gap: 6px;
    max-width: 100%;
  }
  .panorama-copy,
  .panorama--studio .panorama-copy {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(83px, 21vw, 120px) 0 22px;
  }
  .panorama-copy h1 { font-size: clamp(29px, 7.2vw, 39px); line-height: 1; }
  .panorama-copy p { margin: 10px 0 12px; font-size: 1rem; line-height: 1.48; }
  .panorama--scene .panorama-art { bottom: 9%; }
  .panorama--scene .panorama-art img { object-position: var(--mobile-focus) 28%; }
  .panorama--scene::after {
    background: linear-gradient(to bottom, rgb(10 22 18 / .84) 0, rgb(10 22 18 / .76) 31px, transparent 60px, rgb(11 24 20 / .18) 78px, rgb(11 24 20 / .85) clamp(113px, 26vw, 155px), rgb(18 36 29 / .94) 76%, #172b25 100%);
  }
  .panorama--studio .panorama-field { --studio-photo-height: clamp(132px, 32vw, 172px); }
  .panorama--studio .panorama-art {
    inset: 39px 8% auto;
    height: clamp(122px, 31vw, 160px);
  }
  .panorama--studio .panorama-copy { padding-top: calc(var(--studio-photo-height) + 10px); }
}

.panorama[data-area="33"], .panorama[data-area="34"], .panorama[data-area="35"], .panorama[data-area="36"] { --mobile-focus: 73%; }
