/* Contact window. Brand tokens from styles.css: radius 24px, no shadows or gradients. */
.contact { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; width: 100%; height: 100%; }
.contact::backdrop { background: rgba(15, 24, 48, .72); }
.contact[open] { display: grid; place-items: center; padding: 20px var(--gutter); }
.contact[open] .contact-card { animation: contact-in .45s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes contact-in { from { transform: translateY(40px) rotate(-1.5deg) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.contact.closing .contact-card { animation: contact-out .2s ease-in both; }
@keyframes contact-out { to { transform: translateY(24px) scale(.97); opacity: 0; } }

.contact-card {
  position: relative; width: min(980px, 100%); max-height: calc(100svh - 40px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  background: var(--snow); border-radius: var(--radius);
}
.contact-pitch { position: relative; background: var(--midnight); color: var(--snow); padding: 40px 36px 0; display: flex; flex-direction: column; overflow: hidden; }
.contact-kicker { font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--frost); }
.contact-pitch h2 { margin-top: 10px; font-size: clamp(38px, 4.4vw, 56px); }
.contact-pitch h2 span { color: var(--muzzle); }
.contact-pitch p { margin-top: 14px; color: var(--frost); max-width: 30ch; }
.contact-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.contact-tags li { border: 2px solid rgba(217, 225, 236, .5); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; }
.contact-bear { margin: auto auto 0; width: min(260px, 80%); padding-top: 18px; }

.contact-form { padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.contact-form h3 { font-size: 30px; margin-bottom: 4px; }
.contact-field { display: flex; flex-direction: column; gap: 6px; }
.contact-field label { font-size: 15px; font-weight: 700; }
.contact-field input, .contact-field select, .contact-field textarea {
  font: 400 17px/1.4 var(--body); color: var(--ink); background: var(--snow);
  border: 2px solid var(--frost); border-radius: 16px; padding: 12px 14px; width: 100%;
  transition: border-color .15s ease;
}
.contact-field textarea { resize: vertical; min-height: 120px; }
.contact-field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230F1830' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; }
.contact-field input:hover, .contact-field select:hover, .contact-field textarea:hover { border-color: var(--blue); }
.contact-field input:focus, .contact-field select:focus, .contact-field textarea:focus { outline: none; border-color: var(--ember); }
.contact-field[data-bad] input, .contact-field[data-bad] select, .contact-field[data-bad] textarea { border-color: var(--wrong); }
.contact-err { font-size: 14px; color: var(--wrong); min-height: 0; }
.contact-err:empty { display: none; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-send { align-self: flex-start; border: 0; cursor: pointer; font: 600 17px var(--body); margin-top: 4px; }
.contact-send[disabled] { opacity: .6; cursor: progress; transform: none; }
.contact-status { font-size: 15px; font-weight: 600; }
.contact-status[data-kind="bad"] { color: var(--wrong); }

.contact-done { display: none; padding: 40px 36px; text-align: center; place-items: center; align-content: center; gap: 10px; }
.contact-done img { width: 200px; }
.contact-done h3 { font-size: 34px; }
.contact.sent .contact-form { display: none; }
.contact.sent .contact-done { display: grid; }

.contact-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--frost); color: var(--ink); display: grid; place-items: center; transition: transform .2s ease;
}
.contact-x:hover { transform: rotate(90deg); }
.contact-x svg { width: 16px; height: 16px; }

.foot-contact { font: 600 16px var(--body); color: var(--ink); background: var(--muzzle); border: 0; border-radius: 999px; padding: 10px 20px; cursor: pointer; }
.top nav button.top-contact { font: 600 15px var(--body); color: var(--ink); background: var(--muzzle); border: 0; padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: transform .15s ease; }
.top nav button.top-contact:hover { transform: rotate(-3deg); }

@media (max-width: 760px) {
  .contact[open] { padding: 0; align-items: end; }
  .contact-card { grid-template-columns: 1fr; border-radius: var(--radius) var(--radius) 0 0; max-height: 92svh; }
  .contact-pitch { padding: 28px 20px 0; flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
  .contact-pitch > div { flex: 1 1 60%; padding-bottom: 18px; }
  .contact-pitch h2 { font-size: 36px; }
  .contact-pitch p { font-size: 16px; margin-top: 8px; }
  .contact-tags { display: none; }
  .contact-bear { width: 110px; margin: 0 0 0 auto; padding-top: 0; }
  .contact-form, .contact-done { padding: 24px 20px 28px; }
  .contact-x { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact[open] .contact-card, .contact.closing .contact-card { animation: none; }
}
@media (max-width: 900px) {
  .top nav { display: flex; }
  .top nav a { display: none; }
}
