/* Over ons: philosophy, timeline, photo carousel, "kennismaken". */

/* --------------------------------------------------------- Split header */

.about-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	align-items: end;
}

.about-split__text {
	margin: 0;
	line-height: 1.65;
}

@media (min-width: 1024px) {
	.about-split {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 64px;
	}
}

/* ------------------------------------------------------------ Philosophy */

.about-phil__inner {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.about-cards {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 28px 24px;
	border-radius: 30px;
	transition:
		transform 0.45s var(--rbnl-ease),
		box-shadow 0.45s var(--rbnl-ease);
}

.about-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(33, 30, 100, 0.1);
}

.about-card--peach {
	background: var(--rbnl-peach);
}

.about-card--sand {
	background: var(--rbnl-sand);
}

.about-card--white {
	background: var(--rbnl-white);
}

.about-card__num {
	color: var(--rbnl-orange-text);
	font-family: var(--rbnl-font-heading);
	font-size: 44px;
	font-weight: 700;
	line-height: 0.9;
}

.about-card__title {
	margin: 0;
	font-size: var(--rbnl-fs-h3-lg);
}

.about-card p {
	margin: 0;
}

@media (min-width: 1024px) {
	.about-phil__inner {
		gap: 44px;
	}

	.about-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
	}

	.about-card {
		padding: 32px;
	}
}

/* -------------------------------------------------------------- Timeline */

.about-timeline__inner {
	gap: 32px;
}

.timeline {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Mobile: a vertical line on the left, dots on it. */
.timeline::before {
	content: '';
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 10px;
	width: 3px;
	border-radius: 2px;
	background: linear-gradient(180deg, var(--rbnl-orange), var(--rbnl-ink) 75%, rgba(33, 30, 100, 0));
}

.timeline__item {
	display: flex;
	align-items: flex-start;
	gap: 22px;
	min-width: 0;
}

.timeline__dot {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 22px;
	border-radius: 50%;
	background: var(--dot, var(--rbnl-peach));
	box-shadow: 0 0 0 7px var(--rbnl-peach);
}

.is-highlight .timeline__dot {
	border: 3px dashed var(--rbnl-ink);
	background: var(--rbnl-peach);
}

.timeline__card {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: stretch;
	min-width: 0;
	padding: 24px;
	border-radius: 26px;
	background: var(--rbnl-white);
	transition:
		transform 0.45s var(--rbnl-ease),
		box-shadow 0.45s var(--rbnl-ease);
}

.timeline__card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 40px rgba(33, 30, 100, 0.1);
}

.is-highlight .timeline__card {
	background: var(--rbnl-peach-2);
}

.timeline__period {
	margin: 0;
	color: var(--rbnl-orange-dark);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.timeline__title {
	margin: 0;
	font-size: var(--rbnl-fs-h3-lg);
	line-height: 1.15;
}

.timeline__text {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

.timeline__card .btn {
	align-self: flex-start;
	margin-top: 8px;
}

@media (min-width: 1024px) {
	.timeline {
		grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
		align-items: stretch;
	}

	/* Desktop: a horizontal line through the dots of the first row. */
	.timeline::before {
		top: 10px;
		right: 0;
		bottom: auto;
		left: 0;
		width: auto;
		height: 3px;
		background: linear-gradient(90deg, var(--rbnl-orange), var(--rbnl-ink) 75%, rgba(33, 30, 100, 0));
	}

	.timeline__item {
		flex-direction: column;
		gap: 22px;
		height: 100%;
	}

	.timeline__dot {
		margin-top: 0;
	}

	.timeline__card {
		flex: 1 1 auto;
		width: 100%;
		box-sizing: border-box;
	}
}

/* ------------------------------------------------------------ Photo carousel */

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

/*
 * The track scrolls, so it clips everything outside its padding box, including
 * the card shadows. It therefore gets room for the largest (hover) shadow:
 * 66px below, ~44px at the sides and above. Negative margins hand that room
 * back so the layout stays as it was; the sides reach into the page gutter
 * (never past the viewport) and snapping keeps the first card on the grid.
 */
.carousel--photos .carousel__track {
	margin: -24px calc(-1 * var(--rbnl-gutter)) -44px;
	padding: 44px var(--rbnl-gutter) 72px;
	scroll-padding-inline: var(--rbnl-gutter);
	gap: 22px;
}

.carousel--photos .carousel__item {
	flex: 0 0 min(82%, 340px);
}

.photo-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 10px 10px 14px;
	border-radius: var(--rbnl-radius-card-lg);
	background: var(--rbnl-white);
	box-shadow: 0 14px 30px rgba(33, 30, 100, 0.08);
	transform: rotate(var(--tilt, 0deg));
	transition:
		transform 0.5s var(--rbnl-ease),
		box-shadow 0.5s var(--rbnl-ease);
}

.photo-card:hover {
	transform: rotate(0deg) translateY(-6px);
	box-shadow: 0 22px 44px rgba(33, 30, 100, 0.14);
}

.photo-card__media {
	height: 300px;
	overflow: clip;
	border-radius: 20px;
	background: var(--rbnl-sand);
}

.photo-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--rbnl-ease);
}

.photo-card:hover img {
	transform: scale(1.05);
}

.photo-card figcaption {
	padding-inline: 6px;
	font-size: 15px;
}

.carousel--photos .carousel__nav {
	justify-content: flex-start;
}

/* ------------------------------------------------------------ Kennismaken */

/*
 * Spacing: the carousel section above already ends with one section gap and the
 * footer brings its own, so this section adds none (otherwise 2 x gap).
 */
.about-meet {
	padding-top: 0;
}

.meet {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 36px 24px;
	border-radius: var(--rbnl-radius-section);
	background: var(--rbnl-peach);
	text-align: center;
}

.meet__who {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: 220px;
	max-width: 100%;
}

.meet__photo {
	position: relative;
	width: 160px;
	height: 160px;
}

.meet__photo img,
.meet__ph {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.meet__ph {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rbnl-peach-2);
	color: var(--rbnl-ink);
	font-size: 15px;
	font-weight: 600;
}

.meet__hi {
	position: absolute;
	top: -6px;
	right: -14px;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 0 12px;
	border-radius: 999px;
	background: var(--rbnl-ink);
	color: var(--rbnl-white);
	font-size: 14px;
	font-weight: 500;
	transform: rotate(-4deg);
}

.meet__name {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
}

.meet__name strong {
	color: var(--rbnl-ink);
	font-family: var(--rbnl-font-heading);
	font-size: 20px;
	font-weight: 600;
}

.meet__name span {
	font-size: 14px;
}

.meet__body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	min-width: 0;
}

/* A long e-mail address may break instead of widening the page. */
.meet .btn {
	overflow-wrap: anywhere;
}

.meet__body .section-head__title {
	font-size: clamp(32px, calc(32px + 12 * (100vw - 390px) / 1050), 44px);
}

.meet__body .btn-row {
	justify-content: center;
}

@media (min-width: 1024px) {
	.meet {
		flex-direction: row;
		gap: 48px;
		padding: 44px 56px;
		text-align: left;
	}

	.meet__body {
		flex: 1 1 auto;
		align-items: flex-start;
		width: auto;
	}

	/* The text uses all the room next to the person, up to the edge of the box. */
	.meet__body .section-head {
		align-self: stretch;
	}

	.meet__body .section-head__text.lead {
		max-width: none;
	}

	.meet__body .btn-row {
		justify-content: flex-start;
	}
}
