/* Text + media */
.fx-tm__head { margin-bottom: clamp(48px, 7vw, 104px); }
.fx-tm__copy { display: grid; gap: 1.1rem; justify-items: start; max-width: 540px; }
.fx-tm__kicker { display: flex; align-items: center; gap: .9rem; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--fx-muted); }
.fx-tm__num { font-family: var(--fx-font-body); color: var(--fx-accent); letter-spacing: .12em; }
.fx-tm__kicker-text { display: inline-flex; align-items: center; gap: .9rem; }
.fx-tm__kicker-text::before { content: ""; width: 2.2em; height: 1px; background: currentColor; opacity: .6; }
.fx-tone-accent .fx-tm__num { color: inherit; }
.fx-tm__title { font-size: clamp(calc(var(--fx-s2) * 1.05), 3.6vw, var(--fx-s4)); max-width: 16ch; }
.fx-tm__text { color: var(--fx-muted); font-size: clamp(1rem, 1.2vw, 1.1rem); line-height: 1.75; }
.fx-tm__text p + p { margin-top: 1em; }
.fx-tm__more { margin-top: .6rem; }

/* ---- alternate (zigzag) ---- */
.fx-tm__rows { display: grid; gap: clamp(72px, 11vw, 168px); }
.fx-tm__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.fx-tm__row.is-rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.fx-tm__row.is-rev .fx-tm__visual { order: 2; }
.fx-tm__row.is-rev > :not(.fx-tm__visual) { justify-self: end; }
.fx-tm__visual { position: relative; }
.fx-tm__media { aspect-ratio: 5 / 4; }
.fx-tm__row:nth-child(3n+2) .fx-tm__media { aspect-ratio: 4 / 5; max-width: 86%; }
.fx-tm__row.is-rev .fx-tm__media { margin-left: auto; }
.fx-tm__visual::after { content: ""; position: absolute; z-index: -1; width: 42%; aspect-ratio: 1; border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); right: -4%; bottom: -7%; }
.fx-tm__row.is-rev .fx-tm__visual::after { right: auto; left: -4%; }

/* ---- sticky ---- */
.fx-tm__steps { display: grid; gap: clamp(64px, 10vw, 120px); }
.fx-tm__step { display: grid; gap: clamp(24px, 3vw, 40px); }
.fx-tm__inline { aspect-ratio: 4 / 3; }
.fx-tm__stage { display: none; }

@media (min-width: 861px) {
  .fx-tm__sticky:not(.is-enhanced) .fx-tm__step { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
  .fx-tm__sticky:not(.is-enhanced) .fx-tm__step:nth-child(even) .fx-tm__inline { order: 2; }

  .fx-tm__sticky.is-enhanced { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
  .fx-tm__sticky.is-enhanced .fx-tm__steps { gap: 0; padding-block: 8vh 14vh; }
  .fx-tm__sticky.is-enhanced .fx-tm__step { min-height: 72vh; align-content: center; opacity: .28; transition: opacity .6s var(--fx-ease); }
  .fx-tm__sticky.is-enhanced .fx-tm__step.is-active { opacity: 1; }
  .fx-tm__sticky.is-enhanced .fx-tm__inline { display: none; }
  .fx-tm__sticky.is-enhanced .fx-tm__stage { display: block; position: sticky; top: calc(var(--fx-header-h) + 24px); height: calc(100vh - var(--fx-header-h) - 48px); max-height: 820px; }
  .fx-tm__frame { position: relative; height: 100%; border-radius: var(--fx-radius-lg); overflow: hidden; background: var(--fx-surface); isolation: isolate; }
  .fx-tm__slide { position: absolute; inset: 0; border-radius: 0; opacity: 0; transform: scale(1.06); clip-path: inset(8% 8% 8% 8%); transition: opacity .9s var(--fx-ease), transform 1.4s var(--fx-ease), clip-path 1.1s var(--fx-ease); }
  .fx-tm__slide.is-active { opacity: 1; transform: none; clip-path: inset(0 0 0 0); z-index: 1; }
  .fx-tm__frame:has(.fx-tm__hud)::after { content: ""; position: absolute; inset: auto 0 0 0; height: 28%; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.42)); }
  .fx-tm__hud { position: absolute; z-index: 2; left: clamp(16px, 2vw, 28px); right: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); display: flex; align-items: center; gap: 16px; color: #fff; font-size: .82rem; letter-spacing: .12em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .fx-tm__bar { flex: 1; height: 2px; background: rgba(255,255,255,.3); border-radius: 2px; overflow: hidden; }
  .fx-tm__bar span { display: block; height: 100%; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .8s var(--fx-ease); }
}

@media (max-width: 860px) {
  .fx-tm__row, .fx-tm__row.is-rev { grid-template-columns: minmax(0, 1fr); }
  .fx-tm__row.is-rev .fx-tm__visual { order: 0; }
  .fx-tm__row.is-rev > :not(.fx-tm__visual) { justify-self: start; }
  .fx-tm__row:nth-child(3n+2) .fx-tm__media { aspect-ratio: 5 / 4; max-width: none; }
  .fx-tm__visual::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-tm__slide, .fx-tm__step { transition: none !important; }
}
