/* Contact page, laid out like the contact screen he sent: a darkened photo,
   two columns split by a thin vertical line, wide spaced capitals, underlined
   fields. One font throughout, the site's own. */

.cx {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(56px, 8vw, 110px);
  display: grid; align-items: center;
}
.cx::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/assets/hero/scene-3-poster.webp") center / cover no-repeat;
}
.cx::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 86%, transparent), color-mix(in srgb, var(--bg) 74%, transparent)),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.cx__grid {
  width: 100%; max-width: 1240px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.cx__col { padding-right: clamp(28px, 5vw, 88px); }
.cx__col--form {
  padding-right: 0; padding-left: clamp(28px, 5vw, 88px);
  border-left: 1px solid color-mix(in srgb, var(--text) 45%, transparent);
}

.cx__h {
  margin: 0 0 28px;
  font-size: clamp(28px, 3.4vw, 48px); font-weight: 400; line-height: 1.05;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text);
}
.cx__name {
  margin: 0 0 26px;
  font-size: clamp(20px, 1.8vw, 28px); font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}

.cx__list { display: grid; gap: 26px; }
.cx__row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; align-items: start; }
.cx__ico { width: 40px; color: var(--text); padding-top: 2px; }
.cx__ico svg { width: 40px; height: 30px; display: block; }
.cx__k {
  display: block; margin-bottom: 6px;
  font-size: 15px; font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text);
}
.cx__v {
  font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--text);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.cx__v:hover { color: var(--cyan); }

.cx__socials { display: flex; gap: 22px; margin-top: 34px; }
.cx__social {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: #0A66C2;
  transition: transform var(--t-fast) var(--ease);
}
.cx__social:nth-child(2) { color: #1DA851; }
.cx__social svg { width: 26px; height: 26px; }
.cx__social:hover { transform: translateY(-3px); }

/* ---------- the form ---------- */
.cx__form { display: grid; gap: 30px; }
.cx__field { display: grid; gap: 6px; }
.cx__field input,
.cx__field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 70%, transparent);
  padding: 12px 0;
}
.cx__field textarea {
  border: 1px solid color-mix(in srgb, var(--text) 70%, transparent);
  padding: 12px 14px; margin-top: 10px; resize: vertical; min-height: 140px;
}
.cx__field input:focus,
.cx__field textarea:focus { outline: none; border-color: var(--cyan); }
.cx__field [aria-invalid="true"] { border-color: var(--pink); }

.cx__agree {
  display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start;
  font-size: 15px; line-height: 1.6; letter-spacing: .03em; color: var(--muted);
}
.cx__agree input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--purple); }

.cx__send { justify-self: start; padding-inline: 34px; }
.cx__status { margin: 0; min-height: 1.5em; font-size: 15px; color: var(--muted); }
.cx__status[data-kind="ok"] { color: var(--live); }
.cx__status[data-kind="error"] { color: var(--pink); }

/* ---------- tablet and phone: one column, the line turns horizontal ---------- */
@media (max-width: 860px) {
  .cx { align-items: start; }
  .cx__grid { grid-template-columns: 1fr; }
  .cx__col { padding-right: 0; }
  .cx__col--form {
    padding-left: 0; margin-top: 48px; padding-top: 44px;
    border-left: 0; border-top: 1px solid color-mix(in srgb, var(--text) 45%, transparent);
  }
  .cx__send { justify-self: stretch; }
}
@media (max-width: 420px) {
  .cx__h { letter-spacing: .03em; }
  .cx__row { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; }
  .cx__ico, .cx__ico svg { width: 32px; }
  .cx__v { font-size: 15px; letter-spacing: .06em; }
}

/* hidden trap field for spam bots */
.cx__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
