/* Transmit (contact-transmit.js): the fields rise into a ring of light as the form is sent, and the thank-you panel
   assembles a stained-glass emblem and decodes the inquiry number. Without site motion everything is shown still. */
.neo-transmit {
  position: fixed;
  z-index: 70;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  transition: opacity .26s ease;
}
.neo-transmit.is-leaving { opacity: 0; }

/* The form empties as its motes leave. */
#contactFormPanel.is-transmitting #contactForm > *,
#contactFormPanel.is-transmitting > :not(form) {
  opacity: .14;
  filter: blur(1.5px);
  transition: opacity .55s ease .15s, filter .55s ease .15s;
}

/* ---------- Thank-you panel ---------- */
.success-panel.success-panel--neo {
  position: relative;
  overflow: hidden;
  border-color: rgba(120, 247, 232, .32);
}
.success-panel--neo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 50% 18%, rgba(120, 247, 232, .1), transparent 70%);
}
.success-panel--neo .icon {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: none;
  overflow: visible;
}
.success-emblem { display: block; width: 100%; height: 100%; overflow: visible; }
.emblem-halo { stroke: rgba(232, 198, 110, .75); stroke-width: 1; }
.emblem-core { fill: #0a1416; stroke: rgba(232, 198, 110, .9); stroke-width: 1.5; }
.emblem-check {
  fill: none;
  stroke: #eafffc;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(120, 247, 232, .9));
}
.emblem-shard { transform-box: fill-box; transform-origin: center; }
.success-emblem-glint {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
.success-emblem-glint::after {
  content: "";
  position: absolute;
  inset: -20% -60%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .55) 50%, transparent 58%);
  transform: translateX(-70%);
  opacity: 0;
}

.success-kicker {
  margin: 0 0 10px;
  color: #e8c66e;
  font: 600 .72rem/1.4 var(--font-heading, 'Chakra Petch', sans-serif);
  letter-spacing: .28em;
}
.success-panel--neo h2 { margin-bottom: 12px; }

.success-receipt {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 26px auto 0;
  padding: 14px 22px 12px;
  border: 1px solid rgba(120, 247, 232, .35);
  border-radius: 10px;
  background: rgba(3, 8, 9, .6);
}
.success-receipt-label {
  color: rgba(232, 255, 252, .7);
  font-size: .78rem;
  letter-spacing: .12em;
}
.success-receipt-id {
  min-height: 1.4em;
  color: #78f7e8;
  font: 700 clamp(1.25rem, 5.4vw, 1.6rem)/1.3 var(--font-heading, 'Chakra Petch', sans-serif);
  letter-spacing: .14em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(120, 247, 232, .45);
}
.success-receipt-note {
  color: rgba(232, 255, 252, .62);
  font-size: .78rem;
}

/* The entrance, only with site motion on. */
html[data-motion="on"] .success-panel--neo.is-arriving .emblem-shard {
  animation: emblem-shard-in .72s cubic-bezier(.2, .8, .2, 1) var(--d) both;
}
html[data-motion="on"] .success-panel--neo.is-arriving :is(.emblem-halo, .emblem-core) {
  animation: emblem-fade .5s ease .55s both;
}
html[data-motion="on"] .success-panel--neo.is-arriving .emblem-check {
  stroke-dasharray: 1;
  animation: emblem-check-draw .42s cubic-bezier(.3, .7, .2, 1) .95s both;
}
html[data-motion="on"] .success-panel--neo.is-arriving .success-emblem {
  animation: emblem-flare .9s ease .9s both;
}
html[data-motion="on"] .success-panel--neo.is-arriving .success-emblem-glint::after {
  animation: emblem-glint .9s ease-in-out 1.3s both;
}
html[data-motion="on"] .success-panel--neo.is-arriving :is(.success-kicker, h2, h2 + p, .success-receipt, .success-receipt + div, .success-receipt ~ div) {
  animation: success-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}
html[data-motion="on"] .success-panel--neo.is-arriving .success-kicker { animation-delay: .95s; }
html[data-motion="on"] .success-panel--neo.is-arriving h2 { animation-delay: 1.05s; }
html[data-motion="on"] .success-panel--neo.is-arriving h2 + p { animation-delay: 1.15s; }
html[data-motion="on"] .success-panel--neo.is-arriving .success-receipt { animation-delay: 1.2s; }
html[data-motion="on"] .success-panel--neo.is-arriving .success-receipt ~ div { animation-delay: 1.4s; }

@keyframes emblem-shard-in {
  from { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); }
  to { opacity: 1; transform: none; }
}
@keyframes emblem-fade { from { opacity: 0; } }
@keyframes emblem-check-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes emblem-flare {
  0% { filter: none; }
  30% { filter: drop-shadow(0 0 18px rgba(120, 247, 232, .85)) brightness(1.35); }
  100% { filter: drop-shadow(0 0 8px rgba(120, 247, 232, .35)); }
}
@keyframes emblem-glint {
  0% { opacity: 0; transform: translateX(-70%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(70%); }
}
@keyframes success-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  .success-panel--neo .icon { width: 100px; height: 100px; }
  .success-receipt { padding-inline: 16px; }
}
