/* 3. intro: title line, description, FLIGHT PLAN head and the curve into the rail */
.folio-intro-wrap {
  /* The section box is the piece's frame: it reaches out past the column so the
     FLIGHT PLAN head and the curve sit inside it. Negative margins cancel the
     padding, so the intro still lands 20 below the window and the track 48 below. */
  --in-top: 16px;
  --in-left: 80px;
  --in-right: 10px;
  --in-bottom: 52px;
  --in-mt: -28px;
  align-self: stretch;
  padding: var(--in-top) var(--in-right) var(--in-bottom) var(--in-left);
  margin: calc(var(--in-mt) - var(--in-top)) calc(0px - var(--in-right)) calc(0px - var(--in-bottom)) calc(0px - var(--in-left));
}
.intro-box { position: relative; }
/* The reference intro is framed at scrollY 0 on desktop, where the curve is still unlit.
   Centering this section in view (anchor jumps, scrollIntoView) must land on that same
   state, so the scroll target reaches 16px higher than the box. */
@media (min-width: 761px) {
  .folio-intro-wrap { scroll-margin-top: 16px; }
}
.folio-intro {
  --reveal-to: .8;
  opacity: .8; /* the reveal ends at .8, as on the reference */
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}
.folio-tagline {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: -.12px;
  color: var(--ink);
}
.folio-sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -.12px;
  color: var(--body);
  opacity: .8;
}

.plan-head {
  position: absolute;
  left: -3px;
  top: 22px;
  width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--blue);
}
.plan-label {
  font-size: 6px;
  line-height: 6px;
  letter-spacing: .76px;
}
.plan-plane { width: 16px; height: 15px; }

.path-curve {
  position: absolute;
  left: -22px;
  top: 63px;
  overflow: visible;
}
.path-curve path {
  stroke-width: 1;
  stroke-linecap: round;
  fill: none;
}
.pc-base {
  stroke: var(--dot);
  stroke-dasharray: 2 3.5;
}
/* The lit line is a crisp core with only a faint halo (the reference's halo is
   about 1 device px). On desktop it is 1px on a half-pixel x, so at 1x the light
   paints one solid pixel column instead of two half-strength ones. */
.path-curve .pc-lit {
  stroke: var(--blue-light);
  stroke-width: 1px;
  stroke-dasharray: 0 10000;
  /* a bg-colored copy 1px left hides the dotted track's left half-pixel under the light */
  filter: drop-shadow(-1px 0 0 var(--bg)) drop-shadow(0 0 .75px rgba(44, 111, 255, .12));
}

/* At the very top the curve rests unlit, as on the reference (scrollY 0): the tail of
   the eased light fades out instead of lingering as a stub under the plane. */
.path-curve.is-top .pc-lit {
  opacity: 0 !important;
  transition: opacity .25s ease;
}

@media (max-width: 1219px) {
  .folio-intro-wrap { --in-mt: -34px; }
}
@media (max-width: 760px) {
  .folio-intro-wrap {
    --in-left: 24px;
    --in-right: 24px;
    --in-bottom: 141px; /* plan head, curve and the top of the track */
  }
  .plan-head {
    left: calc(50% - 24px); /* no transform, so the shared reveal keyframes apply */
    top: calc(100% + 22px);
  }
  .path-curve {
    left: 3px;
    top: calc(100% + 63px);
  }
  .path-curve .pc-lit { stroke-width: 1.25px; filter: drop-shadow(0 0 .75px rgba(44, 111, 255, .12)); }
}
@media (max-width: 620px) {
  .sub-br { display: none; }
}
