/* contact.css: the Contact page (plan.md, Contact), placed with the tokens of system.css. On charcoal, the words
   centered and wide under them a hand holding a phone, the team's reply arriving on its screen (the kit's chat on
   `h.screen`); the kit's form on soft gray, its choices as large white picture cards; the band that offers the chat
   instead. On the phone the words stay first (the five seconds), the photo under them. Never a gradient. */

/* ---- hero ---- */
.ct-hero { position: relative; overflow: hidden; padding-block: clamp(44px, 5.5vw, 80px) clamp(56px, 6.5vw, 96px); }
.ct-hero__in { position: relative; display: grid; justify-items: center; gap: clamp(28px, 3.5vw, 44px); text-align: center; }
.ct-hero__words { display: grid; justify-items: center; gap: 18px; max-width: 760px; }
.ct-hero__line { margin: 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-navy-soft); }
.ct-hero__media { position: relative; width: 100%; max-width: 1100px; aspect-ratio: 2.2; border-radius: var(--radius-l); overflow: hidden; background: var(--c-charcoal-2); }
.ct-hero__shot { position: absolute; inset: 0; margin: 0; }
.ct-hero__shot > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.ct-hero__stop { top: 14px; right: 14px; }
.ct-hero__px--1 { top: 16%; left: 5%; }
.ct-hero__px--2 { bottom: 9%; left: 4%; }
/* the phone's screen: 180 x 392 in its own pixels, so its words keep 13 px or more on a phone */
.cc { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--c-paper); color: var(--c-ink); text-align: left; }
.cc-top { display: flex; align-items: center; gap: 7px; margin: 0; padding: 30px 12px 9px; border-bottom: 1px solid var(--c-line); font: 700 16px/1.2 var(--font-ui); }
.cc-top__px { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--c-charcoal); color: var(--c-accent); }
.cc-top__px svg { width: 13px; height: 13px; }
.cc-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 10px 9px 22px; overflow: hidden; }
.cc-msg { margin: 0; font: 500 16px/1.32 var(--font-ui); --i: var(--kit-in, 1); opacity: var(--i); transform: translateY(calc((1 - var(--i)) * 10px)); }
.cc-chat [data-kit-msg]:not(:first-child) { opacity: calc(var(--i) * (1 - var(--kit-out, 0))); }
.cc-me { align-self: flex-end; max-width: 90%; padding: 8px 10px; border-radius: 13px 13px 4px 13px; background: var(--c-brand); color: var(--c-on-brand); }
.cc-them { align-self: flex-start; max-width: 96%; padding: 8px 10px; border-radius: 13px 13px 13px 4px; background: var(--c-paper-alt); }
.cc-typing { align-self: flex-start; display: flex; gap: 5px; padding: 11px 12px; border-radius: 13px 13px 13px 4px; background: var(--c-paper-alt); }
.cc-typing i { width: 7px; height: 7px; border-radius: 2px; background: var(--c-ink-soft); animation: cc-dot 1s ease-in-out infinite; }
.cc-typing i:nth-child(2) { animation-delay: 0.15s; }
.cc-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cc-dot { 0%, 100% { transform: translateY(0); opacity: 0.5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* ---- form ---- */
.ct-form { overflow: hidden; }
.ct-form__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.ct-form__head { position: sticky; top: 112px; margin-bottom: 0; }
.cf { display: grid; gap: 20px; padding: clamp(20px, 2.6vw, 32px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-m); }
.cf-marks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.cf-marks li { display: flex; align-items: center; gap: 8px; font: 600 13px/1.2 var(--font-ui); color: var(--c-ink-soft); }
.cf-marks li::before { content: ""; width: 24px; height: 6px; border-radius: 3px; background: var(--c-line); }
.cf-marks li[aria-current="step"], .cf-marks li[data-kit-past] { color: var(--c-ink); }
.cf-marks li[aria-current="step"]::before, .cf-marks li[data-kit-past]::before { background: var(--c-brand); }
.cf-step { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf-legend { margin-bottom: 4px; padding: 0; font: 700 var(--fs-h3)/1.25 var(--font-head); color: var(--c-ink); }
.cf-needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-need { position: relative; display: grid; justify-items: start; align-content: start; gap: 6px; min-height: 176px; padding: 18px; border-radius: var(--radius-m);
  background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); cursor: pointer; transition: box-shadow var(--dur-fast), background-color var(--dur-fast); }
.cf-need input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cf-need__pic { display: grid; place-items: center; width: 76px; height: 56px; margin-bottom: 8px; border-radius: 12px; background: var(--c-brand-light); color: var(--c-brand);
  transition: background-color var(--dur-fast), color var(--dur-fast); }
.cf-need__pic svg { width: 52px; height: 38px; }
.cf-need b { font: 700 var(--fs-body)/1.2 var(--font-ui); }
.cf-need > span:last-child { font: 500 var(--fs-small)/1.4 var(--font-ui); color: var(--c-ink-soft); }
.cf-need:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink-soft); }
.cf-need[data-kit-on] { background: var(--c-brand-light); box-shadow: inset 0 0 0 2px var(--c-brand); }
.cf-need[data-kit-on] .cf-need__pic { background: var(--c-brand); color: var(--c-on-brand); }
.cf-need:has(input:focus-visible) { outline: 3px solid var(--c-electric); outline-offset: 2px; }
.cf-error { grid-column: 1 / -1; margin: 0; font: 600 var(--fs-small)/1.4 var(--font-ui); color: #B42318; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cf-field { display: grid; gap: 6px; align-content: start; }
.cf-field--wide { grid-column: 1 / -1; }
.cf-field label { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-ink); }
.cf-opt { font-weight: 500; color: var(--c-ink-soft); }
.cf-field input, .cf-field textarea { box-sizing: border-box; width: 100%; min-height: 50px; padding: 0 14px; border: 0; border-radius: var(--radius-s); 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); }
.cf-field textarea { min-height: 128px; padding: 12px 14px; resize: vertical; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--c-electric); }
.cf-field[data-kit-invalid] input, .cf-field[data-kit-invalid] textarea { box-shadow: inset 0 0 0 2px #B42318; }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; }
.cf-back { min-height: 50px; padding: 0 18px; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--c-ink-soft); font: 600 var(--fs-body)/1 var(--font-ui); cursor: pointer; }
.cf-back:hover { color: var(--c-ink); background: var(--c-paper-alt); }

/* ---- skip: the chat instead, today ---- */
.page-contact #skip { --tint-w: 46%; --pos: 60% 30%; }

/* ---- under 1000 ---- */
@media (max-width: 999px) {
  .ct-form__in { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ct-form__head { position: static; margin-bottom: clamp(28px, 4vw, 40px); }
}
/* ---- the phone: the photo taller, so the phone's screen stays readable ---- */
@media (max-width: 699px) {
  .ct-hero__media { aspect-ratio: auto; height: 600px; }
  .ct-hero__shot > img { object-position: 63% 50%; }
  .cf-needs, .cf-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-need { min-height: 0; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 14px; }
  .cf-need__pic { grid-row: 1 / span 2; width: 64px; height: 48px; margin: 0; }
  .cf-need__pic svg { width: 44px; height: 32px; }
}
