/* contact.css: Contact. The photo is mirrored as a whole, the screen's thread turned back so it reads. */
.ct-wide { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- #hero ---------- */
.ct-hero { position: relative; overflow: hidden; min-height: clamp(660px, calc(100svh - 80px), 820px); display: flex; align-items: center; background: var(--c-night); color: var(--c-on-night); }
.ct-hero__media { position: absolute; inset: 0; margin: 0; }
.ct-hero__shot { position: absolute; inset: 0; margin: 0; transform: scaleX(-1); }
.ct-hero__shot img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; }
.ct-hero__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, rgb(var(--c-shade) / 0.92) 0%, rgb(var(--c-shade) / 0.78) 26%, rgb(var(--c-shade) / 0) 42%); }
.ct-hero__stop { position: absolute; z-index: 4; left: 47%; bottom: 18px; }
.ct-hero__in { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 448px); gap: 32px; align-items: start; padding-block: 36px; }
.ct-hero__copy { max-width: 400px; padding-top: 18px; }
.ct-hero__title { font-family: var(--font-display); font-stretch: var(--display-stretch); font-weight: 800; font-size: clamp(2.15rem, 1.25rem + 2.3vw, 3.3rem); line-height: 1.05; letter-spacing: -0.024em; text-wrap: balance; color: var(--c-paper); }
.ct-hero__title .em { color: var(--c-accent); }
.ct-hero__line { margin-top: 16px; font-size: 1.125rem; line-height: 1.55; color: var(--c-on-night); }
.ct-hero__ways { display: grid; gap: 10px; margin-top: 20px; padding: 0; list-style: none; }
.ct-hero__ways li { display: flex; align-items: center; gap: 10px; font: 600 1.0625rem/1.3 var(--font-ui); }
.ct-hero__ways li > svg, .ct-hero__ways a > svg { flex: none; color: var(--c-accent); }
.ct-hero__ways a { display: inline-flex; align-items: center; gap: 10px; color: var(--c-paper); font-size: 1.25rem; font-weight: 800; text-decoration: none; }
.ct-hero__ways a:hover { color: var(--c-accent); }

/* the thread on the phone's screen: large type, the screen is drawn at about 0.45 on a phone */
.ct-thread { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 16px; padding: 74px 18px 24px; transform: scaleX(-1); background: var(--c-paper); color: var(--c-ink); }
.ct-thread__head { padding-bottom: 14px; border-bottom: 1px solid var(--c-line); text-align: center; font: 700 1.75rem/1.2 var(--font-ui); }
.ct-thread__msg { max-width: 86%; padding: 14px 16px; border-radius: 22px 22px 22px 6px; background: var(--c-paper-alt); box-shadow: inset 0 0 0 1px var(--c-line); font: 500 1.75rem/1.3 var(--font-ui); opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.ct-thread__msg--me { align-self: flex-end; border-radius: 22px 22px 6px 22px; background: var(--c-brand); color: var(--c-on-brand); box-shadow: none; }

/* ---------- the form ---------- */
.cform { position: relative; padding: 24px; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.cform__marks { position: absolute; top: 24px; right: 24px; display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; font: 700 0.8125rem/1 var(--font-ui); }
.cform__marks li { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-paper-alt); color: var(--c-ink-soft); }
.cform__marks li[aria-current="step"], .cform__marks li[data-kit-past] { background: var(--c-brand); color: var(--c-on-brand); }
.cform__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.cform__q { padding: 0 64px 0 0; font: 800 1.375rem/1.2 var(--font-display); font-stretch: var(--display-stretch); letter-spacing: -0.012em; }
.cform__choices { display: grid; gap: 10px; margin: 16px 0; }
.cform__choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: var(--radius-m); box-shadow: inset 0 0 0 1.5px var(--c-line); font: 700 1.0625rem/1.25 var(--font-ui); cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.cform__choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cform__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-brand-light); color: var(--c-brand-text); }
.cform__choice:hover { box-shadow: inset 0 0 0 1.5px var(--c-brand); }
.cform__choice[data-kit-on] { background: var(--c-brand-light); box-shadow: inset 0 0 0 2px var(--c-brand); }
.cform__choice:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 2px; }
.cform__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; margin-top: 14px; }
.cform__field { display: grid; align-content: start; gap: 4px; min-width: 0; }
.cform__grid + .cform__field { margin-top: 10px; }
.cform__field label { font: 600 0.875rem/1.3 var(--font-ui); }
.cform__field input, .cform__field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--c-line); border-radius: var(--radius-s); background: var(--c-paper); color: var(--c-ink); font: 500 1rem/1.35 var(--font-ui); resize: vertical; }
.cform__field input:focus-visible, .cform__field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 50%, transparent); outline-offset: 0; border-color: var(--c-brand); }
.cform__field[data-kit-invalid] input, .cform__field[data-kit-invalid] textarea { border-color: var(--c-error, #b3261e); }
.cform__err { font: 500 0.875rem/1.3 var(--font-ui); color: var(--c-error, #b3261e); }
.cform__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.cform__back { min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--c-brand-text); font: 700 1rem/1.2 var(--font-ui); cursor: pointer; }

/* ---------- #skip ---------- */
.ct-skip__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.ct-skip__copy .cta-row { margin-top: 24px; }
.ct-skip__frame { position: relative; overflow: hidden; aspect-ratio: 3 / 2; border-radius: var(--radius-l); background: var(--c-night-2); }
.ct-skip__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
.ct-skip__frame .ct-skip__scene { position: absolute; z-index: 2; right: 14px; top: 50%; width: min(380px, 52%); translate: 0 -50%; }
.ct-skip__stop { position: absolute; z-index: 3; top: 12px; right: 12px; }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .ct-hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); }
  .ct-hero__copy { max-width: min(340px, 27vw); }
}
@media (max-width: 1023px) {
  .ct-hero { display: block; min-height: 0; }
  .ct-hero__media { position: relative; inset: auto; height: 460px; }
  .ct-hero__shot img { object-position: 42% 0%; }
  .ct-hero__shade { display: none; }
  .ct-hero__stop { left: auto; right: 14px; bottom: auto; top: 14px; }
  .ct-hero__in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 24px 36px; }
  .ct-hero__copy { max-width: none; padding-top: 0; }
}
@media (max-width: 899px) {
  .cform__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-skip__in { grid-template-columns: minmax(0, 1fr); }
  .ct-skip__frame { aspect-ratio: auto; height: 540px; }
  .ct-skip__photo { object-position: 30% 0%; }
  .ct-skip__frame .ct-skip__scene { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; translate: none; }
}
