/*
 * Element defaults the design assumes, and the starting state for the entrance animation.
 *
 * Deliberately small. The design is section-driven, so anything that belongs to one section lives in
 * that section's sheet; what is here is only what every section relies on.
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	/*
	 * The header is taken out of flow so it can sit over the hero, exactly as the published page
	 * does. It needs a positioning context, and the body is the one that is always the page's width.
	 */
	position: relative;
	margin: 0;
	font-family: var(--as-font);
	font-weight: 500;
	line-height: var(--as-lh-body);
	color: var(--as-ink);
	background: var(--as-white);
	-webkit-font-smoothing: antialiased;
}

/* The design sets every heading itself; browser sizing and spacing only get in the way. */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

p {
	margin: 0;
}

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

/*
 * The Framer page leaves 37 links at the browser default blue (rgb(0, 0, 238)) — visible in the
 * measurement, and almost certainly not intended. Links here inherit their colour, and anything that
 * should be coloured says so in its own section. Worth raising with the designer.
 */
a {
	color: inherit;
	text-decoration: none;
}

button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
}

.as-container {
	width: 100%;
	max-width: var(--as-container);
	margin-inline: auto;
}

.as-container--narrow {
	max-width: var(--as-container-narrow);
}

/* Visible only once it has focus, which is the only time it is any use. */
.as-skip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	padding: 12px 20px;
	color: var(--as-white);
	font-size: 16px;
	background: var(--as-navy);
	transform: translateY(-100%);
}

.as-skip:focus {
	transform: none;
}

.as-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ── Entrance animation ──────────────────────────────────────────────────────
 *
 * The starting state lives here and the script only adds .is-in, so the transition is the browser's
 * and the timing is the design's: 400ms on cubic-bezier(0.44, 0, 0.56, 1).
 *
 * The .no-js guard matters: without it a script that fails to load would leave the whole page
 * invisible. The class is on <html> from the start and removed by motion.js.
 */
[data-as-rise],
[data-as-fade] {
	opacity: 0.001;
	transition: opacity var(--as-duration) var(--as-ease), transform var(--as-duration) var(--as-ease);
}

[data-as-rise] {
	transform: translateY(var(--as-rise));
}

[data-as-rise].is-in,
[data-as-fade].is-in {
	opacity: 1;
	transform: none;
}

.no-js [data-as-rise],
.no-js [data-as-fade] {
	opacity: 1;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	[data-as-rise],
	[data-as-fade] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
