/* Pill to circle, orbit, check, and unfold, following the supplied reel. */
#contact-form { scroll-margin-top: calc(var(--header-offset) + 12px); }
.contact-send-area { display: grid; place-items: center; padding-block: 30px 12px; isolation: isolate; }
.contact-send {
  position: relative; display: block; width: min(252px, calc(100% - 20px));
  height: 60px; padding: 0; border: 0; border-radius: 14px;
  background: transparent; color: var(--cream); cursor: pointer;
  font: 600 22px/1 var(--font-copy); -webkit-tap-highlight-color: transparent;
}
.contact-send:focus-visible { outline: 3px solid var(--prune); outline-offset: 7px; }
.contact-send[aria-disabled=true] { cursor: progress; }
.contact-send-pill {
  position: absolute; left: 50%; top: 50%; width: 100%; height: 60px;
  border-radius: 14px; transform: translate(-50%,-50%); background: var(--prune);
  box-shadow: 0 8px 22px #5b045025, inset 0 1px 0 #ffffff28; pointer-events: none;
}
.contact-send:not([aria-disabled=true]):hover .contact-send-pill { box-shadow: 0 10px 25px #5b045035, inset 0 1px 0 #ffffff28; }
.contact-send-label {
  position: absolute; z-index: 2; left: 60px; right: 16px; top: 0;
  display: grid; place-items: center; height: 60px; white-space: nowrap; pointer-events: none;
}
.contact-send-plane { position: absolute; z-index: 2; left: 24px; top: 16px; width: 28px; height: 28px; color: var(--peach); pointer-events: none; }
.contact-send-plane svg { display: block; width: 100%; height: 100%; overflow: visible; }
.contact-send-plane path,.contact-send-plane-back path { fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.contact-send-plane .contact-send-fold { fill: none; stroke: var(--prune); stroke-width: 1.5; }
.contact-send-orbit {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 160px; height: 160px;
  margin: -80px 0 0 -80px; opacity: 0; pointer-events: none;
}
.contact-send-arc { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact-send-arc path { fill: none; stroke: #9b6a90; stroke-width: 1.6; stroke-linecap: round; }
.contact-send-plane-back { position: absolute; left: 62px; top: -3px; width: 36px; height: 36px; color: #9b6a90; transform: rotate(45deg); }
.contact-send-plane-back .contact-send-fold { fill: none; stroke: var(--cream); stroke-width: 1.4; }
.contact-send-badge {
  position: absolute; z-index: 4; left: 50%; top: 50%; display: grid; place-items: center;
  width: 80px; height: 80px; border-radius: 50%; transform: translate(-50%,-50%);
  background: var(--peach); color: var(--prune); opacity: 0; pointer-events: none;
}
.contact-send-badge svg { width: 36px; height: 36px; }
.contact-send-badge path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.contact-send[data-send-phase] .contact-send-label,.contact-send[data-send-phase] .contact-send-plane { opacity: 0; }
.contact-send[data-send-phase] .contact-send-pill { width: 80px; height: 80px; border-radius: 50%; background: var(--peach); }
.contact-send[data-send-phase=fold] .contact-send-pill { animation: contact-pill-fold var(--send-fold-time,700ms) cubic-bezier(.65,0,.35,1) both; }
.contact-send[data-send-phase=fold] .contact-send-plane { animation: contact-plane-launch var(--send-fold-time,700ms) ease-in both; }
.contact-send[data-send-phase=fold] .contact-send-label { animation: contact-label-out .28s ease both; }
.contact-send[data-send-phase=orbit] .contact-send-orbit { opacity: 1; animation: contact-plane-orbit var(--send-orbit-time,1700ms) linear infinite; }
.contact-send[data-send-phase=check] .contact-send-badge { opacity: 1; animation: contact-check-pop var(--send-check-time,500ms) ease both; }
.contact-send[data-send-phase=check] .contact-send-badge path { animation: contact-check-draw .36s .06s ease both; }
.contact-send[data-send-phase=unfold] .contact-send-pill { animation: contact-pill-unfold var(--send-unfold-time,900ms) cubic-bezier(.25,.8,.25,1) both; }
.contact-send[data-send-phase=unfold] .contact-send-badge {
  opacity: 1; box-shadow: 4px 5px 14px #2800222e, inset 0 1px 0 #fff6bf8a;
  animation: contact-check-slide var(--send-unfold-time,900ms) cubic-bezier(.25,.8,.25,1) both;
}
.contact-send[data-send-phase=unfold] .contact-send-badge path,.contact-send[data-send-state=ready] .contact-send-badge path { stroke-dashoffset: 0; }
.contact-send[data-send-phase=unfold] .contact-send-label { left: 76px; right: 8px; font-size: 18px; animation: contact-label-in var(--send-unfold-time,900ms) ease both; }
.contact-send[data-send-state=ready] .contact-send-plane { opacity: 0; }
.contact-send[data-send-state=ready] .contact-send-badge { opacity: 1; left: 30px; box-shadow: 4px 5px 14px #2800222e, inset 0 1px 0 #fff6bf8a; }
.contact-send[data-send-state=ready] .contact-send-label { left: 76px; right: 8px; font-size: 18px; }
.contact-send-status { min-height: 1.6em; margin: 0; font-size: 12px; line-height: 1.6; text-align: center; }
.contact-form[aria-busy=true] .contact-send-status { clip-path: inset(50%); }
@keyframes contact-pill-fold {
  0% { width: 100%; height: 60px; border-radius: 14px; background: var(--prune); transform: translate(-50%,-50%) rotate(0); }
  28% { width: 100%; height: 60px; border-radius: 14px; background: var(--prune); transform: translate(-50%,-50%) rotate(-7deg); }
  100% { width: 80px; height: 80px; border-radius: 50%; background: var(--peach); transform: translate(-50%,-50%) rotate(0); }
}
@keyframes contact-plane-launch { 0%,12% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(96px,-66px) scale(.55); } }
@keyframes contact-label-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }
@keyframes contact-plane-orbit { from { transform: rotate(-35deg); } to { transform: rotate(325deg); } }
@keyframes contact-check-pop { 0% { transform: translate(-50%,-50%) scale(.92); } 55% { transform: translate(-50%,-50%) scale(1.08); } 100% { transform: translate(-50%,-50%) scale(1); } }
@keyframes contact-check-draw { from { stroke-dashoffset: 30; } to { stroke-dashoffset: 0; } }
@keyframes contact-pill-unfold { 0% { width: 80px; height: 80px; border-radius: 50%; background: var(--peach); } 100% { width: 100%; height: 60px; border-radius: 14px; background: var(--prune); } }
@keyframes contact-check-slide { from { left: 50%; } to { left: 30px; } }
@keyframes contact-label-in { 0%,45% { opacity: 0; transform: translateY(8px); } 100% { opacity: 1; transform: translateY(0); } }
@media(max-width:480px) {
  .contact-send[data-send-state=ready] .contact-send-label,.contact-send[data-send-phase=unfold] .contact-send-label { font-size: 16px; left: 72px; right: 6px; }
}
@media(max-width:360px) {
  .contact-send[data-send-state=ready] .contact-send-label,.contact-send[data-send-phase=unfold] .contact-send-label { font-size: 15px; }
}
