/* Workclarify home — Contact section under the hero slider. See ROADMAP.md §17
   Same language as the slider (hero-slider.css): full-screen photo with a soft veil, grain, slow Ken Burns,
   mouse parallax, heavy Inter headline with tight tracking, frosted-glass panels, blue → teal gradient accents. */

.hc {
  --mx: 0; --my: 0;
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; overflow: hidden; isolation: isolate;
  background: #0B1B3F; color: #fff; font-family: "Inter", var(--font);
}

/* ---------- Background ---------- */
.hc-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hc-par { inset: -3%; --depth: -14; }        /* .hs-par from the slider: drifts with the mouse */
.hc-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }
.hc.is-in .hc-bg img { animation: hs-kenburns 9s cubic-bezier(.2, .6, .2, 1) both; }
.hc-veil { --veil: linear-gradient(100deg, rgba(11, 27, 63, .72) 0%, rgba(40, 24, 70, .5) 42%, rgba(70, 20, 60, .2) 70%, rgba(11, 27, 63, .35) 100%), linear-gradient(180deg, rgba(11, 27, 63, .3) 0%, rgba(11, 27, 63, 0) 30%, rgba(11, 27, 63, .45) 100%); }

/* ---------- Layout ---------- */
.hc-inner {
  position: relative; z-index: 2; align-self: center;
  width: min(1180px, 86vw); margin: 0 auto; padding: clamp(80px, 12vh, 130px) 0 clamp(28px, 5vh, 56px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 470px); gap: clamp(28px, 5vw, 80px); align-items: center;
}
.hc-eyebrow { margin: 0 0 18px; font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.hc-title {
  margin: 0 0 26px; font-weight: 800; color: inherit; font-family: inherit;
  font-size: clamp(2.8rem, 6.4vw, 7rem); line-height: .9; letter-spacing: -.05em;
  text-shadow: 0 10px 40px rgba(11, 27, 63, .25);
}
.hc-title span { display: block; }
.hc-text { margin: 0 0 14px; max-width: 40ch; font-size: 1rem; line-height: 1.6; opacity: .92; }
.hc-text a { color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: #5EEAD4; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.hc-text a:hover { text-decoration-color: #fff; }

/* ---------- Glass form (like the slider's .hs-glass / .hs-points) ---------- */
.hc-form {
  display: grid; gap: 16px; padding: clamp(20px, 2.2vw, 30px); border-radius: 22px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 30px 60px -20px rgba(5, 10, 30, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.hc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hc-field { display: grid; gap: 7px; font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.hc-field em { font-style: normal; font-weight: 500; opacity: .75; }
.hc-field input, .hc-field textarea {
  width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28); color: #fff;
  font: 500 .95rem/1.5 "Inter", sans-serif; outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.hc-field textarea { resize: vertical; min-height: 110px; display: block; }
.hc-field ::placeholder { color: rgba(255, 255, 255, .62); }
.hc-field input:focus, .hc-field textarea:focus { border-color: #5EEAD4; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 3px rgba(94, 234, 212, .22); }
.hc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hc-send { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hc-submit {
  border: 0; cursor: pointer; padding: 14px 24px; border-radius: 999px; color: #fff;
  font: 800 .74rem/1 "Inter", sans-serif; letter-spacing: .2em; text-transform: uppercase;
  background: linear-gradient(120deg, #2563EB 0%, #14A89B 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 16px 30px -14px rgba(20, 168, 155, .8);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.hc-submit:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 20px 34px -14px rgba(20, 168, 155, .95); }
.hc-submit:disabled { opacity: .6; cursor: default; transform: none; }
.hc :focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hc-status { margin: 0; font-size: .85rem; font-weight: 600; }
.hc-status.is-ok { color: #5EEAD4; }
.hc-status.is-err { color: #FFD1DC; }

.hc-foot {
  position: relative; z-index: 2; margin: 0; padding: 0 clamp(16px, 2.4vw, 36px) clamp(14px, 2.4vw, 30px);
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .8;
}
.hc-foot a { color: inherit; text-decoration: none; text-transform: none; letter-spacing: .04em; }
.hc-foot a:hover { text-decoration: underline; }

/* before the entrance runs (JS adds .is-ready, then .is-in when the section is seen) */
.hc.is-ready:not(.is-in) .hc-anim, .hc.is-ready:not(.is-in) .hc-form, .hc.is-ready:not(.is-in) .hc-bg { opacity: 0; }

/* ---------- Smaller screens ---------- */
@media (max-width: 899px) {
  .hc-inner { grid-template-columns: 1fr; width: calc(100vw - 40px); padding-top: 96px; }
  .hc-title { font-size: clamp(2.6rem, 12vw, 4.6rem); }
}
@media (max-width: 480px) {
  .hc-row { grid-template-columns: 1fr; }
  .hc-form { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hc.is-in .hc-bg img { animation: none; }
  .hc-field input, .hc-field textarea, .hc-submit { transition: none; }
}
