/**
 * About page template. The eyebrow, section titles, accent, placeholder,
 * carousel buttons and the closing call to action are shared components.
 *
 * 1. Shared pieces
 * 2. Hero
 * 3. Why LegArt
 * 4. Our Identity
 * 5. Our Background
 * 6. How We Work
 * 7. Our Philosophy
 * 8. Our Goal
 * 9. Our Team
 * 10. From Our Clients
 */

/* 1. Shared pieces -------------------------------------------------------- */

.about-text {
	color: #4a5165;
	font-size: 15.5px;
	line-height: 1.8;
	text-wrap: pretty;
}

/* A photo layer moved by the parallax script; the photo or its placeholder fills it. */
.about-layer {
	position: absolute;
	inset: 0;
}

.about-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 2. Hero ----------------------------------------------------------------- */

.about-hero {
	/* Cream above, white below, so the photo bridges the two. */
	padding-top: clamp(48px, 7vw, 104px);
	background: linear-gradient(180deg, var(--c-cream) 0, var(--c-cream) calc(100% - min(160px, 14vw)), var(--c-white) calc(100% - min(160px, 14vw)));
}

.about-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(28px, 3.4vw, 44px);
	text-align: center;
}

.about-hero__title {
	color: var(--c-navy);
	font-size: clamp(40px, 5.8vw, 86px);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.03em;
}

/* Room for descenders inside the masks. */
.about-hero__title .reveal-mask {
	margin-bottom: -0.12em;
	padding-bottom: 0.16em;
}

.about-hero__title .accent {
	font-size: 1.08em;
}

.about-hero__lead {
	max-width: 620px;
	color: #2a3147;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 300;
	line-height: 1.6;
	text-wrap: pretty;
}

.about-hero__media {
	position: relative;
	height: clamp(260px, 40vw, 560px);
	margin-top: clamp(48px, 6vw, 80px);
	overflow: hidden;
	background: #e6e3dc;
}

/* 3. Why LegArt ----------------------------------------------------------- */

.about-story {
	padding: clamp(80px, 10vw, 140px) 0;
	background: var(--c-white);
}

.about-story__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 64px);
}

.about-story__heading {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 900px;
}

.about-story__title {
	color: var(--c-navy);
	font-size: clamp(30px, 3.6vw, 52px);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.about-story__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 28px clamp(32px, 4vw, 56px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid rgba(23, 34, 63, 0.14);
}

.about-story__columns p {
	color: #4a5165;
	font-size: 15.5px;
	line-height: 1.8;
	text-wrap: pretty;
}

.about-story__columns .about-story__lead {
	color: var(--c-navy);
	font-size: clamp(17px, 1.35vw, 19px);
	line-height: 1.7;
}

/* 4. Our Identity --------------------------------------------------------- */

.about-identity {
	padding: var(--section-space) 0;
	overflow: hidden;
	background: var(--c-navy);
	color: var(--c-white);
}

.about-identity__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(56px, 7vw, 96px);
}

.about-identity__heading {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 640px;
}

.about-identity__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 56px clamp(32px, 5vw, 80px);
}

.about-identity__item {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-top: 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.about-identity__word {
	line-height: 1;
}

.about-identity__word--legal {
	color: var(--c-white);
	font-size: clamp(88px, 12vw, 180px);
	font-weight: 300;
	letter-spacing: -0.05em;
}

.about-identity__word--legal span {
	color: rgba(255, 255, 255, 0.22);
}

.about-identity__word--art {
	color: var(--c-gold-light);
	font: italic 400 clamp(96px, 13vw, 196px) / 1 var(--font-serif);
}

.about-identity__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 420px;
}

.about-identity__label {
	color: var(--c-gold-soft);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.about-identity__text p {
	color: rgba(255, 255, 255, 0.78);
	font-size: 15.5px;
	line-height: 1.75;
}

/* 5. Our Background ------------------------------------------------------- */

.about-background {
	padding: var(--section-space) 0;
	background: var(--c-white);
}

.about-background__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px clamp(40px, 7vw, 110px);
}

.about-background__media {
	flex: 1 1 360px;
}

.about-background__frame {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e6e3dc;
}

.about-background__content {
	display: flex;
	flex: 1.2 1 420px;
	flex-direction: column;
	gap: 28px;
}

.about-background__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-navy);
	list-style: none;
}

.about-background__list li {
	padding: 18px 0;
	border-bottom: 1px solid rgba(23, 34, 63, 0.14);
	color: var(--c-navy);
	font-size: 18px;
}

/* 6. How We Work ---------------------------------------------------------- */

.about-approach {
	padding: var(--section-space) 0;
	background: var(--c-cream);
}

.about-approach__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	align-items: start;
	gap: clamp(40px, 6vw, 96px);
}

.about-approach__intro {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.about-approach__lead {
	max-width: 480px;
}

/* The introduction stays in view while the principles scroll past. */
@media (min-width: 900px) {
	.about-approach__intro {
		position: sticky;
		top: 120px;
	}
}

.about-principles {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--c-navy);
	list-style: none;
}

.about-principles__item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 12px;
	padding: clamp(24px, 2.6vw, 34px) 0;
	border-bottom: 1px solid rgba(23, 34, 63, 0.14);
}

.about-principles__no {
	padding-top: 7px;
	color: var(--c-gold-deep);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.about-principles__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.about-principles__title {
	color: var(--c-navy);
	font-size: clamp(21px, 1.9vw, 25px);
	font-weight: 400;
	letter-spacing: -0.01em;
}

.about-principles__text {
	color: var(--c-text);
	font-size: 15px;
	line-height: 1.7;
	text-wrap: pretty;
}

/* 7. Our Philosophy ------------------------------------------------------- */

.about-philosophy {
	padding: var(--section-space) 0;
	background: var(--c-white);
}

.about-philosophy__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	max-width: calc(1040px + 2 * var(--gutter));
	text-align: center;
}

.about-philosophy__title {
	color: var(--c-navy);
	font-size: clamp(32px, 3.8vw, 56px);
	font-weight: 300;
	line-height: 1.12;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.about-philosophy__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 24px 56px;
	width: 100%;
	margin-top: clamp(12px, 2vw, 24px);
	padding-top: clamp(28px, 3vw, 40px);
	border-top: 1px solid rgba(23, 34, 63, 0.14);
	text-align: left;
}

/* 8. Our Goal ------------------------------------------------------------- */

.about-goal {
	position: relative;
	padding: clamp(110px, 14vw, 190px) 0;
	overflow: hidden;
	background: #121a30;
	color: var(--c-white);
	text-align: center;
}

.about-goal__backdrop .placeholder {
	--ph-a: #232b40;
	--ph-b: #1d2437;
	--ph-size: 14px;
}

.about-goal__backdrop .placeholder__label {
	position: absolute;
	top: 28px;
	left: var(--gutter);
	color: rgba(255, 255, 255, 0.45);
}

.about-goal__shade {
	position: absolute;
	inset: 0;
	background: radial-gradient(70% 70% at 50% 50%, rgba(17, 26, 49, 0.55), rgba(17, 26, 49, 0.92));
}

.about-goal__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	max-width: calc(980px + 2 * var(--gutter));
}

.about-goal__statement {
	font-size: clamp(28px, 3.4vw, 50px);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.about-goal__text {
	max-width: 600px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15.5px;
	line-height: 1.75;
	text-wrap: pretty;
}

/* 9. Our Team ------------------------------------------------------------- */

.about-team {
	padding: var(--section-space) 0;
	background: var(--c-white);
}

.about-team__inner {
	display: flex;
	flex-direction: column;
	gap: clamp(40px, 5vw, 64px);
}

.about-team__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 28px 64px;
}

.about-team__heading {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: 640px;
}

.about-team__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: clamp(24px, 3vw, 32px);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Photo on top at a fixed 4:5, as on every other person card, so all photos
 * line up and none is cropped to a strip. */
.team-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--c-cream);
	color: var(--c-navy);
}

.team-card:hover {
	color: var(--c-navy);
}

.team-card__photo {
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e4e1d9;
}

.team-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	transition: transform 1.2s var(--ease-out);
}

.team-card__placeholder {
	--ph-a: #e9e6df;
	--ph-b: #e0ddd4;

	position: absolute;
	inset: 0;
	color: #9a9eab;
	font: 400 56px var(--font-serif);
	letter-spacing: 0.04em;
}

.team-card__body {
	--pad: clamp(24px, 2.6vw, 34px);

	display: flex;
	/* Fills the card, so View profile sits at the same height in every card of a row. */
	flex: 1;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	padding: var(--pad);
}

.team-card__intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.team-card__role {
	color: var(--c-gold-deep);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.team-card__name {
	font-size: clamp(22px, 1.9vw, 25px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.team-card__bio {
	color: var(--c-text);
	font-size: 14.5px;
	line-height: 1.7;
	text-wrap: pretty;
}

.team-card__foot {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.team-card__creds {
	color: #6b7186;
	font-size: 12.5px;
	line-height: 1.6;
}

.team-card__more {
	display: inline-flex;
	align-self: flex-start;
	gap: 28px;
	padding: 6px 0;
	border-bottom: 1px solid var(--c-navy);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	transition: border-color 0.3s, color 0.3s;
}

@media (hover: hover) {
	.team-card:hover .team-card__img {
		transform: scale(1.05);
	}

	.team-card:hover .team-card__more {
		border-color: var(--c-gold);
		color: var(--c-gold-deep);
	}
}

@media (prefers-reduced-motion: reduce) {
	.team-card:hover .team-card__img {
		transform: none;
	}
}

/* 10. From Our Clients ---------------------------------------------------- */

.about-quotes {
	padding: var(--section-space) 0;
	background: var(--c-cream);
}

.about-quotes__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(32px, 4vw, 48px);
	max-width: calc(960px + 2 * var(--gutter));
	text-align: center;
}

.about-quotes__carousel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(32px, 4vw, 48px);
	width: 100%;
}

/* Without JavaScript the testimonials are simply listed. */
.about-quotes__track {
	display: grid;
	gap: 64px;
	width: 100%;
}

.about-quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	margin: 0;
}

.about-quote__mark {
	display: block;
	height: 44px;
	color: var(--c-gold);
	font: 400 88px / 1 var(--font-serif);
}

.about-quote__text {
	margin: 0;
	color: var(--c-navy);
	font-size: clamp(20px, 2vw, 28px);
	font-style: italic;
	font-weight: 300;
	line-height: 1.55;
	letter-spacing: -0.005em;
	text-wrap: pretty;
}

.about-quote__text p + p {
	margin-top: 0.6em;
}

.about-quote__text p:first-child::before {
	content: "\201C";
}

.about-quote__text p:last-child::after {
	content: "\201D";
}

.about-quote__author {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.about-quote__name {
	color: var(--c-navy);
	font-size: 15px;
	font-weight: 600;
}

.about-quote__position {
	color: var(--c-text-soft);
	font-size: 13.5px;
	line-height: 1.6;
}

/* With JavaScript the testimonials share one cell and cross-fade; the cell
 * takes the height of the longest one, so nothing below jumps. */
.js .about-quotes__track {
	gap: 0;
}

.js .about-quote {
	grid-area: 1 / 1;
	visibility: hidden;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.js .about-quote.is-active {
	visibility: visible;
	opacity: 1;
	transform: none;
	transition: opacity 0.8s ease 0.15s, transform 1s var(--ease-out) 0.15s, visibility 0s;
}

.about-quotes__controls {
	display: flex;
	align-items: center;
	gap: 20px;
}

.about-quotes__controls[hidden] {
	display: none;
}

.about-quotes__controls .carousel-btn {
	width: 48px;
	height: 48px;
	font-size: 17px;
}

.about-quotes__dots {
	display: flex;
	gap: 8px;
}

.about-quotes__dot {
	display: flex;
	align-items: center;
	width: 40px;
	height: 28px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.about-quotes__bar {
	position: relative;
	display: block;
	width: 100%;
	height: 2px;
	overflow: hidden;
	background: rgba(23, 34, 63, 0.16);
}

.about-quotes__fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	background: var(--c-navy);
}

/* The fill of the current testimonial times the carousel: quotes.js moves on
 * when it ends, and hovering or focusing the carousel pauses it. */
.about-quotes__dot[aria-current="true"] .about-quotes__fill {
	animation: about-quote-progress var(--quote-duration, 9s) linear forwards;
}

.about-quotes__carousel.is-paused .about-quotes__fill {
	animation-play-state: paused;
}

@keyframes about-quote-progress {
	to {
		width: 100%;
	}
}

/* No automatic rotation for reduced motion: the bar just marks the current one. */
@media (prefers-reduced-motion: reduce) {
	.about-quotes__dot[aria-current="true"] .about-quotes__fill {
		width: 100%;
		animation: none;
	}

	.js .about-quote,
	.js .about-quote.is-active {
		transform: none;
		transition: none;
	}
}
