/* contact: the Contact page (src/pages/contact.mjs). An owner writing at her laptop in the evening, the words on a plan
   sheet over the window at her side and her message's way on her sleeve's side, the kit's form in two steps on the pale
   grid, and the chat on a white phone over a tradesman's cab. */

/* ---------- hero: the photo (her face and her laptop always in view), the plan sheet top left, the status bottom right ---------- */
.ct-hero { position: relative; }
.ct-hero__media { position: relative; height: clamp(32rem, calc(100svh - 72px), 46rem); overflow: hidden; background: var(--c-ink); }
.ct-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.ct-hero__stop { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
.ct-status { position: absolute; z-index: 2; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(1.25rem, 3vw, 2.5rem); width: 17.5rem; padding: 0.85rem 1rem 0.5rem; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l); }
.ct-status .strip { margin-bottom: 0.2rem; }
.ct-status__row { --lit: clamp(0, (var(--kit-in, 1) - 0.55) * 3, 1); display: flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.5rem 0; font: 400 var(--fs-small)/1.35 var(--font-ui); color: var(--c-ink); opacity: calc(0.4 + 0.6 * var(--kit-in, 1)); }
.ct-status__row + .ct-status__row { border-top: 1px solid var(--c-line); }
.ct-status__row b { font-weight: 700; }
.ct-status__mark { position: relative; display: inline-grid; flex: none; width: 1.125rem; height: 1.125rem; color: color-mix(in srgb, var(--c-ink-soft) 55%, transparent); }
.ct-status__mark .mark { grid-area: 1 / 1; width: 100%; height: 100%; }
.ct-status__mark .ct-status__lit { color: var(--c-brand); opacity: var(--lit); transform: scale(calc(0.6 + var(--lit) * 0.4)); }
.ct-status__row--end .ct-status__lit { color: var(--c-accent); }
.ct-status:has(.kit-end[data-kit-on]) .ct-status__lit { transform: none; } /* the kit's hold: the marks fade out in place, never shrinking back */
.ct-hero__in { position: absolute; z-index: 2; top: clamp(1rem, 2.4vw, 2.5rem); left: 0; right: 0; max-width: calc(var(--max-w) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); pointer-events: none; }
.ct-hero__sheet { max-width: min(32rem, 50%); padding: clamp(1.1rem, 2.4vw, 1.6rem) clamp(1.25rem, 2.6vw, 2rem) clamp(1.25rem, 2.6vw, 1.85rem); pointer-events: auto; }
.ct-hero__title { font-size: clamp(2rem, 1rem + 2.2vw, 2.85rem); }
.ct-hero__line { margin-top: 0.7rem; font-size: 1.0625rem; line-height: 1.5; color: var(--c-ink-soft); }
.ct-hero__cta { margin-top: 1.1rem; }

/* ---------- form: the kit's form in two steps on a plan sheet ---------- */
.ct-form__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.ct-form__side { position: sticky; top: 7rem; }
.ct-form__marks { display: grid; gap: 0.6rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.ct-form__marks li { display: flex; align-items: center; gap: 0.7rem; font: 600 var(--fs-ui)/1.3 var(--font-ui); }
.ct-form__marks span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); font-weight: 700; color: var(--c-ink-soft); }
.ct-form__marks li[aria-current="step"] span { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-on-brand); }
.ct-form__marks li[data-kit-past] span { border-color: var(--c-accent); color: var(--c-accent); }
.ct-form__box { max-width: none; padding: clamp(1.25rem, 3vw, 2rem); }
.ct-form__box .form-box__legend { display: block; width: 100%; }
.ct-form__strip { margin-bottom: 0.9rem; }
.ct-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.ct-form__box .form-box__field label small { font-weight: 400; color: var(--c-ink-soft); }
.ct-form__nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.ct-form__nav .btn { margin-left: auto; }

/* ---------- skip: the chat as the quicker way ---------- */
.ct-skip__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.ct-skip__words .head__title { font-size: var(--fs-h2); }
.ct-skip__cta { margin-top: 1.5rem; }
.ct-skip__frame { position: relative; height: 36rem; border-radius: var(--radius-m); background: var(--c-paper-alt); box-shadow: var(--shadow-m); }
.ct-skip__photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; object-position: 30% 50%; }
.ct-skip__chat { position: absolute; z-index: 2; top: 50%; right: 1.5rem; transform: translateY(-50%); } /* its look: components.css */
.ct-skip__stop { position: absolute; z-index: 3; top: 0.85rem; left: 0.85rem; }

@media (max-width: 1149px) {
  .ct-skip__in { grid-template-columns: minmax(0, 1fr); }
  .ct-skip__words { max-width: 40rem; }
}

@media (max-width: 899px) {
  .ct-hero__media { height: clamp(20rem, 85vw, 26rem); }
  /* the laptop and her face in view, the status over the window, the sheet under the photo */
  .ct-hero__photo { object-position: 38% 30%; }
  .ct-hero__stop { top: 0.75rem; right: 0.75rem; }
  .ct-status { top: 0.75rem; right: auto; bottom: auto; left: 0.75rem; width: 14.5rem; padding: 0.6rem 0.75rem 0.35rem; }
  .ct-status__row { padding: 0.4rem 0; font-size: 0.8125rem; }
  .ct-hero__in { position: static; max-width: none; margin: 0; padding: 0; pointer-events: auto; }
  .ct-hero__sheet { max-width: none; border-width: 0 0 1px; border-radius: 0; box-shadow: none; padding-inline: var(--gutter); }
  .ct-form__in { grid-template-columns: minmax(0, 1fr); }
  .ct-form__side { position: static; }
  /* the phone stands half on the photo, under his face, and hangs below it */
  .ct-skip__frame { height: 41rem; margin-bottom: 15rem; }
  .ct-skip__photo { object-position: 22% 50%; }
  .ct-skip__chat { top: calc(100% - 17rem); right: auto; left: 50%; width: min(19rem, calc(100% - 2rem)); transform: translateX(-50%); }
}

@media (max-width: 599px) {
  .ct-form__grid { grid-template-columns: minmax(0, 1fr); }
}
