/* draw-in border on a box automatically,
no scroll needed */
.container-box-w-border {
  position: relative;
  max-width: 850px;
  margin: 2rem auto;
  padding: 10px 40px 30px 40px;
  box-sizing: border-box;
  clear: both;
}
.container-box-heading {
  position: relative;
  text-align: center;
  margin: 0 auto 1.5rem auto;
  background-color: #f4f4f4;
  display: inline-block;
  white-space: nowrap;
  padding: 0 15px;
  color: var(--fau-blue);
  font-weight: bold;
}
.container-box .drawn-line {
  position: absolute;
  background-color: var(--fau-blue);
  z-index: 1;
}
.container-box-w-border .drawn-line-top {
  top: 18px;
  left: 50%;
  right: 0;
  height: 1.5px;
  transform-origin: left;
  animation: drawLine 0.4s linear forwards 0s;
  transform: scaleX(0);
}
/* right top to bottom */
.container-box-w-border .drawn-line-right {
  top: 18px;
  right: 0;
  bottom: 0;
  width: 1.5px;
  transform-origin: top;
  animation: drawLine 0.5s linear forwards 0.4s;
  transform: scaleY(0);
}
/* bottom right to left */
.container-box-w-border .drawn-line-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  transform-origin: right;
  animation: drawLine 0.6s linear forwards 0.9s;
  transform: scaleX(0);
}
/* left bottom to top */
.container-box-w-border .line-left {
  top: 18px;
  left: 0;
  bottom: 0;
  width: 1.5px;
  transform-origin: bottom;
  animation: drawLine 0.5s linear forwards 1.5s;
  transform: scaleY(0);
}
/* top left line to heading container*/
.container-box-w-border .drawn-line-top-left {
  top: 18px;
  left: 0;
  width: 50%;
  height: 1.5px;
  transform-origin: left;
  animation: drawLine 0.4s linear forwards 2s;
  transform: scaleX(0);
}
@keyframes drawLine {
  to {
    transform: scale(1);
  }
}

/* ===== scroll-driven timeline/line path animations ======*/

@keyframes drawSpine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
.animate-draw-spine {
  transform: scaleY(0);
  transform-origin: top;
  animation: drawSpine linear forwards;
  animation-timeline: view();
  animation-range: entry 60% cover 80%;
}

/* ==== lift animation w/ drop shadow ======= */
  .animate-card-lift {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  .animate-card-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 20, 65, 0.18);
  }