/* Collaborations contact — form + network canvas */

body.contact-collaborations-page {
  color-scheme: dark;
  background: #020201;
  color: #f0ebe4;
  overflow-x: hidden;
}

body.contact-collaborations-page .site-main--contact {
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: 100dvh;
}

body.contact-collaborations-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: transparent;
}

body.contact-collaborations-page .site-header__inner {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

body.contact-collaborations-page .site-header__logo,
body.contact-collaborations-page .site-header__logo:hover,
body.contact-collaborations-page .site-header__menu-toggle {
  color: #f0ebe4;
}

body.contact-collaborations-page .site-nav {
  background: #0a0908;
}

.contact {
  --contact-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --contact-accent: #ed851d;
  --contact-blue: #5b8cff;
  --contact-bg-deep: #020201;
  --contact-bg-mid: #0a0807;
  --contact-bg-warm: #1c1612;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  color: #f0ebe4;
  background: var(--contact-bg-deep);
}

.contact__depth {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 108%, rgba(0, 0, 0, 0.95) 0%, transparent 52%),
    radial-gradient(ellipse 55% 45% at 50% -8%, rgba(30, 22, 16, 0.55) 0%, transparent 58%),
    linear-gradient(148deg, var(--contact-bg-warm) 0%, #120f0d 28%, var(--contact-bg-mid) 52%, #050403 78%, var(--contact-bg-deep) 100%);
}

.contact__depth::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(ellipse 48% 42% at 10% 40%, rgba(237, 133, 29, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 42% 38% at 92% 62%, rgba(91, 140, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 35% 30% at 55% 85%, rgba(237, 100, 20, 0.12) 0%, transparent 60%);
  filter: blur(2px);
  animation: contact-atmosphere-drift 22s ease-in-out infinite alternate;
}

.contact__depth::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 52% at 50% 46%, transparent 18%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(ellipse 100% 35% at 50% 0%, rgba(0, 0, 0, 0.45) 0%, transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.35) 100%);
}

@keyframes contact-atmosphere-drift {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.88;
  }

  50% {
    transform: translate(2.5%, -1.5%) scale(1.04);
    opacity: 1;
  }

  100% {
    transform: translate(-2%, 2%) scale(1.02);
    opacity: 0.92;
  }
}

.contact__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.contact__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.contact__stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  box-sizing: border-box;
  padding:
    clamp(5.5rem, 10vh, 7rem)
    clamp(1.25rem, 5vw, 3.5rem)
    clamp(2.5rem, 10vh, 7rem);
}

.contact__layout {
  width: 100%;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vh, 3.5rem);
  align-items: start;
}

.contact__head {
  text-align: left;
}

.contact__title {
  margin: 0 0 clamp(0.85rem, 2vh, 1.25rem);
  font-size: clamp(4.25rem, 16vw, 9.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  color: #f5f1ec;
}

.contact__title-line {
  display: block;
}

.contact__title-line--accent {
  color: var(--contact-accent);
  cursor: pointer;
  outline: none;
  text-shadow: 0 0 32px rgba(237, 133, 29, 0.12);
  transition:
    color 0.35s ease,
    text-shadow 0.5s var(--contact-ease),
    transform 0.35s var(--contact-ease);
}

.contact__title-line--accent:hover,
.contact__title-line--accent:focus-visible {
  color: #f0a050;
  text-shadow:
    0 0 14px rgba(237, 133, 29, 0.32),
    0 0 32px rgba(237, 133, 29, 0.14);
}

.contact__title-line--accent:active {
  transform: scale(0.985);
}

.contact__lead {
  margin: 0;
  max-width: 16rem;
  font-size: clamp(0.95rem, 2.2vw, 1.12rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(240, 235, 228, 0.5);
}

.contact__form {
  width: 100%;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .contact__layout {
    grid-template-columns: 1fr minmax(18rem, 26rem);
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .contact__form {
    justify-self: end;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .contact__form {
    max-width: none;
  }
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 235, 228, 0.38);
}

.contact__input {
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  color: #f5f1ec;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  outline: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.35s var(--contact-ease);
}

.contact__input::placeholder {
  color: rgba(240, 235, 228, 0.28);
}

.contact__input:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.contact__input:focus {
  border-color: rgba(237, 133, 29, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(237, 133, 29, 0.12);
}

.contact__input--area {
  resize: vertical;
  min-height: 7.5rem;
  max-height: 16rem;
  line-height: 1.55;
}

.contact__input.is-invalid {
  border-color: rgba(255, 100, 100, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 100, 100, 0.1);
}

.contact__input.is-pulse {
  animation: contact-field-pulse 0.75s var(--contact-ease);
}

@keyframes contact-field-pulse {
  0%,
  100% {
    border-color: rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
  }

  45% {
    border-color: rgba(237, 133, 29, 0.65);
    background: rgba(237, 133, 29, 0.08);
    box-shadow:
      0 0 0 3px rgba(237, 133, 29, 0.18),
      0 0 28px rgba(237, 133, 29, 0.2);
  }
}

.contact__status {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(240, 235, 228, 0.55);
  min-height: 1.2em;
}

.contact__status.is-error {
  color: #ff8a8a;
}

.contact__status.is-success {
  color: var(--contact-accent);
}

/* ——— Interactive submit button ——— */

@property --contact-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.contact__submit {
  --mx: 50%;
  --my: 50%;
  --pull-x: 0px;
  --pull-y: 0px;
  position: relative;
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transform: translate(var(--pull-x), var(--pull-y));
  transition: transform 0.4s var(--contact-ease);
  -webkit-tap-highlight-color: transparent;
}

.contact__submit:disabled {
  cursor: wait;
}

.contact__submit-border {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  padding: 1px;
  pointer-events: none;
  z-index: 2;
  background: conic-gradient(
    from var(--contact-border-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(237, 133, 29, 0.25) 285deg,
    rgba(237, 133, 29, 0.95) 310deg,
    rgba(255, 210, 140, 1) 325deg,
    rgba(91, 140, 255, 0.55) 345deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: contact-border-glow 2.6s linear infinite;
}

.contact__submit-glow {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(237, 133, 29, 0.14) 0%,
    rgba(91, 140, 255, 0.06) 40%,
    transparent 68%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.contact__submit:hover .contact__submit-glow,
.contact__submit:focus-visible .contact__submit-glow {
  opacity: 1;
}

.contact__submit-shine {
  display: none;
}

.contact__submit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(245, 241, 236, 0.88);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  transition:
    transform 0.4s var(--contact-ease),
    border-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

.contact__submit:hover .contact__submit-inner,
.contact__submit:focus-visible .contact__submit-inner {
  transform: none;
  color: #f5f1ec;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 0 24px rgba(237, 133, 29, 0.06);
}

.contact__submit:active:not(:disabled) .contact__submit-inner {
  transform: scale(0.99);
  background: rgba(255, 255, 255, 0.04);
}

.contact__submit-label,
.contact__submit-loader,
.contact__submit-check {
  transition: opacity 0.3s ease, transform 0.35s var(--contact-ease);
}

.contact__submit-loader {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border: 1.5px solid rgba(245, 241, 236, 0.15);
  border-top-color: rgba(245, 241, 236, 0.75);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  animation: none;
}

.contact__submit-check {
  position: absolute;
  color: rgba(245, 241, 236, 0.9);
  opacity: 0;
  transform: scale(0.5) rotate(-12deg);
}

.contact__submit.is-loading .contact__submit-label {
  opacity: 0;
  transform: translateY(4px);
}

.contact__submit.is-loading .contact__submit-inner {
  border-color: rgba(255, 255, 255, 0.12);
}

.contact__submit.is-loading .contact__submit-loader {
  opacity: 1;
  transform: scale(1);
  animation: contact-spin 0.8s linear infinite;
}

.contact__submit.is-success .contact__submit-inner {
  color: rgba(245, 241, 236, 0.92);
  background: rgba(91, 140, 255, 0.08);
  border-color: rgba(91, 140, 255, 0.28);
  box-shadow: none;
}

.contact__submit.is-success .contact__submit-label {
  opacity: 0;
  transform: scale(0.96);
}

.contact__submit.is-success .contact__submit-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.contact__submit.is-error .contact__submit-inner {
  border-color: rgba(255, 120, 120, 0.4);
  animation: contact-shake 0.45s ease;
}

@keyframes contact-border-glow {
  to {
    --contact-border-angle: 360deg;
  }
}

@keyframes contact-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes contact-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact__depth::before {
    animation: none;
    transform: none;
    opacity: 0.95;
  }

  .contact__title-line--accent {
    transition: none;
  }

  .contact__title-line--accent:hover,
  .contact__title-line--accent:focus-visible {
    text-shadow: none;
  }

  .contact__input.is-pulse {
    animation: none;
    border-color: rgba(237, 133, 29, 0.45);
    box-shadow: 0 0 0 3px rgba(237, 133, 29, 0.12);
  }

  .contact__submit-border {
    animation: none;
    background: linear-gradient(
      90deg,
      rgba(237, 133, 29, 0.45),
      rgba(91, 140, 255, 0.3)
    );
  }

  .contact__submit,
  .contact__submit-inner,
  .contact__submit-shine::after {
    transition: none;
    transform: none !important;
  }

  .contact__submit.is-loading .contact__submit-loader {
    animation: none;
    border-top-color: transparent;
    border-right-color: rgba(245, 241, 236, 0.75);
  }
}
