/* ==========================================================================
   Molecules of Life – main stylesheet
   Full-screen sections · 50/50 grid · reveal & stroke-draw animations
   ========================================================================== */

/* Fonts (self-hosted, no third-party requests) ---------------------------- */
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/roboto-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/roboto-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/roboto-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/roboto-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Tokens ------------------------------------------------------------------ */
:root {
	/* Brand palette (original) */
	--c-teal: #00cdaf;      /* accent: lines, graphics – not for text */
	--c-mist: #dfdfe5;      /* light grey surfaces */
	--c-g1: #13574d;
	--c-g2: #009989;
	--c-g3: #5fd8ad;
	--c-g4: #026046;

	/* Primary colour: headings (original design, 2.03:1 on white – below WCAG AA by owner's decision) */
	--c-heading: var(--c-teal);
	--c-teal-ink: #007f6c;  /* 4.94:1 – links and small teal text */

	--c-bg: #ffffff;
	--c-ink: #1d2b2f;       /* 14.6:1 */
	--c-text: #6b7680;      /*  4.6:1 – light body text, still AA */
	--c-muted: #5b6670;     /*  5.9:1 */
	--c-line: #8b93a0;      /*  3.1:1 – meaningful non-text */
	--c-focus: var(--c-g1);

	--f-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	/* Sizes also follow the viewport height so every section fits on low laptop screens */
	--fs-body: clamp(1rem, min(0.95rem + 0.3vw, 2.3vh), 1.25rem);
	--fs-h2: clamp(2rem, min(1.4rem + 2.6vw, 7vh), 4rem);
	--fs-label: 0.8125rem;

	--gutter: clamp(1.25rem, 4vw, 5rem);
	--header-h: 4.25rem;
	--ease-out: cubic-bezier(0.16, 0.84, 0.3, 1);
	--t-reveal: 1s;
}

/* Base -------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	background: var(--c-bg);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: 1.7;
	color: var(--c-text);
	background: var(--c-bg);
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, figure {
	margin: 0;
}

h1, h2, h3, h4 {
	color: var(--c-ink);
	line-height: 1.1;
}

img, svg {
	display: block;
	max-width: 100%;
	height: auto;
}

[hidden] {
	display: none !important;
}

a {
	color: var(--c-teal-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--c-g1);
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--c-focus);
	outline-offset: 3px;
	border-radius: 2px;
}

main:focus {
	outline: none;
}

::selection {
	background: var(--c-g3);
	color: var(--c-ink);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Skip link --------------------------------------------------------------- */
.mol-skip {
	position: fixed;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var(--c-ink);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0.375rem;
	transform: translateY(-200%);
}

.mol-skip:focus {
	transform: none;
	color: #fff;
}

/* Header ------------------------------------------------------------------ */
.mol-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: flex;
	align-items: center;
	height: var(--header-h);
	padding-inline: var(--gutter);
	background: rgb(255 255 255 / 0.86);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.mol-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 2.75rem;
	color: var(--c-ink);
	text-decoration: none;
}

.mol-brand:hover {
	color: var(--c-ink);
}

.mol-brand__name {
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* Base emblem (A T G C tiles) */
.mol-mark {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2px;
	padding: 0;
	list-style: none;
	--tile: 0.75rem;
}

.mol-mark li {
	display: grid;
	place-items: center;
	width: var(--tile);
	height: var(--tile);
	border-radius: 2px;
	background: var(--fill);
	color: var(--ink);
	font-size: calc(var(--tile) * 0.55);
	font-weight: 900;
	line-height: 1;
}

.mol-brand .mol-mark li {
	font-size: 0; /* tiles only at this size */
}

/* Sections (one-page) ----------------------------------------------------- */
.mol-main {
	counter-reset: mol-sec;
}

.mol-section {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-content: center;
	gap: clamp(2.5rem, 6vw, 7rem);
	min-height: 100vh;
	min-height: 100svh;
	padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem;
	overflow-x: clip;
	counter-increment: mol-sec;
}

.mol-section + .mol-section {
	border-top: 1px solid var(--c-mist);
}

.mol-visual {
	display: grid;
	justify-items: center;
	align-content: center;
	gap: clamp(1.5rem, 3vw, 2.5rem);
	min-width: 0;
}

.mol-text {
	max-width: 40rem;
	min-width: 0;
}

/* Section number above the heading */
.mol-text::before {
	content: counter(mol-sec, decimal-leading-zero);
	content: counter(mol-sec, decimal-leading-zero) / "";
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
	color: var(--c-muted);
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.3em;
}

.mol-section--hero .mol-text::before {
	display: none;
}

.mol-text h2 {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
	color: var(--c-heading);
	font-size: var(--fs-h2);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-wrap: balance;
}

.mol-text h3 {
	margin-top: 1.75rem;
	margin-bottom: 0.5rem;
	color: var(--c-ink);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

/* The signature teal rule left of the copy */
.mol-text > p:not(.mol-hero-sub),
.mol-text > ul,
.mol-text > h3 {
	padding-left: clamp(1.25rem, 2vw, 1.75rem);
	border-left: 3px solid var(--c-teal);
}

.mol-text > p + p,
.mol-text > ul + p {
	padding-top: 1em;
}

.mol-text > h3 {
	margin: 0;
	padding-top: 1.75rem;
	padding-bottom: 0.75rem;
}

.mol-text p {
	text-wrap: pretty;
	hyphens: auto;
}

.mol-text ul {
	padding-block: 0;
	list-style: none;
}

.mol-text li + li {
	margin-top: 0.75em;
}

.mol-text li {
	position: relative;
	padding-left: 1.25em;
	font-size: 0.9em;
}

.mol-text li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.5em;
	height: 0.5em;
	border: 2px solid var(--c-teal-ink);
	border-radius: 50%;
}

.mol-text .mol-small {
	font-size: 0.875em;
	color: var(--c-muted);
}

/* Hero -------------------------------------------------------------------- */
.mol-hero-title {
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.mol-hero-mark {
	margin-left: -0.05em;
	color: var(--c-mist); /* original light grey, 1.33:1 – owner's decision */
	font-size: clamp(6rem, 3rem + 13vw, 15rem);
	font-weight: 900;
	line-height: 0.8;
	letter-spacing: -0.01em;
}

.mol-hero-sub {
	margin-top: 0.35em;
	color: var(--c-heading);
	font-size: clamp(1.5rem, 0.9rem + 2.2vw, 3rem);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.mol-scroll-hint {
	display: none;
}

/* Graphics ---------------------------------------------------------------- */
.mol-figure {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	width: 100%;
}

.mol-figure figcaption,
.mol-gallery__caption {
	color: var(--c-ink);
	font-size: var(--fs-label);
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-align: center;
}

.mol-svg {
	width: 100%;
	overflow: visible;
}

.mol-svg--helix {
	width: auto;
	height: min(72svh, 44rem);
}

.mol-svg--key-figures {
	width: auto;
	height: min(68svh, 40rem);
}

.mol-svg--nucleotide {
	max-width: 30rem;
}

/* The grey bar labels from the original design, now legible */
.mol-gallery__caption,
.mol-figure--bar figcaption {
	justify-self: stretch;
	padding: 0.6em 1em;
	background: var(--c-mist);
	color: var(--c-g1);
	font-size: clamp(0.9rem, 0.7rem + 0.7vw, 1.35rem);
	font-weight: 800;
	letter-spacing: 0.35em;
}

.mol-gallery {
	display: grid;
	gap: 1rem;
	width: 100%;
	max-width: 32rem;
}

.mol-gallery ul {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(0.5rem, 1.5vw, 1.25rem);
	padding: 0;
	list-style: none;
}

.mol-gallery .mol-figure figcaption {
	font-size: 0.6875rem;
	letter-spacing: 0.12em;
	font-weight: 600;
	color: var(--c-muted);
}

.mol-figure--bar {
	max-width: 32rem;
}

/* A / B / Z – staircase, as in the original */
.mol-trio {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: start;
	gap: clamp(1rem, 3vw, 2.5rem);
	width: 100%;
	max-width: 36rem;
}

.mol-trio .mol-figure {
	gap: clamp(1.25rem, 2vw, 2rem);
}

.mol-trio .mol-svg {
	padding: 6%;
}

.mol-trio .mol-figure:nth-child(2) {
	margin-top: clamp(2rem, 8vw, 7rem);
}

.mol-trio .mol-figure:nth-child(3) {
	margin-top: clamp(4rem, 16vw, 14rem);
}

/* Base pairs (flat double strand) */
.mol-figure--bp {
	max-width: min(26rem, 34svh * 1.6);
}

.mol-bp {
	font-family: var(--f-sans);
}

/* Rotating ladder ----------------------------------------------------------- */
.mol-spin {
	display: grid;
	justify-items: center;
	gap: 1rem;
	color: var(--c-teal-ink);
}

.mol-spin__arrow {
	width: 2.25rem;
}

.mol-spin__ladder {
	--size: clamp(1.5rem, 3.4svh, 2.25rem);
	--swing: clamp(3rem, 2rem + 3vw, 4.75rem);
	display: grid;
	gap: calc(var(--size) * 0.18);
	width: calc(var(--swing) * 2 + var(--size) * 2);
	padding: 0;
	list-style: none;
}

.mol-spin__ladder li {
	position: relative;
	height: var(--size);
}

.mol-spin__base {
	position: absolute;
	top: 0;
	left: calc(50% - var(--size) / 2);
	display: grid;
	place-items: center;
	width: var(--size);
	height: var(--size);
	border-radius: calc(var(--size) * 0.28);
	background: var(--fill);
	color: var(--ink);
	font-size: calc(var(--size) * 0.5);
	font-weight: 900;
	line-height: 1;
	animation: mol-swing 4s ease-in-out infinite;
	animation-delay: calc(var(--i) * -0.5s);
	will-change: transform;
}

.mol-spin__base--b {
	animation-delay: calc(var(--i) * -0.5s - 2s);
}

.mol-spin__base small {
	position: absolute;
	top: -0.35em;
	right: -1.4em;
	color: var(--c-ink);
	font-size: 0.5em;
	font-weight: 700;
}

@keyframes mol-swing {
	0%   { transform: translateX(calc(var(--swing) * -1)) scale(0.85); z-index: 1; }
	25%  { transform: translateX(0) scale(1.2); z-index: 2; }
	50%  { transform: translateX(var(--swing)) scale(0.85); z-index: 1; }
	75%  { transform: translateX(0) scale(0.6); z-index: 0; }
	100% { transform: translateX(calc(var(--swing) * -1)) scale(0.85); z-index: 1; }
}

.mol-spin.is-paused .mol-spin__base,
.mol-spin.is-offscreen .mol-spin__base {
	animation-play-state: paused;
}

.mol-spin__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 1rem;
	border: 1px solid var(--c-line);
	border-radius: 999px;
	background: var(--c-bg);
	color: var(--c-ink);
	font: inherit;
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.08em;
	cursor: pointer;
}

.mol-spin__toggle:hover {
	border-color: var(--c-g1);
}

.mol-spin__toggle svg {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mol-spin__toggle .i-play,
.mol-spin.is-paused .mol-spin__toggle .i-pause {
	display: none;
}

.mol-spin.is-paused .mol-spin__toggle .i-play {
	display: inline;
	fill: currentColor;
}

/* Closing section ----------------------------------------------------------- */
.mol-section--credits .mol-mark {
	--tile: clamp(4rem, 3rem + 5vw, 8rem);
	gap: clamp(0.4rem, 0.8vw, 0.75rem);
}

.mol-section--credits .mol-mark li {
	border-radius: calc(var(--tile) * 0.18);
	font-size: calc(var(--tile) * 0.45);
}

.mol-legal ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	padding: 0;
	list-style: none;
}

.mol-legal li {
	margin: 0 !important;
	padding: 0 !important;
	font-size: var(--fs-label) !important;
}

.mol-legal li::before {
	display: none;
}

.mol-legal a {
	display: inline-flex;
	align-items: center;
	min-height: 2.75rem;
	color: var(--c-ink);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mol-legal a[aria-current] {
	color: var(--c-teal-ink);
}

.mol-text .mol-legal {
	margin-top: 2.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--c-mist);
}

/* Section dots -------------------------------------------------------------- */
.mol-dots {
	position: fixed;
	top: 50%;
	right: clamp(0.5rem, 1.5vw, 1.5rem);
	z-index: 40;
	transform: translateY(-50%);
}

.mol-dots ol {
	display: grid;
	padding: 0;
	list-style: none;
}

.mol-dots a {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	color: var(--c-ink);
	text-decoration: none;
}

.mol-dots a::before {
	content: "";
	width: 0.625rem;
	height: 0.625rem;
	border: 2px solid var(--c-teal-ink);
	border-radius: 50%;
	transition: transform 0.3s var(--ease-out), background-color 0.3s;
}

.mol-dots a:hover::before {
	background: var(--c-g3);
}

.mol-dots a[aria-current]::before {
	background: var(--c-teal-ink);
	transform: scale(1.35);
}

.mol-dots__label {
	position: absolute;
	right: calc(100% + 0.25rem);
	padding: 0.35rem 0.75rem;
	background: var(--c-ink);
	color: #fff;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(0.5rem);
	transition: opacity 0.2s, transform 0.2s var(--ease-out);
	pointer-events: none;
}

.mol-dots a:hover .mol-dots__label,
.mol-dots a:focus-visible .mol-dots__label {
	opacity: 1;
	transform: none;
}

/* Regular pages (Impressum, Datenschutz) ----------------------------------- */
.mol-page {
	padding: calc(var(--header-h) + 3rem) var(--gutter) 4rem;
}

.mol-page__grid {
	display: grid;
	gap: 2.5rem;
	max-width: 80rem;
	margin-inline: auto;
}

.mol-back {
	margin-bottom: 1.5rem;
	font-size: var(--fs-label);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.mol-back a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 2.75rem;
	color: var(--c-ink);
}

.mol-back svg {
	width: 1.1rem;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mol-page__title {
	color: var(--c-heading);
	font-size: clamp(2.25rem, 1.2rem + 3.5vw, 4.5rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	hyphens: auto;
}

.mol-prose {
	max-width: 42rem;
	padding-left: clamp(1.25rem, 2vw, 1.75rem);
	border-left: 3px solid var(--c-teal);
}

.mol-prose > * + * {
	margin-top: 1em;
}

.mol-prose h2 {
	margin-top: 2.5rem;
	font-size: 1.35em;
	font-weight: 600;
}

.mol-prose h3 {
	margin-top: 1.75rem;
	font-size: 1.1em;
	font-weight: 600;
}

.mol-prose h2:first-child {
	margin-top: 0;
}

.mol-prose ul {
	padding-left: 1.25em;
}

.mol-prose li + li {
	margin-top: 0.4em;
}

.mol-prose mark {
	background: #fff3b0;
	color: var(--c-ink);
	padding-inline: 0.15em;
}

.mol-footer {
	padding: 2rem var(--gutter) 3rem;
	border-top: 1px solid var(--c-mist);
}

.mol-footer .mol-legal {
	max-width: 80rem;
	margin-inline: auto;
}

/* Two columns: the 50/50 grid ---------------------------------------------- */
@media (min-width: 56em) {
	.mol-section {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: center;
		padding-block: calc(var(--header-h) + 1rem) 3rem;
		padding-right: calc(var(--gutter) + 2.5rem); /* room for dots */
	}

	.mol-section + .mol-section {
		border-top: 0;
	}

	.mol-text {
		justify-self: start;
	}

	.mol-page__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: clamp(2.5rem, 6vw, 7rem);
	}

	.mol-page__head {
		position: sticky;
		top: calc(var(--header-h) + 3rem);
		align-self: start;
		justify-self: end;
		text-align: right;
	}

	.mol-back a {
		flex-direction: row;
	}
}

/* Full-page snapping on screens large enough to show a section at once */
@media (min-width: 56em) and (min-height: 37.5em) {
	html:has(.mol-main) {
		scroll-snap-type: y mandatory;
	}

	.mol-section {
		scroll-snap-align: start;
	}
}

@media (min-width: 56em) and (max-height: 50em) {
	body {
		line-height: 1.6;
	}

	.mol-section {
		padding-block: calc(var(--header-h) + 0.25rem) 1.5rem;
	}

	.mol-text::before {
		margin-bottom: 0.5rem;
	}

	.mol-text h2 {
		margin-bottom: 1.25rem;
	}

	.mol-section--hero .mol-scroll-hint {
		display: block;
	}
}

@media (max-width: 55.99em) {
	.mol-dots {
		display: none;
	}

	.mol-section:not(.mol-section--hero) {
		min-height: 0;
	}

	.mol-svg--helix {
		height: min(52svh, 28rem);
	}

	.mol-svg--key-figures {
		height: auto;
		width: min(100%, 26rem);
	}

	.mol-section--credits .mol-visual {
		order: 2;
	}
}

@media (max-width: 30em) {
	.mol-gallery ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.mol-brand__name {
		letter-spacing: 0.16em;
	}
}

/* Scroll hint in the hero */
.mol-scroll-hint {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	width: 1.5rem;
	height: 2.5rem;
	margin-left: -0.75rem;
	border: 2px solid var(--c-line);
	border-radius: 1rem;
}

.mol-scroll-hint::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0.45rem;
	width: 4px;
	height: 0.5rem;
	margin-left: -2px;
	border-radius: 2px;
	background: var(--c-teal-ink);
	animation: mol-hint 2s ease-in-out infinite;
}

@keyframes mol-hint {
	0%, 100% { transform: translateY(0); opacity: 1; }
	60% { transform: translateY(0.75rem); opacity: 0; }
}

/* Reveal animations (only when JS runs) ------------------------------------ */
.js .mol-visual,
.js .mol-text {
	opacity: 0;
	transition: opacity var(--t-reveal) ease, transform var(--t-reveal) var(--ease-out);
}

.js .mol-visual {
	transform: translateX(-3rem);
}

.js .mol-text {
	transform: translateX(3rem);
	transition-delay: 0.15s;
}

.js .mol-anim-fade {
	transform: none;
}

.js .mol-anim-zoom .mol-figure {
	transform: scale(0.75);
	transition: transform 0.9s var(--ease-out);
}

.js .mol-anim-zoom .mol-figure:nth-child(2) { transition-delay: 0.15s; }
.js .mol-anim-zoom .mol-figure:nth-child(3) { transition-delay: 0.3s; }

.js .is-visible .mol-visual,
.js .is-visible .mol-text,
.js .is-visible .mol-anim-zoom .mol-figure {
	opacity: 1;
	transform: none;
}

.js .mol-bp__col {
	opacity: 0;
	transform: translateY(12px);
	transform-box: fill-box;
	transition: opacity 0.6s ease, transform 0.6s var(--ease-out);
	transition-delay: calc(0.5s + var(--i) * 90ms);
}

.js .is-visible .mol-bp__col {
	opacity: 1;
	transform: none;
}

@media (max-width: 55.99em) {
	.js .mol-visual,
	.js .mol-text {
		transform: translateY(2rem);
	}
}

/* Respect reduced motion: everything static and visible */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.js .mol-visual,
	.js .mol-text,
	.js .mol-bp__col,
	.js .mol-anim-zoom .mol-figure {
		opacity: 1;
		transform: none;
	}

	.mol-spin__base {
		animation: none !important;
		transform: translateX(calc(var(--swing) * -0.6));
	}

	.mol-spin__base--b {
		transform: translateX(calc(var(--swing) * 0.6));
	}

	.mol-scroll-hint {
		display: none !important;
	}
}

/* Windows high contrast / forced colours */
@media (forced-colors: active) {
	.mol-hero-mark {
		background: none;
		color: CanvasText;
	}

	.mol-dots a::before {
		border-color: LinkText;
	}

	.mol-dots a[aria-current]::before {
		background: LinkText;
	}

	.mol-spin__base,
	.mol-mark li {
		border: 1px solid CanvasText;
	}
}

/* Print: one long document */
@media print {
	html {
		scroll-snap-type: none !important;
	}

	.mol-header,
	.mol-dots,
	.mol-spin,
	.mol-skip,
	.mol-scroll-hint {
		display: none !important;
	}

	.mol-section {
		height: auto !important;
		min-height: 0 !important;
		padding: 1.5rem 0;
		break-inside: avoid;
	}

	.js .mol-visual,
	.js .mol-text {
		opacity: 1 !important;
		transform: none !important;
	}
}
