/**
 * About page-only decorative touches that theme.json cannot express.
 * Everything else (color, type, spacing) comes from theme.json global styles.
 */

.almagzal-about-experience {
	padding-block: clamp(3rem, 5vw, 4.5rem) !important;
}

.almagzal-experience-inner {
	margin-inline: auto;
}

.almagzal-credentials-label {
	margin: 0 0 .75rem !important;
}

.almagzal-experience-intro {
	gap: clamp(2rem, 5vw, 5rem) !important;
	margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
}

.almagzal-experience-copy {
	margin: 0;
}

.almagzal-credentials-board {
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	background: color-mix(in srgb, var(--wp--preset--color--background) 90%, white);
	border-inline-start: .3rem solid var(--wp--preset--color--terracotta);
}

.almagzal-credentials-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 0 !important;
	margin: 0 !important;
}

.almagzal-credential {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	min-height: 15rem;
	margin: 0 !important;
	padding: 0 clamp(1rem, 2vw, 1.75rem);
	border-inline-end: 1px dashed var(--wp--preset--color--border);
}

.almagzal-credential:first-child {
	border-inline-end: 0;
}

.almagzal-credential-number {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 0 2rem;
	border: 1px solid var(--wp--preset--color--terracotta);
	border-radius: 50%;
	color: var(--wp--preset--color--terracotta);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1;
}

.almagzal-credential h3,
.almagzal-credential > p {
	margin: 0;
}

.almagzal-credential h3 {
	font-size: clamp(1.1rem, 1.6vw, 1.35rem) !important;
	line-height: 1.45;
}

.almagzal-credential h3 + p,
.almagzal-credential > p:last-child {
	margin-top: .75rem;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

.almagzal-credential-institution {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

.almagzal-experience-sources {
	margin: 1.5rem 0 0 !important;
	padding-top: 1rem;
	border-top: 1px dashed var(--wp--preset--color--border);
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

.almagzal-specialties {
	padding-block: clamp(3rem, 5vw, 4.5rem) !important;
}

.almagzal-knowledge-map {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, .65fr) minmax(0, 1fr);
	grid-template-areas:
		"paper hub build"
		"art hub making";
	gap: clamp(1.25rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4.5rem);
	align-items: stretch;
}

.almagzal-knowledge-map > * {
	min-width: 0;
	width: 100%;
	margin: 0 !important;
}

.almagzal-knowledge-hub {
	grid-area: hub;
	align-self: center;
	box-sizing: border-box;
	padding: clamp(2rem, 3.5vw, 3rem) 1.5rem;
	text-align: center;
	background: var(--wp--preset--color--beige);
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--terracotta) 42%, transparent);
	border-radius: 50%;
	aspect-ratio: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.almagzal-knowledge-hub p,
.almagzal-knowledge-hub h3 {
	margin: 0;
}

.almagzal-knowledge-hub p {
	color: var(--wp--preset--color--terracotta);
	font-size: var(--wp--preset--font-size--small);
}

.almagzal-knowledge-hub h3 {
	margin-top: .5rem;
	font-size: clamp(1.35rem, 2.3vw, 1.8rem) !important;
}

.almagzal-knowledge-cluster {
	position: relative;
	box-sizing: border-box;
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: 1px solid var(--wp--preset--color--border);
	background: color-mix(in srgb, white 56%, var(--wp--preset--color--background));
}

.almagzal-knowledge-cluster::after {
	content: "";
	position: absolute;
	top: 50%;
	width: clamp(1rem, 2.5vw, 2.25rem);
	border-top: 1px dashed var(--wp--preset--color--text-muted);
}

.almagzal-knowledge-cluster--build { grid-area: build; background: var(--wp--preset--color--beige); }
.almagzal-knowledge-cluster--paper { grid-area: paper; }
.almagzal-knowledge-cluster--making { grid-area: making; background: color-mix(in srgb, var(--wp--preset--color--dusty-blue) 24%, var(--wp--preset--color--background)); }
.almagzal-knowledge-cluster--art { grid-area: art; background: color-mix(in srgb, var(--wp--preset--color--sage) 44%, var(--wp--preset--color--background)); }
.almagzal-knowledge-cluster--build::after,
.almagzal-knowledge-cluster--making::after { right: calc(-1 * clamp(1rem, 2.5vw, 2.25rem)); }
.almagzal-knowledge-cluster--paper::after,
.almagzal-knowledge-cluster--art::after { left: calc(-1 * clamp(1rem, 2.5vw, 2.25rem)); }

.almagzal-knowledge-cluster > h3 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.15rem, 1.8vw, 1.4rem) !important;
	color: var(--wp--preset--color--terracotta);
}

.almagzal-knowledge-items {
	margin: 0 !important;
}

.almagzal-knowledge-item {
	margin: 0 !important;
	padding-block: .85rem;
	border-top: 1px dashed var(--wp--preset--color--border);
}

.almagzal-knowledge-item h4,
.almagzal-knowledge-item p {
	margin: 0;
}

.almagzal-knowledge-item h4 {
	font-size: clamp(1rem, 1.5vw, 1.2rem) !important;
	line-height: 1.4;
}

.almagzal-knowledge-item p {
	margin-top: .35rem;
	color: var(--wp--preset--color--text-secondary);
	font-size: var(--wp--preset--font-size--small);
	direction: ltr;
	unicode-bidi: isolate;
}

.almagzal-knowledge-item--english h4 {
	direction: ltr;
	unicode-bidi: isolate;
	text-align: left;
}

.almagzal-value-row__title {
	flex: 0 1 16rem;
	margin: 0;
}

.almagzal-value-row__text {
	flex: 1 1 22rem;
	margin: 0;
	max-width: 34rem;
}

/* Keeps the hero portrait column from being forced wider than its flex
   track by the placeholder's fixed-pixel inner swatches (same class of bug
   fixed on the homepage hero). */
.almagzal-about-portrait-col {
	min-width: 0;
}

@media (max-width: 700px) {
	.almagzal-value-row {
		display: block !important;
	}

	.almagzal-value-row__text {
		margin-top: var(--wp--preset--spacing--xs) !important;
		max-width: none;
	}
}

@media (max-width: 600px) {
	.almagzal-specialty-index {
		grid-template-columns: 1fr !important;
	}
}

/* Real work accompanies the story; the reserved founder portrait stays intact. */
.almagzal-about-story { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.almagzal-about-story > .wp-block-columns { gap: clamp(1.5rem, 4vw, 4rem); }
.almagzal-about-story .wp-block-column { min-width: 0; }
.almagzal-about-story-image {
 position: relative;
 margin: 0;
 aspect-ratio: 3 / 4;
 overflow: hidden;
}
.almagzal-about-story-image img {
 position: absolute; inset: 0; width: 100%; height: 100% !important;
 object-fit: cover; display: block;
}
.almagzal-about-vision {
 display: grid;
 grid-template-columns: 1fr 1.1fr;
 gap: clamp(2rem, 5vw, 4rem);
 padding-block: clamp(2.5rem, 5vw, 4.5rem) !important;
}
.almagzal-about-vision > * { min-width: 0; width: 100%; margin: 0 !important; }
.almagzal-about-vision > .wp-block-columns { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.almagzal-vision-lead {
	box-sizing: border-box;
	align-self: stretch;
	padding: clamp(2rem, 4vw, 3.5rem);
	background: var(--wp--preset--color--beige);
	border-inline-start: .35rem solid var(--wp--preset--color--terracotta);
}
.almagzal-vision-support {
	align-self: stretch;
}
.almagzal-statement {
	box-sizing: border-box;
	min-height: 10rem;
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 1px dashed var(--wp--preset--color--text-muted);
}
.almagzal-statement--mission {
	background: color-mix(in srgb, var(--wp--preset--color--sage) 38%, var(--wp--preset--color--background));
}
.almagzal-statement--goal {
	background: color-mix(in srgb, var(--wp--preset--color--dusty-blue) 22%, var(--wp--preset--color--background));
}
@media (max-width: 781px) {
 .almagzal-about-vision { grid-template-columns: 1fr; }
 .almagzal-about-story-image { aspect-ratio: 4 / 3; }
	.almagzal-credentials-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
	.almagzal-knowledge-map {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-areas:
			"hub hub"
			"build paper"
			"making art";
	}
	.almagzal-knowledge-hub {
		width: 13rem;
		margin-inline: auto !important;
	}
	.almagzal-knowledge-cluster::after { display: none; }
}

@media (max-width: 600px) {
	.almagzal-about-experience,
	.almagzal-specialties {
		padding-block: 2.5rem !important;
	}
	.almagzal-experience-intro { margin-bottom: 2rem !important; }
	.almagzal-credentials-board { padding: 1.5rem; }
	.almagzal-credentials-list { grid-template-columns: 1fr !important; }
	.almagzal-credential {
		min-height: 0;
		padding: 1.25rem 0;
		border-inline-end: 0;
		border-top: 1px dashed var(--wp--preset--color--border);
	}
	.almagzal-credential-number { width: 2.5rem; height: 2.5rem; margin-bottom: 1.25rem; }
	.almagzal-knowledge-map {
		grid-template-columns: 1fr;
		grid-template-areas: "hub" "build" "paper" "making" "art";
		gap: .85rem;
	}
	.almagzal-knowledge-hub { width: 11.5rem; }
	.almagzal-knowledge-cluster { padding: 1.5rem; }
}
