/* Contact: the page's own look (plan.md "Contact"): the full-bleed photo with a reply landing, the form box beside the
   framed laptop photo on the split circle, the skip part on the designed ground. */

.ct-go { display: grid; justify-items: start; gap: 10px; }
.ct-go .cta-row__line { margin: 0; }

/* ---------- hero ---------- */
.cth { position: relative; overflow: hidden; display: grid; align-items: center; min-height: clamp(560px, 46vw, 660px); }
.cth__photo { position: absolute; inset: 0; overflow: hidden; }
.cth__photo img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 30%; }
.cth__inner { position: relative; z-index: 2; padding-block: clamp(40px, 5vw, 72px); }
.cth__card { display: grid; gap: 14px; width: min(480px, 44%); padding: clamp(26px, 3vw, 38px); background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.cth__title { margin: 0; font-size: clamp(2.1rem, 1.4rem + 2vw, 3.2rem); line-height: 1.06; letter-spacing: -0.025em; }
.cth__line { margin: 0; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.cth__ways { display: grid; justify-items: start; gap: 12px; margin-top: 6px; }
.cth__chat { font: 700 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-brand-text); text-decoration: underline; text-underline-offset: 4px; }
.cth__seq { position: absolute; z-index: 2; right: clamp(20px, 6vw, 96px); bottom: clamp(24px, 4vw, 48px); display: grid; gap: 10px; width: min(340px, 30%); }
/* the messages land one by one and, as the loop ends, go as one by a fade: the hold keeps only an empty rest on through
   the turn, and the mark (on once both are in) holds their slide still, so no message goes back the way it came */
.cth__rest, .cth__mark { display: none; }
.cth__seq:has(> .cth__mark[data-kit-on]) .cth__msg { transform: none; }
.cth__msg { margin: 0; padding: 12px 15px; border-radius: 18px; font: 500 var(--fs-label)/1.4 var(--font-ui); box-shadow: var(--shadow-m); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.cth__msg--me { justify-self: end; max-width: 86%; border-bottom-right-radius: 6px; background: var(--c-brand); color: var(--c-on-brand); }
.cth__msg--team { justify-self: start; max-width: 92%; border-bottom-left-radius: 6px; background: var(--c-paper); color: var(--c-ink); }
.cth__msg--team b { display: block; margin-bottom: 2px; font: 700 var(--fs-tiny)/1.3 var(--font-ui); color: var(--c-accent-text); }
.cth__stop { right: 16px; bottom: calc(clamp(24px, 4vw, 48px) + 150px); }

/* ---------- the form box, beside the laptop photo ---------- */
.ctf__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.ctf__box { display: grid; gap: 18px; padding: clamp(24px, 3vw, 40px); background: var(--c-paper); border-radius: var(--radius-xl); box-shadow: var(--shadow-l); }
.head.ctf__head { margin: 0; }
.form__marks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.form__marks li { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-label)/1.2 var(--font-ui); color: var(--c-ink-soft); }
.form__marks li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1.5px var(--c-line); font-size: var(--fs-tiny); color: var(--c-ink); }
.form__marks li[aria-current="step"] { color: var(--c-ink); }
.form__marks li[aria-current="step"] span, .form__marks li[data-kit-past] span { background: var(--c-brand); color: var(--c-on-brand); box-shadow: none; }
.form { display: grid; }
.form__step { display: grid; gap: 16px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__q { padding: 0; margin: 0 0 4px; font: 700 1.25rem/1.25 var(--font-display); color: var(--c-ink); }
.form__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form__choice { position: relative; display: block; cursor: pointer; }
.form__choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.form__choice span { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 14px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 600 var(--fs-ui)/1.25 var(--font-ui); color: var(--c-ink); transition: box-shadow var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.form__icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--c-brand-light); fill: none; stroke: var(--c-brand-text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.form__choice:hover span { box-shadow: inset 0 0 0 2px var(--c-brand); }
.form__choice input:focus-visible + span { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.form__choice[data-kit-on] span { background: color-mix(in srgb, var(--c-brand-light) 60%, var(--c-paper)); box-shadow: inset 0 0 0 2px var(--c-brand); }
.form__choices .form__error { grid-column: 1 / -1; }
.form__field { display: grid; gap: 6px; }
.form__field label { font: 600 var(--fs-label)/1.3 var(--font-ui); color: var(--c-ink); }
.form__opt { font-weight: 500; color: var(--c-ink-soft); }
.form__field input, .form__field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: var(--radius-m, 12px); background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 500 var(--fs-body)/1.4 var(--font-ui); color: var(--c-ink); }
.form__field textarea { resize: vertical; }
.form__field input:focus-visible, .form__field textarea:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.form__field[data-kit-invalid] input, .form__field[data-kit-invalid] textarea { box-shadow: inset 0 0 0 2px var(--c-danger, #B3261E); }
.form__error { margin: 0; font: 600 var(--fs-label)/1.3 var(--font-ui); color: var(--c-danger, #B3261E); }
.form__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__back { padding: 12px 6px; border: 0; background: none; font: 700 var(--fs-ui)/1 var(--font-ui); color: var(--c-brand-text); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.form[data-kit-sending] button[type="submit"] { opacity: 0.7; }

.ctf__media { position: relative; }
.frame-motif.ctf__motif { width: 72%; right: -10%; top: -12%; }
.ctf__frame { --pw: 1300px; position: relative; height: clamp(520px, 44vw, 600px); }
/* the photo drawn large, so the laptop's screen and its words read at full size */
.ctf__fig { position: absolute; margin: 0; width: var(--pw); aspect-ratio: 1280 / 853; left: calc(50% - var(--pw) * 0.324); top: calc(50% - var(--pw) * 0.2692); }
.ctf__screen { position: absolute; inset: 0; display: grid; align-content: start; gap: 6px; padding: 12px 12px; background: var(--c-paper); }
/* the lines type in one by one and, as the loop ends, the whole message clears as one by a fade (an empty rest is the
   hold's first item; the mark, on once all are in, holds the chip's slide still): nothing goes back the way it came */
.ctf__rest, .ctf__mark { display: none; }
.ctf__screen:has(> .ctf__mark[data-kit-on]) .ctf__sent { transform: none; }
.ctf__typed { margin: 0; font: 500 18px/1.35 var(--font-ui); color: var(--c-ink); opacity: var(--kit-in, 1); }
.ctf__sent { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 6px 8px; border-radius: 10px; background: var(--c-brand-light); font: 700 17px/1.25 var(--font-ui); color: var(--c-brand-text); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.ctf__tick { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent); color: var(--c-on-accent); }
.ctf__tick svg { width: 12px; height: 12px; }
.ctf__stop { top: 16px; right: 16px; }

/* ---------- skip ---------- */
.cts { overflow: clip; }
.frame-motif.cts__ground { width: min(860px, 76vw); left: -22vw; bottom: -40%; }
.cts__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.head.cts__head { margin: 0; }
.cts__stage { position: relative; }
.scene.cts__scene { height: 560px; max-width: 720px; margin-left: auto; }
.cts__stop { top: -52px; right: 0; }

@media (max-width: 899px) {
  .cth { min-height: 0; align-items: end; padding-top: 420px; }
  .cth__photo { bottom: auto; height: 560px; }
  .cth__photo img { object-position: 68% 20%; }
  .cth__inner { padding-block: 0 24px; }
  .cth__card { width: auto; }
  .cth__seq { left: 14px; right: auto; top: 16px; bottom: auto; width: min(300px, calc(100% - 28px)); }
  .cth__stop { right: 14px; top: 16px; bottom: auto; }
  .ctf__inner { grid-template-columns: minmax(0, 1fr); }
  /* the screen's tilted box kept inside the phone's frame; its words drawn at 13 px or more */
  .ctf__frame { --pw: 940px; height: 440px; }
  .cts__inner { grid-template-columns: minmax(0, 1fr); }
  .scene.cts__scene { height: 700px; max-width: none; }
  .cts__stop { top: 8px; right: 8px; }
}
