/* "SOUND LIKE A FIT?" ASK (component 3), from About take 3's closing section.
   Sam (3 Nov): keep the white space and focus; the Josh and Darren buttons become chips with their photo that grow and push
   the words either side aside; no "Start with a chat" button: hovering the heading, the line and the space between them shows a
   contact chip in place of the pointer, but not over the coach chips.

   Markup: see index.html. Script: ask.js (defer).
   - .tcc-ask__zone: the heading, the line and a slot below them. A link layer (.tcc-ask__hit, aria-hidden, out of the tab order)
     covers the zone, so a click or tap anywhere in it goes to /contact/, middle-click and "open in new tab" included.
   - .tcc-ask__go: the visible contact chip, the zone's one tab stop and its accessible name.
       Pointer devices that can hover (ask.js adds .is-follow): hidden at rest; follows the pointer inside the zone, the
       system pointer hidden. Keyboard focus shows it in its slot.
       Touch, or no JS: shown in its slot under the line, and the whole zone is the tap target.
   - .tcc-chip: a coach chip (photo, first name; surname and arrow open on hover or focus). Reusable anywhere. */

.tcc-ask { padding: clamp(110px, 13vw, calc(200px + var(--tcc-up) * .1)) 0 clamp(96px, 11vw, calc(170px + var(--tcc-up) * .1)); background: var(--tcc-surface); text-align: center; }
.tcc-ask__in { width: min(100% - 2 * var(--tcc-edge), calc(1200px + var(--tcc-up) * .4)); margin-inline: auto; display: grid; justify-items: center; }

.tcc-ask__zone { position: relative; display: grid; justify-items: center; width: fit-content; max-width: 100%; padding: 12px clamp(8px, 2vw, 32px) 0; }
.tcc-ask .tcc-ask__h { position: relative; font-size: clamp(52px, 8vw, calc(124px + var(--tcc-up) * .1)); letter-spacing: -.045em; line-height: .95; color: #E6E8E9; }
.tcc-ask__line { position: relative; margin-top: 22px; color: var(--tcc-on-dark-muted); font-size: var(--tcc-text-lg); line-height: 1.5; max-width: 42ch; }
.tcc-ask__slot { height: 84px; display: grid; place-items: center; }

.tcc-ask__hit { position: absolute; inset: 0; z-index: 1; border-radius: 28px; -webkit-tap-highlight-color: transparent; }

/* the contact chip */
.tcc-ask__go { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 8px 0 22px;
  border-radius: 999px; background: var(--tcc-brand); color: var(--tcc-ink); text-decoration: none; white-space: nowrap;
  font-family: var(--tcc-font-heading); font-weight: 600; font-size: 17px; letter-spacing: -.005em;
  transition: background-color .25s, scale .45s var(--tcc-easing-arrive), opacity .3s var(--tcc-easing-soft); }
.tcc-ask__go i { width: 36px; height: 36px; border-radius: 50%; background: var(--tcc-ink); display: grid; place-items: center; }
.tcc-ask__go i::before { content: ''; width: 15px; height: 15px; background: var(--tcc-brand);
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M2 8h11M9 4l4 4-4 4%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M2 8h11M9 4l4 4-4 4%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22/%3E%3C/svg%3E') center / contain no-repeat; }
.tcc-ask__go:focus-visible { outline: 2px solid var(--tcc-text); outline-offset: 4px; }
/* touch: the whole zone presses the chip */
.tcc-ask__zone:active .tcc-ask__go { background: var(--tcc-brand-hi); scale: .97; }

/* pointer that can hover: the chip replaces the pointer inside the zone */
.tcc-ask.is-follow .tcc-ask__hit { cursor: none; }
.tcc-ask.is-follow .tcc-ask__go { pointer-events: none; opacity: 0; scale: .4; will-change: translate; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .7); }
.tcc-ask.is-follow.is-over .tcc-ask__go { opacity: 1; scale: 1; }
.tcc-ask.is-follow.is-press .tcc-ask__go { scale: .9; background: var(--tcc-brand-hi); }
.tcc-ask.is-follow .tcc-ask__go:focus-visible { opacity: 1; scale: 1; translate: none !important; }

/* coach chips */
.tcc-ask__coaches { margin-top: clamp(8px, 1.4vw, 20px); min-height: 92px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px;
  font-family: var(--tcc-font-heading); font-weight: 500; font-size: 22px; letter-spacing: -.01em; color: #8a9093; }
.tcc-ask__mail { margin-top: clamp(28px, 3vw, 44px); }
.tcc-ask__mail a { color: var(--tcc-on-dark-muted); text-decoration: none; font-size: 15px; display: inline-flex; min-height: 44px; align-items: center; }
.tcc-ask__mail a:hover { color: var(--tcc-text); }

.tcc-chip { --chip-ph: 46px; --chip-ph-open: 76px;
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 22px 7px 7px; border-radius: 999px;
  color: var(--tcc-text); text-decoration: none; white-space: nowrap;
  font-family: var(--tcc-font-heading); font-weight: 500; font-size: 22px; letter-spacing: -.01em;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16);
  transition: box-shadow .35s var(--tcc-easing-soft), padding .55s var(--tcc-easing-arrive), gap .55s var(--tcc-easing-arrive); }
.tcc-chip__ph { flex: none; width: var(--chip-ph); height: var(--chip-ph); border-radius: 50%; overflow: hidden; background: #000;
  transition: width .55s var(--tcc-easing-arrive), height .55s var(--tcc-easing-arrive); }
.tcc-chip__ph img { width: 100%; height: 100%; object-fit: cover; }
.tcc-chip__more { display: grid; grid-template-columns: 0fr; transition: grid-template-columns .55s var(--tcc-easing-arrive); }
.tcc-chip__more > span { min-width: 0; overflow: hidden; display: flex; align-items: center; gap: 12px; }
.tcc-chip__sur { color: #8a9093; padding-left: .02em; }
.tcc-chip__arrow { flex: none; width: 18px; height: 18px; background: var(--tcc-brand); margin-right: 2px;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M2 8h11M9 4l4 4-4 4%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22/%3E%3C/svg%3E') center / contain no-repeat;
          mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 16 16%22%3E%3Cpath d=%22M2 8h11M9 4l4 4-4 4%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.7%22/%3E%3C/svg%3E') center / contain no-repeat; }
.tcc-chip:focus-visible { outline: 2px solid var(--tcc-brand); outline-offset: 4px; }
@media (hover: hover) {
  .tcc-chip:hover { --chip-ph: var(--chip-ph-open); box-shadow: inset 0 0 0 1.5px var(--tcc-brand); padding-right: 26px; gap: 16px; }
  .tcc-chip:hover .tcc-chip__more { grid-template-columns: 1fr; }
}
.tcc-chip:focus-visible { --chip-ph: var(--chip-ph-open); box-shadow: inset 0 0 0 1.5px var(--tcc-brand); padding-right: 26px; gap: 16px; }
.tcc-chip:focus-visible .tcc-chip__more { grid-template-columns: 1fr; }
.tcc-chip:active { box-shadow: inset 0 0 0 1.5px var(--tcc-brand-hi); }

@media (max-width: 767px) {
  .tcc-ask .tcc-ask__h { font-size: clamp(50px, 14.5vw, 64px); }
  .tcc-ask__line { font-size: 18px; }
  .tcc-ask__slot { height: 92px; }
  .tcc-ask__coaches { font-size: 19px; gap: 8px 8px; min-height: 64px; }
  .tcc-chip { --chip-ph: 40px; font-size: 19px; gap: 10px; padding: 6px 16px 6px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .tcc-chip, .tcc-chip__ph, .tcc-chip__more, .tcc-ask__go { transition: none; }
}
