/* React Bits TiltedCard, adapted from the complete human-supplied source.
   Card perspective/material stays separate from the existing Auth bloom motion. */
.home-contact-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; margin-top: 24px; padding: 11px 24px;
  border: 1px solid #242523; border-radius: 24px;
  background: #242523; color: #f5f3ed; font: inherit; font-weight: 550;
  cursor: pointer; transition: background .18s ease, transform .18s ease;
}
.home-contact-trigger:hover { background: #3b3d38; }
.home-contact-trigger:active { transform: scale(.97); }
.home-contact-trigger:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.home-contact-modal {
  width: min(400px, calc(100vw - 32px), calc(100dvh - 32px));
  max-width: none; max-height: none; margin: auto; padding: 0; border: 0;
  overflow: visible; background: transparent; color: #fff; box-shadow: none;
}
.home-contact-modal::backdrop {
  background: rgba(5,11,23,.3);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.home-contact-modal[data-contact-motion="closing"]::backdrop {
  animation: auth-backdrop-release 260ms cubic-bezier(.22,.7,.3,1) both;
}
html:has(.home-contact-modal[open]) { overflow: hidden; }
.home-contact-bloom { position: relative; width: 100%; border-radius: 22px; transform-origin: center; }
.home-contact-modal[data-contact-motion="opening"] .home-contact-bloom,
.home-contact-modal[data-contact-motion="closing"] .home-contact-bloom { overflow: hidden; }
.home-contact-content { position: relative; padding: 20px; }
.home-contact-accessible {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.home-contact-modal .tilted-card-figure {
  position: relative; width: 100%; aspect-ratio: 1; margin: 0;
  perspective: 800px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.home-contact-modal .tilted-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.home-contact-modal .tilted-card-img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 15px; transform: translateZ(0);
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.home-contact-modal[data-contact-hover] .tilted-card-img { will-change: transform; }
.home-contact-modal .tilted-card-overlay {
  position: absolute; top: 24px; left: 24px; right: 60px; z-index: 2;
  transform: translateZ(30px);
}
.home-contact-label {
  width: max-content; max-width: 100%; margin: 0; padding: 10px 12px;
  border-radius: 14px; background: rgba(20,21,22,.52); color: #fff;
  font-size: clamp(.72rem, 1.4vw, .94rem); line-height: 1.4; font-weight: 600;
  letter-spacing: -.015em; overflow-wrap: anywhere;
}
.home-contact-modal .tilted-card-caption {
  pointer-events: none; position: absolute; left: 0; top: 0; z-index: 3;
  border-radius: 4px; background: #fff; padding: 4px 10px;
  font-size: 10px; color: #2d2d2d; opacity: 0; white-space: nowrap;
}
.home-contact-close {
  position: absolute; top: 30px; right: 30px; z-index: 4;
  display: grid; place-items: center; width: 32px; height: 32px;
  padding: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
  background: rgba(20,21,22,.52); color: #fff;
  font-size: 24px; line-height: 1; cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.home-contact-close:hover { background: rgba(20,21,22,.8); }
.home-contact-close:active { transform: scale(.95); }
.home-contact-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.home-contact-close:not(:focus-visible),
.home-contact-modal[data-contact-input="pointer"] .home-contact-close:focus { outline: none; }
.home-contact-modal[data-contact-motion="closing"] .home-contact-content { pointer-events: none; }
@media (max-width: 640px), (hover: none), (pointer: coarse) {
  .home-contact-modal .tilted-card-caption { display: none; }
  .home-contact-modal .tilted-card-overlay { top: 18px; left: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-contact-trigger, .home-contact-close { transition: none; }
  .home-contact-modal .tilted-card-caption { display: none; }
}
