/* The two sides of a section boundary share one colour and one soft edge. */
.section-blend {
  --blend-rgb: 19, 45, 91;
  --blend-depth: clamp(30px, 5vw, 72px);
  position: relative;
  display: block;
  z-index: 2;
  height: 0;
  pointer-events: none;
}
.section-blend::before {
  content: '';
  position: absolute;
  inset: calc(-1 * var(--blend-depth)) 0 auto;
  height: calc(2 * var(--blend-depth));
  background: linear-gradient(to bottom, transparent,
    rgba(var(--blend-rgb), .32) 22%, rgba(var(--blend-rgb), .87) 42%,
    rgb(var(--blend-rgb)) 49%, rgb(var(--blend-rgb)) 51%,
    rgba(var(--blend-rgb), .82) 60%, rgba(var(--blend-rgb), .27) 82%, transparent);
}
.section-blend[data-light]::after {
  content: '';
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: radial-gradient(ellipse closest-side at 50% 50%, #ffe593 0%, #e8b642ab 22%, #9aaacc50 55%, transparent);
  transform: translateX(var(--light-shift, 0%)) scaleX(var(--light-width, .55));
}
#main > .discipline-bar { border-block: 0; background-color: #152f61; }
#main > .footprint, #main > .contact, #main > .film-presentation,
#main > .albums-section, #footer { border-block-color: transparent; }
.section-blend[data-depth="short"] { --blend-depth: 22px; }
.section-blend[data-tone="cobalt"] { --blend-rgb: 34, 66, 128; }
.section-blend[data-tone="deep"] { --blend-rgb: 13, 33, 69; }
#main .approach-visual, #main .power-connection-image { overflow: clip; }
@media (prefers-reduced-motion: no-preference) {
  body[data-section-motion="on"] :is(.approach-visual > img, .power-connection-image > img) {
    scale: 1.055;
    translate: 0 var(--photo-shift, 0px);
  }
}

/* A feathered exposure travels across each incoming photograph, then clears. */
@media (prefers-reduced-motion: no-preference) {
  body[data-section-motion="on"] .section-photo-arriving {
    mask-image: linear-gradient(110deg, #000 38%, rgba(0,0,0,.45) 56%, rgba(0,0,0,.45));
    mask-size: 300% 100%;
    mask-repeat: no-repeat;
    animation: helios-expose 1.05s cubic-bezier(.22,.68,.25,1) both;
  }
  @keyframes helios-expose {
    from { mask-position: 100% 0; }
    to { mask-position: 0% 0; }
  }
}
