/* ==========================================================================
   CONTACT PAGE
   Loaded after styles.css + services.css. Reuses the interior-page scaffolding
   (tokens, containers, sections, .sr reveals, FAQ, footer) and only adds what
   is specific to this page.
   ========================================================================== */

/* ---------- HERO ---------- */
.contact-hero {
  position: relative;
  padding: calc(clamp(40px, 4.4vw, 46px) + clamp(56px, 10vh, 104px)) 0
    clamp(48px, 8vh, 80px);
  margin-top: calc(-1 * (clamp(40px, 4.4vw, 46px) + clamp(32px, 4.8vh, 56px)));
  overflow: hidden;
}

/* soft violet bloom picked up from the logo mark */
.contact-hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: min(880px, 130%);
  aspect-ratio: 1.4;
  transform: translateX(-58%);
  background: radial-gradient(
    ellipse at center,
    rgba(124, 58, 237, 0.22) 0%,
    rgba(124, 58, 237, 0.08) 38%,
    rgba(124, 58, 237, 0) 70%
  );
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
}

.contact-hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.contact-hero-title .line {
  display: block;
  font-size: clamp(44px, 7.4vw, 88px);
}

.contact-hero-copy {
  max-width: 54ch;
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: clamp(15px, 1.5vw, 17.5px);
  line-height: 1.58;
  color: var(--body-text);
  opacity: 0.82;
}

/* ---------- CHANNELS ---------- */
.contact-channels {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(28px, 4.5vh, 44px);
}

.channel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(18px, 2.4vh, 22px) clamp(20px, 2.4vw, 26px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--surface);
  min-width: min(100%, 280px);
}

.channel-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel-value-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.channel-value {
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
  word-break: break-all;
}

.channel-value:hover {
  border-color: #a78bfa;
  color: #ddd6fe;
}

.channel-static {
  font-size: clamp(14.5px, 1.5vw, 16.5px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.copy-btn {
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--body-text);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--hairline-strong);
  color: #fff;
}

.copy-btn.copied {
  background: #fff;
  border-color: #fff;
  color: #000;
}

/* ---------- FORM LAYOUT ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 22px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 20px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.field-label em {
  font-style: normal;
  font-weight: 400;
  opacity: 0.7;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.22s ease, background 0.22s ease,
    box-shadow 0.22s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(142, 142, 142, 0.85);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(167, 139, 250, 0.75);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.field input.invalid,
.field textarea.invalid {
  border-color: rgba(248, 113, 113, 0.8);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

/* native select needs explicit dark option colours on Windows */
.field select option {
  background: #0d0d0f;
  color: #fff;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 34ch;
}

.form-note.is-error {
  color: #fca5a5;
}

.form-note.is-ok {
  color: #c4b5fd;
}

/* ---------- ASIDE ---------- */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.aside-card {
  padding: clamp(24px, 3vh, 30px);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  background: var(--surface);
}

.aside-card h3 {
  margin: 0 0 18px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.next-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.next-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.next-num {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}

.next-steps strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 4px;
}

.next-steps p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body-text);
  opacity: 0.68;
}

.aside-quiet {
  background: transparent;
}

.aside-copy {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body-text);
  opacity: 0.7;
}

.aside-mail {
  font-size: 14px;
  font-weight: 600;
  color: #ddd6fe;
  border-bottom: 1px solid rgba(221, 214, 254, 0.35);
  padding-bottom: 2px;
  word-break: break-all;
  transition: color 0.22s ease, border-color 0.22s ease;
}

.aside-mail:hover {
  color: #fff;
  border-color: #fff;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding-top: calc(48px + clamp(44px, 8vh, 80px));
    margin-top: calc(-1 * (48px + clamp(28px, 4vh, 44px)));
  }

  .channel {
    min-width: 100%;
  }

  .form-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-actions .cta {
    width: 100%;
  }
}
