/* The Contact page's own layout: it places and sizes its parts with the tokens of system.css. A short header of hands
   typing, the form's ivory card rising over its foot, how the reply comes back over a real photo, and the chat. */

/* ---------- hero: hands typing a reply (the kit's rotate), the words centered, room at the foot for the form ---------- */
.ct-hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(520px, 64svh, 660px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.ct-hero__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ct-hero__slide video, .ct-hero__slide .kit-first { object-position: var(--pos, 50% 50%); }
.ct-hero__slide .kit-first { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ct-hero__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 74%, transparent) 0%, color-mix(in srgb, var(--c-ink) 58%, transparent) 50%, color-mix(in srgb, var(--c-ink) 86%, transparent) 100%); }
.ct-hero__body { position: relative; z-index: 5; display: grid; justify-items: center; gap: 18px; padding-top: 140px; padding-bottom: 190px; text-align: center; }
.ct-hero__title { max-width: 860px; font-size: clamp(2.4rem, 1rem + 3.4vw, 4.1rem); line-height: 1.03; letter-spacing: -0.03em; }
.ct-hero__line { max-width: 560px; font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.ct-hero__stop { position: absolute; right: var(--gutter); top: 96px; }
@media (max-width: 760px) {
  .ct-hero { min-height: 0; }
  .ct-hero__body { padding-top: 120px; padding-bottom: 150px; }
  .ct-hero__title { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 2.7rem); }
  .ct-hero__line { font-size: 1.0625rem; }
  .ct-hero__stop { top: 84px; right: 14px; }
}

/* ---------- form: the kit's form on an ivory card over the header's foot ---------- */
.ct-form { position: relative; z-index: 2; margin-top: -150px; padding-bottom: var(--section-y); }
.ct-card { max-width: 820px; margin: 0 auto; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l), inset 0 0 0 1px var(--c-line); color: var(--c-ink); }
.ct-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 26px; padding: 0 0 20px; list-style: none; border-bottom: 1px solid var(--c-line); font-weight: 600; color: var(--c-ink-soft); }
.ct-steps li { display: flex; align-items: center; gap: 10px; }
.ct-steps span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c-line); font-size: .9375rem; }
.ct-steps [aria-current="step"] { color: var(--c-ink); }
.ct-steps [aria-current="step"] span { background: var(--c-brand); color: var(--c-on-brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.ct-steps [data-kit-past] span { background: var(--c-brand-light); box-shadow: none; color: var(--c-brand-text); }
.ct-step { margin: 0; padding: 0; border: 0; min-width: 0; }
.ct-legend { margin-bottom: 20px; padding: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 1.1rem + 0.9vw, 1.85rem); line-height: 1.2; }
.ct-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ct-tile { position: relative; display: grid; align-content: start; gap: 6px; min-height: 150px; padding: 20px 18px 18px; border-radius: 20px; 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); }
.ct-tile input { position: absolute; opacity: 0; pointer-events: none; }
.ct-tile__mark { width: 34px; height: 34px; margin-bottom: 6px; fill: var(--c-brand); }
.ct-tile b { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.ct-tile span { font-size: .9375rem; color: var(--c-ink-soft); }
.ct-tile:hover { background: var(--c-paper-alt); }
.ct-tile:has(input:focus-visible) { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.ct-tile[data-kit-on] { background: var(--c-paper-alt); box-shadow: inset 0 0 0 2px var(--c-brand), 0 0 0 5px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.ct-tile[data-kit-on] .ct-tile__mark { fill: var(--c-brand-dark); }
.ct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ct-field { display: grid; gap: 8px; align-content: start; }
.ct-field label { font-weight: 600; }
.ct-field__opt { font-weight: 400; color: var(--c-ink-soft); }
.ct-field input, .ct-field textarea { box-sizing: border-box; width: 100%; min-height: 54px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line); color: var(--c-ink); font: 400 1.0625rem/1.4 var(--font-text); }
.ct-field textarea { min-height: 160px; resize: vertical; }
.ct-field input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.ct-field input:focus-visible, .ct-field textarea:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--c-brand), 0 0 0 5px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.ct-field [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--c-ink); }
.ct-error { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; color: var(--c-ink); }
.ct-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-ink); color: var(--c-paper); font-size: .8125rem; }
.ct-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.ct-note { margin-top: 14px; text-align: right; font-size: var(--fs-small); color: var(--c-ink-soft); }
.ct-kit[data-kit-sending] button[type="submit"] { opacity: .7; }
@media (max-width: 760px) {
  .ct-form { margin-top: -110px; }
  .ct-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ct-tile { min-height: 0; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 16px; }
  .ct-tile__mark { grid-row: span 2; margin: 0; }
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-actions { justify-content: stretch; }
  .ct-actions .btn { flex: 1; justify-content: center; }
  .ct-note { text-align: left; }
}

/* ---------- reply: how the answer comes back, over the workshop owner reading it ---------- */
.ct-reply { padding-block: var(--section-y); background: var(--c-paper-alt); }
.ct-reply__frame { position: relative; height: 600px; margin: clamp(40px, 4vw, 56px) 0 0; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink); box-shadow: var(--shadow-l); }
.ct-reply__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.ct-reply__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 55%, transparent) 0%, color-mix(in srgb, var(--c-ink) 25%, transparent) 42%, transparent 60%); }
.ct-reply__stage { position: absolute; z-index: 2; left: clamp(20px, 4vw, 48px); top: 40px; width: min(460px, 46%); height: 520px; }
.ct-reply__stage > [data-scene] { position: absolute; inset: 0; }
.ct-reply__stop { position: absolute; z-index: 3; right: 16px; top: 16px; }
@media (max-width: 760px) {
  /* on the phone his face at the top of the frame, the cards at its foot: the photo is drawn 1372 x 915 px from 255 px
     above the frame to its foot (his face is at 65% across and 39% down the photo), so his face stands at about 100 px,
     above the cards (from 180 px). It ends at the frame's foot: a photo hanging below it would give the frame a hidden
     overflow that scrolling the scene into view scrolls too, lifting the stop icon out of the frame */
  .ct-reply__frame { height: 660px; }
  .ct-reply__photo { top: -255px; bottom: auto; height: calc(100% + 255px); object-position: 70% 50%; }
  .ct-reply__frame::after { background: linear-gradient(180deg, transparent 22%, color-mix(in srgb, var(--c-ink) 55%, transparent) 60%); }
  .ct-reply__stage { left: 9px; right: 9px; top: auto; bottom: 10px; width: auto; height: 470px; }
  .ct-reply__stop { top: 12px; right: 12px; }
}

/* ---------- skip: the chat's first question on a phone in a hand, on the ink ---------- */
.ct-skip { position: relative; padding-block: var(--section-y); --rings-at: 0% 100%; }
.ct-skip__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(36px, 6vw, 96px); align-items: center; }
.ct-skip__words { display: grid; gap: 18px; }
.ct-skip__words h2 { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.1rem); }
.ct-skip__words p { font-size: 1.1875rem; color: color-mix(in srgb, var(--c-on-ink) 88%, transparent); }
.ct-skip__frame { position: relative; height: 640px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-ink-2); box-shadow: var(--shadow-l); }
/* the photo is drawn 1470 x 980 around the phone (its screen 0.17 of the photo's width: 250 px), so the chat's words on
   its screen read at 13 px or more */
.ct-skip__photo { position: absolute; left: 0; right: 0; top: -82px; height: 980px; margin: 0; }
.ct-skip__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 47% 50%; }
.ct-skip__stop { position: absolute; z-index: 3; right: 16px; top: 16px; }
@media (max-width: 900px) {
  .ct-skip__grid { grid-template-columns: minmax(0, 1fr); }
  .ct-skip__frame { height: 560px; }
  .ct-skip__photo { top: -122px; }
}
