/* Contact: places and sizes its parts, with the tokens of system.css and the components of components.css. */
.page-hero--overlap { background: var(--c-brand); padding-block: clamp(2.4rem, 4.6vw, 4.4rem); }
.page-hero--overlap .page-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.page-hero--overlap .page-hero__photo { position: relative; grid-column: 1; grid-row: 1; }
.page-hero--overlap .frame { aspect-ratio: 860 / 620; }
.page-hero--overlap .frame img { object-position: 60% 50%; }
.page-hero--overlap .page-hero__scene { position: absolute; z-index: 2; left: 28px; bottom: 28px; width: 400px; min-height: 280px; }
.page-hero--overlap .page-hero__scene .scene { width: 100%; }
.page-hero--overlap .page-hero__scene .framed__stop { top: -48px; right: auto; left: 0; }
.page-hero__card { position: relative; z-index: 3; grid-column: 2; grid-row: 1; margin-left: -56px; padding: clamp(24px, 3vw, 40px); background: var(--c-white); color: var(--c-ink); border-radius: var(--radius-l); box-shadow: var(--shadow-l); }
.page-hero__card .page-hero__title { font-size: var(--fs-h1); }
.page-hero__card .page-hero__line { margin: var(--space-3) 0; color: var(--c-ink-soft); line-height: 1.6; }
.ct-details { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font: 500 1rem/1.4 var(--font-ui); }
.ct-details li { padding-top: 8px; border-top: 1px solid var(--c-line); }
.ct-details a { color: var(--c-brand-text); font-weight: 600; text-decoration: none; }
.ct-details a:hover { text-decoration: underline; }

/* ---------- the form ---------- */
.ct-form { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.form { position: relative; padding: clamp(22px, 3vw, 36px); background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--radius-l); box-shadow: var(--shadow-m); --btn-bg: var(--c-brand); --btn-fg: var(--c-white); }
.form__marks { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; }
.form__marks li { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--c-line); color: var(--c-ink-soft); font: 600 0.92rem/1 var(--font-ui); }
.form__marks li[aria-current="step"], .form__marks li[data-kit-past] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.form__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__legend { padding: 0; margin-bottom: 16px; font: 520 var(--fs-h3)/1.2 var(--font-display); }
.form__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.form__choice { position: relative; display: grid; gap: 10px; padding: 16px; min-height: 110px; border: 1px solid var(--c-line); border-radius: var(--radius-m); cursor: pointer; font: 600 1rem/1.3 var(--font-ui); transition: border-color var(--dur-fast) var(--ease-out); }
.form__choice:hover { border-color: var(--c-brand); }
.form__choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.form__choice:has(input:focus-visible) { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.form__choice[data-kit-on] { background: var(--c-brand); border-color: var(--c-brand); color: var(--c-white); }
.form__choiceart { color: var(--c-accent-text); }
.form__choice[data-kit-on] .form__choiceart { color: var(--c-brand-light); }
.form__error { grid-column: 1 / -1; margin-top: 6px; color: #A32222; font: 500 0.92rem/1.4 var(--font-ui); }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.form__field--wide { grid-column: 1 / -1; }
.form__field label { display: block; margin-bottom: 6px; font: 600 0.95rem/1.3 var(--font-ui); }
.form__field input, .form__field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--c-ink-soft); border-radius: var(--radius-s); font: 500 1rem/1.4 var(--font-ui); color: var(--c-ink); background: var(--c-white); }
.form__field [aria-invalid="true"] { border-color: #A32222; }
.form__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.form__back { background: none; border: 0; border-bottom: 1.5px solid currentColor; padding: 4px 0; cursor: pointer; color: var(--c-ink); }

/* ---------- the quicker way ---------- */
.ct-skip { aspect-ratio: 760 / 560; }
.ct-skip img { object-position: 100% 50%; }
.framed__stage--part { left: -60px; bottom: 18px; width: 400px; height: 430px; }
.framed__stage > .framed__stop { top: -48px; right: 0; }

@media (max-width: 860px) {
  .page-hero--overlap .page-hero__in, .ct-form { grid-template-columns: minmax(0, 1fr); }
  .page-hero__card { grid-column: 1; grid-row: 1; margin: 0 0 16px; }
  .page-hero--overlap .page-hero__photo { grid-column: 1; grid-row: 2; }
  .page-hero--overlap .frame { aspect-ratio: auto; height: 440px; }
  .page-hero--overlap .page-hero__scene { left: 10px; right: 10px; bottom: 14px; width: auto; }
  .page-hero--overlap .page-hero__scene .framed__stop { top: -48px; right: 0; left: auto; }
  .form__grid { grid-template-columns: minmax(0, 1fr); }
  /* on the phone the scene rests on the shirt at the top, and the hands stay in view below it */
  .ct-skip { aspect-ratio: auto; height: 720px; }
  .ct-skip img { object-position: 74% 50%; }
  .framed__stage--part { top: 10px; left: 10px; right: 10px; bottom: auto; width: auto; height: 310px; }
  .framed__stage > .framed__stop { top: auto; bottom: -44px; right: 0; }
}
