/* Popup de confirmação (home, formulário de contato). Usa <dialog>: foco preso, Esc fecha. */
dialog.contact-thanks.ns-modal:not([open]) { display: none; }
dialog.ns-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-sizing: border-box;
  box-shadow: 0 32px 80px -24px rgba(14, 14, 12, 0.55);
  animation: nsModalIn .32s cubic-bezier(.2, .7, .2, 1);
}
dialog.ns-modal:focus { outline: none; }
dialog.ns-modal::backdrop {
  background: rgba(14, 14, 12, 0.62);
  backdrop-filter: blur(3px);
}
.ns-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-sans, "Archivo", sans-serif);
  font-size: 28px;
  line-height: 1;
  color: var(--ink-500, #6b6860);
  cursor: pointer;
  transition: color .22s;
}
.ns-modal-close:hover { color: var(--oxblood-500, #a64422); }
.ns-modal-close:focus { outline: none; }
.ns-modal-close:focus-visible { outline: 2px solid var(--ink-900, #0e0e0c); outline-offset: 2px; }
@keyframes nsModalIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.ns-modal { animation: none; }
}
@media (max-width: 600px) {
  dialog.ns-modal { padding: 48px 24px 32px; }
  dialog.ns-modal.contact-thanks .glyph[data-astro-cid-vvb5wlht] { font-size: 56px; }
  dialog.ns-modal.contact-thanks h3[data-astro-cid-vvb5wlht] { font-size: 26px; }
}
