/* Contact: plan.md "Contact". The words naming the owners beside a bakery's owner writing to us, her message on a card,
   read and answered; the kit's form in three steps on cream (components.css, "The form box"); the faster way, the chat
   on a phone at the edge of a groomer's photo, on sand. Tokens only. */

/* the site's rings, faint, behind their part's picture */
.ct-rings { position: absolute; z-index: -1; max-width: none; fill: none; stroke: var(--c-brand); stroke-width: 1.4; pointer-events: none; }
.ct-rings circle { opacity: calc(.2 - var(--k) * .02); }

/* ---------- hero: the words at the left; the owner writing to us at the right, her message on a cream card over the
   open side of her photo, read and answered (the kit's sequence) ---------- */
.ct-hero { position: relative; padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); overflow: clip; isolation: isolate; }
.ct-hero__rings { left: 70%; top: 48%; width: 1200px; height: 1200px; translate: -50% -50%; }
.ct-hero__in { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.ct-hero__stage { position: relative; }
.ct-hero__frame { aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
/* her face at 64 to 74 % across the photo: at the frame's right, clear of the card */
.ct-hero__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; }
.ct-hero__deck { position: absolute; z-index: 2; left: 4%; bottom: 7%; width: min(370px, 48%); }
.ct-thread { display: flex; flex-direction: column; gap: .55rem; padding: .8rem .9rem .9rem; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-card); box-shadow: var(--shadow-l); }
.ct-thread [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 8px)); }
.ct-thread__bar { display: flex; align-items: center; gap: .45rem; margin: 0; padding-bottom: .55rem; border-bottom: 1px solid var(--c-line); font: 700 14px/1 var(--font-ui); color: var(--c-ink); }
.ct-thread__bar img { width: 18px; height: 18px; border-radius: 5px; }
.ct-msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: .5rem; max-width: 92%; }
.ct-msg__av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-brand-light); font: 800 13px/1 var(--font-display); color: var(--c-brand-text); }
.ct-msg__body { display: grid; gap: .1rem; padding: .45rem .65rem; border: 1px solid var(--c-line); border-radius: 12px 12px 12px 4px; background: var(--c-card); box-shadow: var(--shadow-s); }
.ct-msg__body b { font: 700 13px/1.3 var(--font-ui); color: var(--c-ink); }
.ct-msg__body span { font: 500 13px/1.35 var(--font-ui); color: var(--c-ink); }
/* the reply: a block at the right, as wide as its words up to 86 % (a grid there would shrink to nothing) */
.ct-msg--out { display: block; align-self: flex-end; max-width: 86%; }
.ct-msg--out .ct-msg__body { border-color: var(--c-brand); border-radius: 12px 12px 4px 12px; background: var(--c-brand); }
.ct-msg--out .ct-msg__body span { color: var(--c-on-brand); }
.ct-msg__sent { display: flex; align-items: center; justify-content: flex-end; gap: .3rem; font: 600 13px/1.2 var(--font-ui); color: color-mix(in srgb, var(--c-on-brand) 86%, transparent); }
.ct-msg__sent svg, .ct-read svg { flex: none; width: 17px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ct-read { display: flex; align-items: center; gap: .35rem; margin: 0 0 0 calc(28px + .5rem); font: 650 13px/1.2 var(--font-ui); color: var(--c-brand-text); }
/* a step up in size on the computer */
@media (min-width: 900px) {
  .ct-msg__body b, .ct-msg__body span, .ct-read, .ct-msg__sent { font-size: 14px; }
}
/* on the card's corner, in sight while the thread plays */
.ct-hero__stop { position: absolute; z-index: 3; top: -14px; right: -14px; }
.ct-hero__title { margin: 0; font-family: var(--font-display); font-weight: var(--w-display); font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: var(--lh-tight); letter-spacing: var(--ls-display); color: var(--c-ink); text-wrap: balance; }
.ct-hero__lead { max-width: 30em; margin: 1.1rem 0 0; font-size: 1.1875rem; line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.ct-hero__go { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
/* the second way, quiet: an outline pill down to the form */
.ct-hero__write { display: inline-flex; align-items: center; gap: .5em; min-height: 52px; padding: 0 1.4em; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--c-line); font: 700 var(--fs-ui)/1 var(--font-ui); color: var(--c-ink); text-decoration: none; }
.ct-hero__write:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.ct-hero__write:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; }

/* ---------- form: its head at the left, kept in sight as the steps change; the form box at the right ---------- */
.ct-form { padding-block: clamp(2rem, 4vw, 3.5rem) var(--section-y); }
.ct-form__in { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.ct-form__side { position: sticky; top: 112px; }
.ct-form__title { text-wrap: balance; }
.ct-form__line { max-width: 26em; margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.ct-form .form-box { scroll-margin-top: 110px; }

/* ---------- skip: the groomer's photo at the left, the chat's phone standing at its open left edge; the words at the
   right ---------- */
.ct-skip { position: relative; padding-block: var(--section-y); overflow: clip; isolation: isolate; background: radial-gradient(55% 60% at 30% 50%, color-mix(in srgb, var(--c-gold) 14%, transparent), transparent 70%), var(--c-paper-alt); }
.ct-skip__rings { left: 30%; top: 50%; width: 1400px; height: 1400px; translate: -50% -50%; }
.ct-skip__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.ct-skip__title { text-wrap: balance; }
.ct-skip__line { max-width: 26em; margin: 1rem 0 0; font-size: 1.125rem; line-height: 1.5; color: var(--c-ink-soft); text-wrap: pretty; }
.ct-skip__go { margin-top: 1.75rem; }
.ct-skip__stage { position: relative; order: -1; }
.ct-skip__frame { margin-left: 18%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-l); background: var(--c-night); box-shadow: var(--shadow-l); }
/* the dog at 35 to 60 % across, the groomer at 62 to 77 %: the frame's left quarter (towels, the tub) is open */
.ct-skip__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0% 30%; }
/* the phone stands at the frame's left edge, half on the photo's open side, half on the sand */
.ct-skip__phone { position: absolute; z-index: 2; left: 0; top: 50%; width: 290px; translate: 0 -50%; }
/* the host lets the phone's shadow show whole (core.css clips every scene host; the chat clips its own messages) */
.ct-skip__scene { display: block; width: 100%; overflow: visible; }
.ct-skip__stop { position: absolute; z-index: 3; top: -14px; right: -14px; }

/* ---------- below 900 px: one column, the words first ---------- */
@media (max-width: 899.98px) {
  .ct-hero__in, .ct-form__in, .ct-skip__in { grid-template-columns: minmax(0, 1fr); }
  .ct-hero__stage, .ct-skip__stage { width: min(640px, 100%); justify-self: center; }
  .ct-skip__stage { order: 0; }
  .ct-form__side { position: static; }
}
/* ---------- the phone: the header's photo first and square, its card over the photo's lower part under her face, in
   the first screen; the groomer's photo tall (1 / 2, cropped to him and the dog), the chat's phone over its lower part
   under both faces (the dog's face ends at 57 % down: the phone's top sits below it at every phone width) ---------- */
@media (max-width: 599.98px) {
  .ct-hero__stage { order: -1; }
  .ct-hero__frame { aspect-ratio: 1 / 1; }
  .ct-hero__img { object-position: 78% 30%; }
  .ct-hero__deck { position: relative; left: auto; bottom: auto; width: auto; margin: -36% .75rem 0; }
  .ct-thread { padding: .7rem .8rem .8rem; }
  .ct-hero__go { margin-top: 1.5rem; }
  .ct-skip__frame { margin-left: 0; aspect-ratio: 1 / 2; }
  .ct-skip__img { object-position: 62% 30%; }
  .ct-skip__phone { position: relative; left: auto; top: auto; width: min(290px, 84%); margin: -82% auto 0; translate: none; }
}
