.home-sec-4.home-programs {
  --programs-band-min: clamp(6px, 1.2vmin, 14px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(var(--programs-band-min), 1fr) auto minmax(var(--programs-band-min), 1fr);
  min-height: calc(100vh - var(--home-header));
  min-height: calc(100dvh - var(--home-header));
  padding: 0;
  background: #e1261d;
}

.programs-band {
  grid-column: 1;
  background: inherit;
  pointer-events: none;
}
.programs-band--top { grid-row: 1; }
.programs-band--bottom { grid-row: 3; }

/* On short screens both edges stay together while the taller panel scrolls. */
.home-programs::after {
  content: '';
  grid-area: 1 / 1 / 4 / 2;
  align-self: start;
  position: sticky;
  top: var(--home-header);
  z-index: 2;
  box-sizing: border-box;
  height: calc(100vh - var(--home-header));
  height: calc(100dvh - var(--home-header));
  border-block: var(--programs-band-min) solid #e1261d;
  pointer-events: none;
}

.home-programs__panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  grid-area: 2 / 1;
  display: grid;
  align-items: center;
  min-height: 40.07vw;
  min-height: min(40.07vw, calc(100dvh - var(--home-header) - 2 * var(--programs-band-min)));
  padding: clamp(3rem, 6.83vw, 8rem) 9.42%;
  color: #202529;
  background: #f7fcfe;
}

.home-programs::before { content: none; }

.home-programs .programs-copy {
  position: relative;
  z-index: 1;
  width: min(27.6vw, 30rem);
}

.programs-copy .programs-logo {
  display: block;
  width: clamp(145px, 15.14vw, 260px);
  height: auto;
  mix-blend-mode: multiply;
}

.programs-copy p {
  margin: clamp(18px, 2.05vw, 36px) 0;
  font-size: clamp(15px, 1.38vw, 23px);
  line-height: 1.485;
}

.programs-copy .btn-Silanes {
  border: 1.4px solid #009fb1;
  border-radius: 7px;
  padding: .78em 1.4em;
  font-size: clamp(12px, 1.1vw, 17px);
  line-height: 1.45;
  color: #007f8f;
}

.programs-copy .btn-Silanes:is(:hover, :focus-visible) {
  color: white;
  background: #007781;
}

.home-programs .programs-art {
  inset: -3.33% 0 auto auto;
  z-index: 0;
  width: 53.55%;
  max-width: none;
  height: auto;
  min-height: 115.13%;
  overflow: visible;
}

/* The photograph and its full-width gradient travel behind the doctor. */
.programs-scenery {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.programs-scenery::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 186.74%;
  background: linear-gradient(90deg, #f7fcfe, #f4fbfe 22%, #ebf7fc 38%, #def1f9 48%,
    rgb(207 235 247 / 86%) 55%, rgb(179 224 243 / 46%) 65%, rgb(152 214 239 / 8%) 78%, transparent);
}

.home-programs .programs-backdrop,
.home-programs .programs-foreground { mask-image: none; }
.home-programs .programs-ribbon { z-index: 2; }
.home-programs .programs-foreground { z-index: 3; }
.home-programs .programs-ribbon:last-child { z-index: 4; }

@media (max-width: 767.98px) {
  .home-programs__panel {
    min-height: auto;
    padding: 0;
    background: #f4fbfe;
  }
  .home-programs .programs-copy {
    width: min(100%, 34rem);
    padding: 2.5rem 1.5rem .75rem;
    margin-inline: auto;
  }
  .home-programs .programs-art {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1351 / 1164;
  }
  .programs-scenery::before {
    width: 100%;
    background: linear-gradient(to bottom, #f4fbfe, rgb(222 241 249 / 35%) 35%, transparent 65%);
  }
}
