/* Contact take 1, "Addressed". Classes are namespaced ct1-. Tokens from ../tokens.css (live); roles, colour levels,
   links, chips, fields and states from ../site/system.css (polish standard Part A, loaded after this file). */
[hidden] { display: none !important; }
.tcc-hy { font-family: 'Archivo', var(--tcc-font-body); font-weight: 500; }
.ct1 { background: var(--tcc-ground); }
.ct1-h { font-size: clamp(3rem, 1.6rem + 5.4vw, calc(6.6rem + var(--tcc-up) * .03)); line-height: .94; letter-spacing: -0.035em; font-weight: 500; }
.ct1-h2 { font-size: var(--r-h2); line-height: 1.04; letter-spacing: -0.025em; }

/* ---------- Hero: the intro beside the stage ---------- */
.ct1-hero { padding: calc(var(--tcc-clear) + clamp(24px, 4vw, 56px)) 0 clamp(72px, 9vw, 140px); position: relative; overflow: clip; }
.ct1-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 72% 30%, rgba(54,174,203,.07), transparent 70%); }
.ct1-hero__in { display: grid; gap: clamp(32px, 5vw, 64px); position: relative; }
@media (min-width: 1000px) { .ct1-hero__in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.ct1-intro { display: grid; gap: clamp(18px, 2vw, 28px); align-content: start; }
@media (min-width: 1000px) { .ct1-intro { position: sticky; top: calc(var(--tcc-clear) + 24px); padding-top: clamp(24px, 6vw, 96px); } }
.ct1-lede { font-size: var(--r-lede); line-height: 1.5; color: var(--c-body); max-width: 30ch; }
.ct1-direct { font-size: var(--r-body); color: var(--c-body); }

/* ---------- The stage: two coaches behind the card ---------- */
.ct1-stage { --fig-w: clamp(150px, 42vw, 300px); --g: clamp(12px, 3vw, 48px); position: relative; }
.ct1-figs { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); position: relative; z-index: 1; }
.ct1-fig { position: relative; justify-self: center; width: var(--fig-w); cursor: pointer; display: block; }
.ct1-fig--josh { justify-self: end; }
.ct1-fig--darren { justify-self: start; }
/* The choice (the signature): the chosen coach steps up and into the light; the other steps back into the dark.
   Craft pass 2: the one stepping back leaves first and travels further and slower than the one stepping up, so the
   eye lands on the chosen coach; brightness, not greyscale, carries "into the dark" (greyscale read as a filter).
   The step up scales with the figure (4.5% of its width) so it still reads on a 165px phone figure; the one stepping
   back stays at 45% brightness, present and reachable rather than gone (it is one tap away). */
.ct1-fig img { width: 100%; height: auto; position: relative; transform-origin: 50% 100%;
  transition: transform 640ms var(--tcc-easing-arrive) 70ms, filter 640ms var(--tcc-easing-arrive) 70ms; }
.ct1-fig__glow { position: absolute; left: -30%; right: -30%; top: 6%; height: 80%; border-radius: 50%; opacity: .55;
  background: radial-gradient(closest-side, rgba(54,174,203,.34), rgba(54,174,203,.08) 55%, transparent);
  transition: opacity 640ms var(--tcc-easing-soft) 70ms, transform 640ms var(--tcc-easing-arrive) 70ms; }
.ct1-stage[data-coach='josh'] .ct1-fig--josh img,
.ct1-stage[data-coach='darren'] .ct1-fig--darren img { transform: translateY(calc(var(--fig-w) * -.045)) scale(1.05); }
.ct1-stage[data-coach='josh'] .ct1-fig--josh .ct1-fig__glow,
.ct1-stage[data-coach='darren'] .ct1-fig--darren .ct1-fig__glow { opacity: 1; transform: scale(1.06); }
.ct1-stage[data-coach='josh'] .ct1-fig--darren img,
.ct1-stage[data-coach='darren'] .ct1-fig--josh img { transform: translateY(16px) scale(.94); filter: brightness(.45) saturate(.5);
  transition-duration: 760ms; transition-delay: 0ms; transition-timing-function: var(--tcc-easing-move); }
.ct1-stage[data-coach='josh'] .ct1-fig--darren .ct1-fig__glow,
.ct1-stage[data-coach='darren'] .ct1-fig--josh .ct1-fig__glow { opacity: 0; transition-delay: 0ms; }
/* Load (the hero only, done by about 1.1s): the two coaches rise into place together, Darren a beat after Josh. */
@keyframes ct1-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes ct1-glow { from { opacity: 0; } }
.ct1-fig { animation: ct1-rise 820ms var(--tcc-easing-arrive) 120ms both; }
.ct1-fig--darren { animation-delay: 220ms; }
.ct1-fig .ct1-fig__glow { animation: ct1-glow 1000ms var(--tcc-easing-soft) 120ms both; }

/* ---------- The card (the form), drawn in front of the coaches' lower half ---------- */
.ct1-card { position: relative; z-index: 2; margin-top: clamp(24px, 4vw, 40px); background: var(--tcc-surface);
  border: 1px solid rgba(255,255,255,.1); border-radius: calc(var(--tcc-radius-card) + 6px);
  padding: clamp(18px, 3vw, 40px); box-shadow: 0 -24px 60px -20px rgba(0,0,0,.9);
  display: grid; gap: clamp(22px, 2.6vw, 34px); }
.ct1-card::before { content: ''; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(92,195,220,.6), transparent); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.ct1-to { position: relative; display: grid; gap: 14px; }
.ct1-to__k { position: absolute; left: 0; top: 16px; }
.ct1-to__pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: max(var(--g), 40px); position: relative; }
.ct1-to__one { display: grid; justify-items: center; gap: 10px; text-align: center; align-content: start; }
.ct1-to__one:first-child { justify-items: end; text-align: right; }
.ct1-to__one:last-child { justify-items: start; text-align: left; }
@media (min-width: 560px) { .ct1-to__one, .ct1-to__one:first-child, .ct1-to__one:last-child { justify-items: center; text-align: center; } }
.ct1-to__amp { position: absolute; left: 50%; top: 0; height: 48px; display: grid; place-items: center; transform: translateX(-50%);
  font: 500 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1 var(--tcc-font-heading); color: rgba(255,255,255,.3); }
.ct1-to__works { max-width: 24ch; transition: opacity 400ms var(--tcc-easing-soft); }
/* coach chips: hairline at rest and equal while no one is chosen; the chosen one takes the Accent ring and fill */
.ct1-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 18px 5px 5px; border-radius: var(--tcc-radius-pill);
  box-shadow: inset 0 0 0 1px var(--c-ring); background: transparent; color: var(--c-heading);
  font: 600 var(--tcc-control-fs-lg)/1 var(--tcc-font-body); cursor: pointer; white-space: nowrap;
  transition: box-shadow var(--c-ui) var(--tcc-easing-soft), background-color var(--c-ui) var(--tcc-easing-soft), opacity 400ms var(--tcc-easing-soft), transform 160ms var(--tcc-easing-soft); }
.ct1-chip__ph { width: 38px; height: 38px; border-radius: 50%; overflow: clip; background: #1b1f21; flex: none; }
.ct1-chip__ph img { width: 100%; height: 100%; object-fit: cover; }
.ct1-chip__sur { color: var(--c-meta); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .ct1-chip:hover { box-shadow: inset 0 0 0 1px var(--c-ring-hover); } }
.ct1-chip:active { transform: scale(.97); }
input:focus-visible + .ct1-chip { outline: 2px solid var(--c-accent); outline-offset: 3px; }
/* keyboard on the open option ("either coach", the default): both chips are ringed together */
#ct1-c-either:focus-visible ~ .ct1-to__pair { outline: 2px solid var(--c-accent); outline-offset: 6px; border-radius: 32px; }
.ct1-stage[data-coach='josh'] .ct1-to__one:first-child .ct1-chip,
.ct1-stage[data-coach='darren'] .ct1-to__one:last-child .ct1-chip { box-shadow: inset 0 0 0 1.5px var(--c-accent); background: var(--c-fill-sel); }
.ct1-stage[data-coach='josh'] .ct1-to__one:last-child .ct1-chip,
.ct1-stage[data-coach='darren'] .ct1-to__one:first-child .ct1-chip { opacity: .5; }
.ct1-stage[data-coach='josh'] .ct1-to__one:last-child .ct1-to__works,
.ct1-stage[data-coach='darren'] .ct1-to__one:first-child .ct1-to__works { opacity: .4; }
.ct1-to__note { text-align: center; font-size: var(--r-meta); line-height: 1.5; color: var(--c-meta); min-height: 1.5em; }
.ct1-to__note [data-when] { display: none; }
.ct1-stage[data-coach=''] .ct1-to__note [data-when=''],
.ct1-stage[data-coach='josh'] .ct1-to__note [data-when='josh'],
.ct1-stage[data-coach='darren'] .ct1-to__note [data-when='darren'] { display: inline; animation: c-err-in 240ms var(--tcc-easing-soft) both; }
.ct1-switch { padding: 12px 2px; margin: -12px 0; }
@media (max-width: 559px) { .ct1-chip { padding-right: 14px; } .ct1-to__k { display: none; } .ct1-chip__sur { display: none; } .ct1-to__works { max-width: 19ch; } }

/* ---------- Fields ---------- */
.ct1-fields { display: grid; gap: clamp(20px, 2vw, 26px); border-top: 1px solid rgba(255,255,255,.08); padding-top: clamp(22px, 2.6vw, 32px); }
.ct1-row--2 { display: grid; gap: inherit; }
@media (min-width: 640px) { .ct1-row--2 { grid-template-columns: 1fr 1fr; } }
.ct1-field { display: grid; gap: 10px; }
.ct1-field legend { padding: 0; margin-bottom: 10px; }
.ct1-app-note { display: none; min-height: 44px; align-items: center; }
.ct1-card.is-app [data-group='location'] .ct1-opts { display: none; }
.ct1-card.is-app .ct1-app-note { display: flex; }
.ct1-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct1-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ---------- Sent: the fields step out, the thanks steps in, and the coaches step up together ---------- */
.ct1-fields.is-leaving { opacity: 0; transform: translateY(-6px); transition: opacity 220ms var(--tcc-easing-soft), transform 220ms var(--tcc-easing-soft); }
.ct1-thanks { padding: clamp(12px, 3vw, 40px) 0 clamp(8px, 2vw, 24px); border-top: 1px solid rgba(255,255,255,.08); outline: none; }
.ct1-thanks:not([hidden]) { animation: ct1-rise 640ms var(--tcc-easing-arrive) both; }
.ct1-thanks__line { font: 500 var(--r-h2)/1.08 var(--tcc-font-heading); letter-spacing: -0.02em; color: var(--c-heading); max-width: 18ch; }
.ct1-stage.is-sent .ct1-to__note { display: none; }
.ct1-stage.is-sent[data-coach=''] .ct1-fig img { transform: translateY(calc(var(--fig-w) * -.045)) scale(1.05); }
.ct1-stage.is-sent .ct1-fig__glow { animation: ct1-pulse 1800ms var(--tcc-easing-soft) 1; }
@keyframes ct1-pulse { 0% { transform: scale(1); } 35% { transform: scale(1.16); opacity: 1; } 100% { transform: scale(1.04); } }

/* ---------- What happens next: rides up over the hero ---------- */
.ct1-next { position: relative; z-index: 2; background: var(--tcc-ink); border-radius: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 40px) 0 0;
  margin-top: calc(clamp(24px, 3vw, 40px) * -1); padding: clamp(56px, 7vw, 112px) 0 clamp(56px, 7vw, 104px);
  box-shadow: 0 -1px 0 rgba(255,255,255,.08); }
.ct1-steps { display: grid; gap: clamp(28px, 4vw, 48px); margin-top: clamp(32px, 4vw, 56px); counter-reset: s; }
@media (min-width: 900px) { .ct1-steps { grid-template-columns: repeat(3, 1fr); } }
.ct1-step { display: grid; gap: 12px; align-content: start; position: relative; padding-top: 26px; }
.ct1-step::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255,255,255,.14); transform-origin: 0 50%; }
.ct1-step.is-now::before { background: var(--tcc-brand); }
.ct1-step__n { font: 500 var(--tcc-text-5xl)/1 var(--tcc-font-heading); letter-spacing: -0.03em; color: rgba(255,255,255,.22); }
.ct1-step.is-now .ct1-step__n { color: var(--tcc-brand); }
.ct1-step h3 { font-size: var(--r-h3); line-height: 1.1; letter-spacing: -0.01em; }
.ct1-step p { color: var(--c-body); max-width: 34ch; }
/* Supporting reveal (triggered once, quieter than the signature): each step's rule draws, then its text rises. */
.js-reveal .ct1-step::before { transform: scaleX(0); transition: transform 700ms var(--tcc-easing-arrive) calc(var(--i) * 110ms); }
.js-reveal .ct1-step > * { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--tcc-easing-arrive) calc(var(--i) * 110ms + 120ms), transform 560ms var(--tcc-easing-arrive) calc(var(--i) * 110ms + 120ms); }
.js-reveal .ct1-steps.is-in .ct1-step::before { transform: none; }
.js-reveal .ct1-steps.is-in .ct1-step > * { opacity: 1; transform: none; }

/* ---------- Where we train ---------- */
.ct1-where { position: relative; background: var(--tcc-ground); padding: clamp(64px, 8vw, 128px) 0 clamp(80px, 10vw, 160px); }
.ct1-gyms { display: grid; gap: clamp(36px, 4vw, 48px) var(--tcc-gutter); margin-top: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .ct1-gyms { grid-template-columns: 1fr 1fr; } }
.ct1-gym { display: grid; gap: 6px; align-content: start; justify-items: start; padding-bottom: clamp(16px, 2vw, 24px); border-bottom: 1px solid rgba(255,255,255,.14);
  transition: border-color 500ms var(--tcc-easing-soft); }
.ct1-gym__name { font: 500 clamp(2.75rem, 1.4rem + 6.4vw, calc(7.25rem + var(--tcc-up) * .04))/.95 var(--tcc-font-heading); letter-spacing: -0.04em;
  color: var(--c-heading); margin: 4px 0 10px; transition: color 500ms var(--tcc-easing-soft); overflow-wrap: anywhere; }
.ct1-gym__addr { color: var(--c-body); }
.ct1-dir { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--r-body); }
.ct1-gym.is-picked { border-bottom-color: var(--tcc-brand); }
.ct1-gym.is-picked .ct1-gym__name { color: var(--c-accent); }
.ct1-facts { display: grid; gap: 24px var(--tcc-gutter); margin-top: clamp(40px, 5vw, 72px); }
@media (min-width: 640px) { .ct1-facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .ct1-facts { grid-template-columns: repeat(4, 1fr); } }
.ct1-facts dt { margin-bottom: 8px; }
.ct1-facts dd { color: var(--c-body); font-size: var(--r-body); }

@media (prefers-reduced-motion: reduce) {
  .ct1-fig, .ct1-fig .ct1-fig__glow, .ct1-thanks:not([hidden]) { animation: none; }
  .ct1-fig img, .ct1-fig__glow, .ct1-chip, .ct1-fields.is-leaving { transition: none; }
  .ct1-stage.is-sent .ct1-fig__glow { animation: none; }
  .ct1-stage[data-coach] .ct1-to__note [data-when] { animation: none; }
  .js-reveal .ct1-step::before, .js-reveal .ct1-step > * { transition: none; transform: none; opacity: 1; }
}

@media (min-width: 1000px) { .ct1-card { margin-top: 0; } }
