/* ==========================================================================
   About — Intro
   ========================================================================== */

body:has(.ut-about-intro) {
	background-color: var(--wp--preset--color--warm);
}

.ut-about-intro {
	padding-top: var(--ut-space-md);
	padding-bottom: var(--ut-space-lg);
}

.ut-about-intro.ut-scroll-reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

.ut-about-intro__text {
	margin: 0;
	/* max-width: 22em; */
	font-size: var(--ut-display-size);
	line-height: var(--ut-h2-line-height);
}

.ut-about-intro__text .ut-word {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-top: 0.05em;
	margin-top: -0.05em;
}

.ut-about-intro__text .ut-word-inner {
	display: inline-block;
	transform: translateY(115%);
	transform-origin: 50% 100%;
	opacity: 0;
	transition: transform 1s var(--ut-ease-out-expo),
	            opacity 0.8s var(--ut-ease-out-expo);
}

.ut-about-intro.ut-anim-ready .ut-word-inner {
	transform: translateY(0);
	opacity: 1;
}

.ut-about-intro__accent {
	color: var(--wp--preset--color--accent);
}

/* --- Color utilities --- */

.ut-color-accent {
	color: var(--wp--preset--color--accent);
}

.ut-color-primary {
	color: var(--wp--preset--color--primary);
}

.ut-color-warm {
	color: var(--wp--preset--color--warm);
}

.ut-color-foreground {
	color: var(--wp--preset--color--foreground);
}

.ut-color-background {
	color: var(--wp--preset--color--background);
}

.ut-color-contrast {
	color: var(--wp--preset--color--contrast);
}


.ut-about-intro__text a {
	color: var(--wp--preset--color--accent);
	text-decoration: none;
}

/* ==========================================================================
   About — Team photos
   ========================================================================== */

.ut-team-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(0.9rem, 1.8vw, 1.9rem);
	padding-bottom: var(--ut-space-lg);
}

.ut-team-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	grid-column: span 4;
}

.ut-team-card:nth-child(3n+1) {
	transform: none;
}

.ut-team-card:nth-child(3n+2) {
	transform: none;
}

.ut-team-card:nth-child(3n+3) {
	transform: none;
}

.ut-team-card:nth-child(3n+3) img {
	object-position: bottom;
}

/* Staggered card reveal */

.ut-team-grid.ut-scroll-reveal {
	opacity: 1;
	transform: none;
	transition: none;
}

.ut-team-grid .ut-team-card {
	opacity: 0;
	transform: translateY(2.5rem);
	transition: opacity 0.9s var(--ut-ease-out-expo),
	            transform 0.9s var(--ut-ease-out-expo);
}

.ut-team-grid.ut-anim-ready .ut-team-card {
	opacity: 1;
	transform: translateY(0);
}

.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(1) { transition-delay: 0.1s; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(2) { transition-delay: 0.22s; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(3) { transition-delay: 0.34s; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(4) { transition-delay: 0.46s; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(5) { transition-delay: 0.58s; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(n+6) { transition-delay: 0.7s; }


/* @media (min-width: 60em) {
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(1) { margin-top: -1rem; }
.ut-team-grid.ut-anim-ready .ut-team-card:nth-child(2) { margin-top: -2rem; }
} */
.ut-team-card__figure {
	position: relative;
	margin: 0;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 0.75rem;
}

.ut-team-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
	transition: transform 0.7s var(--ut-ease-out-expo),
		filter 0.7s var(--ut-ease-out-expo);
}

.ut-team-card__figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.ut-team-card__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 1rem;
	padding: clamp(1.15rem, 2vw, 1.85rem);
	color: #ffffff;
	background: linear-gradient(
		180deg,
		rgba( 4, 4, 4, 0 ) 4%,
		rgba( 8, 8, 8, 0.18 ) 30%,
		rgba( 8, 8, 8, 0.72 ) 66%,
		rgba( 8, 8, 8, 0.94 ) 100%
	);
	opacity: 0;
	transform: translateY(1.15rem);
	transition: opacity 0.45s var(--ut-ease-out-expo),
		transform 0.45s var(--ut-ease-out-expo);
}

.ut-team-card__overlay-role {
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(0.78rem, 0.45vw + 0.62rem, 1rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #ffffff;
}

.ut-team-card__overlay-description {
	width: 100%;
	font-family: var(--wp--preset--font-family--pp-woodland);
	font-size: clamp(1.06rem, 1vw + 0.74rem, 1.95rem);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: 0.01em;
	max-width: 100%;
	text-wrap: pretty;
}

.ut-team-card__overlay-description p {
	margin: 0;
}


.ut-team-card__social-list {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ut-team-card__social-link {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-family: var(--wp--preset--font-family--makira);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: #ffffff;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.4 );
	transition: color 0.25s ease, border-color 0.25s ease;
}

.ut-team-card__social-link:hover,
.ut-team-card__social-link:focus-visible {
	color: var(--wp--preset--color--accent);
	border-color: var(--wp--preset--color--accent);
}

.ut-team-card:hover .ut-team-card__img,
.ut-team-card:focus-within .ut-team-card__img {
	transform: scale(1.07);
	filter: saturate(0.88) contrast(0.92);
}

.ut-team-card:hover .ut-team-card__overlay,
.ut-team-card:focus-within .ut-team-card__overlay {
	opacity: 1;
	transform: translateY(0);
}

.ut-team-card__info {
	padding-top: clamp(1rem, 1.6vw, 1.85rem);
	display: flex;
	flex-direction: column;
	gap: 0.18rem;
}

.ut-team-card__name {
	font-family: var(--wp--preset--font-family--pp-woodland);
	font-size: clamp(2rem, 3vw, 6rem);
	line-height: 0.92;
	letter-spacing: 0.01em;
	font-weight: 400;
}

.ut-team-card__role {
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(0.95rem, 0.45vw + 0.82rem, 1.1rem);
	line-height: 1.3;
	opacity: 0.72;
}

.ut-team-card__email {
	display: inline-block;
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(0.9rem, 0.4vw + 0.78rem, 1rem);
	line-height: 1.35;
	color: var(--wp--preset--color--foreground);
	text-decoration: none;
	opacity: 0.82;
}

.ut-team-card__email:hover,
.ut-team-card__email:focus-visible {
	color: var(--wp--preset--color--accent);
	text-decoration: underline;
	text-underline-offset: 0.12em;
	opacity: 1;
}

/* ==========================================================================
   About — Services columns
   ========================================================================== */

.ut-about-services {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--ut-gutter);

	padding-top: clamp(4rem, 20vw, 15rem);
	padding-bottom: clamp(4rem, 20vw, 15rem);
}

.ut-about-services__tagline {
	margin: .5rem 0 0;
	max-width: none;
	font-size: var(--ut-h4-size);
	line-height: var(--ut-h-line-height);
}

.ut-about-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--ut-h2-size);
	line-height: var(--ut-h3-line-height);
	/* font-weight: 700; */
}

.ut-about-services__list li {
	margin-bottom: 0.15em;
}

.ut-about-services__link {
	transition: .25s;
	color: inherit;
	text-decoration: none;
}

.ut-about-services__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.12em;
	color: var(--wp--preset--color--accent)
}

/* ==========================================================================
   About — Process (How we work)
   ========================================================================== */

.ut-process {
	padding-bottom: 0;
}

.ut-process__heading {
	/* padding-left: var(--ut-gutter); */
	/* padding-right: var(--ut-gutter); */
	font-size: clamp(2rem, 3vw, 3rem);
	margin-bottom: 1rem;
}

/* Sticky-stack wrapper: gives the last card room to stick */
.ut-process-cards {
	position: relative;
}

.ut-process-card {
	--ut-process-body-pad-top: clamp(0.9rem, 6vw, 4rem);
	--ut-process-title-pad-top: clamp(0.9rem, 6vw, 4rem);
	--ut-process-title-gap: 1.05em;
	--ut-process-title-line-opacity: 1;
	position: sticky;
	top: 0;
	min-height: 100vh;
	height: 100vh;
	z-index: var(--ut-card-index, 1);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
	gap: var(--ut-gutter);
	background-color: var(--wp--preset--color--accent);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 45% center;
	border-radius: 0.75rem;
	overflow: hidden;
	margin-bottom: var(--ut-gutter);
}



.ut-process-card--process-4 {
	opacity: 0;
	pointer-events: none;
}

.ut-process-card--video {
	min-height: auto;
	height: auto;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--wp--preset--color--primary);
	margin-bottom: var(--ut-gutter);
}

.ut-process-card__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- CRT glitch text overlay --- */

.ut-crt-text {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
}

.ut-crt-text__word {
	position: absolute;
	left: 50%;
	top: 40%;
	transform: translate(-50%, -50%);
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(3rem, 10vw, 10rem);
	font-weight: 500;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
	opacity: 0;
	animation: ut-crt-swap 4s infinite steps(1);
	will-change: opacity, transform;
}

.ut-crt-text__word:nth-child(1) { animation-delay: 0s; }
.ut-crt-text__word:nth-child(2) { animation-delay: 1s; }
.ut-crt-text__word:nth-child(3) { animation-delay: 2s; }
.ut-crt-text__word:nth-child(4) { animation-delay: 3s; }

@keyframes ut-crt-swap {
	0% {
		opacity: 1;
		transform: translate(-50%, -50%) skewX(-2.5deg) translateX(4px);
	}
	3% {
		opacity: 0.7;
		transform: translate(-50%, -50%) skewX(3deg) translateY(-4px);
	}
	6% {
		opacity: 1;
		transform: translate(-50%, -50%) skewX(-1deg) translateX(-5px);
	}
	9% {
		opacity: 0.8;
		transform: translate(-50%, -50%) skewX(1.5deg) translateY(2px);
	}
	14% {
		opacity: 1;
		transform: translate(-50%, -50%) skewX(-0.5deg) translateX(-1px);
	}
	20% {
		transform: translate(-50%, -50%);
	}
	25% {
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

.ut-process-card__spacer {
	/* height: clamp(1rem, 3vw, 6rem); */
	background-color: var(--wp--preset--color--warm);
	/* border-radius: 0.4rem; */
	z-index: var(--ut-card-index, 2);
	position: relative;
	margin-bottom: -0.5rem;
	display: none;
}

.ut-process-card--alt {
	background-color: var(--wp--preset--color--contrast);
}

.ut-process-card--process-1 {
	/* background-image: url('../images/proces-1-bg.png'); */
}

.ut-process-card--process-3 {
	background-color: var(--wp--preset--color--warm-soft);
	/* background-image: url('../images/proces-3-bg.png');
	background-size: min(50vw, 50%);
	background-position: 20% 30%; */
}

.ut-process-card:last-child:not(.ut-process-card--video) {
	background-color: var(--wp--preset--color--warm-soft);
	margin-bottom: 0;
}



.ut-process-card__figure--placeholder {
	background: transparent;
}

.ut-process-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ut-process-card__body {
	padding: 0 clamp(1.25rem, 3vw, 3rem) clamp(2rem, 3vw, 3rem) 0;
	padding-top: var(--ut-process-body-pad-top);
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
	/* container-type: inline-size */
	/* max-width: 46rem; */
	margin-left: auto;
	/* width: 100%; */
}

.ut-process-card__title {
	position: relative;
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(1.4rem, 6vw, 3rem);
	line-height: var(--ut-h2-line-height);
	font-weight: 500;
	padding-top: var(--ut-process-title-pad-top);
	margin-bottom: var(--ut-gutter);
	border-top: 0;
}

.ut-process-card__title::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background-color: rgba(0, 0, 0);
	opacity: 1;
}


.ut-process-card__text {
	font-size: clamp(1.2rem, 0.3rem + 1.6vw, 8rem);
	line-height: 1.6;
	margin-bottom: 1.2em;
	overflow-wrap: anywhere;
	/* max-width: 24ch; */
}

.ut-process-card__text p {
	max-width: none;
	margin-bottom: 0.95em;
}

.ut-process-card__text p:last-child {
	margin-bottom: 0;
}

.ut-process-card__deliverables {
	display: block;
	column-count: 2;
	column-gap: calc( 2 * var(--ut-gutter ) );
	column-rule: 1px solid rgba( 0, 0, 0);
	gap: 0.35em calc( 2 * var(--ut-gutter ) );
	list-style: none;
	margin: 0;
	padding: 0 0 0 var(--ut-gutter);
	font-size: clamp(1rem, 0.4vw + 0.88rem, 1.2rem);
	line-height: 1.35;
	max-width: 100%;
	width: 100%;
	border-left: 1px solid rgba( 0, 0, 0 );
}

.ut-process-card__deliverables li {
	min-width: 0;
	break-inside: avoid;
	margin: 0 0 0.35em;
	/* white-space: nowrap; */
	/* overflow: hidden; */
	text-overflow: ellipsis;
}

/* ==========================================================================
   Flow — Sticky stacking cards (About page)
   ========================================================================== */

.ut-flow {
	position: relative;
	padding: var(--ut-gutter);
}

/* --- Card: sticky full-screen panel --- */

.ut-flow-card {
	--ut-flow-tab-h: clamp(3.2rem, 5vw, 4.5rem);
	position: sticky;
	top: calc(var(--ut-flow-index, 0) * var(--ut-flow-tab-h));
	z-index: calc(var(--ut-flow-index, 0) + 1);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--wp--preset--color--accent);
	border-radius: 0.75rem 0.75rem 0 0;
}

.ut-flow-card--accent {
	background-color: var(--wp--preset--color--accent);
	background-image: url('../images/proces-1-bg.png');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 45% center;
}

.ut-flow-card--contrast { background-color: var(--wp--preset--color--contrast); }

.ut-flow-card__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ut-flow-card--gradient {
	min-height: 150vh;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 50% at 15% 80%, var(--wp--preset--color--accent) 0%, transparent 70%),
		radial-gradient(ellipse 50% 60% at 85% 20%, var(--wp--preset--color--contrast) 0%, transparent 70%),
		radial-gradient(ellipse 45% 45% at 50% 50%, var(--wp--preset--color--warm) 0%, transparent 70%),
		var(--wp--preset--color--warm-soft);
}

.ut-flow-card--warm {
	background-color: var(--wp--preset--color--warm-soft);
	background-image: url('../images/proces-3-bg.png');
	background-repeat: no-repeat;
	background-size: min(50vw, 50%);
	background-position: 20% 30%;
}

/* --- Heading: sticky so it pins as a tab when the card is covered --- */

.ut-flow-card__heading {
	position: sticky;
	top: calc(var(--ut-flow-index, 0) * var(--ut-flow-tab-h));
	z-index: 2;
	margin: 0;
	padding: clamp(0.8rem, 1.5vw, 1.2rem) var(--ut-gutter);
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(1.4rem, 6vw, 3rem);
	font-weight: 500;
	line-height: var(--ut-h2-line-height);
}

/* --- Content: the main card body below the heading --- */

.ut-flow-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: clamp(2rem, 5vw, 5rem) var(--ut-gutter) clamp(3rem, 6vw, 6rem);
}

/* 2 columns: left empty, right has content */

.ut-flow-card__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--ut-gutter);
	margin-bottom: var(--ut-space-md);
}

.ut-flow-card__col-right {
	grid-column: 2;
	min-width: 0;
}

.ut-flow-card__border-top {
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.2) 80%, rgba(0, 0, 0, 0) 100%);
	margin-bottom: var(--ut-space-xs);
}

.ut-flow-card__text {
	/* max-width: 38rem; */
	font-size: clamp(1.2rem, 0.3rem + 1.6vw, 8rem);
	line-height: 1.55;
}

.ut-flow-card__text p {
	margin-bottom: 0.85em;
	max-width: none;
}

.ut-flow-card__text p:last-child {
	margin-bottom: 0;
}

/* --- Items list: spans full width, 2-col with dividers --- */

.ut-flow-card__items {
	display: block;
	column-count: 2;
	column-gap: calc(2 * var(--ut-gutter));
	column-rule: 1px solid rgba(0, 0, 0, 0.25);
	list-style: none;
	margin: var(--ut-gutter) 0;
	padding: 0 0 0 var(--ut-gutter);
	font-size: clamp(1rem, 0.4vw + 0.88rem, 1.2rem);
	line-height: 1.35;
	border-left: 1px solid rgba(0, 0, 0, 0.25);
}

.ut-flow-card__items li {
	break-inside: avoid;
	margin: 0 0 0.45em;
}

.ut-about .ut-services-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ==========================================================================
   Cinematic steps
   ========================================================================== */

.ut-cinematic-steps {
	display: none; /* hidden for now, pending design and content finalization */
	margin-top: var(--ut-gutter);
	position: relative;
	padding: 0 calc(var(--ut-gutter) / 2 );
}

.ut-cinematic-step {
	position: sticky;
	top: 0;
	height: 100vh;
	display: flex;
	align-items: center;
	z-index: var(--ut-card-index, 1);
	border-radius: 0.75rem 0.75rem 0 0;
	background-color: var(--wp--preset--color--accent);
}

.ut-cinematic-step--1 {
	background-color: var(--wp--preset--color--warm-soft);
}

.ut-cinematic-step--1 .ut-cinematic-step__list-wrap {
	padding-top: var(--ut-gutter);
}

.ut-cinematic-step--2 {
	background-color: var(--wp--preset--color--contrast);
}

.ut-cinematic-step--3 {
	background-color: var(--wp--preset--color--accent);
}

.ut-cinematic-step--3 {
	padding-bottom: var(--ut-gutter);
}

.ut-cinematic-step__bg-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
	display: none;
}

.ut-cinematic-step__bg-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	position: absolute;
	inset: 0;
	opacity: 0.3;
	mix-blend-mode: multiply;
	border-radius: 0.75rem 0.75rem 0 0;
}

.ut-cinematic-step__body {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.5rem, 5vw, 5rem) var(--ut-gutter);
}

.ut-cinematic-step__list-wrap {
	position: sticky;
	bottom: 2rem;
	align-self: flex-end;
	margin-left: auto;
	padding-right: var(--ut-gutter);
	z-index: 2;
}

.ut-cinematic-step__left {
	min-width: 0;
}

.ut-cinematic-step__title {
	margin: 0 0 0.6em;
	font-family: var(--wp--preset--font-family--makira);
	font-size: clamp(3.5rem, 8vw, 9rem);
	line-height: 0.9;
	max-width: 10ch;
}

.ut-cinematic-step__text {
	max-width: 38rem;
	font-size: clamp(1.15rem, 1.6vw + 0.3rem, 1.75rem);
	line-height: 1.5;
}

.ut-cinematic-step__text p {
	margin: 0 0 0.6em;
}

.ut-cinematic-step__text p:last-child {
	margin-bottom: 0;
}

.ut-cinematic-step__list {
	list-style: none;
	margin: 0;
	padding: var(--ut-gutter);
	text-align: right;
	font-size: clamp(0.95rem, 1vw + 0.2rem, 1.35rem);
	line-height: 1.75;
	align-self: end;
	border-right: 1px solid currentColor;
	white-space: nowrap;
}

@media (max-width: 48em) {
	.ut-cinematic-step {
		flex-direction: column;
		align-items: stretch;
		top: calc( 2 * var(--ut-header-padding-y) + var(--ut-header-nav-size) );
		height: calc( 100vh - 2 * var(--ut-header-padding-y) - var(--ut-header-nav-size) );
	}

	.ut-cinematic-step__body {
		height: auto;
		flex: 1;
		justify-content: flex-start;
		padding-top: clamp(2rem, 8vw, 4rem);
		padding-bottom: clamp(2rem, 6vw, 3rem);
	}

	.ut-cinematic-step__title {
		font-size: clamp(2.5rem, 10vw, 4rem);
	}

	.ut-cinematic-step__list-wrap,
	.ut-cinematic-step--1 .ut-cinematic-step__list-wrap,
	.ut-cinematic-step--3 .ut-cinematic-step__list-wrap {
		position: relative;
		bottom: auto;
		width: 100%;
		margin-left: 0;
		padding-top: 0;
		padding-right: var(--ut-gutter);
		padding-bottom: var(--ut-gutter);
		padding-left: var(--ut-gutter);
	}

	.ut-cinematic-step__list {
		text-align: left;
		border-right: none;
		border-left: 1px solid currentColor;
		padding: 0 0 0 1rem;
		white-space: normal;
	}
}
