/* Contact: places and sizes the parts (plan.md, "Contact"). The components are in design\components.css. */

/* ---------- hero: the split reversed: the clip in a D on the left, the chat over its corner, the words on the right ---------- */
.contact-hero { --ground-d-x: -14%; --ground-d-y: -26%; --ground-o-x: 34%; --ground-o-y: -30%; padding-block: clamp(2.25rem, 3.6vw, 3.25rem) var(--section-y); }
.contact-hero__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: calc(var(--space-6) + 24px); align-items: center; }
.contact-hero__stage { --stage-h: 600px; --d-x: calc(var(--stage-h) / 2); height: var(--stage-h); overflow: visible; }
.contact-hero__clips { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; }
.contact-hero__slide { margin: 0; }
.contact-hero__clip--a { object-position: 44% 50%; }
.contact-hero__clip--b { object-position: 40% 50%; }
.contact-hero__stop { top: 16px; right: 16px; left: auto; }
.contact-hero__chat { position: absolute; z-index: 2; right: -48px; bottom: 28px; width: 340px; }
.contact-hero__chat > [data-scene] { overflow: visible; }
.contact-hero__words { min-width: 0; color: var(--c-on-sky); }
.contact-hero h1 { font-size: var(--fs-h1); color: var(--c-on-sky); }
.contact-hero__lede { margin: var(--space-3) 0 var(--space-4); font-size: var(--fs-body); font-weight: 500; }
.contact-hero .link-arrow { color: var(--c-on-sky); font-size: var(--fs-body); }

/* ---------- form: two steps, the choices large and with their small pictures ---------- */
.contact-form { max-width: 1100px; margin-inline: auto; }
.contact-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-legend { display: block; margin: 0 0 var(--space-4); padding: 0; font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-display); letter-spacing: var(--ls-display); line-height: 1.1; color: var(--c-ink); }
.contact-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-3); }
.contact-choice { position: relative; display: grid; gap: var(--space-2); padding: 0.75rem 0.75rem 1rem; border: 2px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); cursor: pointer; transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.contact-choice:hover { border-color: var(--c-sky); transform: translateY(-2px); }
.contact-choice input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.contact-choice[data-kit-on] { border-color: var(--c-navy-deep); background: var(--c-paper-alt); box-shadow: var(--lip); }
.contact-choice:has(input:focus-visible) { outline: 3px solid var(--c-navy); outline-offset: 3px; }
.contact-choice__pic { --d-x: 62px; display: block; height: 136px; }
.contact-choice__pic img { object-position: var(--pos, 50% 50%); }
.contact-choice__name { font-family: var(--font-display); font-size: var(--fs-ui); font-weight: 800; line-height: 1.2; color: var(--c-ink); text-wrap: balance; }
.contact-next { margin-top: var(--space-4); }
.contact-error { grid-column: 1 / -1; margin: 0.5rem 0 0; font-size: var(--fs-ui); font-weight: 700; color: var(--c-ink); }
.contact-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3) var(--space-3); }
.contact-field--message { grid-column: 1 / -1; }
.contact-field label { display: block; margin-bottom: 0.4rem; font-family: var(--font-ui); font-size: var(--fs-ui); font-weight: 700; color: var(--c-ink); }
.contact-field input, .contact-field textarea { box-sizing: border-box; display: block; width: 100%; padding: 0.85rem 1rem; border: 2px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font: 400 var(--fs-body)/1.35 var(--font-text); }
.contact-field input { height: 56px; }
.contact-field textarea { resize: vertical; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible { border-color: var(--c-navy-deep); outline: 3px solid var(--c-sky-soft); outline-offset: 0; }
.contact-field[data-kit-invalid] input { border-color: var(--c-navy-deep); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-4); }

/* ---------- skip: the words beside the plan building itself, on the navy ground ---------- */
.contact-skip { --ground-d-x: -10%; --ground-d-y: -22%; --ground-o-x: -6%; --ground-o-y: -30%; border-bottom: 2px solid color-mix(in srgb, var(--c-paper) 14%, transparent); }
.contact-skip__in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); column-gap: var(--space-6); align-items: center; }
.contact-skip h2 { font-size: var(--fs-h2); color: var(--c-paper); }
.contact-skip__cta { display: grid; justify-items: start; margin-top: var(--space-4); }
.contact-skip__stage { position: relative; min-width: 0; }
.contact-skip__stop { top: -54px; right: 0; }
.contact-skip__scene { height: 560px; }
.contact-skip__scene > [data-scene] { display: block; width: 100%; height: 100%; }

/* ---------- under 1100 px ---------- */
@media (max-width: 1099px) {
  .contact-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--space-5); }
  .contact-hero__stage { --stage-h: 520px; }
  .contact-hero__chat { right: -24px; width: 300px; }
  .contact-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-skip__in { grid-template-columns: minmax(0, 1fr) 400px; column-gap: var(--space-5); }
  .contact-skip__scene { height: 700px; }
}

/* ---------- under 900 px: one column ---------- */
@media (max-width: 899px) {
  .contact-hero__in { grid-template-columns: 100%; row-gap: var(--space-5); }
  .contact-hero__words { grid-row: 1; }
  .contact-hero__stage { --stage-h: 560px; }
  .contact-hero__chat { left: 8px; right: 8px; bottom: 16px; width: auto; }
  .contact-hero__clip--a { object-position: 42% 0; }
  .contact-hero__clip--b { object-position: 40% 0; }
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-skip__in { grid-template-columns: 100%; row-gap: calc(var(--space-5) + 54px); }
  .contact-skip__scene { height: 560px; }
}

@media (max-width: 599px) {
  .contact-hero__stage.dframe { --d-x: 40%; border-radius: 40% var(--radius-l) var(--radius-l) 40% / 50% var(--radius-l) var(--radius-l) 50%; }
  .contact-hero__clip--a { object-position: 79% 0; }
  .contact-hero__clip--b { object-position: 61% 0; }
  .contact-choices { grid-template-columns: 100%; gap: var(--space-2); }
  .contact-choice { grid-template-columns: 104px minmax(0, 1fr); align-items: center; padding: 0.5rem; column-gap: 0.75rem; }
  .contact-choice__pic { --d-x: 40px; height: 80px; }
  .contact-choice__name { font-size: var(--fs-body); }
  .contact-fields { grid-template-columns: 100%; }
  .contact-actions .btn--main { flex: 1; }
  .contact-skip__scene { height: 700px; }
}
