/* Homepage motion. Loaded by index.html only, after assets/css/motion.css.
   Kept: the tape measure under "Our impact, measured." (plays once), the Apply
   blueprint (draws once; windows light on hover), and FAQ easing. */

/* ── IMPACT: "measured" with a tape measure that unrolls once ───────────── */
.tape {
  position: relative;
  height: 34px;
  margin: calc(-1 * clamp(1.4rem, 2.5vw, 2rem)) 0 clamp(1.4rem, 2.5vw, 2rem);
}
.tape-case {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.tape-case i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(158, 217, 223, 0.8);
}
.tape-blade {
  position: absolute;
  left: 30px;
  width: calc(100% - 42px);   /* hook (7px) sits on its right end, inside the container */
  top: 9px;
  height: 16px;
  border-top: 1px solid rgba(6, 27, 55, 0.3);
  border-bottom: 1px solid rgba(6, 27, 55, 0.3);
  background:
    repeating-linear-gradient(90deg, rgba(6, 27, 55, 0.7) 0 1px, transparent 1px 60px) top left / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, rgba(6, 27, 55, 0.45) 0 1px, transparent 1px 12px) top left / 100% 5px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 29.5px, rgba(6, 27, 55, 0.3) 29.5px 30.5px, transparent 30.5px 60px) top left / 100% 7px no-repeat,
    rgba(0, 168, 214, 0.17);
}
.tape-hook {
  position: absolute;
  top: -3px;
  right: -7px;   /* rides the end of the blade */
  width: 7px;
  height: 22px;
  border-radius: 1px;
  background: var(--navy);
}
.nc-js .tape:not(.is-in) .tape-blade { width: 0; }
.tape.is-in .tape-blade { animation: tape-out 1.9s cubic-bezier(0.5, 0, 0.1, 1) 0.15s both; }
.tape.is-in .tape-case i { animation: nc-spin 0.63s linear 0.15s 3; }
@keyframes tape-out { from { width: 0; } to { width: calc(100% - 42px); } }


/* ── APPLY: a blueprint that builds itself; windows light on hover ──────── */
.blueprint {
  position: relative;
  background: var(--navy);
  line-height: 0;
}
.blueprint svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: #9ed9df;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.blueprint .soft { stroke: rgba(158, 217, 223, 0.45); stroke-width: 1; }
.blueprint .acc { stroke: #00a8d6; stroke-width: 2.2; }
.blueprint .win { fill: rgba(0, 168, 214, 0); transition: fill 0.4s ease calc(var(--w, 0) * 90ms); }
.application-panel:hover .blueprint .win,

/* FAQ: answers ease in; the mark turns. */
.faq-icon { display: inline-block; transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-item.open .faq-body { animation: faq-in 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tape-blade, .tape-case i, .faq-item.open .faq-body { animation: none !important; }
  .faq-icon { transition: none; }
  .nc-js .tape .tape-blade { width: calc(100% - 42px) !important; }
}
