/* Soci: visual narrative and profile directory. */
.celotto-people-visual {
	background: var(--celotto-green-dark);
	color: var(--celotto-stone);
	min-height: clamp(38rem, 84svh, 66rem);
	overflow: hidden;
	position: relative;
}

.celotto-people-visual__figure {
	display: grid;
	grid-template-areas: "visual";
	margin: 0;
	min-height: inherit;
}

.celotto-people-visual__frame,
.celotto-people-visual__caption {
	grid-area: visual;
}

.celotto-people-visual__frame {
	background: #24342f;
	min-height: inherit;
	overflow: hidden;
	position: relative;
}

.celotto-people-visual__frame::after {
	background:
		linear-gradient(180deg, rgba(11, 25, 21, 0.05) 32%, rgba(11, 25, 21, 0.82) 100%),
		linear-gradient(90deg, rgba(11, 25, 21, 0.36), transparent 48%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.celotto-people-visual img {
	height: 100%;
	object-fit: cover;
	position: absolute;
	width: 100%;
}

.celotto-people-visual__caption {
	align-self: end;
	display: grid;
	gap: clamp(1rem, 4vw, 4rem);
	grid-template-columns: minmax(5rem, 0.26fr) minmax(0, 1fr);
	padding: clamp(2rem, 5vw, 5rem) var(--celotto-pad);
	position: relative;
	z-index: 1;
}

.celotto-people-visual__caption > div {
	max-width: var(--celotto-content);
}

.celotto-people-visual__index,
.celotto-people-visual__label {
	color: #f1ca8d;
	margin: 0;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

/* Same line box as when the label was a span inside the caption text. */
.celotto-people-visual__caption .celotto-people-visual__label {
	line-height: 1.55rem;
}

.celotto-people-visual__caption h2 {
	font-family: var(--celotto-serif);
	font-size: clamp(3rem, 8vw, 7.5rem);
	font-weight: 400;
	letter-spacing: -0.05em;
	line-height: 0.9;
	margin: 0.7rem 0 0;
	max-width: 12ch;
}

.celotto-people-directory {
	background: var(--celotto-green-dark);
	color: var(--celotto-stone);
	padding: clamp(5rem, 9vw, 9rem) var(--celotto-pad);
}

.celotto-people-directory__layout {
	display: grid;
	gap: clamp(3rem, 7vw, 7rem);
	grid-template-columns: minmax(12rem, 0.34fr) minmax(0, 1fr);
}

.celotto-people-directory__rail {
	align-self: start;
	border-left: 2px solid var(--celotto-ochre);
	padding-left: clamp(1rem, 2vw, 1.5rem);
	position: sticky;
	top: clamp(1.5rem, 6vh, 5rem);
}

.admin-bar .celotto-people-directory__rail {
	top: calc(clamp(1.5rem, 6vh, 5rem) + 32px);
}

.celotto-people-directory__index,
.celotto-people-card__role {
	color: #f1ca8d;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.celotto-people-directory__rail h2 {
	font-family: var(--celotto-serif);
	font-size: clamp(2rem, 4.2vw, 4.2rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.97;
	margin: 1.25rem 0;
}

.celotto-people-directory__rail > p:last-child {
	color: rgba(244, 241, 234, 0.67);
	font-size: 0.9rem;
	line-height: 1.65;
	margin: 0;
	max-width: 27ch;
}

.celotto-people-fixture-note {
	border-top: 1px solid rgba(244, 241, 234, 0.2);
	color: rgba(244, 241, 234, 0.62);
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	padding-top: 0.85rem;
}

.celotto-people-fixture-note strong {
	color: #f1ca8d;
}

.celotto-people-grid {
	display: grid;
	gap: clamp(2rem, 4vw, 4rem);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.celotto-people-card {
	min-width: 0;
}

.celotto-people-card:focus {
	outline: none;
}

.celotto-people-card:focus-visible {
	box-shadow: 0 0 0 3px var(--celotto-stone);
	outline: 3px solid var(--celotto-green);
	outline-offset: 7px;
}

.celotto-people-card__portrait {
	aspect-ratio: 4 / 5;
	background:
		linear-gradient(90deg, transparent 49.8%, rgba(244, 241, 234, 0.12) 50%, transparent 50.2%),
		linear-gradient(0deg, transparent 49.8%, rgba(244, 241, 234, 0.12) 50%, transparent 50.2%),
		linear-gradient(145deg, #365347, #1a3029 72%);
	isolation: isolate;
	overflow: hidden;
	position: relative;
}

.celotto-people-card__photo {
	display: block;
	height: 100%;
	object-fit: cover;
	position: relative;
	width: 100%;
	z-index: 0;
}

.celotto-people-card--cc .celotto-people-card__portrait {
	background:
		linear-gradient(45deg, transparent 49.8%, rgba(244, 241, 234, 0.11) 50%, transparent 50.2%),
		radial-gradient(circle at 75% 25%, rgba(192, 138, 46, 0.34) 0 18%, transparent 18.2%),
		linear-gradient(145deg, #2d493f, #12241e 75%);
}

.celotto-people-card__geometry {
	border: 1px solid rgba(244, 241, 234, 0.24);
	border-radius: 50%;
	height: 62%;
	left: -22%;
	position: absolute;
	top: 13%;
	transform: rotate(-18deg);
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
	width: 88%;
}

.celotto-people-card--cc .celotto-people-card__geometry {
	border-radius: 0;
	bottom: -17%;
	height: 57%;
	left: auto;
	right: -18%;
	top: auto;
	transform: rotate(32deg);
	width: 76%;
}

.celotto-people-card__monogram {
	bottom: 7%;
	color: rgba(244, 241, 234, 0.88);
	font-family: var(--celotto-serif);
	font-size: clamp(4.5rem, 10vw, 9rem);
	font-weight: 400;
	left: 8%;
	letter-spacing: -0.08em;
	line-height: 0.72;
	position: absolute;
	transform: scale(1);
	transform-origin: left bottom;
	transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 2;
}

.celotto-people-card__photo-status {
	color: rgba(244, 241, 234, 0.68);
	font-size: 0.59rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	position: absolute;
	right: 1.1rem;
	top: 1.1rem;
	text-transform: uppercase;
	z-index: 3;
}

.celotto-people-card__veil {
	background: linear-gradient(180deg, rgba(192, 138, 46, 0.02), rgba(9, 22, 18, 0.66));
	inset: 0;
	opacity: 0;
	position: absolute;
	transform: translateY(8%);
	transition:
		opacity 420ms ease,
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
	z-index: 1;
}

.celotto-people-card__body {
	border-top: 1px solid rgba(244, 241, 234, 0.3);
	display: flex;
	flex-direction: column;
	margin-top: 1.3rem;
	min-height: 18rem;
	padding-top: 1rem;
}

.celotto-people-card__role {
	margin: 0;
}

.celotto-people-card h3 {
	font-family: var(--celotto-serif);
	font-size: clamp(2rem, 3.7vw, 3.6rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.98;
	margin: 0.85rem 0 1rem;
}

/* The summary holds the biography paragraphs written in the profile editor. */
.celotto-people-card__summary > p {
	margin: 0 0 0.8em;
}

.celotto-people-card__summary > :last-child {
	margin-bottom: 0;
}

.celotto-people-card__summary {
	color: rgba(244, 241, 234, 0.72);
	font-family: var(--celotto-serif);
	font-size: clamp(1rem, 1.35vw, 1.15rem);
	line-height: 1.55;
	margin: 0 0 1.7rem;
}

/* Cards without an image (Collaboratori and Of Counsel): name, field of work and text. */
.celotto-people-grid--testo {
	row-gap: clamp(2.5rem, 4vw, 3.75rem);
}

.celotto-people-card--testo .celotto-people-card__body {
	margin-top: 0;
	min-height: 0;
}

.celotto-people-card--testo h3 {
	font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

.celotto-people-card--testo .celotto-people-card__summary {
	font-size: clamp(0.98rem, 1.2vw, 1.08rem);
	margin-bottom: 0;
}

/* Two lists in a row (Collaboratori, then Of Counsel) read as one section with a divider. */
.celotto-people-directory + .celotto-people-directory {
	padding-top: 0;
}

.celotto-people-directory + .celotto-people-directory .celotto-people-directory__layout {
	border-top: 1px solid rgba(244, 241, 234, 0.22);
	padding-top: clamp(4rem, 7vw, 7rem);
}

.celotto-people-card__highlights {
	border-top: 1px solid rgba(244, 241, 234, 0.18);
	color: rgba(244, 241, 234, 0.72);
	font-size: 0.8rem;
	line-height: 1.5;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.celotto-people-card__highlights li {
	border-bottom: 1px solid rgba(244, 241, 234, 0.18);
	padding: 0.7rem 0;
}

.celotto-people-card__contacts {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.72rem;
	font-style: normal;
	gap: 0.65rem 1rem;
	margin: 0 0 1.5rem;
}

.celotto-people-card__contacts a {
	color: var(--celotto-stone);
	text-decoration-color: rgba(241, 202, 141, 0.68);
	text-underline-offset: 0.24em;
}

.celotto-people-card__cta {
	align-items: center;
	align-self: start;
	border-bottom: 1px solid rgba(241, 202, 141, 0.7);
	color: #f1ca8d;
	display: inline-flex;
	font-size: 0.67rem;
	font-weight: 700;
	gap: 0.7rem;
	letter-spacing: 0.13em;
	margin-top: auto;
	opacity: 1;
	padding: 0.65rem 0 0.5rem;
	text-transform: uppercase;
	transform: translateY(0.45rem);
	transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.celotto-people-card__cta::after {
	content: "\2192";
}

.celotto-people-card:is(:hover, :focus-within) .celotto-people-card__veil {
	opacity: 1;
	transform: translateY(0);
}

.celotto-people-card:is(:hover, :focus-within) .celotto-people-card__monogram {
	transform: scale(1.035);
}

.celotto-people-card:is(:hover, :focus-within) .celotto-people-card__geometry {
	transform: rotate(-13deg) scale(1.04);
}

.celotto-people-card--cc:is(:hover, :focus-within) .celotto-people-card__geometry {
	transform: rotate(27deg) scale(1.04);
}

.celotto-people-card:is(:hover, :focus-within) .celotto-people-card__cta {
	opacity: 1;
	transform: translateY(0);
}

.celotto-people-bridge__inner {
	align-items: end;
	display: grid;
	gap: clamp(2rem, 8vw, 8rem);
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.72fr);
}

.celotto-people-bridge h2 {
	font-family: var(--celotto-serif);
	font-size: clamp(2.5rem, 6vw, 6rem);
	font-weight: 400;
	letter-spacing: -0.05em;
	line-height: 0.96;
	margin: 1rem 0 0;
	max-width: 11ch;
}

/*
 * Paragraphs keep the spacing they had as plain HTML; the link adds none. The
 * section class outweighs the flow layout rule for first children.
 */
.celotto-people-bridge .celotto-people-bridge__inner > div > p {
	margin-block: 1em;
}

.celotto-people-bridge .celotto-people-bridge__inner > div > p:has(> .celotto-cta:only-child) {
	margin-block: 0;
}

.celotto-people-bridge__inner > div:last-child p:not(:has(> .celotto-cta)) {
	color: var(--celotto-grey);
	font-family: var(--celotto-serif);
	font-size: clamp(1.05rem, 1.5vw, 1.2rem);
	line-height: 1.65;
}

/* The image remains visible without JavaScript; motion starts only after preparation. */
.js.celotto-motion-ready .celotto-people-visual__frame {
	clip-path: inset(0 0 100% 0);
	transition: clip-path 950ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js.celotto-motion-ready .celotto-people-visual img {
	transform: scale(1.045);
	transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js.celotto-motion-ready .celotto-people-visual.is-visible .celotto-people-visual__frame {
	clip-path: inset(0);
}

.js.celotto-motion-ready .celotto-people-visual.is-visible img {
	transform: scale(1);
}

@media (max-width: 900px) {
	.celotto-people-directory__layout {
		grid-template-columns: 1fr;
	}

	.celotto-people-directory__rail {
		position: static;
	}
}

@media (max-width: 782px) {
	.celotto-people-visual {
		min-height: 70svh;
	}

	.celotto-people-visual__caption {
		grid-template-columns: 1fr;
	}

	.celotto-people-visual__caption h2 {
		font-size: clamp(2.8rem, 14vw, 5.3rem);
	}

	.celotto-people-bridge__inner {
		grid-template-columns: 1fr;
	}

	.celotto-people-card__body {
		min-height: 0;
	}

	.celotto-people-card__cta {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 640px) {
	.celotto-people-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 900px) and (max-height: 600px) and (orientation: landscape) {
	.celotto-people-visual {
		min-height: 100svh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js.celotto-motion-ready .celotto-people-visual__frame {
		clip-path: none;
	}

	.js.celotto-motion-ready .celotto-people-visual img,
	.celotto-people-card__geometry,
	.celotto-people-card__monogram,
	.celotto-people-card__veil,
	.celotto-people-card__cta {
		transform: none;
	}

	.celotto-people-card__cta {
		opacity: 1;
	}
}
