/* The Contact page (plan.md "Contact"): the florist writing from her shop in a wide chamfered frame that runs off the
   page's right edge, the words overlapping its left edge, her message's three replies landing in glass on the calm
   counter; the kit's form in two steps on the sage; the 3-minute chat as the faster way. Only the tokens of system.css. */

/* ---- hero ---- */
.cth { overflow-x: clip; padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
.cth__in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; width: calc(100% - 2 * var(--gutter)); max-width: var(--max-w); margin-inline: auto; }
.cth__words { position: relative; z-index: 3; grid-column: 1; grid-row: 1; margin-right: -90px; padding: clamp(1.6rem, 3vw, 2.5rem); background: var(--c-sage); box-shadow: inset 0 0 0 4px var(--c-chrome); --cut: 22px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.cth__words h1 { margin: 0 0 .7rem; font-size: clamp(2.6rem, 1.6rem + 2.6vw, 4.25rem); line-height: .98; text-wrap: balance; }
.cth__line { margin: 0 0 1.5rem; max-width: 30em; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.45; color: var(--c-ink); }
.cth__stage { position: relative; grid-column: 2; grid-row: 1; height: clamp(460px, 40vw, 620px); margin-right: calc(-1 * (100vw - min(100vw, var(--max-w))) / 2 - var(--gutter)); }
/* the frame: chrome ring and chamfer on its left corners; it runs off the right edge */
.cth__frame { position: absolute; inset: 0; overflow: hidden; background: var(--c-ink); --cut: 30px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.cth__stage::before { content: ""; position: absolute; inset: -5px 0 -5px -5px; z-index: 0; background: linear-gradient(145deg, color-mix(in srgb, var(--c-chrome) 55%, var(--c-paper)), var(--c-chrome) 40%, color-mix(in srgb, var(--c-chrome) 75%, var(--c-ink)) 70%, color-mix(in srgb, var(--c-chrome) 70%, var(--c-paper)));
  clip-path: polygon(33px 0, 100% 0, 100% 100%, 33px 100%, 0 calc(100% - 33px), 0 33px); }
.cth__frame { z-index: 1; }
.cth__slide--1 { --pos: 40% 40%; }
.cth__slide--2 { --pos: 36% 40%; }
/* the kit's rotate, as kit.md gives it */
[data-kit-scene="rotate"] [data-kit-slide] { position: absolute; inset: 0; margin: 0; visibility: hidden; overflow: hidden; }
[data-kit-scene="rotate"] [data-kit-slide][data-kit-on] { visibility: visible; z-index: 2; opacity: var(--kit-move, 1); transform: translateX(var(--kit-glide, calc((1 - var(--kit-move, 1)) * 4%))); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-prev])) [data-kit-slide][data-kit-on] { transform: none; opacity: 1; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { visibility: visible; z-index: 1; }
[data-kit-scene="rotate"] [data-kit-slide] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
[data-kit-scene="rotate"]:not(:has([data-kit-slide][data-kit-on])) [data-kit-slide]:not([data-kit-slide] ~ [data-kit-slide]) { visibility: visible; }
[data-kit-scene="rotate"] [data-kit-slide] video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; clip-path: inset(2px); }
[data-kit-scene="rotate"] [data-kit-slide] video[data-kit-shown] { clip-path: none; }
[data-kit-scene="rotate"] [data-kit-slide][data-prev] { opacity: clamp(0, (1 - var(--kit-move, 0)) * 1000, 1); }
@media (scripting: none) { [data-kit-scene="rotate"] [data-kit-slide] video { display: none; } }
/* the replies, in glass on the calm counter at the lower right (her face is at the left) */
.cth__cards { position: absolute; z-index: 3; right: max(28px, calc((100vw - min(100vw, var(--max-w))) / 2 + var(--gutter))); bottom: 28px; display: grid; gap: 10px; width: min(360px, 52%); }
.cth__tag { position: relative; justify-self: start; margin-bottom: 2px; }
.cth__card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); color: var(--c-ink);
  background: color-mix(in srgb, var(--c-paper) 82%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--c-paper) 80%, transparent), 0 18px 36px -22px color-mix(in srgb, var(--c-ink) 85%, transparent);
  opacity: var(--kit-in, 1); }
/* the replies land one by one, each fading in as it rises 12 px (the rise runs once, when the kit marks it on); at the
   loop's turn the three fade out together in place, never sliding back the way they came, and the story starts again.
   The Example tag is the sequence's first item, the one the kit's hold keeps on: the stack never stands empty, and no
   reply is taken back while one before it stays */
@media (scripting: enabled) {
  .cth__card { opacity: var(--kit-in, 0); transform: translateY(12px); }
  .cth__card[data-kit-on] { transform: none; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
}
@media (prefers-reduced-motion: reduce) { .cth__card[data-kit-on] { transition: none; } }
.cth__card p { margin: 0; display: grid; gap: 2px; }
.cth__card b { font: 700 .9375rem/1.25 var(--font-ui); }
.cth__card p span { font: 500 .875rem/1.35 var(--font-text); color: var(--c-ink-soft); }
.cth__ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-brand); color: var(--c-on-brand); font-size: 18px; }
.cth__mark { width: 18px; height: 18px; fill: var(--c-on-brand); }
.cth__face { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px var(--c-chrome); }
.cth__face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cth__stop { z-index: 4; top: 16px; right: max(18px, calc((100vw - min(100vw, var(--max-w))) / 2 + var(--gutter))); }
@media (max-width: 1100px) {
  .cth__in { grid-template-columns: minmax(0, 1fr); }
  .cth__stage { grid-column: 1; grid-row: 1; height: clamp(380px, 56vw, 520px); margin-inline: calc(-1 * var(--gutter)); }
  .cth__frame, .cth__stage::before { clip-path: none; inset: 0; }
  .cth__words { grid-column: 1; grid-row: 2; margin: -70px 0 0; max-width: 640px; }
  .cth__cards { right: var(--gutter); }
  .cth__stop { right: var(--gutter); }
}
@media (max-width: 760px) {
  .cth { padding-top: 0; }
  .cth__stage { height: auto; aspect-ratio: 4 / 5; }
  .cth__slide--1 { --pos: 38% 40%; }
  .cth__slide--2 { --pos: 32% 40%; }
  /* on the phone the replies stack like notifications, the newest on top and the two before it peeking above, low
     on the counter so her face stays clear */
  .cth__cards { left: 14px; right: 14px; bottom: 78px; width: auto; gap: 0; }
  .cth__tag { grid-row: 1; margin-bottom: 22px; }
  .cth__card { grid-row: 2; grid-column: 1; padding: 10px 12px; }
  .cth__card:nth-of-type(1) { translate: 0 -16px; scale: .92; }
  .cth__card:nth-of-type(2) { translate: 0 -8px; scale: .96; }
  .cth__words { margin-top: -56px; }
  .cth__stop { top: 12px; right: 12px; }
}

/* ---- form: the kit's form in two steps, in a white chamfered panel on the sage ---- */
/* a link to #form (the hero's button, and Write to us on the other pages) lands with the section's top just under the
   sticky header, its own padding below it: 106px tall on the computer, 85 on the tablet, 78 on the phone */
.ctf { padding-block: var(--section-y); scroll-margin-top: 106px; }
@media (max-width: 1100px) { .ctf { scroll-margin-top: 85px; } }
@media (max-width: 760px) { .ctf { scroll-margin-top: 78px; } }
.ctf__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ctf__head h2 { margin: 0 0 .6rem; }
.ctf__head .lede { margin: 0; }
.ctf__marks { display: grid; gap: 10px; margin: 2rem 0 0; padding: 0; list-style: none; }
.ctf__marks li { display: flex; align-items: center; gap: 12px; font: 700 1rem/1.2 var(--font-ui); color: var(--c-ink-soft); }
.ctf__marks b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-paper); box-shadow: inset 0 0 0 2px var(--c-chrome); color: var(--c-ink); font: 800 1.125rem/1 var(--font-display); }
.ctf__marks li[aria-current="step"] { color: var(--c-ink); }
.ctf__marks li[aria-current="step"] b { background: var(--c-brand); box-shadow: none; color: var(--c-on-brand); }
.ctf__marks li[data-kit-past] b { background: var(--c-ink); box-shadow: none; color: var(--c-paper); }
.ctf__panel { box-sizing: border-box; padding: clamp(1.4rem, 3vw, 2.25rem); background: var(--c-paper); --cut: 22px;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); }
.ctf__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctf__step legend { padding: 0; margin: 0 0 1.1rem; font: 800 clamp(1.6rem, 1.3rem + .8vw, 2rem)/1.05 var(--font-display); }
.ctf__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ctf__tile { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-sage) 45%, var(--c-paper)); box-shadow: inset 0 0 0 2px transparent; cursor: pointer; transition: background var(--dur-fast, .15s) var(--ease-out, ease), box-shadow var(--dur-fast, .15s) var(--ease-out, ease); }
.ctf__tile:hover { background: var(--c-sage); }
.ctf__tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ctf__tile:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--c-brand); }
.ctf__tile[data-kit-on] { background: var(--c-ink); color: var(--c-paper); }
.ctf__tico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--c-paper); color: var(--c-brand-text); font-size: 22px; }
.ctf__tile[data-kit-on] .ctf__tico { background: var(--c-brand); color: var(--c-on-brand); }
.ctf__tw { display: grid; gap: 2px; }
.ctf__tw b { font: 700 1.0625rem/1.2 var(--font-ui); }
.ctf__tw span { font: 500 .875rem/1.35 var(--font-text); color: var(--c-ink-soft); }
.ctf__tile[data-kit-on] .ctf__tw span { color: color-mix(in srgb, var(--c-paper) 82%, transparent); }
.ctf__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.ctf__field { display: grid; gap: 6px; margin-top: 14px; }
.ctf__grid .ctf__field { margin-top: 0; }
.ctf__field--wide { grid-column: 1 / -1; }
.ctf__field label { font: 700 .9375rem/1.2 var(--font-ui); }
.ctf__opt { font-weight: 500; color: var(--c-ink-soft); }
.ctf__field input, .ctf__field textarea { box-sizing: border-box; width: 100%; min-height: 3.25rem; padding: .8rem .95rem; border: 2px solid var(--c-chrome); border-radius: var(--radius-s); background: var(--c-paper); font: 500 1rem/1.4 var(--font-text); color: var(--c-ink); }
.ctf__field textarea { resize: vertical; }
.ctf__field input:focus-visible, .ctf__field textarea:focus-visible { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c-brand) 22%, transparent); }
.ctf__field[data-kit-invalid] input, .ctf__field[data-kit-invalid] textarea { border-color: var(--c-brand-text); }
.ctf__error { margin: 0; font: 600 .875rem/1.35 var(--font-ui); color: var(--c-brand-text); }
.ctf__tiles .ctf__error { grid-column: 1 / -1; }
.ctf__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 1.5rem; }
.ctf__trust { display: flex; align-items: center; gap: 8px; margin: 1rem 0 0; font: 500 .875rem/1.4 var(--font-ui); color: var(--c-ink-soft); }
.ctf__trust .icon { flex: none; color: var(--c-brand-text); }
@media (max-width: 900px) {
  .ctf__in { grid-template-columns: minmax(0, 1fr); }
  .ctf__marks { grid-auto-flow: column; justify-content: start; gap: 18px; margin-top: 1.25rem; }
}
@media (max-width: 560px) {
  .ctf__tiles, .ctf__grid { grid-template-columns: minmax(0, 1fr); }
  .ctf__nav .btn { flex: 1 1 auto; justify-content: center; }
}

/* ---- skip: the head and the button at the left; the salon owner's framed photo at the right, your part and ours
   (yourpart, in glass) laid over its foot and below it ---- */
.cts { padding-block: var(--section-y); }
.cts__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.cts__head h2 { margin: 0 0 .6rem; }
.cts__head .lede { margin: 0 0 1.5rem; }
.cts__pic { position: relative; }
.cts__frame { width: 100%; aspect-ratio: 16 / 10; }
.cts__demo { position: relative; z-index: 2; width: calc(100% - 56px); margin: -64px 0 0 28px; }
.cts__scene { width: 100%; }
.cts__tag { top: -14px; left: 14px; }
.cts__stop { top: -48px; right: 0; }
@media (max-width: 1100px) {
  .cts__in { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .cts__head { max-width: 640px; }
}
@media (max-width: 760px) {
  .cts__frame { aspect-ratio: 4 / 3; }
  .cts__demo { width: 100%; margin: -40px 0 0; }
}
