/* Team: red portrait strips, the active one opens into full colour */
.tm { max-width: 1440px; margin: 0 auto; padding: clamp(80px, 9vw, 130px) var(--gutter) 0; }
.tm__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: clamp(26px, 3vw, 44px); }
.tm__intro { max-width: 340px; }
.tm__intro p { margin-bottom: 14px; color: var(--mute); font-size: 15px; line-height: 1.45; }
.tm__row { display: flex; gap: 8px; height: clamp(460px, 72svh, 680px); }
.tm__p { position: relative; flex: 1 1 0; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; text-align: left; font: inherit; background: var(--red); cursor: pointer; transition: flex-grow .7s cubic-bezier(.2,.85,.25,1); -webkit-tap-highlight-color: transparent; }
.tm__p.on { flex-grow: 2.75; cursor: default; }
.tm__p:active:not(.on) { filter: brightness(.92); }
.tm__p img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1) contrast(1.12); transition: filter .6s; }
.tm__p::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--red); mix-blend-mode: multiply; transition: opacity .6s; pointer-events: none; }
.tm__p::after { content: ""; position: absolute; inset: 62% 0 0; z-index: 2; background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .5s; pointer-events: none; }
.tm__p.on img { filter: none; }
.tm__p.on::before { opacity: 0; }
.tm__p.on::after { opacity: 1; }
.tm__px { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }

/* closed strip: just the role, reading upwards */
.tm__tag { position: absolute; left: 14px; bottom: 16px; z-index: 4; max-height: calc(100% - 32px); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; writing-mode: vertical-rl; transform: rotate(180deg); transition: opacity .25s; }
.tm__p.on .tm__tag { opacity: 0; }

/* open strip */
.tm__info { position: absolute; left: clamp(16px, 2vw, 26px); bottom: clamp(16px, 2vw, 24px); z-index: 4; width: min(400px, 26vw); opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.tm__p.on .tm__info { opacity: 1; transform: none; transition: opacity .45s .25s, transform .6s .25s var(--ease); }
.tm__info b { display: block; font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }
.tm__info i { display: block; margin-top: 4px; font-size: 15px; font-style: normal; font-weight: 500; color: #ffb4b1; }
.tm__info span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: rgba(255,255,255,.86); }

@media (max-width: 860px) {
  .tm__row { flex-direction: column; height: auto; }
  .tm__p { flex: 0 0 auto; height: 72px; transition: height .6s cubic-bezier(.2,.85,.25,1); }
  .tm__p.on { flex-grow: 0; height: 440px; }
  .tm__p img { object-position: 50% 22%; }
  .tm__tag { left: 16px; right: 16px; bottom: auto; top: 50%; max-height: none; writing-mode: horizontal-tb; transform: translateY(-50%); }
  .tm__info { width: auto; right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tm__p, .tm__p img, .tm__p::before, .tm__p::after, .tm__tag, .tm__info { transition: none !important; }
}
