.legalmed-team {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	width: min(1580px, calc(100% - 30px));
	margin: clamp(36px, 5vw, 72px) auto;
	align-items: start;
}

.legalmed-team__intro {
	position: sticky;
	align-self: end;
	bottom: 32px;
	padding: 0 4% 0 11%;
}
.legalmed-team__description { max-width: 39ch; margin: 0 0 26px; color: #4c4c4c; font-size: 16px; line-height: 1.65; }
.legalmed-team__intro h2:has(+ .legalmed-team__description) { margin-bottom: 18px; }
.legalmed-team__intro h2 { margin: 0 0 40px; font: inherit; font-size: clamp(64px, 7.5vw, 96px); line-height: 1.04; font-weight: 400; letter-spacing: -.055em; }
.legalmed-team__intro em { font-family: Georgia, serif; font-weight: 400; }
.legalmed-team a { text-decoration: none; }
.legalmed-team__button, .legalmed-team__more { display: inline-flex; align-items: center; justify-content: center; border-radius: 60px; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.legalmed-team__button { min-height: 60px; border: 1.5px solid var(--legalmed-accent); color: var(--legalmed-accent); padding: 0 37px; transition: background-color .5s, color .5s; }
.legalmed-team__button:is(:hover,:focus-visible) { background: var(--legalmed-accent); color: white; }
.legalmed-team__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 50px; padding-top: 9px; }
.legalmed-team__card { display: flex; align-items: flex-end; isolation: isolate; position: relative; height: 470px; overflow: hidden; border-radius: 30px; background: #382e32; }
.legalmed-team__card:nth-child(even) { margin-top: 30px; }
.legalmed-team__card img, .legalmed-team__card::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.legalmed-team__card img { object-fit: cover; object-position: center 25%; transition: transform .8s ease; }
.legalmed-team__card::after { content: ""; background: linear-gradient(0deg,rgba(21,15,18,.86),rgba(21,15,18,.48) 35%, transparent 72%); }
.legalmed-team__caption { padding: 30px; color: white; }
.legalmed-team__caption h3 { margin: 0; font-family: inherit; color: inherit; font-size: 32px; font-weight: 500; line-height: 1.3; letter-spacing: -.035em; }
.legalmed-team__reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .65s ease, opacity .65s ease; }
.legalmed-team__reveal > div { overflow: hidden; }
.legalmed-team__reveal p { padding: 15px 0 8px; color: white; font-size: 16px; line-height: 1.55; margin: 0; }
.legalmed-team__card:is(:hover,:focus-visible) .legalmed-team__reveal { grid-template-rows: 1fr; opacity: 1; }
.legalmed-team__card:is(:hover,:focus-visible) img { transform: scale(1.04); }
.legalmed-team__more { margin-top: 23px; min-height: 48px; padding: 0 22px; background: white; color: #181818; }
@media (max-width: 1024px) {
	.legalmed-team { grid-template-columns: 1fr; width: calc(100% - 100px); }
	.legalmed-team__intro { position: static; padding: 0; }
	.legalmed-team__grid { padding-top: 50px; }
}
@media (max-width: 680px) {
	.legalmed-team { width: calc(100% - 40px); }
	.legalmed-team__intro h2 { font-size: clamp(46px, 11vw, 64px); }
	.legalmed-team__grid { grid-template-columns: 1fr; }
	.legalmed-team__card:nth-child(even) { margin-top: 0; }
}
@media (hover: none) { .legalmed-team__reveal { grid-template-rows: 1fr; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.legalmed-team *, .legalmed-team *::after { transition: none; }
}
