/* Continue the library paper through a long, transparent photographic entry.
   The resting centre keeps the existing forest contrast behind the copy. */
.contact-section{
  --contact-entry:clamp(260px,36svh,390px);
  --contact-exit:clamp(220px,30svh,320px);
  --contact-footer-sage:#a8b8a0;
  padding-top:calc(var(--contact-entry) + 18px);
  padding-bottom:calc(var(--contact-exit) + 26px);
}

.contact-section::before{
  z-index:0;
  /* The alpha stops ease into the original photograph, then end on the
     footer's exact sage. Neither edge introduces an opaque green panel. */
  background:
    linear-gradient(to bottom,
      var(--cream) 0%,
      rgba(238,232,216,.985) 8%,
      rgba(238,232,216,.93) 20%,
      rgba(238,232,216,.79) 36%,
      rgba(238,232,216,.55) 54%,
      rgba(238,232,216,.28) 72%,
      rgba(238,232,216,.08) 89%,
      rgba(238,232,216,0) 100%) top / 100% var(--contact-entry) no-repeat,
    linear-gradient(to bottom,
      rgba(168,184,160,0) 0%,
      rgba(168,184,160,.045) 13%,
      rgba(168,184,160,.17) 29%,
      rgba(168,184,160,.41) 48%,
      rgba(168,184,160,.69) 67%,
      rgba(168,184,160,.91) 84%,
      rgba(168,184,160,.985) 93%,
      var(--contact-footer-sage) 98%,
      var(--contact-footer-sage) 100%) bottom / 100% var(--contact-exit) no-repeat;
  pointer-events:none;
}

.contact-content{z-index:1}

/* Shorter devices retain the same eased joins without an empty screen
   before the contact heading. These are static layers in both motion modes. */
@media(max-width:760px){
  .contact-section{
    --contact-entry:clamp(210px,29svh,280px);
    --contact-exit:clamp(190px,25svh,250px);
    padding-top:calc(var(--contact-entry) + 14px);
    padding-bottom:calc(var(--contact-exit) + 22px);
  }
}
