/* Contour / Matter: original geometric type assembles once, then rests.
   An open paper field and restrained copper lighting, not a blueprint or ink replica. */
.footer-sculpture {
  --signature-space:clamp(1rem, .6rem + 1.5vw, 2.25rem);
  --signature-tempo:2;
  --signature-ease-out:cubic-bezier(.22, 1, .36, 1);
  --signature-ease-in-out:cubic-bezier(.77, 0, .175, 1);
  margin-block-start:var(--signature-space);
  color:var(--ink);
}
.footer-sculpture > svg {
  display:block;
  inline-size:100%;
  block-size:auto;
  aspect-ratio:15/4;
  overflow:clip;
  touch-action:pan-y;
}
.footer-sculpture-outline {
  fill:none;
  stroke:color-mix(in oklch, var(--ink) 70%, var(--paper));
  stroke-width:.85;
  vector-effect:non-scaling-stroke;
}
.footer-sculpture-solid { fill:var(--ink); }
.footer-sculpture-echo {
  fill:none;
  stroke:var(--accent);
  stroke-width:.6;
  vector-effect:non-scaling-stroke;
  opacity:0;
  pointer-events:none;
}
.footer-sculpture-light { fill:var(--accent); opacity:.3; pointer-events:none; }
.footer-sculpture-signoff {
  fill:none;
  stroke:var(--accent);
  stroke-width:1;
  vector-effect:non-scaling-stroke;
  opacity:.65;
}
.quiet-footer .footer-signature { margin-block-start:clamp(.75rem, .6rem + .4vw, 1.125rem); }
@media (prefers-reduced-motion:no-preference) {
  .footer-sculpture.is-motion .footer-sculpture-window { transform:translateY(184px); }
  .footer-sculpture.is-motion:not(.is-entered) .footer-sculpture-solid { opacity:.04; }
  .footer-sculpture.is-motion:not(.is-entered) .footer-sculpture-signoff { opacity:0; }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-letter {
    animation:signature-settle calc(1000ms * var(--signature-tempo)) var(--signature-ease-out) calc(var(--letter-delay) * var(--signature-tempo)) both;
  }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-outline {
    stroke-dasharray:1;
    animation:signature-contour calc(1200ms * var(--signature-tempo)) var(--signature-ease-in-out) calc(var(--letter-delay) * var(--signature-tempo)) both;
  }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-window {
    animation:signature-matter calc(600ms * var(--signature-tempo)) var(--signature-ease-out) calc((550ms + var(--letter-delay)) * var(--signature-tempo)) both;
  }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-echo {
    animation:signature-echo calc(1050ms * var(--signature-tempo)) var(--signature-ease-out) calc(var(--letter-delay) * var(--signature-tempo)) both;
  }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-light {
    animation:signature-light-ready calc(1600ms * var(--signature-tempo)) linear both;
  }
  .footer-sculpture.is-motion.is-entered .footer-sculpture-signoff {
    stroke-dasharray:1;
    animation:signature-signoff calc(300ms * var(--signature-tempo)) var(--signature-ease-out) calc(1250ms * var(--signature-tempo)) both;
  }
  /* Don't spend the one-shot reveal underneath the existing opening overlay. */
  body:has(.opening-sequence) .footer-sculpture.is-motion :is(
    .footer-sculpture-letter,.footer-sculpture-outline,.footer-sculpture-window,
    .footer-sculpture-echo,.footer-sculpture-light,.footer-sculpture-signoff
  ),
  .footer-sculpture.is-motion[data-visible="false"] :is(
    .footer-sculpture-letter,.footer-sculpture-outline,.footer-sculpture-window,
    .footer-sculpture-echo,.footer-sculpture-light,.footer-sculpture-signoff
  ) { animation-play-state:paused; }
  @keyframes signature-settle {
    from { transform:translateY(12px); }
    to { transform:translateY(0); }
  }
  @keyframes signature-contour {
    0% { stroke-dashoffset:1; opacity:.7; }
    65% { stroke-dashoffset:0; opacity:.7; }
    100% { stroke-dashoffset:0; opacity:.12; }
  }
  @keyframes signature-matter {
    from { transform:translateY(184px); }
    to { transform:translateY(0); }
  }
  @keyframes signature-echo {
    0% { transform:translate(-10px, -8px); opacity:0; }
    18% { opacity:.22; }
    75%,100% { transform:translate(0, 0); opacity:0; }
  }
  @keyframes signature-light-ready {
    0%,90% { opacity:0; }
    100% { opacity:.3; }
  }
  @keyframes signature-signoff {
    from { stroke-dashoffset:1; opacity:0; }
    to { stroke-dashoffset:0; opacity:.65; }
  }
}
