/* ==========================================================================
   Homepage: closing call to action + "Ask a question" form (partials/home-contact.html)
   Sits last on the homepage, straight above the footer. Reuses site.css: tokens, .h2,
   .lede, .eyebrow, .btn, .form-card (liquid glass + pointer highlight), .field, .input,
   .field-error, .form-status, .form-foot, .form-success, .hp, .spinner.
   Every class here starts with .hc so it can't clash with another section.
   ========================================================================== */

.hc {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: var(--section-y) clamp(64px, 8vw, 112px);
}

/* warm lamplight pooling behind the form, fading into the footer */
.hc-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 74% 46%, rgba(240, 180, 106, .13), transparent 70%),
    radial-gradient(38% 46% at 18% 30%, rgba(154, 216, 255, .07), transparent 72%),
    linear-gradient(180deg, transparent 0%, rgba(11, 16, 32, .55) 55%, rgba(6, 9, 17, .6) 100%);
}

.hc-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}

/* ---------- left: the two ways forward ---------- */
.hc-intro .lede { max-width: 46ch; margin-top: 20px; }

.hc-paths {
  display: grid;
  gap: 14px;
  margin-top: clamp(28px, 3.5vw, 40px);
}
.hc-path {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.hc-path-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  color: var(--amber-2);
}
.hc-path-icon .icon { width: 20px; height: 20px; }
.hc-path-title {
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.hc-path p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: .95rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.hc-path .btn { margin-top: 18px; }

/* ---------- right: the form ---------- */
.hc-form-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hc-form-note {
  margin: 8px 0 24px;
  color: var(--text-2);
  font-size: .86rem;
}
.hc-form textarea.input { min-height: 104px; }

/* the site's spinner is drawn for the amber button; this submit is glass */
.hc-submit .spinner { border-color: rgba(243, 241, 236, .28); border-top-color: var(--text); }
.hc-submit[disabled] .icon { display: none; }

.hc-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* a soft arrival for the thank-you and the error line */
@media (prefers-reduced-motion: no-preference) {
  .hc-success:not([hidden]) { animation: hc-in .6s var(--ease-out) both; }
  .hc-status:not(:empty) { animation: hc-in .35s var(--ease-out) both; }
}
@keyframes hc-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- smaller screens ---------- */
@media (max-width: 959px) {
  .hc-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  /* stacked, the form sits right below, so its own pointer card is left out */
  .hc-path--ask { display: none; }
  .hc-glow {
    background:
      radial-gradient(70% 36% at 60% 72%, rgba(240, 180, 106, .12), transparent 70%),
      linear-gradient(180deg, transparent 0%, rgba(11, 16, 32, .55) 55%, rgba(6, 9, 17, .6) 100%);
  }
}
@media (max-width: 599px) {
  .hc-path { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 12px; }
  .hc-path .btn, .hc-submit { width: 100%; }
  .hc-success .actions .btn { flex: 1 1 100%; }
}
