/* ==========================================================================
   Opream — main stylesheet
   Deep navy, Opream blue, and the dot ring from the logo as the one motif.
   ========================================================================== */

:root {
	--night: #061426;
	--deep: #0b2140;
	--raise: #10294b;
	--rim: #1d3d66;
	--rim-soft: #14304f;
	--opream: #4c8ddb;
	--spark: #8cc4ff;
	--frost: #eaf1fa;
	--mist: #94a9c6;
	--success: #7fd8b0;
	--danger: #ff9a9a;
	--on-accent: #061426;
	--shadow: rgb(0 0 0 / 0.55);
	--mockup-shadow: rgb(0 0 0 / 0.45);
	--glass: rgb(255 255 255 / 0.045);
	--glass-strong: rgb(255 255 255 / 0.085);
	--glass-border: rgb(255 255 255 / 0.1);
	--glass-highlight: rgb(255 255 255 / 0.16);
	color-scheme: dark;

	--font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Classic typographic scale: 14 · 17 · 21 · 24 · 36 · 48 · 72 */
	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.3125rem;
	--step-2: 1.5rem;
	--step-3: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);
	--step-4: clamp(2rem, 1.3rem + 2.8vw, 3rem);
	--step-5: clamp(2.5rem, 1.2rem + 5.2vw, 4.5rem);

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--section: clamp(72px, 10vw, 128px);
	--header-h: 76px;
	--ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light mode: same roles, inverted values. Blues are darkened so text and
   buttons keep at least 4.5:1 contrast on the pale background. */
:root[data-theme="light"] {
	--night: #f6f8fc;
	--deep: #e9eff8;
	--raise: #dde6f3;
	--rim: #c3d1e4;
	--rim-soft: #d9e2ef;
	--opream: #2b69ba;
	--spark: #1d5aa8;
	--frost: #0b1b33;
	--mist: #4b5f7a;
	--success: #17784d;
	--danger: #b3261e;
	--on-accent: #ffffff;
	--shadow: rgb(16 38 72 / 0.16);
	--mockup-shadow: rgb(16 38 72 / 0.2);
	--glass: rgb(255 255 255 / 0.5);
	--glass-strong: rgb(255 255 255 / 0.78);
	--glass-border: rgb(16 38 72 / 0.09);
	--glass-highlight: rgb(255 255 255 / 0.95);
	color-scheme: light;
}

/* Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--night);
	color: var(--frost);
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body.nav-open {
	overflow: hidden;
}

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

a {
	color: inherit;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

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

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--opream);
	color: var(--on-accent);
}

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

.site-main:focus {
	outline: none;
}

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

.skip-link {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--frost);
	color: var(--night);
	font-weight: 600;
	text-decoration: none;
	transform: translateY(-200%);
}

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

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

/* Buttons and links
   ========================================================================== */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--opream);
	color: var(--on-accent);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}

.button:hover {
	background: var(--spark);
}

.button:active {
	transform: scale(0.97);
}

.button:disabled {
	opacity: 0.6;
	cursor: progress;
}

.button--ghost {
	background: transparent;
	color: var(--frost);
	border-color: var(--rim);
}

.button--ghost:hover {
	background: var(--raise);
	border-color: var(--mist);
}

.button--small {
	min-height: 40px;
	padding: 0 18px;
	font-size: 0.9375rem;
}

.text-link {
	color: var(--spark);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, var(--spark) 35%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
	transition: text-decoration-color 0.2s;
}

.text-link:hover {
	text-decoration-color: currentColor;
}

.back-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	color: var(--mist);
	font-size: var(--step--1);
	text-decoration: none;
}

.back-link::before {
	content: "";
	width: 18px;
	height: 1px;
	background: currentColor;
	transition: width 0.25s var(--ease-out);
}

.back-link:hover {
	color: var(--frost);
}

.back-link:hover::before {
	width: 28px;
}

/* Header and navigation
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and collapse it. */
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-bottom: 1px solid transparent;
	transition: background-color 0.3s, border-color 0.3s;
}

.site-header.is-scrolled::before,
.nav-open .site-header::before {
	background: color-mix(in srgb, var(--night) 86%, transparent);
	border-bottom-color: var(--rim-soft);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
}

/* The official logo. Its colours are custom properties, which reach inside the
   <use> copies: the original navy and blues in light mode, a lighter set on dark. */
.brand {
	--logo-dots: #4c8ddb;
	--logo-bars: #8cc4ff;
	--logo-word: #eaf1fa;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

:root[data-theme="light"] .brand {
	--logo-dots: #0d4d75;
	--logo-bars: #2f7fb2;
	--logo-word: #3081b5;
}

.brand__mark {
	flex: none;
	width: 36px;
	height: 36px;
}

/* Wordmark proportions: 2007 × 443. */
.brand__word {
	flex: none;
	width: 100px;
	height: 22px;
}

.custom-logo-link img {
	width: auto;
	max-height: 44px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-left: auto;
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: 10px;
}

.theme-toggle {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--rim);
	border-radius: 50%;
	background: none;
	color: var(--frost);
	cursor: pointer;
	transition: border-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}

.theme-toggle:hover {
	border-color: var(--mist);
	color: var(--spark);
}

.theme-toggle:active {
	transform: scale(0.92);
}

.theme-toggle svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

/* Shows the mode you'll switch to. */
.theme-toggle__moon,
:root[data-theme="light"] .theme-toggle__sun {
	display: none;
}

:root[data-theme="light"] .theme-toggle__moon {
	display: block;
}

/* Colours cross-fade briefly when the visitor switches theme. */
@media (prefers-reduced-motion: no-preference) {
	.theme-switching,
	.theme-switching *,
	.theme-switching *::before {
		transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, fill 0.35s ease !important;
	}
}

.menu {
	display: flex;
	align-items: center;
	gap: 2px;
}

.menu > li {
	position: relative;
	display: flex;
	align-items: center;
}

.menu a {
	display: block;
	padding: 10px 14px;
	border-radius: 8px;
	color: var(--mist);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s;
}

.menu a:hover,
.menu .current-menu-item > a,
.menu .current-menu-ancestor > a,
.menu .current_page_item > a {
	color: var(--frost);
}

.submenu-toggle {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	margin-left: -10px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: none;
	color: var(--mist);
	cursor: pointer;
}

.submenu-toggle::before {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.25s var(--ease-out);
}

.submenu-toggle[aria-expanded="true"]::before {
	transform: translateY(2px) rotate(-135deg);
}

.sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 220px;
	padding: 8px;
	border: 1px solid var(--rim);
	border-radius: 14px;
	background: var(--deep);
	box-shadow: 0 28px 56px -16px var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0s 0.25s;
}

/* Hover bridge so the menu doesn't close while the pointer crosses the gap. */
.sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: opacity 0.2s, transform 0.25s var(--ease-out);
}

.sub-menu a {
	padding: 10px 12px;
	color: var(--frost);
}

.sub-menu a:hover {
	background: var(--raise);
}

.nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--rim);
	border-radius: 50%;
	background: none;
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before {
	position: absolute;
	left: 50%;
	width: 18px;
	height: 1.5px;
	margin-left: -9px;
	background: var(--frost);
	transition: transform 0.3s var(--ease-out);
}

.nav-toggle__bars {
	top: calc(50% - 4px);
}

.nav-toggle__bars::before {
	content: "";
	top: 7px;
	left: 0;
	margin-left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(-7px) rotate(-90deg);
}

/* Sections and shared type
   ========================================================================== */

.section {
	padding-block: var(--section);
}

.section--flush-top {
	padding-top: clamp(8px, 2vw, 24px);
}

.section--rule {
	padding-top: 0;
}

.section--rule > .wrap {
	padding-top: var(--section);
	border-top: 1px solid var(--rim-soft);
}

.section-title {
	max-width: 20ch;
	font-size: var(--step-4);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.lead {
	max-width: 36em;
	margin-top: 20px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.55;
}

/* Hero
   ========================================================================== */

/* A rounded frame holding a muted video loop, shaded so the copy reads, with
   the services along the bottom. It stays dark in both themes, like footage. */
.hero {
	padding: clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px) 0;
}

.hero__frame {
	--frost: #eaf1fa;
	--mist: #b9c7da;
	--spark: #8cc4ff;
	--rim: rgb(255 255 255 / 0.22);
	--night: #061426;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(580px, calc(100svh - var(--header-h) - 20px), 900px);
	overflow: hidden;
	border: 1px solid rgb(140 196 255 / 0.14);
	border-radius: clamp(20px, 2.4vw, 32px);
	background: var(--night);
	color: var(--frost);
	color-scheme: dark;
	isolation: isolate;
}

/* The footage fills the right of the frame and fades out towards the copy,
   so the headline sits on clean navy. */
.hero__video {
	position: absolute;
	top: 0;
	right: 0;
	z-index: -2;
	width: 72%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 50%;
	opacity: 0.6;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

/* Shade: navy from the left for the copy and from the bottom for the bar,
   plus a blue wash that pulls the footage into the brand colours. */
.hero__frame::before,
.hero__frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
}

.hero__frame::before {
	background: #0d3f86;
	mix-blend-mode: color;
	opacity: 0.45;
}

.hero__frame::after {
	background:
		linear-gradient(90deg, rgb(6 20 38 / 0.94) 0%, rgb(6 20 38 / 0.82) 32%, rgb(6 20 38 / 0.35) 62%, rgb(6 20 38 / 0.15) 100%),
		linear-gradient(0deg, rgb(6 20 38 / 0.9) 0%, rgb(6 20 38 / 0) 34%),
		linear-gradient(180deg, rgb(6 20 38 / 0.5) 0%, rgb(6 20 38 / 0) 22%);
}

/* Copy on the left, the animated scene on the right. */
.hero__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin: auto;
	padding-block: clamp(56px, 7vw, 104px) clamp(36px, 4vw, 64px);
}

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 16px 8px 12px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.06);
	font-size: var(--step--1);
	letter-spacing: 0.02em;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.hero__pulse {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--spark);
}

.hero__pulse::after {
	content: "";
	position: absolute;
	inset: -4px;
	border: 1px solid var(--spark);
	border-radius: 50%;
	animation: pulse 2.4s var(--ease-out) infinite;
}

@keyframes pulse {
	from {
		opacity: 0.9;
		scale: 0.6;
	}

	to {
		opacity: 0;
		scale: 1.9;
	}
}

.hero__title {
	max-width: 14ch;
	margin-top: 28px;
	font-size: var(--step-5);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

/* Held back until main.js has split it, so it doesn't flash in whole first. */
.js .hero__title[data-split]:not(.is-split) {
	visibility: hidden;
}

/* main.js wraps each word; they rise out of a mask one after another. */
.hero__title .word {
	display: inline-block;
	margin-bottom: -0.12em;
	padding-bottom: 0.12em;
	overflow: hidden;
	vertical-align: top;
}

.hero__title .word > span {
	display: inline-block;
	animation: word-rise 0.9s var(--ease-out) both;
	animation-delay: calc(0.15s + var(--i) * 0.06s);
}

@keyframes word-rise {
	from {
		opacity: 0;
		translate: 0 105%;
	}
}

.hero__text,
.hero__actions {
	animation: rise 0.9s 0.55s var(--ease-out) both;
}

.hero__actions {
	animation-delay: 0.7s;
}

.hero__text {
	max-width: 34em;
	margin-top: 24px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

/* Bottom bar: the services as links, and the pause button. */
.hero__bar {
	display: flex;
	align-items: center;
	gap: 24px;
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
	padding-block: 22px clamp(20px, 2.4vw, 28px);
	border-top: 1px solid var(--rim);
}

/* The services glide past; the list is in twice, so moving it by half loops. */
.hero__marquee {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.hero__services {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0;
	list-style: none;
	animation: marquee 38s linear infinite;
}

.hero__marquee:hover .hero__services {
	animation-play-state: paused;
}

.hero__services li {
	display: flex;
	align-items: center;
	gap: 28px;
	padding-right: 28px;
	white-space: nowrap;
}

.hero__services li::after {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--opream);
}

@keyframes marquee {
	to {
		transform: translateX(-50%);
	}
}

.hero__services a {
	color: var(--mist);
	font-size: var(--step--1);
	text-decoration: none;
	transition: color 0.2s;
}

.hero__services a:hover {
	color: var(--frost);
}

/* The scene: glass panels over the footage. main.js nudges them with the
   pointer through --px / --py, each by a different depth. */
.hero__visual {
	--px: 0;
	--py: 0;
	position: relative;
	height: clamp(380px, 34vw, 470px);
}

.hero-glass {
	position: absolute;
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 18px;
	background: linear-gradient(150deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.03));
	box-shadow:
		inset 0 1px 0 rgb(255 255 255 / 0.18),
		0 34px 70px -30px rgb(0 0 0 / 0.75);
	-webkit-backdrop-filter: blur(18px) saturate(150%);
	backdrop-filter: blur(18px) saturate(150%);
	transition: translate 0.6s var(--ease-out);
}

.hero-editor {
	top: 2%;
	right: 0;
	width: min(100%, 470px);
	overflow: hidden;
	translate: calc(var(--px) * -10px) calc(var(--py) * -8px);
	animation: panel-in 1s 0.25s var(--ease-out) both, bob 9s 1.2s ease-in-out infinite alternate;
}

.hero-editor__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.hero-editor__dots {
	display: flex;
	gap: 6px;
}

.hero-editor__dots i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.18);
}

.hero-editor__dots i:first-child {
	background: #ff6b6b;
}

.hero-editor__dots i:nth-child(2) {
	background: #f7c948;
}

.hero-editor__dots i:last-child {
	background: #5fd38d;
}

.hero-editor__file {
	padding: 3px 10px;
	border-radius: 6px;
	background: rgb(255 255 255 / 0.07);
	color: var(--mist);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.75rem;
}

.hero-editor__code {
	margin: 0;
	padding: 18px 20px 22px;
	counter-reset: line;
	color: #dbe7f6;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: clamp(0.75rem, 0.62rem + 0.28vw, 0.875rem);
	line-height: 1.75;
	white-space: pre;
}

/* <code> carries its own UA monospace; take the stack above instead. */
.hero-editor__code code {
	font: inherit;
}

.hero-editor__line {
	display: block;
}

.hero-editor__line::before {
	content: counter(line);
	counter-increment: line;
	display: inline-block;
	width: 2ch;
	margin-right: 18px;
	color: rgb(255 255 255 / 0.25);
	text-align: right;
}

/* Each line types out (one step per character) and shows a caret meanwhile;
   the last one keeps its caret blinking. */
.hero-editor__type {
	display: inline-block;
	max-width: calc(var(--chars) * 1ch + 1.5ch); /* Slack for the caret, so the last character never clips. */
	overflow: hidden;
	border-right: 2px solid transparent;
	vertical-align: bottom;
}

.is-playing .hero-editor__type {
	animation:
		type var(--dur) steps(var(--chars), end) var(--start) both,
		caret var(--dur) linear var(--start);
}

.is-playing .hero-editor__line:last-child .hero-editor__type {
	animation:
		type var(--dur) steps(var(--chars), end) var(--start) both,
		blink 1s steps(1) var(--start) infinite;
}

@keyframes type {
	from {
		max-width: 0;
	}
}

@keyframes caret {
	from,
	to {
		border-color: var(--spark);
	}
}

@keyframes blink {
	50% {
		border-color: var(--spark);
	}
}

.tok-k {
	color: #c792ea;
}

.tok-s {
	color: #9ee493;
}

.tok-p {
	color: #82aaff;
}

.tok-c {
	color: rgb(255 255 255 / 0.4);
}

.hero-deploy {
	bottom: -6%;
	left: -6%;
	width: min(70%, 290px);
	padding: 18px 20px 20px;
	translate: calc(var(--px) * 16px) calc(var(--py) * 12px);
	animation: panel-in 1s 0.45s var(--ease-out) both, bob 8s 1.6s ease-in-out infinite alternate-reverse;
}

.hero-deploy__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-family: var(--font-display);
	font-size: 0.9375rem;
}

.hero-deploy__title span {
	padding: 2px 10px;
	border-radius: 999px;
	background: rgb(95 211 141 / 0.15);
	color: #7ee2a8;
	font-family: var(--font-body);
	font-size: 0.75rem;
}

.hero-deploy__steps {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
	color: var(--mist);
	font-size: 0.8125rem;
	list-style: none;
}

/* Steps light up in turn once the code has been typed (--typed). */
.hero-deploy__steps li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hero-deploy__steps li::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background:
		linear-gradient(#061426, #061426) 5px 8px / 4px 1.5px no-repeat,
		linear-gradient(#061426, #061426) 7px 4px / 1.5px 5.5px no-repeat,
		#5fd38d;
	rotate: 40deg;
}

.is-playing .hero-deploy__steps li {
	animation: step-done 0.5s var(--ease-out) calc(var(--typed) + 0.3s + var(--step) * 0.6s) both;
}

@keyframes step-done {
	from {
		opacity: 0.35;
		filter: grayscale(1);
	}
}

.hero-deploy__bar {
	height: 4px;
	margin-top: 16px;
	overflow: hidden;
	border-radius: 4px;
	background: rgb(255 255 255 / 0.08);
}

.hero-deploy__bar span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--opream), #5fd38d);
}

.is-playing .hero-deploy__bar span {
	animation: fill 1.8s ease-in-out calc(var(--typed) + 0.1s) both;
}

@keyframes fill {
	from {
		width: 0;
	}
}

.hero-chip {
	right: 3%;
	bottom: 4%;
	display: flex;
	gap: 4px;
	padding: 5px;
	border-radius: 999px;
	translate: calc(var(--px) * 22px) calc(var(--py) * 16px);
	animation: panel-in 1s 0.6s var(--ease-out) both, bob 7s 2s ease-in-out infinite alternate;
}

.hero-chip__item {
	padding: 5px 12px;
	border-radius: 999px;
	color: var(--frost);
	font-size: 0.75rem;
	background: rgb(76 141 219 / 0.35);
}

/* Each platform lights up after the deploy has gone live. */
.is-playing .hero-chip__item {
	animation: platform-on 0.6s var(--ease-out) calc(var(--typed) + 2.1s + var(--step) * 0.25s) both;
}

@keyframes platform-on {
	from {
		background: transparent;
		color: var(--mist);
	}
}

@keyframes bob {
	to {
		transform: translateY(-10px);
	}
}

/* Entrance on opacity and scale only: translate carries the pointer parallax. */
@keyframes panel-in {
	from {
		opacity: 0;
		scale: 0.94;
	}
}

.hero.is-paused .hero__visual *,
.hero.is-paused .hero__services {
	animation-play-state: paused;
}

.hero__toggle {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--rim);
	border-radius: 50%;
	background: rgb(255 255 255 / 0.06);
	color: var(--frost);
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: border-color 0.2s, background-color 0.2s;
}

.hero__toggle:hover {
	border-color: var(--spark);
	background: rgb(255 255 255 / 0.12);
}

.hero__toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero__toggle-play,
.hero__toggle[aria-pressed="true"] .hero__toggle-pause {
	display: none;
}

.hero__toggle[aria-pressed="true"] .hero__toggle-play {
	display: block;
	fill: currentColor;
}

.hero-ring {
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* The viewBox is centred on 0,0, so the ring's centre is the user-space origin. */
.hero-ring__band {
	transform-box: view-box;
	transform-origin: 0 0;
	animation: ring-orbit 240s linear infinite;
}

.hero-ring__band--2 {
	animation-direction: reverse;
	animation-duration: 300s;
}

.hero-ring__band--3 {
	animation-duration: 200s;
}

.hero-ring__dot {
	--glow: 0;
	fill: color-mix(in srgb, var(--spark) calc(var(--glow) * 100%), var(--opream));
	fill-opacity: calc(0.3 + var(--swell) * 0.6 + var(--glow) * 0.4);
	transform-box: fill-box;
	transform-origin: center;
	scale: calc(1 + var(--glow) * 0.45);
	transition: scale 0.35s var(--ease-out), fill-opacity 0.35s;
	animation: dot-in 0.7s var(--ease-out) backwards;
	animation-delay: calc(200ms + var(--turn) * 1100ms);
}

.hero-ring__band--2 .hero-ring__dot {
	animation-delay: calc(380ms + var(--turn) * 1100ms);
}

.hero-ring__band--3 .hero-ring__dot {
	fill: color-mix(in srgb, var(--frost) calc(var(--glow) * 100%), var(--spark));
	animation-delay: calc(560ms + var(--turn) * 1100ms);
}

@keyframes dot-in {
	from {
		opacity: 0;
		transform: scale(0);
	}
}

@keyframes ring-orbit {
	to {
		transform: rotate(360deg);
	}
}

/* Client logo wall
   ========================================================================== */

.clients-wall__title {
	max-width: none;
	margin-bottom: clamp(32px, 5vw, 56px);
}

.clients-wall.section--rule > .wrap {
	padding-top: clamp(56px, 7vw, 96px);
}

.clients-wall__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

/* Logos keep the white ground they were designed for, in both themes. */
.client {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	border: 1px solid var(--rim-soft);
	border-radius: 16px;
	background: #fff;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.client--dark {
	border-color: #1d3d66;
	background: #0e2a4d;
}

/* The logo fills a fixed inner box of the tile, so wide wordmarks and tall
   crests read at similar weight and every tile keeps the same height. */
.client img {
	position: absolute;
	inset: 14% 13%;
	width: 74%;
	height: 72%;
	object-fit: contain;
}

a.client:hover,
a.client:focus-visible,
div.client:hover {
	box-shadow: 0 18px 36px -18px var(--shadow);
	transform: translateY(-3px);
}

@media (max-width: 1080px) {
	.clients-wall__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.clients-wall__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}

	.client {
		border-radius: 12px;
	}
}

@media (max-width: 480px) {
	.clients-wall__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* An odd last logo sits centred instead of alone on the left. */
	.clients-wall__grid > li:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc(50% - 5px);
	}
}

/* Partner points
   ========================================================================== */

.split {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: start;
	gap: clamp(40px, 6vw, 96px);
}

.split__aside {
	position: sticky;
	top: calc(var(--header-h) + 40px);
}

.split__aside .text-link {
	display: inline-block;
	margin-top: 28px;
}

.points {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 56px 40px;
}

/* A node on a line: the dot motif at small scale. */
.point {
	position: relative;
	padding-top: 24px;
	border-top: 1px solid var(--rim);
}

.point::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--opream);
}

.point__title {
	margin-bottom: 10px;
	font-size: var(--step-1);
	font-weight: 500;
}

.point p {
	color: var(--mist);
}

/* Services
   ========================================================================== */

/* Round tile, echoing the logo ring; fills with the accent on hover. */
.service-icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 56px;
	height: 56px;
	border: 1px solid color-mix(in srgb, var(--opream) 35%, transparent);
	border-radius: 50%;
	background: color-mix(in srgb, var(--opream) 12%, transparent);
	color: var(--spark);
	transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}

.service-icon svg {
	width: 26px;
	height: 26px;
}

.service-icon--large {
	width: 72px;
	height: 72px;
}

.service-icon--large svg {
	width: 32px;
	height: 32px;
}

/* Home: every service at a glance. Glass cards like the projects (main.js
   reveals and tilts them), each one large link to the service's details. */
.service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2vw, 24px);
	margin: 0;
	padding: 0;
	list-style: none;
	background:
		radial-gradient(40% 40% at 20% 20%, color-mix(in oklab, var(--opream) 18%, transparent), transparent 70%),
		radial-gradient(36% 40% at 85% 80%, rgb(124 92 255 / 0.12), transparent 70%);
}

.service-grid > li {
	display: flex;
}

.service-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 300px;
	padding: clamp(22px, 2.4vw, 30px);
	overflow: hidden;
	border: 1px solid var(--glass-border);
	border-radius: 24px;
	background: linear-gradient(150deg, var(--glass-strong) 0%, var(--glass) 60%);
	box-shadow:
		inset 0 1px 0 var(--glass-highlight),
		0 24px 50px -34px var(--shadow);
	color: inherit;
	text-decoration: none;
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transition:
		opacity 0.9s var(--ease-out) var(--delay, 0ms),
		translate 0.9s var(--ease-out) var(--delay, 0ms),
		scale 0.9s var(--ease-out) var(--delay, 0ms),
		border-color 0.4s,
		transform 0.5s var(--ease-out),
		box-shadow 0.5s var(--ease-out);
}

.service-tile.is-waiting:not(.is-in) {
	opacity: 0;
	translate: 0 40px;
	scale: 0.97;
}

/* Light that follows the pointer (main.js sets --mx / --my). */
.service-tile::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(380px circle at var(--mx, 0%) var(--my, 0%), color-mix(in oklab, var(--opream) 24%, transparent), transparent 62%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
}

.service-tile:hover,
.service-tile:focus-visible {
	--lift: -6px;
	border-color: color-mix(in oklab, var(--opream) 50%, var(--glass-border));
	box-shadow:
		inset 0 1px 0 var(--glass-highlight),
		0 36px 64px -34px var(--shadow);
}

.service-tile:hover::before,
.service-tile:focus-visible::before {
	opacity: 1;
}

.service-tile:focus-visible {
	outline: 2px solid var(--spark);
	outline-offset: 3px;
}

.service-tile__top {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.service-tile__num {
	padding: 4px 11px;
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	background: var(--glass-strong);
	color: var(--spark);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.8125rem;
	letter-spacing: 0.06em;
}

/* ↗ in a circle; it fills with blue and steps forward on hover. */
.service-tile__arrow {
	position: relative;
	width: 42px;
	height: 42px;
	border: 1px solid var(--glass-border);
	border-radius: 50%;
	color: var(--frost);
	background:
		linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%) 13px 13px / 16px 16px no-repeat;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s, translate 0.4s var(--ease-out);
}

.service-tile__arrow::before {
	content: "";
	position: absolute;
	top: 13px;
	right: 13px;
	width: 8px;
	height: 8px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
}

.service-tile:hover .service-tile__arrow,
.service-tile:focus-visible .service-tile__arrow {
	border-color: var(--opream);
	background-color: var(--opream);
	color: var(--on-accent);
	translate: 3px -3px;
}

.service-tile__title {
	position: relative;
	margin-top: clamp(28px, 4vw, 48px);
	font-size: var(--step-2);
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.service-tile__text {
	position: relative;
	display: -webkit-box;
	margin-top: 10px;
	overflow: hidden;
	color: var(--mist);
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.service-tile__stack {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: auto;
	padding-top: 22px;
}

.service-tile__stack span {
	padding: 4px 10px;
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	color: var(--mist);
	font-size: 0.75rem;
}

/* Home "Success stories": a sideways showcase of poster cards. */
.section-intro {
	max-width: 36em;
	margin-top: 14px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.5;
}

/* The track runs edge to edge but snaps cards to the content column. */
.showcase {
	--edge: max(var(--gutter), (100% - var(--wrap)) / 2);
	--card: clamp(272px, 80vw, 430px);
}

.showcase__track {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: clamp(14px, 1.6vw, 22px);
	margin: 0;
	padding: 8px var(--edge) 28px;
	overflow-x: auto;
	scroll-padding-inline: var(--edge);
	scroll-snap-type: x mandatory;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	list-style: none;
	-webkit-overflow-scrolling: touch;
}

.showcase__track::-webkit-scrollbar {
	display: none;
}

.showcase__track:focus-visible {
	outline: 2px solid var(--spark);
	outline-offset: -2px;
}

/* While dragged with a mouse, snapping waits until release. */
.showcase__track.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.showcase__item {
	--offset: 0;
	/* Distance from focus (0–1) and a clamped offset (−1–1) for the parallax. */
	--dist: min(1, max(var(--offset), -1 * var(--offset)));
	--near: clamp(-1, var(--offset), 1);
	flex: none;
	width: var(--card);
	scroll-snap-align: start;
}

/* Cards slide in from the right, one after another, on first view. The card
   moves, not the list item, so the snap points stay put. */
.showcase.is-waiting:not(.is-in) .poster-card {
	opacity: 0;
	translate: 60px 0;
}

.showcase.is-in .poster-card {
	animation: poster-in 0.9s var(--ease-out) calc(var(--i) * 90ms) both;
}

@keyframes poster-in {
	from {
		opacity: 0;
		translate: 60px 0;
	}
}

/* The poster. Dark in both themes, like a photograph. main.js sets --offset
   (cards from the snap point), so cards away from it settle back. */
.poster-card {
	--frost: #eaf1fa;
	--mist: #b9c7da;
	--spark: #8cc4ff;
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 28px;
	background: color-mix(in oklab, var(--accent, #4c8ddb) 45%, #061426);
	box-shadow: 0 34px 60px -34px rgb(0 0 0 / 0.7);
	color: var(--frost);
	text-decoration: none;
	isolation: isolate;
	transform: scale(calc(1 - var(--dist) * 0.05));
	filter: brightness(calc(1 - var(--dist) * 0.2));
	transition: transform 0.25s linear, filter 0.25s linear, box-shadow 0.5s var(--ease-out);
	-webkit-user-drag: none;
	user-select: none;
}

.poster-card img {
	-webkit-user-drag: none;
}

.poster-card:focus-visible {
	outline: 3px solid var(--spark);
	outline-offset: 4px;
}

/* The project's own image, blurred, as ambience; darkened at the foot for the text. */
.poster-card__ambient {
	position: absolute;
	inset: -14%;
	z-index: -2;
}

.poster-card__ambient img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(34px) saturate(1.5) brightness(0.75);
	transform: translateX(calc(var(--near) * 24px));
}

.poster-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgb(6 20 38 / 0.35) 0%, transparent 22%, transparent 42%, rgb(6 20 38 / 0.9) 74%, rgb(6 20 38 / 0.96) 100%);
}

.poster-card__top {
	position: absolute;
	top: 18px;
	right: 18px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.poster-card__type {
	padding: 5px 12px;
	border: 1px solid rgb(255 255 255 / 0.18);
	border-radius: 999px;
	background: rgb(6 20 38 / 0.35);
	font-size: 0.75rem;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* The mockup, sharp, drifting against the card as it moves (parallax). */
.poster-card__shot {
	position: absolute;
	top: 12%;
	right: 6%;
	left: 6%;
	height: 50%;
	transform: translateX(calc(var(--near) * -22px));
	transition: transform 0.25s linear;
}

.poster-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border-radius: 14px;
	object-fit: cover;
	transition: scale 0.7s var(--ease-out), translate 0.7s var(--ease-out);
}

.poster-card__img.poster-card__img--contain {
	border-radius: 0;
	object-fit: contain;
	filter: drop-shadow(0 22px 26px rgb(0 0 0 / 0.5));
}

.poster-card__img.poster-card__img--top {
	object-position: top;
}

.poster-card__img.poster-card__img--frame {
	top: 50%;
	left: 50%;
	width: 100%;
	height: auto;
	max-height: 100%;
	border: 1px solid rgb(255 255 255 / 0.16);
	box-shadow: 0 26px 46px -20px rgb(0 0 0 / 0.75);
	translate: -50% -50%;
}

.poster-card:hover .poster-card__img--contain,
.poster-card:hover .poster-card__img--top,
.poster-card:hover .poster-card__img:not([class*="--"]) {
	scale: 1.05;
	translate: 0 -6px;
}

.poster-card:hover .poster-card__img--frame {
	scale: 1.05;
	translate: -50% calc(-50% - 6px);
}

.poster-card__body {
	position: absolute;
	right: 22px;
	bottom: 22px;
	left: 22px;
	display: grid;
	justify-items: start;
	gap: 8px;
}

/* Used by the last card ("Portfolio"). */
.poster-card__category {
	color: var(--spark);
	font-size: 0.8125rem;
	font-weight: 500;
}

.poster-card__name {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.02em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.poster-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid rgb(255 255 255 / 0.14);
	color: var(--mist);
	font-size: var(--step--1);
}

/* ↗ in a circle; it fills and turns to point ahead on hover. */
.poster-card__arrow {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1px solid rgb(255 255 255 / 0.25);
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%) 12px 12px / 16px 16px no-repeat;
	transition: background-color 0.3s, border-color 0.3s, color 0.3s, rotate 0.45s var(--ease-out);
}

.poster-card__arrow::before {
	content: "";
	position: absolute;
	top: 12px;
	right: 12px;
	width: 8px;
	height: 8px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
}

.poster-card:hover .poster-card__arrow,
.poster-card:focus-visible .poster-card__arrow {
	border-color: #4c8ddb;
	background-color: #4c8ddb;
	color: #061426;
	rotate: 45deg;
}

.poster-card:hover .poster-card__cta {
	color: var(--frost);
}

/* Last card: on to the whole portfolio, around the Opream mark. */
.poster-card--all {
	background:
		radial-gradient(70% 60% at 50% 34%, rgb(76 141 219 / 0.45), transparent 70%),
		linear-gradient(160deg, #10294b, #061426);
}

.poster-card__mark {
	position: absolute;
	top: 14%;
	left: 50%;
	width: 54%;
	color: #4c8ddb;
	translate: -50% 0;
	animation: ring-orbit 60s linear infinite;
}

/* Count, progress and arrows under the track. */
.showcase__controls {
	display: flex;
	align-items: center;
	gap: 18px;
}

.showcase__count {
	color: var(--mist);
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 0.875rem;
	font-variant-numeric: tabular-nums;
}

.showcase__count span {
	color: var(--frost);
}

.showcase__bar {
	flex: 1;
	height: 2px;
	overflow: hidden;
	border-radius: 2px;
	background: var(--rim-soft);
}

.showcase__bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--opream), var(--spark));
	transform: scaleX(0.05);
	transform-origin: left;
	transition: transform 0.2s linear;
}

.showcase__btn {
	position: relative;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--rim);
	border-radius: 50%;
	background: var(--glass);
	color: var(--frost);
	cursor: pointer;
	transition: border-color 0.2s, background-color 0.2s, opacity 0.2s;
}

/* Chevron drawn with two borders; the previous button mirrors it. */
.showcase__btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-top: 2px solid currentColor;
	border-right: 2px solid currentColor;
	translate: -70% -50%;
	rotate: 45deg;
}

.showcase__btn--prev::before {
	translate: -30% -50%;
	rotate: -135deg;
}

.showcase__btn:hover:not(:disabled) {
	border-color: var(--opream);
	background: color-mix(in oklab, var(--opream) 18%, transparent);
}

.showcase__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.filter {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	background: transparent;
	color: var(--mist);
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.filter:hover {
	color: var(--frost);
	border-color: var(--mist);
}

.prose ul > li {
	position: relative;
	padding-left: 22px;
}

.prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.68em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--opream);
}

/* Services page: a sticky list beside numbered cards. */
.services-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
	align-items: start;
	gap: clamp(32px, 5vw, 80px);
}

.services-nav {
	position: sticky;
	top: calc(var(--header-h) + 32px);
}

.services-nav__list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--rim-soft);
}

.services-nav__list a {
	display: flex;
	gap: 14px;
	margin-left: -1px;
	padding: 11px 0 11px 20px;
	border-left: 2px solid transparent;
	color: var(--mist);
	font-family: var(--font-display);
	font-size: 0.9375rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color 0.2s, border-color 0.3s;
}

.services-nav__list a:hover {
	color: var(--frost);
}

.services-nav__list a[aria-current="true"] {
	border-left-color: var(--opream);
	color: var(--frost);
}

.services-nav__num {
	flex: none;
	color: var(--mist);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-variant-numeric: tabular-nums;
	opacity: 0.7;
}

.services-nav__list a[aria-current="true"] .services-nav__num {
	color: var(--spark);
	opacity: 1;
}

.services-nav__help {
	margin-top: 32px;
	padding: 24px;
	border: 1px solid var(--rim-soft);
	border-radius: 20px;
	background: var(--deep);
	color: var(--mist);
	font-size: var(--step--1);
	line-height: 1.6;
}

.services-nav__help .button {
	margin-top: 18px;
}

.services-list {
	display: grid;
	gap: 24px;
}

.service-card {
	position: relative;
	padding: clamp(28px, 4vw, 56px);
	overflow: hidden;
	border: 1px solid var(--rim-soft);
	border-radius: 28px;
	background:
		radial-gradient(80% 120% at 100% 0%, color-mix(in oklab, var(--opream) 14%, transparent), transparent 60%),
		var(--deep);
	scroll-margin-top: calc(var(--header-h) + 24px);
}

/* The service's number, large and outlined in the corner. */
.service-card__num {
	position: absolute;
	top: clamp(12px, 2vw, 24px);
	right: clamp(20px, 3vw, 40px);
	color: transparent;
	font-family: var(--font-display);
	font-size: clamp(4rem, 3rem + 4vw, 7.5rem);
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.04em;
	-webkit-text-stroke: 1px color-mix(in oklab, var(--opream) 45%, transparent);
	pointer-events: none;
}

.service-card__title {
	max-width: 16ch;
	padding-right: 120px;
	font-size: var(--step-4);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.03em;
}

.service-card__text {
	max-width: 40em;
	margin-top: 18px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.55;
}

.service-card__label {
	margin-top: clamp(28px, 3.5vw, 40px);
	color: var(--spark);
	font-family: var(--font-body);
	font-size: var(--step--1);
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.service-card__deliver {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.service-card__deliver li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 1px solid var(--rim-soft);
	border-radius: 16px;
	background: color-mix(in oklab, var(--night) 55%, transparent);
	line-height: 1.4;
}

/* Tick drawn in CSS: a rotated corner inside a soft blue disc. */
.service-card__deliver li::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background:
		linear-gradient(var(--spark), var(--spark)) 7px 12px / 5px 2px no-repeat,
		linear-gradient(var(--spark), var(--spark)) 10px 7px / 2px 7px no-repeat,
		color-mix(in oklab, var(--opream) 22%, transparent);
	rotate: 40deg;
}

.service-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: clamp(28px, 3.5vw, 40px);
	padding-top: 24px;
	border-top: 1px solid var(--rim-soft);
}

.service-card__foot .text-link {
	margin-left: auto;
}

.service-card__stack {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.service-card__stack li {
	padding: 6px 14px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	font-size: var(--step--1);
}

/* Generated posters take their colours from the theme. */
.poster__bg {
	fill: var(--deep);
}

.poster__grid {
	fill: var(--rim);
}

:root[data-theme="light"] .poster__dots {
	fill: var(--opream);
}

/* Single project/product media: glass like the cards, the mockup lit by a
   glow in the project's colour. */
.work-single__media {
	position: relative;
	isolation: isolate;
	background:
		radial-gradient(45% 55% at 50% 50%, color-mix(in oklab, var(--accent, var(--opream)) 30%, transparent), transparent 75%),
		linear-gradient(150deg, var(--glass-strong) 0%, var(--glass) 55%);
	box-shadow: inset 0 1px 0 var(--glass-highlight);
}

/* Doubled classes so the modifiers win over the base image rules defined later. */
.work-single__img.work-single__img--contain {
	object-fit: contain;
	padding: 5% 7%;
	filter: drop-shadow(0 24px 32px var(--mockup-shadow));
}

.work-single__img.work-single__img--top {
	object-position: top;
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.filter[aria-pressed="true"] {
	background: var(--frost);
	border-color: var(--frost);
	color: var(--night);
}

.filter-count {
	min-height: 1.6em;
	margin-bottom: 28px;
	color: var(--mist);
	font-size: var(--step--1);
}

/* Portfolio project cards
   ========================================================================== */

/* Faint coloured lights behind the grid, for the glass cards to blur. */
.project-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 36px);
	background:
		radial-gradient(38% 26% at 12% 8%, color-mix(in oklab, var(--opream) 22%, transparent), transparent 70%),
		radial-gradient(34% 22% at 88% 40%, rgb(124 92 255 / 0.13), transparent 70%),
		radial-gradient(40% 26% at 30% 82%, rgb(64 196 222 / 0.1), transparent 70%);
}

/* Each project is one frosted glass panel: the mockup floats on it with no
   canvas behind, lit by a soft glow in the project's own colour. */
.project-card {
	position: relative;
	display: grid;
	align-content: start;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	border-radius: 28px;
	background: linear-gradient(150deg, var(--glass-strong) 0%, var(--glass) 55%);
	box-shadow:
		inset 0 1px 0 var(--glass-highlight),
		0 30px 60px -36px var(--shadow);
	-webkit-backdrop-filter: blur(22px) saturate(150%);
	backdrop-filter: blur(22px) saturate(150%);
	/* main.js tilts the card toward the pointer through --rx / --ry. */
	transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
	transition:
		opacity 0.9s var(--ease-out) var(--delay, 0ms),
		translate 0.9s var(--ease-out) var(--delay, 0ms),
		scale 0.9s var(--ease-out) var(--delay, 0ms),
		border-color 0.4s,
		transform 0.5s var(--ease-out),
		box-shadow 0.5s var(--ease-out);
}

/* Revealed as they scroll into view (main.js adds is-waiting, then is-in). */
.project-card.is-waiting:not(.is-in) {
	opacity: 0;
	translate: 0 48px;
	scale: 0.97;
}

/* Cards shown again by a filter come back in turn. */
.project-card.is-entering {
	animation: card-in 0.6s var(--ease-out) var(--delay, 0ms) both;
}

@keyframes card-in {
	from {
		opacity: 0;
		translate: 0 24px;
		scale: 0.98;
	}
}

/* Light that follows the pointer across the glass. */
.project-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--accent, var(--opream)) 22%, transparent), transparent 62%);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s;
}

.project-card:hover::before {
	opacity: 1;
}

/* A sheen that crosses the glass on hover. */
.project-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / 0.07) 50%, transparent 65%);
	translate: -100% 0;
	pointer-events: none;
	transition: translate 1.1s var(--ease-out);
}

.project-card:hover {
	--lift: -6px;
	border-color: color-mix(in oklab, var(--accent, var(--opream)) 45%, var(--glass-border));
	box-shadow:
		inset 0 1px 0 var(--glass-highlight),
		0 40px 70px -36px var(--shadow);
}

.project-card:hover::after {
	translate: 100% 0;
}

.project-card[hidden] {
	display: none;
}

/* Featured project: stage and story side by side, across the full width. */
.project-card.is-wide {
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: center;
}

.project-card__stage {
	position: relative;
	display: block;
	aspect-ratio: 5 / 4;
	isolation: isolate;
}

.project-card.is-wide .project-card__stage {
	aspect-ratio: 16 / 11;
}

/* The project's colour, glowing behind the mockup. */
.project-card__stage::before {
	content: "";
	position: absolute;
	inset: 18% 14%;
	z-index: 0;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in oklab, var(--accent, var(--opream)) 55%, transparent), transparent);
	filter: blur(30px);
	opacity: 0.55;
	translate: calc((var(--mx, 50%) - 50%) * 0.3) calc((var(--my, 30%) - 30%) * 0.3);
	animation: glow-breathe 8s ease-in-out infinite alternate;
	transition: opacity 0.6s, scale 0.8s var(--ease-out), translate 0.6s var(--ease-out);
}

.project-card:hover .project-card__stage::before {
	opacity: 0.85;
	scale: 1.1;
}

@keyframes glow-breathe {
	from {
		transform: scale(0.92);
	}

	to {
		transform: scale(1.08);
	}
}

.project-card__img {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 0.8s var(--ease-out);
}

/* Trimmed mockups float in a centred box. */
.project-card__img--contain {
	top: 8%;
	left: 8%;
	width: 84%;
	height: 84%;
	object-fit: contain;
	filter: drop-shadow(0 24px 30px var(--mockup-shadow));
}

.project-card__img--top {
	object-position: top;
}

/* Finished scenes (opaque, landscape) are kept whole, inset with a glass rim. */
.project-card__img.project-card__img--frame {
	top: 50%;
	left: 50%;
	width: 86%;
	height: auto;
	max-height: 84%;
	border: 1px solid var(--glass-border);
	border-radius: 16px;
	box-shadow: 0 28px 48px -22px var(--mockup-shadow);
	translate: -50% -50%;
}

.project-card:hover .project-card__img {
	scale: 1.035;
}

/* Mockups drift up and down, each card out of step with its neighbours. */
.project-card__img--contain,
.project-card__img--frame {
	animation: mockup-float 7s ease-in-out infinite alternate;
}

.project-card:nth-child(3n + 2) .project-card__img {
	animation-delay: -2.4s;
}

.project-card:nth-child(3n) .project-card__img {
	animation-delay: -4.8s;
}

@keyframes mockup-float {
	from {
		transform: translateY(5px);
	}

	to {
		transform: translateY(-9px);
	}
}

.project-card__body {
	position: relative;
	z-index: 1;
	padding: 4px clamp(22px, 2.6vw, 32px) clamp(24px, 2.8vw, 34px);
}

.project-card.is-wide .project-card__body {
	padding: clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) clamp(28px, 3.4vw, 48px) 0;
}

.project-card__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
}

.project-card__title {
	font-size: var(--step-3);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.is-wide .project-card__title {
	font-size: var(--step-4);
}

.project-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.project-card__title a:hover {
	color: var(--spark);
}

.project-card__type {
	flex: none;
	padding: 4px 12px;
	border: 1px solid var(--glass-border);
	border-radius: 999px;
	background: var(--glass-strong);
	color: var(--mist);
	font-size: var(--step--1);
}

.project-card__services {
	margin-top: 10px;
	color: var(--spark);
	font-size: var(--step--1);
	font-weight: 500;
}

.project-card__summary {
	display: -webkit-box;
	max-width: 58ch;
	margin-top: 12px;
	overflow: hidden;
	color: var(--mist);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.is-wide .project-card__summary {
	-webkit-line-clamp: 4;
}

.project-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 28px;
	margin-top: 22px;
}

.project-card__visit {
	color: var(--mist);
	font-size: var(--step--1);
	text-decoration: underline;
	text-decoration-color: var(--rim);
	text-underline-offset: 5px;
	transition: color 0.2s, text-decoration-color 0.2s;
}

.project-card__visit:hover {
	color: var(--frost);
	text-decoration-color: currentColor;
}

.filter__count {
	margin-left: 8px;
	color: color-mix(in srgb, currentColor 60%, transparent);
	font-size: 0.8125rem;
}

@media (max-width: 760px) {
	.project-grid {
		grid-template-columns: 1fr;
	}

	.project-card.is-wide {
		grid-template-columns: 1fr;
	}

	.project-card.is-wide .project-card__body {
		padding: 4px 22px 24px;
	}

	.is-wide .project-card__title {
		font-size: var(--step-3);
	}
}

/* Process steps — a real sequence, numbered and joined by a dotted line
   ========================================================================== */

.steps {
	counter-reset: step;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin-top: clamp(32px, 5vw, 56px);
}

.step {
	position: relative;
	padding-top: 60px;
	counter-increment: step;
}

.step::before {
	content: counter(step);
	position: absolute;
	top: 0;
	left: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--opream);
	border-radius: 50%;
	color: var(--spark);
	font-family: var(--font-display);
	font-size: 0.9375rem;
}

.step::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 52px;
	right: -18px;
	border-top: 2px dotted var(--rim);
}

.step:last-child::after {
	display: none;
}

.step__title {
	margin-bottom: 10px;
	font-size: var(--step-1);
}

.step p {
	color: var(--mist);
}

/* Team
   ========================================================================== */

.team-teaser {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: 48px;
}

.team-teaser__links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-top: 28px;
}

/* Honeycomb: every second column drops by half an avatar. */
.avatar-cloud {
	--cols: 7;
	display: grid;
	grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
	gap: 12px;
	padding-bottom: 7%;
}

.avatar-cloud .avatar:nth-child(7n + 2),
.avatar-cloud .avatar:nth-child(7n + 4),
.avatar-cloud .avatar:nth-child(7n + 6) {
	transform: translateY(50%);
}

.avatar {
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: var(--deep);
}

.avatar__img,
.avatar__ring {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.avatar__ring .on {
	fill: var(--opream);
}

.avatar__ring .off {
	fill: var(--rim);
}

.avatar__ring text {
	fill: var(--frost);
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.avatar--large {
	width: 104px;
	height: 104px;
	margin-bottom: 18px;
}

.team-group + .team-group {
	margin-top: clamp(56px, 7vw, 88px);
}

.team-group__title {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 36px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--rim-soft);
	font-size: var(--step-2);
	font-weight: 400;
}

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 44px 24px;
}

.member {
	scroll-margin-top: calc(var(--header-h) + 32px);
}

.member:target .avatar {
	outline: 2px solid var(--spark);
	outline-offset: 4px;
}

.member__name {
	font-size: var(--step-0);
	font-weight: 500;
	letter-spacing: -0.01em;
}

.member__role {
	margin-top: 4px;
	color: var(--mist);
	font-size: var(--step--1);
}

.member__link {
	display: inline-block;
	margin-top: 8px;
	color: var(--spark);
	font-size: var(--step--1);
}

/* About page
   ========================================================================== */

/* A dark frame (in both themes) on a faint engineering grid: the copy beside
   the animated mark. */
.about-hero {
	padding: clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px) 0;
}

.about-hero__frame {
	--frost: #eaf1fa;
	--mist: #b9c7da;
	--spark: #8cc4ff;
	--opream: #4c8ddb;
	--on-accent: #061426;
	--rim: rgb(255 255 255 / 0.18);
	position: relative;
	overflow: hidden;
	border: 1px solid rgb(140 196 255 / 0.14);
	border-radius: clamp(20px, 2.4vw, 32px);
	background:
		radial-gradient(55% 75% at 78% 42%, rgb(76 141 219 / 0.24), transparent 70%),
		linear-gradient(180deg, #0b1f3a 0%, #061426 100%);
	color: var(--frost);
	color-scheme: dark;
	isolation: isolate;
}

.about-hero__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgb(140 196 255 / 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgb(140 196 255 / 0.07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(65% 85% at 76% 42%, #000 15%, transparent 75%);
	mask-image: radial-gradient(65% 85% at 76% 42%, #000 15%, transparent 75%);
	pointer-events: none;
}

.about-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
	padding-block: clamp(56px, 7vw, 104px);
}

.about-hero__copy > * {
	animation: rise 0.9s var(--ease-out) both;
}

.about-hero__copy > :nth-child(2) {
	animation-delay: 0.08s;
}

.about-hero__copy > :nth-child(n + 3) {
	animation-delay: 0.16s;
}

.about-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	background: rgb(255 255 255 / 0.05);
	font-size: var(--step--1);
	letter-spacing: 0.02em;
}

.about-hero__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--spark);
	box-shadow: 0 0 0 4px rgb(140 196 255 / 0.22);
}

.about-hero__title {
	max-width: 17ch;
	margin-top: 28px;
	font-size: clamp(2.375rem, 1.2rem + 3.6vw, 4.25rem);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.04em;
}

.about-hero__intro {
	max-width: 36em;
	margin-top: 24px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.55;
}

.about-hero__intro > * + * {
	margin-top: 1em;
}

.about-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

@keyframes rise {
	from {
		opacity: 0;
		translate: 0 18px;
	}
}

.about-hero__visual {
	justify-self: center;
	width: 100%;
	max-width: 500px;
	aspect-ratio: 1;
}

/* The mark: rings and orbit turn, and a light passes from unit to unit. */
.emblem {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.emblem__ring {
	fill: none;
	stroke: rgb(140 196 255 / 0.28);
	stroke-width: 1;
}

.emblem__ring--outer {
	stroke-dasharray: 2 9;
}

.emblem__ring--outer,
.emblem__orbit,
.emblem__mark {
	transform-box: view-box;
	transform-origin: 0 0;
	animation: ring-orbit 70s linear infinite;
}

.emblem__orbit {
	fill: var(--spark);
	animation-duration: 40s;
}

.emblem__mark {
	filter: drop-shadow(0 0 28px rgb(76 141 219 / 0.5));
	animation-duration: 140s;
	animation-direction: reverse;
}

.emblem__unit {
	color: #4c8ddb;
	animation: unit-glow 8s calc(var(--n) * 1s) ease-in-out infinite;
}

@keyframes unit-glow {
	0%,
	30%,
	100% {
		color: #4c8ddb;
	}

	12% {
		color: #cfe6ff;
	}
}

/* Follows the hero directly, so it needs little extra space on top. */
.about-story {
	padding-top: clamp(8px, 2vw, 24px);
}

.about-story__row {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: 20px clamp(32px, 6vw, 96px);
	padding-block: clamp(32px, 4vw, 56px);
	border-top: 1px solid var(--rim-soft);
}

.about-story__row:last-child {
	border-bottom: 1px solid var(--rim-soft);
}

.about-story__title {
	font-size: var(--step-3);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.about-story__text {
	font-size: var(--step-1);
	line-height: 1.6;
}

/* Mission: the one loud moment on the page. */
.about-mission {
	position: relative;
	overflow: hidden;
	padding-block: clamp(80px, 12vw, 160px);
	border-block: 1px solid var(--rim-soft);
	background: var(--deep);
}

.about-mission__inner {
	position: relative;
	z-index: 1;
}

.about-mission__title {
	margin-bottom: 28px;
	color: var(--spark);
	font-family: var(--font-body);
	font-size: var(--step-0);
	font-weight: 500;
	letter-spacing: 0;
}

.about-mission__text {
	max-width: 24ch;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 0.9rem + 3.4vw, 3.5rem);
	font-weight: 300;
	line-height: 1.18;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.about-mission__text > * + * {
	margin-top: 0.6em;
}

.about-mission__ring {
	position: absolute;
	top: 50%;
	right: -12%;
	width: min(70vw, 760px);
	opacity: 0.35;
	transform: translateY(-50%);
	pointer-events: none;
}

.about-values__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	margin-top: clamp(32px, 5vw, 56px);
}

/* Leadership: one card per leader, photo and name side by side, bio below. */
.leadership__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(32px, 5vw, 56px);
}

.leader {
	display: grid;
	align-content: start;
	gap: 28px;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--rim-soft);
	border-radius: 20px;
	background: var(--deep);
}

.leader__head {
	display: grid;
	grid-template-columns: minmax(120px, 200px) minmax(0, 1fr);
	align-items: center;
	gap: 28px;
}

.leader__photo {
	margin: 0;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: 14px;
	background: var(--raise);
}

.leader__photo img,
.leader__photo svg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top;
}

.leader__role {
	margin-bottom: 8px;
	color: var(--spark);
	font-size: var(--step--1);
	font-weight: 500;
}

.leader__name {
	font-size: var(--step-3);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.leader__link {
	display: inline-block;
	margin-top: 14px;
	font-size: var(--step--1);
}

.leader__bio {
	max-width: 60ch;
	color: var(--mist);
	line-height: 1.65;
}

@media (max-width: 960px) {
	.leadership__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.leader__head {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 18px;
	}
}

@media (max-width: 1080px) {
	.about-values__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	.about-story__row {
		grid-template-columns: 1fr;
	}

	.about-hero__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-hero__visual {
		grid-row: 1;
		max-width: min(70vw, 320px);
	}

	.about-mission__ring {
		right: -40%;
		width: 110vw;
		opacity: 0.25;
	}
}

@media (max-width: 640px) {
	.about-values__list {
		grid-template-columns: 1fr;
	}
}

/* Careers
   ========================================================================== */

.job-filters {
	display: grid;
	grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 20px;
}

.job-list {
	border-top: 1px solid var(--rim-soft);
}

.job[hidden] {
	display: none;
}

.job__link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"title cta"
		"meta cta";
	align-items: center;
	gap: 12px 32px;
	padding: 28px 0;
	border-bottom: 1px solid var(--rim-soft);
	color: inherit;
	text-decoration: none;
}

.job__title {
	grid-area: title;
	font-size: var(--step-2);
	font-weight: 400;
	transition: color 0.2s;
}

.job__meta {
	grid-area: meta;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.job__meta li {
	padding: 2px 12px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	color: var(--mist);
	font-size: var(--step--1);
}

.job__cta {
	grid-area: cta;
	color: var(--spark);
	font-weight: 500;
}

.job__link:hover .job__title {
	color: var(--spark);
}

.open-application {
	max-width: 60ch;
	margin-top: 48px;
	color: var(--mist);
}

.open-application a {
	color: var(--spark);
}

/* Detail pages
   ========================================================================== */

.work-single__header {
	padding-block: clamp(40px, 7vw, 88px) clamp(32px, 4vw, 48px);
}

.work-single__title {
	max-width: 20ch;
	font-size: var(--step-5);
	font-weight: 300;
	letter-spacing: -0.04em;
	line-height: 1.05;
}

.work-single__intro {
	max-width: 36em;
	margin-top: 20px;
	color: var(--mist);
	font-size: var(--step-1);
}

.work-single__media {
	margin: 0;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border: 1px solid var(--glass-border);
	border-radius: 28px;
}

.work-single__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.work-single__body {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
	gap: clamp(32px, 6vw, 96px);
	padding-block: clamp(48px, 7vw, 96px);
}

.work-single__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 28px;
}

.work-single__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.work-single__body > .prose {
	font-size: var(--step-1);
	line-height: 1.6;
}

.facts {
	display: grid;
	width: 100%;
	margin: 0;
}

.facts__row {
	display: grid;
	gap: 4px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rim-soft);
}

.facts__row:first-child {
	border-top: 1px solid var(--rim-soft);
}

.facts dt {
	color: var(--mist);
	font-size: var(--step--1);
}

.facts dd {
	margin: 0;
}

.facts dd a {
	text-decoration-color: var(--rim);
	text-underline-offset: 4px;
}

.facts--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 48px;
	margin-top: 32px;
}

.facts--inline .facts__row {
	padding: 0;
	border: 0;
}

.pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding-top: 32px;
	padding-bottom: var(--section);
	border-top: 1px solid var(--rim-soft);
}

.pager__link {
	display: grid;
	gap: 6px;
	text-decoration: none;
}

.pager__link--next {
	grid-column: 2;
	text-align: right;
}

.pager__label {
	color: var(--mist);
	font-size: var(--step--1);
}

.pager__title {
	font-family: var(--font-display);
	font-size: var(--step-2);
	letter-spacing: -0.02em;
	transition: color 0.2s;
}

.pager__link:hover .pager__title {
	color: var(--spark);
}

.job-single__body {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	align-items: start;
	gap: clamp(40px, 6vw, 88px);
	padding-bottom: var(--section);
}

.apply {
	padding: clamp(24px, 3vw, 36px);
	border: 1px solid var(--rim-soft);
	border-radius: 20px;
	background: var(--deep);
}

.apply__title {
	margin-bottom: 24px;
	font-size: var(--step-2);
	font-weight: 400;
}

.apply input,
.apply select,
.apply textarea {
	background: var(--night);
}

/* Long-form content from the editor
   ========================================================================== */

.prose {
	max-width: 68ch;
	color: color-mix(in srgb, var(--frost) 88%, var(--mist));
}

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

.prose h2 {
	margin-top: 1.8em;
	color: var(--frost);
	font-size: var(--step-3);
	font-weight: 400;
	letter-spacing: -0.03em;
}

.prose h3 {
	margin-top: 1.6em;
	color: var(--frost);
	font-size: var(--step-1);
}

.prose h2 + *,
.prose h3 + * {
	margin-top: 0.6em;
}

.prose ol {
	padding-left: 1.4em;
	list-style: decimal;
}

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

/* Product feature lists read as two columns on wider screens. */
@media (min-width: 761px) {
	.single-op_product .prose ul {
		columns: 2;
		column-gap: 40px;
	}

	.single-op_product .prose ul > li {
		break-inside: avoid;
		margin: 0 0 0.5em;
	}
}

.prose a {
	color: var(--spark);
	text-underline-offset: 4px;
}

.prose strong {
	color: var(--frost);
	font-weight: 600;
}

.prose img {
	border-radius: 12px;
}

.prose blockquote {
	margin-inline: 0;
	padding-left: 24px;
	border-left: 2px solid var(--opream);
	color: var(--frost);
	font-family: var(--font-display);
	font-size: var(--step-2);
	font-weight: 300;
	line-height: 1.4;
}

.prose--wide {
	max-width: none;
	padding-block: clamp(32px, 5vw, 64px) var(--section);
}

.prose--wide > p {
	max-width: 68ch;
}

.prose .wp-block-gallery {
	margin-top: 2em;
}

/* Event clips are mostly filmed upright: keep them phone-sized and centred. */
.prose .wp-block-video {
	margin-top: 2em;
}

.prose .wp-block-video video {
	width: auto;
	max-height: min(80vh, 720px);
	margin-inline: auto;
	border-radius: 18px;
	background: #000;
}

[data-gallery] img {
	cursor: zoom-in;
}

/* Forms
   ========================================================================== */

.form {
	display: grid;
	gap: 20px;
}

.form--two-col {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.field--full {
	grid-column: 1 / -1;
}

.field__label {
	color: var(--mist);
	font-size: var(--step--1);
	font-weight: 500;
}

.field__optional {
	color: color-mix(in srgb, var(--mist) 70%, var(--night));
	font-weight: 400;
}

.field__hint {
	color: var(--mist);
	font-size: var(--step--1);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid var(--rim);
	border-radius: 10px;
	background: var(--deep);
	color: var(--frost);
	transition: border-color 0.2s, box-shadow 0.2s;
}

textarea {
	min-height: 140px;
	resize: vertical;
}

select {
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2394A9C6' stroke-width='1.5' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	-webkit-appearance: none;
	appearance: none;
}

input::placeholder,
textarea::placeholder {
	color: color-mix(in srgb, var(--mist) 65%, var(--night));
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--opream);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--opream) 25%, transparent);
	outline: none;
}

input[type="file"] {
	width: 100%;
	padding: 10px;
	border: 1px dashed var(--rim);
	border-radius: 10px;
	background: var(--night);
	color: var(--mist);
	font-size: var(--step--1);
}

input[type="file"]::file-selector-button {
	margin-right: 14px;
	padding: 8px 16px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	background: var(--raise);
	color: var(--frost);
	font: inherit;
	cursor: pointer;
}

.form__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.form__privacy {
	color: var(--mist);
	font-size: var(--step--1);
}

.hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-notice {
	margin-bottom: 24px;
	padding: 16px 18px;
	border: 1px solid;
	border-radius: 12px;
}

.form-notice:focus {
	outline: none;
}

.form-notice--success {
	border-color: color-mix(in srgb, var(--success) 45%, transparent);
	background: color-mix(in srgb, var(--success) 9%, transparent);
	color: var(--success);
}

.form-notice--error {
	border-color: color-mix(in srgb, var(--danger) 45%, transparent);
	background: color-mix(in srgb, var(--danger) 9%, transparent);
	color: var(--danger);
}

/* Contact
   ========================================================================== */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	align-items: start;
	gap: clamp(40px, 6vw, 96px);
	padding-bottom: var(--section);
}

.contact__form > .prose {
	margin-bottom: 32px;
}

.contact__details {
	display: grid;
	gap: 28px;
}

.contact__jobs {
	color: var(--mist);
	font-size: var(--step--1);
}

.contact__jobs a {
	color: var(--spark);
}

.social-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.social-links a {
	color: var(--mist);
	text-decoration: none;
	transition: color 0.2s;
}

.social-links a:hover {
	color: var(--frost);
}

/* Activities
   ========================================================================== */

.activity-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px 28px;
}

.activity__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.activity__media {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 16px;
	background: var(--deep);
}

.activity__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease-out);
}

.activity__link:hover .activity__img {
	transform: scale(1.035);
}

.activity__title {
	margin-top: 16px;
	font-size: var(--step-1);
	font-weight: 500;
}

.activity__date {
	margin-top: 4px;
	color: var(--mist);
	font-size: var(--step--1);
}

/* Page header, empty states, misc
   ========================================================================== */

.page-header {
	position: relative;
	overflow: hidden;
	padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px);
}

.page-header__inner {
	position: relative;
	z-index: 1;
}

.page-header__title {
	max-width: 16ch;
	font-size: var(--step-5);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.page-header__intro {
	max-width: 36em;
	margin-top: 24px;
	color: var(--mist);
	font-size: var(--step-1);
	line-height: 1.55;
}

.page-header__mark {
	position: absolute;
	top: -80px;
	right: -110px;
	width: min(46vw, 440px);
	color: var(--opream);
	opacity: 0.1;
	pointer-events: none;
}

.empty {
	display: grid;
	justify-items: start;
	gap: 20px;
	max-width: 720px;
	padding: clamp(32px, 6vw, 64px);
	border: 1px dashed var(--rim);
	border-radius: 20px;
}

.empty p {
	color: var(--mist);
	font-size: var(--step-1);
}

.not-found__links {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	padding-bottom: var(--section);
}

.post-list {
	border-top: 1px solid var(--rim-soft);
}

.post-list__link {
	display: grid;
	gap: 8px;
	padding: 28px 0;
	border-bottom: 1px solid var(--rim-soft);
	text-decoration: none;
}

.post-list__title {
	font-size: var(--step-2);
	font-weight: 400;
}

.post-list__excerpt,
.post-list__date {
	color: var(--mist);
}

.post-list__date {
	font-size: var(--step--1);
}

/* Closing call to action
   ========================================================================== */

.cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(80px, 11vw, 136px);
	border-top: 1px solid var(--rim-soft);
	background: var(--deep);
}

.cta__inner {
	position: relative;
	z-index: 1;
}

.cta__title {
	max-width: 16ch;
	font-size: var(--step-5);
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.04em;
}

.cta__text {
	max-width: 34em;
	margin-top: 20px;
	color: var(--mist);
	font-size: var(--step-1);
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
	margin-top: 40px;
}

.cta__link {
	padding-bottom: 2px;
	border-bottom: 1px solid var(--rim);
	color: var(--frost);
	text-decoration: none;
	transition: border-color 0.2s;
}

.cta__link:hover {
	border-color: var(--spark);
}

.cta__mark {
	position: absolute;
	top: 50%;
	right: -6%;
	width: min(60vw, 640px);
	color: var(--opream);
	opacity: 0.14;
	transform: translateY(-50%);
	pointer-events: none;
}

/* Footer
   ========================================================================== */

.site-footer {
	padding-top: clamp(56px, 7vw, 88px);
	border-top: 1px solid var(--rim-soft);
}

.cta + .site-footer {
	border-top: 0;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
	gap: 40px;
}

.site-footer__brand p {
	max-width: 32ch;
	margin-top: 16px;
	color: var(--mist);
}

.site-footer__brand .social-links {
	margin-top: 20px;
}

.footer-menu {
	columns: 2;
	column-gap: 32px;
}

.footer-menu li {
	margin-bottom: 12px;
	break-inside: avoid;
}

.footer-menu a {
	color: var(--mist);
	text-decoration: none;
	transition: color 0.2s;
}

.footer-menu a:hover {
	color: var(--frost);
}

.site-footer__contact {
	display: grid;
	align-content: start;
	gap: 12px;
	font-style: normal;
}

.site-footer__contact a {
	color: var(--frost);
	text-decoration: none;
}

.site-footer__contact a:hover {
	color: var(--spark);
}

.site-footer__contact span {
	color: var(--mist);
}

.site-footer__base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px;
	margin-top: clamp(48px, 6vw, 72px);
	padding-block: 24px;
	border-top: 1px solid var(--rim-soft);
	color: var(--mist);
	font-size: var(--step--1);
}

.site-footer__top {
	color: var(--mist);
}

/* Lightbox
   ========================================================================== */

/* The photo viewer stays dark in both themes. */
.lightbox {
	--frost: #eaf1fa;
	--mist: #94a9c6;
	--deep: #0b2140;
	--rim: #1d3d66;
	color-scheme: dark;
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--frost);
}

.lightbox::backdrop {
	background: rgb(3 10 20 / 0.94);
}

.lightbox__figure {
	display: grid;
	place-content: center;
	justify-items: center;
	height: 100%;
	margin: 0;
	padding: 72px;
}

.lightbox__figure img {
	width: auto;
	max-height: calc(100vh - 180px);
	border-radius: 12px;
}

.lightbox__figure figcaption {
	margin-top: 14px;
	color: var(--mist);
	text-align: center;
}

.lightbox__btn {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	border: 1px solid var(--rim);
	border-radius: 50%;
	background: var(--deep);
	cursor: pointer;
	transform: translateY(-50%);
}

.lightbox__btn::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border-top: 1.5px solid var(--frost);
	border-left: 1.5px solid var(--frost);
}

.lightbox__btn--prev {
	left: 16px;
}

.lightbox__btn--prev::before {
	transform: translate(-30%, -50%) rotate(-45deg);
}

.lightbox__btn--next {
	right: 16px;
}

.lightbox__btn--next::before {
	transform: translate(-70%, -50%) rotate(135deg);
}

.lightbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--rim);
	border-radius: 999px;
	background: var(--deep);
	cursor: pointer;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1080px) {
	.service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 48px 32px;
	}

	.step:nth-child(2n)::after {
		display: none;
	}

	.job-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.field--search {
		grid-column: 1 / -1;
	}

	.activity-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 960px) {
	:root {
		--header-h: 68px;
	}

	.nav-toggle {
		display: block;
	}

	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		padding: 24px var(--gutter) 40px;
		overflow-y: auto;
		background: var(--night);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
	}

	.nav-open .site-nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity 0.25s, transform 0.3s var(--ease-out);
	}

	.menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.menu > li {
		flex-wrap: wrap;
		border-bottom: 1px solid var(--rim-soft);
	}

	.menu > li > a {
		flex: 1;
		padding: 18px 0;
		color: var(--frost);
		font-family: var(--font-display);
		font-size: 1.5rem;
		font-weight: 400;
	}

	.submenu-toggle {
		display: none;
	}

	.sub-menu {
		position: static;
		flex-basis: 100%;
		min-width: 0;
		margin: -6px 0 14px;
		padding: 0;
		border: 0;
		background: none;
		box-shadow: none;
		opacity: 1;
		transform: none;
	}

	/* Inherit the panel's visibility: "visible" here would leave these links
	   clickable (though unseen) over the page while the menu is closed. */
	.sub-menu,
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu,
	.menu-item-has-children.is-open > .sub-menu {
		visibility: inherit;
	}

	.sub-menu a {
		padding: 10px 0;
		color: var(--mist);
		font-size: 1.0625rem;
	}

	.sub-menu a:hover {
		background: none;
		color: var(--frost);
	}

	.site-nav__cta {
		align-self: flex-start;
		min-height: 48px;
		padding: 0 26px;
		font-size: 1rem;
	}

	/* One column: the copy, then the scene; no footage on small screens,
	   which also saves phones the download. */
	.hero__frame {
		min-height: 0;
	}

	.hero__video {
		display: none;
	}

	.hero__layout {
		grid-template-columns: minmax(0, 1fr);
		padding-top: 48px;
	}

	/* The panels stack in flow: editor, then the deploy card tucked under its
	   edge, with the platform chip pinned to the editor's top corner. */
	.hero__visual {
		display: grid;
		height: auto;
		padding-top: 16px;
	}

	.hero-editor,
	.hero-deploy {
		position: relative;
		inset: auto;
	}

	.hero-editor {
		width: 100%;
	}

	.hero-deploy {
		justify-self: start;
		width: min(82%, 300px);
		margin-top: -22px;
	}

	.hero-chip {
		top: 0;
		right: 14px;
		bottom: auto;
	}

	.split,
	.team-teaser,
	.contact,
	.work-single__body,
	.job-single__body {
		grid-template-columns: 1fr;
	}

	/* minmax(0, …) so the sideways service bar can't widen the page. */
	.services-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.split__aside {
		position: static;
	}

	/* The list becomes a bar under the header that scrolls sideways. */
	.services-nav {
		top: var(--header-h);
		z-index: 5;
		margin-inline: calc(var(--gutter) * -1);
		padding: 10px var(--gutter);
		background: color-mix(in oklab, var(--night) 88%, transparent);
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	.services-nav__list {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		border-left: 0;
		scrollbar-width: none;
	}

	.services-nav__list::-webkit-scrollbar {
		display: none;
	}

	.services-nav__list a {
		margin: 0;
		padding: 8px 16px;
		border: 1px solid var(--rim);
		border-radius: 999px;
		white-space: nowrap;
	}

	.services-nav__list a[aria-current="true"] {
		border-color: var(--opream);
		background: color-mix(in oklab, var(--opream) 18%, transparent);
	}

	.services-nav__num,
	.services-nav__help {
		display: none;
	}

	.service-card {
		scroll-margin-top: calc(var(--header-h) + 72px);
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 640px) {
	.points,
	.steps,
	.form--two-col,
	.job-filters,
	.activity-grid,
	.service-card__deliver,
	.site-footer__grid,
	.pager {
		grid-template-columns: 1fr;
	}

	.service-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.showcase__btn {
		width: 42px;
		height: 42px;
	}

	.poster-card {
		aspect-ratio: 5 / 7;
	}

	.poster-card__shot {
		top: 11%;
		height: 46%;
	}


	.service-tile {
		min-height: 0;
	}

	.service-tile__title {
		margin-top: 24px;
	}

	.service-card__title {
		padding-right: 64px;
	}

	.step::after {
		display: none;
	}

	.job__link {
		grid-template-columns: 1fr;
		grid-template-areas:
			"title"
			"meta"
			"cta";
	}

	.avatar-cloud {
		--cols: 5;
		padding-bottom: 10%;
	}

	.avatar-cloud .avatar:nth-child(n) {
		transform: none;
	}

	.avatar-cloud .avatar:nth-child(5n + 2),
	.avatar-cloud .avatar:nth-child(5n + 4) {
		transform: translateY(50%);
	}

	.team-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 36px 16px;
	}

	.avatar--large {
		width: 84px;
		height: 84px;
	}

	.pager__link--next {
		grid-column: auto;
		text-align: left;
	}

	.lightbox__figure {
		padding: 72px 16px;
	}

	.lightbox__btn {
		top: auto;
		bottom: 16px;
		transform: none;
	}

	.cta__mark,
	.page-header__mark {
		right: -40%;
		width: 90vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.hero-ring__band,
	.hero-ring__dot {
		animation: none;
	}

	.hero-ring__dot {
		scale: 1;
	}

	.hero__visual *,
	.hero__title .word > span {
		animation-delay: 0s !important;
	}
}
