/* About: editorial split. Photo bleeds to the left screen edge, text on a warm panel on the right. Mobile-first. */

.iw-about {
	display: grid;
	background: var(--iw-color-surface);
}

/* Photo */
.iw-about__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--iw-color-line);
}

.iw-about__media picture,
.iw-about__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.iw-about__media img {
	object-fit: cover;
}

/* Text */
.iw-about__text {
	display: grid;
	align-content: center;
	justify-items: start;
	gap: var(--iw-space-6);
	padding: var(--iw-space-16) var(--iw-gutter);
}

.iw-about__kicker {
	display: flex;
	align-items: center;
	gap: var(--iw-space-4);
	margin: 0;
	color: var(--iw-color-brown);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

.iw-about__kicker::before {
	content: "";
	flex: none;
	width: 40px;
	height: 2px;
	background: var(--iw-color-primary);
}

.iw-about__title {
	max-width: 16ch;
	margin: 0;
	font-size: var(--iw-text-h2);
}

.iw-about__intro {
	max-width: 32rem;
	margin: 0;
	color: var(--iw-color-ink-soft);
	font-size: var(--iw-text-lg);
}

.iw-about__claims {
	display: grid;
	gap: var(--iw-space-6);
	margin: var(--iw-space-2) 0;
	padding: var(--iw-space-6) 0 0;
	list-style: none;
	border-top: 1px solid var(--iw-color-line);
}

.iw-about__claim-title {
	margin: 0 0 var(--iw-space-1);
	font-size: var(--iw-text-h4);
}

.iw-about__claims p {
	max-width: 30rem;
	margin: 0;
	color: var(--iw-color-ink-soft);
}

/* Scoped under .iw-about so Elementor's ".elementor a" rules do not win */
.iw-about .iw-about__link {
	padding: var(--iw-space-2) 0;
	color: var(--iw-color-brown);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--iw-color-brown) 45%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 8px;
	transition: text-decoration-color 0.15s ease;
}

.iw-about .iw-about__link:hover {
	color: var(--iw-color-brown);
	text-decoration-color: var(--iw-color-brown);
}

/* Reveal: the photo opens from the left edge like the range photos (script.js adds is-armed, then is-in) */
@media (prefers-reduced-motion: no-preference) {
	.iw-about.is-armed .iw-about__media {
		clip-path: inset(0 100% 0 0);
		transition: clip-path 1.2s cubic-bezier(0.7, 0, 0.2, 1);
	}

	.iw-about.is-armed .iw-about__media picture,
	.iw-about.is-armed .iw-about__media > img {
		transform: scale(1.12);
		transition: transform 1.7s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.iw-about.is-armed .iw-about__text > * {
		opacity: 0;
		transition: opacity 0.8s ease;
	}

	.iw-about.is-in .iw-about__media {
		clip-path: inset(0 0 0 0);
	}

	.iw-about.is-in .iw-about__media picture,
	.iw-about.is-in .iw-about__media > img {
		transform: none;
	}

	.iw-about.is-in .iw-about__text > * {
		opacity: 1;
	}

	.iw-about.is-in .iw-about__text > :nth-child(1) { transition-delay: 0.5s; }
	.iw-about.is-in .iw-about__text > :nth-child(2) { transition-delay: 0.62s; }
	.iw-about.is-in .iw-about__text > :nth-child(3) { transition-delay: 0.74s; }
	.iw-about.is-in .iw-about__text > :nth-child(4) { transition-delay: 0.86s; }
	.iw-about.is-in .iw-about__text > :nth-child(5) { transition-delay: 0.98s; }
}

@media (min-width: 1024px) {
	.iw-about {
		grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
	}

	.iw-about__media {
		aspect-ratio: auto;
		min-height: 640px;
	}

	/* Text column: starts well inside the panel and stops before the content edge of the site */
	.iw-about__text {
		padding: var(--iw-space-24) var(--iw-gutter) var(--iw-space-24) var(--iw-space-16);
		max-width: calc(var(--iw-container) * 0.45 + var(--iw-gutter));
	}
}
