/* Editorial typography and page rhythm, shared by the two About Us editions. */

.about-page {
	--about-charcoal: var(--ce-header-charcoal, #171a17);
	--about-ivory: var(--ce-header-ivory, #f1eee6);
	--about-stone: #e5dfd2;
	--about-brass: var(--ce-header-brass, #c49a43);
	--about-amber: #dda950;
	--about-olive: #77745a;
	--about-ink: #22251d;
	--about-muted: #514d41;
	--about-section-space: clamp(54px, 6.5vw, 104px);
	--about-copy-size: clamp(1rem, 1.2vw, 1.13rem);
	--about-serif: Georgia, "Times New Roman", serif;
}

.about-spec {
	color: var(--about-ink);
	background: var(--about-ivory);
}

.about-spec figure {
	margin: 0;
}

.about-spec [id] {
	scroll-margin-block-start: calc(var(--ce-header-height) + var(--ce-admin-bar-offset, 0px) + 16px);
}

.about-spec :focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.about-spec .internal-hero__visual, .about-spec .internal-hero__photo {
	transform: none;
	will-change: auto;
}

.about-spec .internal-hero__photo {
	object-position: 57% 48%;
}

@media (min-width: 768px) {
	.about-spec .internal-hero__visual {
		inset-block-start: var(--ce-header-height);
	}
	.about-spec[dir="rtl"] .internal-hero__inner {
		direction: ltr;
		text-align: left;
	}
	.about-spec[dir="rtl"] .internal-hero h1 {
		direction: rtl;
		width: max-content;
		max-width: 100%;
		margin-inline: 0;
		text-align: right;
	}
}

.about-spec:lang(ar) {
	--about-serif: "Beiruti", Tahoma, sans-serif;
	--sans: "Beiruti", Tahoma, sans-serif;
	--serif: "Beiruti", Tahoma, sans-serif;
	font-family: var(--sans);
}

.about-spec[dir="rtl"] :is(h1, h2, h3, dt) {
	letter-spacing: normal;
	line-height: 1.22;
	font-family: var(--about-serif);
}

.ce-intro {
	display: grid;
	grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
	align-items: center;
	gap: clamp(26px, 6vw, 90px);
	padding-block: var(--about-section-space);
}

.ce-intro__copy {
	min-width: 0;
}

.ce-intro h2 {
	margin: 0;
	max-width: 17ch;
	font: 400 clamp(2.5rem, 4.9vw, 5.2rem)/1.04 var(--about-serif);
	letter-spacing: -.052em;
}

.ce-intro p {
	max-width: 51ch;
	margin: clamp(20px, 2.4vw, 32px) 0 0;
	color: var(--about-muted);
	font: 400 var(--about-copy-size)/1.72 var(--sans);
}

.ce-intro__photo {
	aspect-ratio: 1.36;
	overflow: hidden;
}

.ce-intro__photo picture, .ce-intro__photo img {
	width: 100%;
	height: 100%;
	display: block;
}

.ce-intro__photo img {
	object-fit: cover;
}

.ce-story {
	padding-block: var(--about-section-space);
	background: var(--about-stone);
}

.ce-story__spread {
	display: grid;
	grid-template: "photo copy" / minmax(0, 1fr) minmax(0, .94fr);
	align-items: center;
	column-gap: clamp(32px, 6vw, 88px);
	max-width: 1280px;
}

.ce-story__copy {
	grid-area: copy;
}

.ce-story h2 {
	margin: 0;
	font: 400 clamp(2.8rem, 5.6vw, 5.6rem)/1.03 var(--about-serif);
	letter-spacing: -.048em;
}

.ce-story p {
	max-width: 47ch;
	margin: clamp(18px, 2vw, 30px) 0 0;
	color: var(--about-muted);
	font: 400 var(--about-copy-size)/1.72 var(--sans);
}

.ce-story__photo {
	grid-area: photo;
	padding: clamp(5px, .65vw, 9px);
	border: 1px solid var(--about-brass);
	background: var(--about-ivory);
}

.ce-story__photo picture {
	display: block;
}

.ce-story__photo img {
	display: block;
	width: 100%;
	height: auto;
}

.ce-standards {
	padding-block: clamp(36px, 4.5vw, 72px);
	background: var(--about-charcoal);
	color: var(--about-ivory);
}

.ce-standards__inner {
	display: grid;
	grid-template: "title documents" "action documents" / minmax(0, .9fr) minmax(0, 1.1fr);
	align-content: center;
	gap: 22px clamp(32px, 6vw, 88px);
}

.ce-standards h2 {
	grid-area: title;
	align-self: end;
	margin: 0;
	color: inherit;
	font: 400 clamp(2.15rem, 3.8vw, 4rem)/1.04 var(--about-serif);
	letter-spacing: -.045em;
}

.ce-standards__names, .ce-standards__scans {
	grid-area: documents;
	align-self: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ce-standards__names li {
	padding-block: .55em;
	border-block-start: 1px solid color-mix(in srgb, var(--about-brass) 45%, transparent);
	font: 400 clamp(1.3rem, 2vw, 1.9rem)/1.2 var(--about-serif);
}

.ce-standards__scans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 1.2vw, 20px);
}

.ce-standards__scans a, .ce-standards__scans img {
	display: block;
}

.ce-standards__scans img {
	width: 100%;
	height: auto;
}

.ce-standards__products {
	grid-area: action;
	justify-self: start;
	align-self: start;
}

@media (max-width: 760px) {
	.ce-intro {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.ce-intro__photo {
		aspect-ratio: 1.5;
	}
	.ce-intro p {
		max-width: 60ch;
	}
	.ce-story__spread {
		grid-template: "copy" "photo" / minmax(0, 1fr);
		row-gap: 24px;
	}
	.ce-story__photo {
		width: min(100%, 580px);
	}
	.ce-standards__inner {
		grid-template: "title" "documents" "action" / minmax(0, 1fr);
	}
	.ce-standards__scans {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.about-spec .internal-hero h1 {
		animation: ce-type-in .6s ease-out both;
	}
	.about-spec .internal-hero__photo {
		animation: ce-hero-in .85s ease-out both;
	}
}

@media screen and (prefers-reduced-motion: no-preference) {
	.about-spec [data-about-reveal] {
		opacity: calc(1 - var(--about-edge, 0) * var(--about-fade-depth, .74));
	}
	.about-spec [data-about-reveal]:focus-within {
		opacity: 1;
	}
	.about-spec [data-about-reveal="photo"] img {
		transform: scale(calc(1 + var(--about-travel, 0) * var(--about-zoom-depth, .045)));
	}
}

@media (max-width: 1024px) {
	.about-spec {
		--about-fade-depth: .55;
		--about-zoom-depth: .025;
	}
}

@keyframes ce-type-in {
	from {
		opacity: .78;
		translate: 0 5px;
	}
}

@keyframes ce-hero-in {
	from {
		filter: brightness(.86) saturate(.8);
	}
}
