/* ==========================================================================
   Dactyl Websites — the contact page (contact.js says what moves).

     THE HERO     The shared page hero (site.css .phero): CONTACT on the
                  tape, the invitation across the page, the three ways in
                  under it as ruled, numbered lines, and the lead and the
                  promise opposite.
     THE FORM     On a sand panel, the site's card colour. A warm word on
                  the left; on the right the Dactyl Smart Form with a small
                  note under it, which fades away once the form moves on.

   Contrast, measured. On sand: ink 14.74, ink-2 8.15, accent 3.64 (the
   italic word only, at heading size). On linen: ink-2 9.41, ink-3 5.77,
   accent-ink 5.33.

   Built for 375px first; widened at 820px, as the other pages are.
   ========================================================================== */

/* ------------------------------------------------------------ The hero
   The shared page hero (site.css .phero); here only its lead and the ways
   in below it. */
.cx-spread { padding-bottom: clamp(5.5rem, 14vw, 8rem); }
.cx-lead { margin: 0; }
.cx-spread .cx-ways { margin-top: 0; }

/* The ways in: ruled lines under an ink rule, each an italic numeral, a
   mono label, the thing itself in the serif, and an arrow. A terracotta
   rule draws along the foot of the one under the pointer. */
.cx-ways { margin: clamp(2rem, 5vw, 2.8rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.cx-ways li { position: relative; border-bottom: 1px solid var(--hair-2); }
.cx-ways li::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--glide);
}
.cx-ways a {
  display: grid;
  grid-template-columns: 2.2rem 3.6rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .5rem;
  padding: 1.05rem 0 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.cx-ways i { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 1.35rem; line-height: 1; color: var(--accent); }
.cx-ways small { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cx-ways b { font-family: var(--display); font-size: clamp(1.2rem, 4.8vw, 1.5rem); font-weight: 400; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); overflow-wrap: break-word; transition: transform .6s var(--glide); }
.cx-ways svg { align-self: center; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--glide); }
.cx-ways a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) {
  .cx-ways li:hover::after { transform: scaleX(1); }
  .cx-ways a:hover b { transform: translateX(.35rem); }
  .cx-ways a:hover svg { transform: translateX(4px); }
  .cx-ways a:hover .cx-ways__down { transform: translateY(4px); }
}
.cx-spread .pg-promise { margin-top: 1.6rem; font-size: 1.1rem; }

/* ------------------------------------------------------------ The form */
/* Edge to edge on a phone (inset with rounded ends from 820px up): a
   7px margin each side only cost the form width. */
.cx-form {
  position: relative;
  z-index: 1;
  margin-inline: 0;
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
  border-radius: 2.25rem;
  background: var(--sand);
  color: var(--ink-2);
  scroll-margin-top: calc(var(--nav-h, 56px) + .5rem);
}
.cx-form__grid { display: grid; gap: clamp(2.6rem, 6vw, 3.5rem); }

.cx-form__h {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cx-form__h em { font-style: italic; color: var(--accent); }
.cx-form__h .dot { margin-left: -.05em; color: var(--ink); }
.cx-form__p { margin: 1.6rem 0 0; max-width: 30em; font-size: 1.125rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.cx-form__p--small { margin-top: 1rem; font-size: 1rem; }
.cx-form__p a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.cx-form__p a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.cx-form__body { position: relative; }
.cx-form__side { position: relative; }
.cx-form .finder { margin: 0; max-width: none; }
/* Phones: the form takes nearly the sheet's whole width, a slim margin
   either side, rather than sitting inside the text's gutter as well. */
@media (max-width: 819px), (max-device-width: 599px), (max-device-height: 599px) {
  .cx-form__side { margin-inline: calc(.6rem - var(--gutter)); }
  .cx-form [data-smartform] .finder__body { padding: 1.5rem 1.25rem 1.6rem; }
  .cx-form [data-smartform] .finder__progress { padding: 1.4rem 1.25rem 0; }
}
.cx-form [data-smartform] {
  box-shadow:
    0 0 0 1px rgba(20, 17, 13, .06),
    0 24px 50px -30px rgba(40, 24, 8, .35);
}
.cx-form [data-smartform] .finder__body { padding: 1.7rem 1.6rem 1.75rem; }
.cx-form [data-smartform] .finder__progress { padding: 1.6rem 1.6rem 0; }
.cx-form .noscript { color: var(--ink); }

/* The note under the form: what it is, on a quiet glass card. */
.cx-note { margin-top: 1.1rem; }
.cx-note__in {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 0;
  padding: 1rem 1.2rem 1.05rem;
  border-radius: 1.25rem;
  background: var(--linen);
  box-shadow: inset 0 0 0 1px var(--hair);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.cx-note__in b { font-weight: 600; color: var(--ink); }
.cx-note__in .px-pro__tag { transform: translateY(-1px); }


/* ------------------------------------------------------------ Wide */
@media (min-width: 820px) and (min-device-width: 600px) and (min-device-height: 600px) {
  .cx-spread { padding-bottom: clamp(7rem, 12vw, 10rem); }
  .cx-form { margin-inline: clamp(.5rem, 1.4vw, 1.25rem); }
  .cx-ways a { grid-template-columns: 2.8rem 4.4rem minmax(0, 1fr) auto; gap: .8rem; padding: 1.15rem 0 1.25rem; }
  .cx-ways i { font-size: 1.6rem; }
  .cx-ways b { font-size: clamp(1.25rem, 1.75vw, 1.6rem); }

  .cx-form__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6.5rem); align-items: center; }
  .cx-form__h { font-size: clamp(3rem, 4.4vw, 4.8rem); }
  .cx-form [data-smartform] .finder__body { padding: 2.1rem 2.2rem 2.2rem; }
  .cx-form [data-smartform] .finder__progress { padding: 2rem 2.2rem 0; }
  .cx-form [data-smartform] .step h2 { font-size: clamp(1.9rem, 2.4vw, 2.3rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cx-ways li::after, .cx-ways b, .cx-ways svg { transition: none; }
}

/* ------------------------------------------------------------ The panel's tape
   DACTYL SMART FORM on the brand's tape, stuck over the form panel's
   corner, as BUILD PRICE is on the pricing page's panel. */
.cx-tape { position: absolute; z-index: 2; top: -1.1rem; left: clamp(1rem, 4vw, 2rem); margin: 0; transform: rotate(-4deg); transform-origin: left center; }
.cx-tape .tape__strip { font-size: clamp(.95rem, 1.2vw, 1.2rem); }

/* ------------------------------------------------------------ Talk it through
   After the form: John's photograph large on the left, a plate like the
   guides' (rounded, a soft warm shadow, drifting a little inside its frame
   as the page moves, contact.js); on the right who you'll be talking to,
   and the two direct lines as the ruled, numbered rows. Phones: the
   photograph first, then the words. */
.cx-direct { padding-block: clamp(5.5rem, 14vw, 9rem) clamp(3rem, 8vw, 5rem); }
.cx-direct__grid { display: grid; gap: 2.4rem; }
.cx-direct__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: var(--sand);
  box-shadow: 0 34px 70px -44px rgba(40, 24, 8, .55);
}
.cx-direct__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
.cx-direct__h {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 3.4rem);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
  text-wrap: balance;
}
.cx-direct__h em { font-style: italic; color: var(--accent); }
.cx-direct__h .dot { color: var(--ink); }
.cx-direct__lead {
  max-width: 21em;
  margin: 1.6rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 5.8vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: balance;
}
.cx-direct__p { max-width: 30em; margin: 1rem 0 0; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
.cx-direct .cx-ways { margin-top: 2.4rem; }

@media (min-width: 820px) and (min-device-width: 600px) and (min-device-height: 600px) {
  .cx-tape { top: -1.3rem; left: clamp(2rem, 4vw, 4rem); }
  .cx-direct { padding-block: clamp(7rem, 16svh, 11rem) clamp(3rem, 8svh, 5rem); }
  .cx-direct__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(3.5rem, 7vw, 8rem); align-items: center; }
  .cx-direct__h { font-size: clamp(3.2rem, 4.6vw, 5.2rem); }
  .cx-direct__lead { margin-top: 2rem; font-size: clamp(1.7rem, 2.3vw, 2.4rem); }
  .cx-direct .cx-ways { margin-top: clamp(2.4rem, 5svh, 3.4rem); }
}
