/**
 * Visual lab — section 04: photo hub + phrases (360°), scroll-pin.
 */

.hp-lab-author {
	--hp-lab-author-photo-size: min(300px, 34vw);
	--hp-lab-author-photo-r: calc(var(--hp-lab-author-photo-size) / 2);
	--hp-lab-author-phrase-gap: min(5rem, 10vw);
	--hp-lab-author-phrase-radius: calc(var(--hp-lab-author-photo-r) + var(--hp-lab-author-phrase-gap));
	--hp-lab-author-bounds-h: calc(var(--hp-lab-author-photo-size) * 1.5);
	background: transparent;
	color: var(--hp-text, #f5f5f0);
}

.hp-lab-section--04.hp-lab-author {
	margin-block-end: 0;
}

.hp-lab-author__footer {
	padding-block: 0;
	margin-block-end: 0;
}

.hp-divider--lab-newsletter {
	width: 100%;
	height: 1px;
	margin: 0 0 var(--hp-lab-section-gap-compact, clamp(4rem, 10vh, 6rem));
	background: linear-gradient(
		90deg,
		transparent 0%,
		rgba(255, 255, 255, 0.44) 18%,
		rgba(255, 255, 255, 0.62) 50%,
		rgba(255, 255, 255, 0.44) 82%,
		transparent 100%
	);
	box-shadow:
		0 0 6px rgba(255, 255, 255, 0.34),
		0 0 14px rgba(255, 255, 255, 0.24);
}

.hp-lab-author__track {
	height: calc(100vh + var(--hp-lab-author-phrase-range, 4056px));
	background: transparent;
}

.hp-lab-author__pin {
	position: sticky;
	top: calc(50svh - var(--hp-lab-author-bounds-h) / 2);
	height: var(--hp-lab-author-bounds-h);
	display: flex;
	align-items: center;
	background: transparent;
}

.hp-lab-author__bounds {
	position: relative;
	width: 100%;
	height: var(--hp-lab-author-bounds-h);
	overflow: visible;
}

.hp-lab-author__container {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
}

.hp-lab-author__stage {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: calc(var(--hp-lab-author-phrase-radius) * 1.5);
	min-height: var(--hp-lab-author-bounds-h);
	overflow: visible;
}

.hp-lab-author__photo-wrap {
	position: absolute;
	left: 0;
	top: 50%;
	width: var(--hp-lab-author-photo-size);
	height: var(--hp-lab-author-photo-size);
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	z-index: 2;
}

.hp-lab-author__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.hp-lab-author__arc {
	position: absolute;
	left: calc(var(--hp-lab-author-photo-size) / 2);
	top: 50%;
	width: 0;
	height: 0;
	z-index: 3;
	isolation: isolate;
	transform: translateY(-50%) rotate(var(--arc-rotation, 0deg));
	transform-origin: 0 0;
}

.hp-lab-author__phrase {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	font-size: calc(clamp(1.05rem, 2.4vw, 1.75rem) * var(--phrase-scale, 1));
	line-height: 1;
	letter-spacing: 0.01em;
	opacity: 0;
	visibility: hidden;
	transform: rotate(var(--phrase-angle)) translateX(var(--hp-lab-author-phrase-radius)) translateY(-0.5em);
	transform-origin: 0 0;
	pointer-events: none;
}

.hp-lab-author__phrase.is-visible {
	visibility: visible;
}

.hp-lab-author--static .hp-lab-author__track {
	height: auto;
}

.hp-lab-author--static .hp-lab-author__pin {
	position: relative;
	top: auto;
	height: auto;
	padding-block: 2rem;
}

.hp-lab-author--static .hp-lab-author__bounds {
	overflow: visible;
	height: auto;
}

.hp-lab-author--static .hp-lab-author__phrase {
	position: relative;
	opacity: 1;
	visibility: visible;
	transform: none;
	margin-bottom: 0.5rem;
}

.hp-lab-author--static .hp-lab-author__arc {
	position: relative;
	left: auto;
	top: auto;
	transform: none;
}

.hp-lab-author__static-list {
	margin: 0 auto;
	padding: 0 var(--hp-lab-container-pad) 2rem;
	list-style: disc;
	font-size: 0.95rem;
	line-height: 1.5;
}

@media (max-width: 1200px) {
	.hp-lab-author {
		--hp-lab-author-photo-size: min(18vw, 4.25rem);
		--hp-lab-author-phrase-gap: min(1.15rem, 3.5vw);
		--hp-lab-author-bounds-h: max(
			calc(var(--hp-lab-author-photo-size) * 2.4),
			calc(var(--hp-lab-author-phrase-radius) * 1.35 + 2.35rem)
		);
	}

	.hp-lab-author__bounds,
	.hp-lab-author__container {
		overflow: visible;
	}

	.hp-lab-author__stage {
		width: 100%;
		max-width: 100%;
		min-height: var(--hp-lab-author-bounds-h);
		margin-inline: auto;
	}

	.hp-lab-author__phrase {
		font-size: calc(clamp(0.82rem, 3.2vw, 1.05rem) * var(--phrase-scale, 1));
	}
}

@media (max-width: 640px) {
	.hp-lab-author {
		--hp-lab-author-photo-size: min(13vw, 2.75rem);
		--hp-lab-author-phrase-gap: min(0.85rem, 2.8vw);
		--hp-lab-author-bounds-h: max(
			calc(var(--hp-lab-author-photo-size) * 2.2),
			calc(var(--hp-lab-author-phrase-radius) * 1.2 + 2.1rem)
		);
	}

	.hp-lab-author__phrase {
		font-size: calc(clamp(0.75rem, 2.8vw, 0.92rem) * var(--phrase-scale, 1));
	}
}
