/**
 * Homepage About story section
 */

.hg-about-story {
	--story-font-headline: "Plus Jakarta Sans", sans-serif;
	--story-font-text: "DM Sans", sans-serif;
	--story-font-body-size: 1rem;
	padding: clamp(3.5rem, 8vw, 5.5rem) var(--section-padding-x);
	background: #f4f6f8;
}

.hg-about-story__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	width: 100%;
	max-width: var(--content-max);
	margin-inline: auto;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #ffffff;
	box-shadow: 0 18px 45px rgb(0 0 0 / 7%);
}

/* Image collage */
.hg-about-story__media {
	position: relative;
	min-width: 0;
	padding: 0 0 2.5rem 2.5rem;
}

.hg-about-story__portrait {
	position: relative;
	overflow: hidden;
	border-radius: var(--radius);
	aspect-ratio: 4 / 5;
	background: #eef1f4;
}

.hg-about-story__image--primary {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-about-story__image--inset {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg-about-story__inset {
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(46%, 11.5rem);
	aspect-ratio: 1;
	border: 0.25rem solid #ffffff;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: 0 12px 28px rgb(0 0 0 / 12%);
	background: #eef1f4;
}

.hg-about-story__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	height: 100%;
	padding: 1rem;
	text-align: center;
	font-family: var(--story-font-text);
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--muted-foreground);
}

.hg-about-story__placeholder i {
	font-size: 1.5rem;
	color: color-mix(in srgb, var(--foreground) 35%, var(--muted-foreground));
}

.hg-about-story__placeholder--primary span {
	max-width: 12rem;
}

.hg-about-story__placeholder--inset {
	background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

.hg-about-story__placeholder--inset span {
	font-size: 0.6875rem;
}

/* Content */
.hg-about-story__content {
	min-width: 0;
}

.hg-about-story__header {
	margin-bottom: 1.5rem;
}

.hg-about-story__label {
	margin: 0 0 0.875rem;
}

.hg-about-story__label-text {
	display: inline-block;
	position: relative;
	padding-bottom: 0.35rem;
	font-family: var(--story-font-text);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--foreground);
}

.hg-about-story__label-text::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 0.3rem;
	background: color-mix(in srgb, var(--accent) 55%, transparent);
	z-index: -1;
}

.hg-about-story__title {
	margin: 0;
	font-family: var(--story-font-headline);
	font-size: clamp(1.375rem, 2.75vw, 2.125rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.035em;
	color: var(--foreground);
}

.hg-about-story__body {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.75rem;
}

.hg-about-story__body p {
	margin: 0;
	font-family: var(--story-font-text);
	font-size: var(--story-font-body-size);
	line-height: 1.75;
	color: var(--muted-foreground);
}

.hg-about-story__body strong {
	color: var(--foreground);
	font-weight: 600;
}

.hg-about-story__values-title {
	margin: 0 0 1rem;
	font-family: var(--story-font-headline);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
	color: var(--foreground);
}

.hg-about-story__values-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.875rem;
}

.hg-about-story__value {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.hg-about-story__value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.375rem;
	height: 1.375rem;
	margin-top: 0.2rem;
	border-radius: 50%;
	background: var(--accent);
	color: var(--foreground);
	font-size: 0.625rem;
}

.hg-about-story__value-text {
	font-family: var(--story-font-text);
	font-size: var(--story-font-body-size);
	line-height: 1.65;
	color: var(--muted-foreground);
}

.hg-about-story__value-text strong {
	color: var(--foreground);
	font-weight: 600;
}

.hg-about-story__divider {
	margin: 1.75rem 0;
	border: 0;
	border-top: 1px solid var(--border);
}

.hg-about-story__actions {
	display: flex;
	justify-content: flex-start;
}

.hg-about-story__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0 1.625rem;
	font-family: var(--story-font-text);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	color: #ffffff;
	background: var(--foreground);
	border: 1px solid var(--foreground);
	border-radius: 0.375rem;
	transition:
		background-color 0.25s ease,
		color 0.25s ease,
		transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.25s ease;
}

.hg-about-story__btn:hover {
	background: color-mix(in srgb, var(--foreground) 88%, var(--accent));
	border-color: color-mix(in srgb, var(--foreground) 88%, var(--accent));
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgb(0 0 0 / 12%);
}

.hg-about-story__btn:active {
	transform: translateY(0);
}

/* Scroll reveal (shared with About cards section) */
.hg-about-story .hg-reveal {
	opacity: 0;
	transform: translateY(32px) scale(0.985);
	will-change: opacity, transform;
	transition:
		opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
		transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
	transition-delay: var(--reveal-delay, 0s);
}

.hg-about-story .hg-reveal.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	will-change: auto;
}

@media (max-width: 960px) {
	.hg-about-story__inner {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.hg-about-story__media {
		margin: 0;
		padding: 0 0 2rem 2rem;
	}
}

@media (max-width: 480px) {
	.hg-about-story__inner {
		padding: 1rem;
	}

	.hg-about-story__media {
		padding: 0 0 1.75rem 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hg-about-story .hg-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.hg-about-story__btn {
		transition: none;
	}

	.hg-about-story__btn:hover {
		transform: none;
	}
}
