/* About Section — pinned scroll gallery (3 images) */

.about {
	--about-green: #3f9a44;
	--about-green-line: rgba(63, 154, 68, 0.16);
	--about-text: #1a2332;
	--about-muted: #64748b;
	--about-glass: rgba(255, 255, 255, 0.72);
	--about-progress: 0;
	position: relative;
	height: calc((var(--about-slide-count, 3) + 1) * 100vh);
	height: calc((var(--about-slide-count, 3) + 1) * 100dvh);
	padding: 0;
	overflow: clip;
	background: #ffffff;
	isolation: isolate;
}

.about[data-about-slide-count="3"] {
	--about-slide-count: 3;
}

.about__pin {
	position: sticky;
	top: 0;
	display: flex;
	align-items: center;
	height: 100vh;
	height: 100dvh;
	padding: clamp(4.5rem, 9vh, 6rem) var(--rbz-gutter) clamp(2rem, 4vh, 3rem);
	overflow: hidden;
}

.about__scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.about__mesh {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
}

.about__mesh--1 {
	top: -10%;
	inset-inline-start: -8%;
	width: min(42vw, 420px);
	height: min(42vw, 420px);
	background: rgba(63, 154, 68, 0.07);
	animation: about-float 14s ease-in-out infinite;
}

.about__mesh--2 {
	bottom: -12%;
	inset-inline-end: -6%;
	width: min(36vw, 360px);
	height: min(36vw, 360px);
	background: rgba(92, 184, 92, 0.05);
	animation: about-float 18s ease-in-out infinite reverse;
}

.about__grid {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(63, 154, 68, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(63, 154, 68, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 100%);
}

.about__ring {
	position: absolute;
	top: 50%;
	inset-inline-end: 6%;
	width: min(24vw, 240px);
	height: min(24vw, 240px);
	border: 1px solid rgba(63, 154, 68, 0.1);
	border-radius: 50%;
	transform: translateY(-50%) rotate(calc(var(--about-progress, 0) * 180deg));
	transition: transform 0.15s linear;
}

.about__ring::before {
	content: '';
	position: absolute;
	inset: 18%;
	border: 1px dashed rgba(63, 154, 68, 0.14);
	border-radius: 50%;
	animation: about-spin 40s linear infinite;
}

/* Progress steps */

.about__progress {
	position: absolute;
	top: 50%;
	inset-inline-start: clamp(0.5rem, 2vw, 1.25rem);
	z-index: 3;
	display: none;
	flex-direction: column;
	gap: 0.5rem;
	transform: translateY(-50%);
}

.about__progress-step {
	display: block;
	width: 3px;
	height: 2.25rem;
	border-radius: 999px;
	background: rgba(63, 154, 68, 0.14);
	transform: scaleY(0.35);
	transform-origin: top;
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.about__progress-step.is-done {
	transform: scaleY(1);
	background: rgba(63, 154, 68, 0.38);
}

.about__progress-step.is-active {
	transform: scaleY(1);
	background: var(--about-green);
	box-shadow: 0 0 12px rgba(63, 154, 68, 0.35);
}

.about__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.about__layout {
	display: grid;
	grid-template-columns: 0.95fr 1.05fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: center;
}

/* Content */

.about__content {
	max-width: 520px;
}

.about__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 1.25rem;
	color: var(--about-green);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.about__eyebrow-line {
	display: block;
	width: 2rem;
	height: 1px;
	background: linear-gradient(to left, var(--about-green), transparent);
	transform-origin: right center;
	transform: scaleX(0);
	transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.about--active .about__eyebrow-line {
	transform: scaleX(1);
}

[dir="ltr"] .about__eyebrow-line {
	transform-origin: left center;
	background: linear-gradient(to right, var(--about-green), transparent);
}

.about__title {
	margin-bottom: 1.25rem;
	color: var(--about-text);
	font-size: clamp(1.75rem, 3.2vw, 2.625rem);
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.03em;
}

.about__text {
	margin-bottom: 1.75rem;
	color: var(--about-muted);
	font-size: clamp(0.9375rem, 1.5vw, 1rem);
	line-height: 2.05;
}

.about__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	margin-bottom: 1.75rem;
	list-style: none;
}

.about__stat {
	flex: 1 1 calc(33.333% - 0.5rem);
	min-width: 6rem;
	padding: 0.75rem 0.625rem;
	border: 1px solid var(--about-green-line);
	border-radius: 12px;
	background: var(--about-glass);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	text-align: center;
}

.about__stat-value {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--about-green);
	font-size: 1.0625rem;
	font-weight: 800;
}

.about__stat-label {
	display: block;
	color: var(--about-muted);
	font-size: 0.625rem;
	font-weight: 500;
	line-height: 1.4;
}

.about__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8125rem 1.375rem;
	border: 1px solid var(--about-green);
	border-radius: 999px;
	background: var(--about-green);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(63, 154, 68, 0.22);
}

.about__btn-icon {
	font-size: 1rem;
	transition: transform 0.25s ease;
}

.about__btn:hover .about__btn-icon {
	transform: translateX(-3px);
}

.about__quote--inline {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	margin-top: 1.5rem;
	padding: 0.875rem 1rem;
	border-inline-start: 2px solid var(--about-green);
	border-radius: 0 12px 12px 0;
	background: rgba(63, 154, 68, 0.04);
	color: #475569;
	font-size: 0.8125rem;
	font-style: normal;
	line-height: 1.85;
}

.about__quote-icon {
	flex-shrink: 0;
	color: var(--about-green);
	font-size: 0.9375rem;
	opacity: 0.75;
}

/* Gallery */

.about__gallery {
	position: relative;
}

.about__gallery-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.about__gallery-counter {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	color: var(--about-text);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	font-variant-numeric: tabular-nums;
}

.about__gallery-counter-current {
	color: var(--about-green);
	font-size: 1.125rem;
	font-weight: 800;
}

.about__gallery-counter-sep,
.about__gallery-counter-total {
	color: var(--about-muted);
	font-weight: 500;
}

.about__gallery-track {
	flex: 1;
	height: 3px;
	border-radius: 999px;
	background: rgba(63, 154, 68, 0.12);
	overflow: hidden;
}

.about__gallery-track-fill {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(to left, var(--about-green), #5cb85c);
	transform: scaleX(0);
	transform-origin: right center;
	will-change: transform;
}

[dir="ltr"] .about__gallery-track-fill {
	transform-origin: left center;
}

.about__slides {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	max-height: min(68vh, 560px);
}

.about__slides-glow {
	position: absolute;
	inset: 8% -6%;
	z-index: 0;
	border-radius: 50%;
	background: rgba(63, 154, 68, 0.1);
	filter: blur(48px);
	opacity: calc(0.35 + var(--about-progress, 0) * 0.45);
}

.about__slide {
	position: absolute;
	inset: 0;
	z-index: calc(var(--slide-z, 1));
	margin: 0;
	opacity: var(--slide-opacity, 0);
	transform: scale(var(--slide-scale, 1.06)) translateY(var(--slide-y, 24px)) rotate(var(--slide-rotate, 0deg));
	filter: blur(var(--slide-blur, 10px));
	clip-path: inset(var(--slide-clip, 12%) var(--slide-clip, 12%) var(--slide-clip, 12%) var(--slide-clip, 12%) round 1.5rem);
	will-change: opacity, transform, filter, clip-path;
	pointer-events: none;
}

.about__slide.is-current {
	pointer-events: auto;
	z-index: 5;
}

.about__slide-frame {
	position: relative;
	height: 100%;
	padding: 0.5rem;
	border: 1px solid var(--about-green-line);
	border-radius: 1.75rem 0.5rem 1.75rem 0.5rem;
	background: var(--about-glass);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
	overflow: hidden;
}

.about__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 100%;
	border-radius: 1.375rem 0.375rem 1.375rem 0.375rem;
	object-fit: cover;
}

.about__slide-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-height: 280px;
	border-radius: 1.375rem 0.375rem 1.375rem 0.375rem;
	background: linear-gradient(145deg, rgba(63, 154, 68, 0.1), rgba(63, 154, 68, 0.02));
	color: var(--about-green);
	font-size: 3rem;
	opacity: 0.45;
}

.about__slide-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.32) 0%, transparent 45%);
	pointer-events: none;
}

.about__slide-scan {
	position: absolute;
	inset-inline: 0.75rem;
	top: -20%;
	height: 28%;
	background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.18), transparent);
	opacity: calc(var(--slide-opacity, 0) * 0.85);
	transform: translateY(calc(var(--about-progress, 0) * 420%));
	pointer-events: none;
}

.about__slide-caption {
	position: absolute;
	bottom: 1rem;
	inset-inline-end: 1rem;
	z-index: 2;
}

.about__slide-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: 0.25rem 0.5rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.55);
	color: #ffffff;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	backdrop-filter: blur(8px);
}

.about__gallery-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
	color: var(--about-muted);
	font-size: 0.75rem;
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.about__gallery-hint .rbz-icon {
	color: var(--about-green);
	font-size: 0.9375rem;
	animation: about-hint-bounce 2s ease-in-out infinite;
}

.about--complete:not(.about--mobile) .about__gallery-hint,
.about--static:not(.about--mobile) .about__gallery-hint {
	display: none;
}

/* Scroll reveal — content */

.about__reveal {
	opacity: 0;
	transform: translate3d(0, 32px, 0);
	filter: blur(8px);
	transition:
		opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
		filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
	transition-delay: calc(var(--about-delay, 0) * 0.08s);
}

.about__reveal[data-delay="0"] { --about-delay: 0; }
.about__reveal[data-delay="1"] { --about-delay: 1; }
.about__reveal[data-delay="2"] { --about-delay: 2; }
.about__reveal[data-delay="3"] { --about-delay: 3; }
.about__reveal[data-delay="4"] { --about-delay: 4; }

.about--active .about__reveal {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	filter: blur(0);
}

/* Dark mode */

html.rbz-dark .about {
	--about-text: #e2e8f0;
	--about-muted: #94a3b8;
	--about-glass: rgba(20, 28, 22, 0.82);
	background: #0f1410;
}

html.rbz-dark .about__mesh--1 { background: rgba(63, 154, 68, 0.05); }
html.rbz-dark .about__mesh--2 { background: rgba(92, 184, 92, 0.03); }
html.rbz-dark .about__grid { opacity: 0.18; }
html.rbz-dark .about__stat { border-color: rgba(63, 154, 68, 0.18); }
html.rbz-dark .about__slide-frame {
	border-color: rgba(63, 154, 68, 0.18);
	box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}
html.rbz-dark .about__quote--inline {
	background: rgba(63, 154, 68, 0.06);
	color: #94a3b8;
}
html.rbz-dark .about__slide-shine {
	background: linear-gradient(125deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
}

/* Static fallback (reduced motion) */

.about--static {
	height: auto;
	padding: clamp(4.5rem, 9vh, 6rem) var(--rbz-gutter);
}

.about--static .about__pin {
	position: relative;
	height: auto;
	padding: 0;
}

.about--static .about__slides {
	aspect-ratio: auto;
	max-height: none;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.about--static .about__slide {
	position: relative;
	inset: auto;
	opacity: 1;
	transform: none;
	filter: none;
	clip-path: none;
}

.about--static .about__slide-frame {
	min-height: 240px;
}

/* Animations */

@keyframes about-float {
	0%, 100% { transform: translate(0, 0); }
	50% { transform: translate(12px, -16px); }
}

@keyframes about-spin {
	to { transform: rotate(360deg); }
}

@keyframes about-hint-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(4px); }
}

/* Responsive */

@media (min-width: 1024px) {
	.about__progress {
		display: flex;
	}
}

@media (max-width: 1023px) {
	.about {
		height: auto;
		padding: clamp(3rem, 8vw, 4.5rem) 0;
		overflow: visible;
	}

	.about__pin {
		position: relative;
		top: auto;
		height: auto;
		align-items: stretch;
		padding: 0 var(--rbz-gutter);
		overflow: visible;
	}

	.about__ring {
		display: none;
	}

	.about__layout {
		display: flex;
		flex-direction: column;
		gap: clamp(1.5rem, 4vw, 2.25rem);
	}

	.about__gallery {
		order: 1;
		width: 100%;
	}

	.about__content {
		order: 2;
		display: flex;
		flex-direction: column;
		align-items: center;
		max-width: none;
		text-align: center;
	}

	.about__content-head {
		width: 100%;
	}

	.about__eyebrow {
		justify-content: center;
		margin-bottom: 1rem;
	}

	.about__eyebrow-line {
		transform-origin: center center;
		background: linear-gradient(to right, transparent, var(--about-green), transparent);
	}

	.about--active .about__eyebrow-line {
		transform: scaleX(1);
	}

	.about__title {
		margin-bottom: 1rem;
		font-size: clamp(1.5rem, 6vw, 2rem);
	}

	.about__text {
		margin-bottom: 1.5rem;
		max-width: 36rem;
		line-height: 1.9;
	}

	.about__stats {
		justify-content: center;
		width: 100%;
		margin-bottom: 1.5rem;
	}

	.about__actions {
		width: 100%;
		display: flex;
		justify-content: center;
	}

	.about__btn {
		justify-content: center;
		min-width: min(100%, 18rem);
	}

	.about__quote--inline {
		width: 100%;
		max-width: 36rem;
		margin-top: 1.25rem;
		text-align: start;
	}

	.about__gallery-head {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas: "track counter";
		align-items: center;
		gap: 0.75rem;
		margin-bottom: 0.75rem;
	}

	[dir="rtl"] .about__gallery-head {
		grid-template-areas: "counter track";
	}

	.about__gallery-counter {
		grid-area: counter;
		flex-shrink: 0;
		white-space: nowrap;
	}

	.about__gallery-track {
		grid-area: track;
		flex: none;
		width: 100%;
		min-width: 0;
		height: 4px;
	}

	.about__gallery-track-fill {
		transition: transform 0.25s ease;
	}

	.about__slides {
		display: flex;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: auto;
		scroll-padding-inline: 0;
		padding-inline: 0;
		padding-block: 0;
		-webkit-overflow-scrolling: touch;
		touch-action: pan-x;
		aspect-ratio: 4 / 3;
		max-height: none;
		border-radius: 1.25rem;
		scrollbar-width: none;
	}

	.about__slides::-webkit-scrollbar {
		display: none;
	}

	.about__slides-glow {
		inset: 10% 0;
	}

	.about__slide {
		position: relative;
		inset: auto;
		flex: 0 0 100%;
		width: 100%;
		scroll-snap-align: center;
		scroll-snap-stop: always;
		opacity: 1;
		transform: none;
		filter: none;
		clip-path: none;
		pointer-events: auto;
	}

	.about__slide-frame {
		min-height: 0;
		height: 100%;
		border-radius: 1.25rem 0.5rem 1.25rem 0.5rem;
	}

	.about__slide-img,
	.about__slide-placeholder {
		border-radius: 1rem 0.375rem 1rem 0.375rem;
	}

	.about__slide-placeholder {
		min-height: 0;
	}

	.about__slide-scan {
		display: none;
	}

	.about__gallery-hint {
		margin-top: 0.75rem;
	}

	.about__gallery-hint .rbz-icon {
		transform: rotate(-90deg);
	}

	.about--mobile .about__gallery-hint,
	.about--static .about__gallery-hint {
		display: flex;
	}
}

@media (hover: none) {
	.about__btn:hover {
		transform: none;
		box-shadow: none;
	}

	.about__btn:hover .about__btn-icon {
		transform: none;
	}
}

@media (max-width: 639px) {
	.about {
		padding: clamp(2.5rem, 7vw, 3.5rem) 0;
	}

	.about__pin {
		padding-inline: max(1rem, var(--rbz-gutter));
	}

	.about__stats {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.5rem;
	}

	.about__stat {
		min-width: 0;
		padding: 0.625rem 0.375rem;
	}

	.about__stat-value {
		font-size: 0.9375rem;
	}

	.about__stat-label {
		font-size: 0.5625rem;
	}

	.about__slides {
		aspect-ratio: 1 / 1;
	}

	.about__btn {
		width: 100%;
		max-width: none;
		min-width: 0;
	}

	.about__mesh--1,
	.about__mesh--2 {
		opacity: 0.65;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about__reveal {
		opacity: 1;
		transform: none;
		filter: none;
		transition: none;
	}

	.about__mesh,
	.about__ring::before,
	.about__gallery-hint .rbz-icon {
		animation: none;
	}

	.about__slide {
		transition: none;
	}
}
