.mestre-report-launcher {
	background: var(--mestre-brand-black);
	color: var(--mestre-brand-softwhite);
	margin-block: clamp(2.5rem, 6vw, 5rem);
	padding: clamp(1.5rem, 4vw, 3rem);
}

.mestre-report-launcher .overline {
	color: var(--mestre-brand-organiseren);
}

.mestre-report-launcher h2 {
	color: inherit;
	margin-bottom: 0.75rem;
}

.mestre-report-launcher__button {
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--mestre-brand-organiseren);
	color: inherit;
	display: inline-block;
	font-family: var(--mestre-font-family-heading);
	font-size: 0.875rem;
	padding: 0.35rem 0;
	text-decoration: none;
}

.mestre-report-launcher__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.9rem clamp(1.5rem, 4vw, 3.5rem);
}

.mestre-report-preview {
	background: transparent;
	border: 0;
	height: min(92vh, 68rem);
	max-height: none;
	max-width: 74rem;
	padding: 0;
	width: min(92vw, 74rem);
}

.mestre-report-preview::backdrop {
	background: rgb(20 25 29 / 78%);
	backdrop-filter: blur(4px);
}

.mestre-report-preview__window {
	background: var(--mestre-brand-softwhite);
	display: grid;
	grid-template-rows: auto minmax(0, 1fr);
	height: 100%;
	overflow: hidden;
}

.mestre-report-preview__toolbar {
	align-items: center;
	background: var(--mestre-brand-black);
	color: var(--mestre-brand-softwhite);
	display: flex;
	justify-content: space-between;
	padding: 0.75rem clamp(1rem, 3vw, 2rem);
}

.mestre-report-preview__toolbar p,
.mestre-report-preview__toolbar button {
	font-family: var(--mestre-font-family-heading);
	font-size: 0.75rem;
	margin: 0;
}

.mestre-report-preview__toolbar button {
	background: transparent;
	border: 0;
	color: inherit;
	padding: 0.45rem;
}

.mestre-report-preview__toolbar button span {
	font-family: var(--mestre-font-family-body);
	font-size: 1.5rem;
	line-height: 0;
	margin-left: 0.35rem;
}

.mestre-report-preview__actions {
	align-items: center;
	display: flex;
	gap: clamp(0.5rem, 2vw, 1.5rem);
}

.mestre-report-preview__actions [data-report-reset] {
	border-bottom: 1px solid currentColor;
	padding-inline: 0;
}

.mestre-report-preview__actions [hidden] {
	display: none;
}

.mestre-report-preview__scroll {
	overflow-y: auto;
	overscroll-behavior: contain;
}

.mestre-report {
	background: #f6f3ee;
	color: var(--mestre-brand-black);
}

.mestre-report__hero,
.mestre-report__intro,
.mestre-report__chart,
.mestre-report__quote,
.mestre-report__timeline,
.mestre-report__footer {
	padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 7vw, 6rem);
}

.mestre-report__hero {
	background: var(--mestre-brand-plannen);
	min-height: min(70vh, 48rem);
	padding-top: clamp(4rem, 12vw, 9rem);
}

.mestre-report__hero h2 {
	font-size: clamp(3rem, 9vw, 7.5rem);
	line-height: 0.92;
	margin: 0.15em 0 0.35em;
}

.mestre-report__hero > p:not(.mestre-report__eyebrow) {
	font-size: clamp(1.15rem, 2.5vw, 1.8rem);
	max-width: 38rem;
}

.mestre-report__school {
	display: block;
	font-weight: 700;
	margin-top: clamp(3rem, 8vw, 7rem);
}

.mestre-report__eyebrow {
	font-family: var(--mestre-font-family-heading);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	margin: 0 0 0.5rem;
	text-transform: uppercase;
}

.mestre-report__intro {
	max-width: 58rem;
}

.mestre-report__intro h3,
.mestre-report__chart h3,
.mestre-report__timeline h3,
.mestre-report__footer h3 {
	font-size: clamp(1.7rem, 4vw, 3.5rem);
	margin: 0 0 1rem;
}

.mestre-report__numbers {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

.mestre-report__number {
	background: var(--mestre-brand-organiseren);
	border-right: 1px solid rgb(48 55 61 / 20%);
	min-height: 16rem;
	padding: clamp(2rem, 5vw, 4rem);
}

.mestre-report__number:nth-child(2) {
	background: var(--mestre-brand-ondersteunen);
}

.mestre-report__number:nth-child(3) {
	background: var(--mestre-brand-teal);
}

.mestre-report__number strong,
.mestre-report__number span {
	display: block;
}

.mestre-report__number strong {
	font-family: var(--mestre-font-family-heading);
	font-size: clamp(2.5rem, 6vw, 5rem);
	line-height: 1;
}

.mestre-report__chart {
	align-items: end;
	display: grid;
	gap: clamp(2rem, 6vw, 6rem);
	grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
}

.mestre-report__bars {
	align-items: end;
	border-bottom: 2px solid var(--mestre-brand-black);
	display: grid;
	gap: clamp(0.5rem, 2vw, 1.25rem);
	grid-template-columns: repeat(4, 1fr);
	height: 22rem;
	padding-inline: 0.5rem;
}

.mestre-report__bars div {
	background: var(--mestre-brand-plannen);
	height: 0;
	position: relative;
	transition: height 1500ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.mestre-report__bars.is-drawing div {
	height: var(--bar);
}

.mestre-report__bars span,
.mestre-report__bars small {
	font-weight: 700;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}

.mestre-report__bars span {
	top: -2rem;
}

.mestre-report__bars small {
	bottom: -2rem;
}

.mestre-report__quote {
	background: var(--mestre-brand-black);
	color: var(--mestre-brand-softwhite);
	margin: 0;
	overflow: hidden;
	perspective: 70rem;
	position: relative;
}

.mestre-report__quote::before,
.mestre-report__quote::after {
	background: var(--mestre-brand-teal);
	content: "";
	inset-block: 0;
	position: absolute;
	transition: transform 1100ms cubic-bezier(0.65, 0, 0.2, 1);
	width: 50.1%;
	z-index: 1;
}

.mestre-report__quote::before {
	left: 0;
	transform-origin: left center;
}

.mestre-report__quote::after {
	right: 0;
	transform-origin: right center;
}

.mestre-report__quote.is-visible::before {
	transform: rotateY(-100deg);
}

.mestre-report__quote.is-visible::after {
	transform: rotateY(100deg);
}

.mestre-report__quote p {
	font-family: "Fraunces", Georgia, serif;
	font-size: clamp(2rem, 5vw, 4.75rem);
	font-style: italic;
	line-height: 1.05;
	margin: 0 0 1.5rem;
}

.mestre-report__quote cite {
	font-style: normal;
}

.mestre-report__timeline {
	background: var(--mestre-brand-ondersteunen);
}

.mestre-report__timeline ol {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.mestre-report__timeline li {
	border-top: 1px solid var(--mestre-brand-black);
	color: rgb(48 55 61 / 28%);
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(7rem, 0.35fr) 1fr;
	padding: 1.25rem 0;
	transform: translateX(-0.75rem);
	transition: color 500ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mestre-report__timeline li.is-current {
	color: var(--mestre-brand-black);
	transform: none;
}

.mestre-report__timeline strong {
	font-family: var(--mestre-font-family-heading);
}

.mestre-report__footer {
	background: var(--mestre-brand-organiseren);
	min-height: 30rem;
}

.mestre-report__written-word {
	display: inline-block;
	font-family: "Fraunces", Georgia, serif;
	font-size: 2em;
	font-style: italic;
	font-weight: 400;
	line-height: 0.7;
	position: relative;
	vertical-align: -0.08em;
	white-space: nowrap;
}

.mestre-report__written-word::before {
	background: var(--mestre-brand-organiseren);
	content: "";
	inset: 0 -0.12em 0 0;
	position: absolute;
	transform-origin: right center;
}

.mestre-report__written-word::after {
	background: var(--mestre-brand-black);
	content: "";
	height: 0.78em;
	position: absolute;
	right: 100%;
	top: 0.2em;
	width: 0.055em;
	visibility: hidden;
}

.mestre-report__written-word.is-writing::before {
	animation: mestre-report-write 1800ms steps(14, end) forwards;
}

.mestre-report__written-word.is-writing::after {
	animation: mestre-report-pen 1800ms steps(14, end) forwards;
	visibility: visible;
}

@keyframes mestre-report-write {
	to { transform: scaleX(0); }
}

@keyframes mestre-report-pen {
	0% { right: 100%; }
	95% { opacity: 1; right: 0; }
	100% { opacity: 0; right: 0; }
}

.mestre-report-preview__notice {
	background: var(--mestre-brand-softwhite);
	font-size: 0.75rem;
	margin: 0;
	padding: 1rem clamp(1.5rem, 7vw, 6rem) 2rem;
}

.mestre-report__reveal {
	opacity: 0;
	transform: translateY(2rem);
	transition: opacity 600ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mestre-report__reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (max-width: 700px) {
	.mestre-report-preview {
		height: 100dvh;
		width: 100vw;
	}

	.mestre-report__numbers,
	.mestre-report__chart {
		grid-template-columns: 1fr;
	}

	.mestre-report__number {
		min-height: 10rem;
	}

	.mestre-report__bars {
		margin: 2rem 0;
	}

	.mestre-report__timeline li {
		grid-template-columns: 1fr;
	}

	.mestre-report-preview__toolbar > p {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mestre-report__reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.mestre-report__bars div,
	.mestre-report__bars.is-drawing div {
		height: var(--bar);
		transition: none;
	}

	.mestre-report__quote::before,
	.mestre-report__quote::after {
		display: none;
	}

	.mestre-report__written-word::before,
	.mestre-report__written-word::after {
		display: none;
	}

	.mestre-report__timeline li {
		color: var(--mestre-brand-black);
		transform: none;
		transition: none;
	}
}
