/*
 * M6 E63 — main stylesheet. Tokens come from DESIGN.md; nothing outside them.
 * 1 Tokens · 2 Font · 3 Base · 4 Type · 5 Layout helpers · 6 Buttons · 7 Header + rail · 8 Studio + scenes
 * 9 Hero · 10 Profile · 11 Design + hotspots · 12 POWER · 13 Drive · 14 Spec sheet · 15 Heritage · 16 Outro
 * 17 Footer · 18 Plain pages · 19 Reduced motion
 */

/* 1 Tokens ---------------------------------------------------------------------------------------------------- */
:root {
	--c-night: #0d0e10;
	--c-night-2: #17191c;
	--c-day: #f1f2f3;
	--c-day-2: #e3e5e8;
	--c-ink: #121316;
	--c-ink-inverse: #f0f0ee;
	--c-muted-night: #a1a5ac;
	--c-muted-day: #575b62;
	--c-amber: #ff7a1f;
	--c-m-light: #0066b1;
	--c-m-dark: #003d78;
	--c-m-red: #e22718;
	--c-line-night: rgb(240 240 238 / 0.14);
	--c-line-day: rgb(18 19 22 / 0.14);

	--font: "Mona Sans", "Mona Sans Fallback", system-ui, sans-serif;
	--fs-body: 1.0625rem; /* 17px */
	--fs-small: 0.875rem; /* 14px */
	--fs-h3: 1.375rem; /* 22px */
	--fs-h2: clamp(1.875rem, 1.1rem + 2.3vw, 3.25rem);
	--fs-h1: clamp(2.25rem, 1rem + 3.6vw, 4.75rem);
	--fs-fig: clamp(3.5rem, 1.5rem + 7vw, 8.5rem);
	--fs-ghost: clamp(7rem, min(27vw, 42svh), 30rem);
	--fs-display: clamp(3.5rem, 1rem + 6.4vw, 8.5rem);

	--s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
	--s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px; --s-11: 160px;

	--container: 1320px;
	--measure: 640px;
	--gutter: 20px;
	--header: 64px;

	--r-control: 4px;
	--r-media: 12px;
	--shadow-float: 0 1px 2px rgb(18 19 22 / 0.08), 0 12px 32px rgb(18 19 22 / 0.18), 0 32px 80px rgb(18 19 22 / 0.18);

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--dur-press: 120ms;
	--dur-hover: 180ms;
	--dur-ui: 280ms;
	--dur-panel: 420ms;
	--dur-panel-out: 340ms;
	--dur-reveal: 640ms;
	--dur-wipe: 560ms;
}

@media (min-width: 48em) {
	:root { --gutter: 48px; }
}

/* 2 Font ------------------------------------------------------------------------------------------------------ */
@font-face {
	font-family: "Mona Sans";
	src: url("../fonts/mona-sans-vf.woff2") format("woff2");
	font-weight: 350 800;
	font-stretch: 75% 125%;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Mona Sans Fallback";
	src: local("Arial");
	size-adjust: 103%;
	ascent-override: 92%;
	descent-override: 24%;
}

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header) + var(--s-4));
	background: var(--c-night);
	color-scheme: dark;
}

body {
	margin: 0;
	font: 400 var(--fs-body) / 1.6 var(--font);
	color: var(--c-ink-inverse);
	background: var(--c-night);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

figure { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

button { font: inherit; color: inherit; }

p { margin: 0 0 var(--s-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

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

.no-js .js-only { display: none !important; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	z-index: 100;
	top: var(--s-3);
	left: var(--s-3);
	padding: var(--s-3) var(--s-4);
	background: var(--c-ink-inverse);
	color: var(--c-ink);
	border-radius: var(--r-control);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 4 Type ------------------------------------------------------------------------------------------------------ */
.h1,
.h2,
.outro__title,
.wordmark {
	font-stretch: 125%;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0;
	margin: 0;
	text-wrap: balance;
}
.h1 { font-size: var(--fs-h1); line-height: 0.95; }
/* Chapter titles speak quietly (Ferrari-like): wide caps at a medium weight; the heavy display weight is kept for the
   model name in the hero and the closing line. */
.h2 { font-size: var(--fs-h2); font-weight: 500; line-height: 1.02; letter-spacing: -0.005em; }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; margin: 0 0 var(--s-3); }

.lead { max-width: 52ch; font-size: var(--fs-body); }
.ch--night .lead { color: var(--c-muted-night); }
.ch--day .lead { color: var(--c-muted-day); }

/* Heading lines: block spans, set in steps (Koenigsegg-like); the inner span is what rises from the mask. */
.line { display: block; }
.line__in { display: inline-block; }
.stepped .line:nth-child(2) { padding-left: 0.6em; }
.stepped .line:nth-child(3) { padding-left: 1.2em; }
.stepped .line:nth-child(4) { padding-left: 1.8em; }

@media (min-width: 48em) {
	.stepped .line:nth-child(2) { padding-left: 1.2em; }
	.stepped .line:nth-child(3) { padding-left: 2.4em; }
	.stepped .line:nth-child(4) { padding-left: 3.6em; }
}

/* 5 Layout helpers -------------------------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.ch { position: relative; }
.ch--night { background: var(--c-night); color: var(--c-ink-inverse); }
.ch--day { background: var(--c-day); color: var(--c-ink); color-scheme: light; }

/* 6 Buttons --------------------------------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--s-3);
	min-height: 48px;
	padding: 0 var(--s-5);
	border: 1px solid transparent;
	border-radius: var(--r-control);
	font: 600 1rem / 1 var(--font);
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn--small { min-height: 44px; padding: 0 var(--s-4); font-size: 0.9375rem; }
.btn--light { background: var(--c-ink-inverse); color: var(--c-ink); }
.btn--dark { background: var(--c-ink); color: var(--c-ink-inverse); }
.btn--ghost { background: transparent; border-color: currentColor; }

@media (hover: hover) and (pointer: fine) {
	.btn--light:hover { background: color-mix(in oklab, var(--c-ink-inverse) 88%, var(--c-night)); }
	.btn--dark:hover { background: color-mix(in oklab, var(--c-ink) 88%, var(--c-day)); }
	.btn--ghost:hover { background: color-mix(in oklab, currentColor 8%, transparent); }
}

/* The link-button (msport_cta): label + a thin ring with a glyph, Ferrari / Koenigsegg-like instead of a filled box.
   The ring fills with the ink on hover; the glyph takes the chapter background (--cta-on). */
.cta {
	--cta-ring: 36px;
	--cta-on: var(--c-night);
	display: inline-flex;
	align-items: center;
	gap: var(--s-3);
	min-height: 44px;
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}
.ch--day .cta { --cta-on: var(--c-day); }
.cta__ring {
	display: grid;
	place-items: center;
	flex: none;
	width: var(--cta-ring);
	height: var(--cta-ring);
	border-radius: 50%;
	border: 1px solid color-mix(in oklab, currentColor 55%, transparent);
	transition: background-color var(--dur-hover) ease, border-color var(--dur-hover) ease, color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.cta__icon { width: 40%; height: 40%; }
.cta__icon--play { fill: currentColor; }
.cta__icon--chevron { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cta:active .cta__ring { transform: scale(0.94); }
.cta--large { --cta-ring: 52px; gap: var(--s-4); font-size: var(--fs-body); }

@media (hover: hover) and (pointer: fine) {
	.cta:hover .cta__ring { background: currentColor; border-color: currentColor; }
	.cta:hover .cta__icon { color: var(--cta-on); }
}

/* 7 Header + rail --------------------------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	z-index: 50;
	inset: 0 0 auto;
	height: var(--header);
	display: flex;
	align-items: center;
	gap: var(--s-4);
	padding-inline: var(--gutter);
	color: var(--c-ink-inverse);
	background: var(--c-night);
	border-bottom: 1px solid var(--c-line-night);
	transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}
/* Over the hero the header is just type on the photo (all three references); past it (nav.js .is-scrolled), a solid
   night bar. Without JS it stays solid. */
.js:not(.is-scrolled):not(.is-menu-open) .site-header {
	background: linear-gradient(to bottom, rgb(13 14 16 / 0.55), transparent);
	border-bottom-color: transparent;
}
/* Over a day chapter the bar is day too (nav.js .head-day). */
.head-day:not(.is-menu-open) .site-header { background: var(--c-day); color: var(--c-ink); border-bottom-color: var(--c-line-day); }
.head-day:not(.is-menu-open) .site-header .cta { --cta-on: var(--c-day); }

.site-header__cta { transition: opacity var(--dur-ui) ease, visibility 0s linear 0s; }
.is-hero-cta .site-header__cta { opacity: 0; visibility: hidden; transition: opacity var(--dur-ui) ease, visibility 0s linear var(--dur-ui); }

.wordmark { font-size: 1.25rem; text-decoration: none; margin-right: auto; }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	min-height: 44px;
	padding: 0 var(--s-3);
	background: none;
	border: 0;
	font-weight: 500;
	cursor: pointer;
}
.menu-toggle__bars { position: relative; width: 18px; height: 10px; border-block: 1.5px solid currentColor; }

/* Narrow phones: wordmark, menu and the button must stay on one line; the menu word is kept for screen readers. */
.wordmark,
.btn { white-space: nowrap; }
@media (max-width: 24.99em) {
	.site-header { gap: var(--s-2); }
	.menu-toggle { min-width: 44px; justify-content: center; }
	.menu-toggle [data-menu-label],
	.site-header__cta .cta__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

.rail { display: none; }

.is-menu-open .rail {
	display: block;
	position: fixed;
	z-index: 49;
	inset: var(--header) 0 0;
	overflow: auto;
	overscroll-behavior: contain;
	padding: var(--s-7) var(--gutter);
	background: var(--c-night);
}
.rail__list { list-style: none; margin: 0; padding: 0; }
.is-menu-open .rail__link {
	display: flex;
	align-items: center;
	min-height: 56px;
	font-size: 1.75rem;
	font-stretch: 125%;
	font-weight: 700;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--c-line-night);
}
.is-menu-open .rail__dot { display: none; }
.is-menu-open { overflow: hidden; }

@media (min-width: 75em) {
	.menu-toggle { display: none; }

	.container { padding-inline-start: max(var(--gutter), 8rem - max(0px, (100vw - var(--container) - 2 * var(--gutter)) / 2)); }

	.rail {
		display: block;
		position: fixed;
		z-index: 40;
		left: var(--s-5);
		top: 50%;
		transform: translateY(-50%);
		color: var(--rail-ink, var(--c-ink-inverse));
		transition: color var(--dur-ui) ease;
	}
	.rail__link {
		display: flex;
		align-items: center;
		gap: var(--s-3);
		min-height: 28px;
		font-size: 0.8125rem;
		font-weight: 500;
		text-decoration: none;
	}
	.rail__dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: currentColor;
		opacity: 0.45;
		transition: transform var(--dur-ui) var(--ease-out), opacity var(--dur-ui) ease;
	}
	.rail__name {
		opacity: 0;
		transform: translateX(-4px);
		transition: opacity var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out);
	}
	.rail__link[aria-current="true"] .rail__dot { opacity: 1; transform: scale(1.6); }
	.rail__link[aria-current="true"] .rail__name,
	.rail__link:focus-visible .rail__name { opacity: 1; transform: none; }

	@media (hover: hover) and (pointer: fine) {
		.rail__link:hover .rail__name { opacity: 1; transform: none; }
		.rail__link:hover .rail__dot { opacity: 1; }
	}
}

/* nav.js sets .tone-day on <html> while a day chapter (not a dark photo in it) is behind the rail. */
.tone-day .rail { --rail-ink: var(--c-ink); }

/* 8 Studio + scenes ------------------------------------------------------------------------------------------- */

/* Sticky scenes: tall section, a viewport-high stage that sticks; scenes.js writes --p (0 → 1) on the section. */
.scene__sticky { position: relative; min-height: 100svh; overflow: clip; }

.js .scene { height: var(--scene-h, 200svh); }
.js .scene__sticky { position: sticky; top: 0; height: 100svh; }

/* 9 Hero ------------------------------------------------------------------------------------------------------ */
/* Koenigsegg-like: full-bleed studio photo, model name large on the left, the action on the right. */
.hero { --p: 0; --scene-h: 125svh; }

.hero__media {
	position: absolute;
	inset: 0;
	transform: scale(calc(1 + var(--p) * 0.08));
	opacity: calc(1 - var(--p) * 0.45);
}
.hero__media picture,
.hero__img { width: 100%; height: 100%; }
.hero__img { object-fit: cover; object-position: 50% 58%; }

/* Keeps the header and the headline readable and melts the bottom into the next chapter. */
.hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to bottom, color-mix(in oklab, var(--c-night) 70%, transparent) 0%, transparent 34%, transparent 72%, var(--c-night) 100%),
		linear-gradient(to right, color-mix(in oklab, var(--c-night) 45%, transparent) 0%, transparent 45%);
}

/* Copy over the photo: the name on the left of the car, the action on the right at the same height, the lead low
   on the left over the dark floor (Koenigsegg-like). Phones: name on top, lead and action at the bottom. */
.hero__copy {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-rows: auto 1fr auto;
	grid-template-areas: "title cta" ". ." "lead lead";
	gap: var(--s-5);
	padding-top: calc(var(--header) + 12svh);
	padding-bottom: 9svh;
	opacity: calc(1 - var(--p) * 2);
}
.hero__title {
	grid-area: title;
	margin: 0;
	font-size: var(--fs-display);
	font-stretch: 125%;
	font-weight: 800;
	line-height: 0.88;
	text-transform: uppercase;
	letter-spacing: 0;
}
.hero__title.stepped .line:nth-child(2) { padding-left: 0.45em; }
.hero__lead { grid-area: lead; align-self: end; max-width: 30ch; margin: 0; color: var(--c-ink-inverse); }
.hero__cta { grid-area: cta; align-self: start; }

@media (max-width: 47.99em) {
	.hero__copy {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto auto;
		grid-template-areas: "title" "." "lead" "cta";
		padding-top: calc(var(--header) + var(--s-6));
		padding-bottom: var(--s-7);
	}
	.hero__cta { justify-self: start; }
}

.hero__veil {
	position: absolute;
	inset: 0;
	z-index: 3;
	background: var(--c-night);
	opacity: 0;
	pointer-events: none;
}

/* Portrait phones: a full-bleed cover would crop the landscape shot to the rear panel. Instead the photo becomes a
   band wide enough for the whole car to fill the screen width, set between the name and the lead; its top and bottom
   melt into the night (the sides run off the screen, the shot's own edges are dark studio). */
@media (max-width: 47.99em) and (orientation: portrait) {
	.hero__media:not(.has-portrait) { overflow: clip; }
	.hero__media:not(.has-portrait) picture { display: contents; }
	.hero__media:not(.has-portrait) .hero__img {
		position: absolute;
		left: 50%;
		top: 53%;
		width: min(212vw, 96svh);
		max-width: none;
		height: auto;
		translate: -50% -50%;
		-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
		mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 74%, transparent 100%);
	}
}
@media (max-width: 47.99em) and (orientation: landscape) {
	.hero__img { object-position: 50% 62%; }
}

/* Page-load moment: the studio lights come up, the heading lines rise (≤ 1.2 s). */
@media (prefers-reduced-motion: no-preference) {
	.hero__veil { animation: lights-up 1100ms var(--ease-out) both; }
	.hero .line { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
	.hero .line__in { animation: line-rise 900ms var(--ease-out) both; animation-delay: calc(200ms + var(--i) * 70ms); }
	.hero__lead,
	.hero__cta { animation: fade-in 700ms var(--ease-out) 500ms both; }
}

@keyframes lights-up { from { opacity: 0.85; } to { opacity: 0; } }
@keyframes line-rise { from { transform: translateY(105%); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }

/* 10 Profile -------------------------------------------------------------------------------------------------- */
.profile { --p: 1; --in: 1; --scene-h: 170svh; }

.profile__stage {
	display: grid;
	place-items: center;
	/* Porsche-like studio: a soft light on the wall behind the car. */
	background: radial-gradient(ellipse 58% 46% at 50% 44%, color-mix(in oklab, var(--c-ink-inverse) 7%, var(--c-night)) 0%, transparent 74%);
}

/* The set: the studio photo, the badge, the cut-out car, all in one frame (the photo's own). */
.profile__set {
	position: absolute;
	left: 50%;
	top: 10svh;
	width: min(98vw, 148svh);
	aspect-ratio: 2752 / 1428;
	transform: translate(-50%, calc((1 - var(--in)) * 10svh));
	opacity: clamp(0, var(--in) * 1.5 - 0.2, 1);
}
.profile__set > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* The studio melts into the night on every side: only the light on the wall and the floor under the car remain. */
.profile__studio {
	-webkit-mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0%, #000 16%, #000 84%, transparent 100%), linear-gradient(to bottom, transparent 0%, #000 22%, #000 72%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-composite: intersect;
}

/* The ghost badge behind the car: "M6" in the BMW M badge manner (wide, heavy, slanted, the three M stripes). */
.profile__ghost {
	position: absolute;
	left: 50%;
	top: 25%;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 0.07em;
	transform: translate(-50%, calc(-50% + (1 - var(--in)) * 14svh)) skewX(-14deg);
	font-size: var(--fs-ghost);
	font-stretch: 125%;
	font-weight: 800;
	line-height: 0.78;
	letter-spacing: -0.02em;
	color: color-mix(in oklab, var(--c-ink-inverse) 14%, var(--c-night));
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}
.m-stripes { display: flex; gap: 0.045em; height: 0.72em; }
.m-stripes i { width: 0.15em; height: 100%; }
.m-stripes i:nth-child(1) { background: color-mix(in oklab, var(--c-m-light) 45%, var(--c-night)); }
.m-stripes i:nth-child(2) { background: color-mix(in oklab, var(--c-m-dark) 45%, var(--c-night)); }
.m-stripes i:nth-child(3) { background: color-mix(in oklab, var(--c-m-red) 45%, var(--c-night)); }

.figs {
	position: absolute;
	left: 50%;
	bottom: 6svh;
	transform: translateX(-50%);
	list-style: none;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-5) var(--s-6);
}

.fig {
	display: flex;
	flex-direction: column;
	gap: var(--s-1);
	opacity: clamp(0, (var(--p) - 0.08 - var(--i) * 0.08) * 6, 1);
	transform: translateY(calc((1 - clamp(0, (var(--p) - 0.08 - var(--i) * 0.08) * 6, 1)) * 16px));
}
.fig__value { font-size: var(--fs-fig); font-stretch: 75%; font-weight: 600; line-height: 0.9; font-variant-numeric: tabular-nums; }
.fig__unit { font-size: clamp(1rem, 0.8rem + 0.6vw, 1.5rem); font-stretch: 100%; font-weight: 500; }
.fig__label { font-size: var(--fs-small); color: var(--c-muted-night); }

@media (min-width: 62em) {
	.figs { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

@media (max-width: 47.99em) {
	.profile__set { top: 21svh; width: 112vw; }
}

/* 11 Design + hotspots ---------------------------------------------------------------------------------------- */
.design { padding-block: var(--s-10) var(--s-9); overflow: clip; }
.design__head { display: grid; gap: var(--s-5); }
.design__lead { margin: 0; }

@media (min-width: 62em) {
	.design__head { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: end; }
}

.design__stage { position: relative; margin-top: var(--s-6); }

/* The studio shot runs edge to edge (Ferrari-like); a photo melts into the chapter at the top and bottom. */
.design__frame {
	position: relative;
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	transform-origin: var(--zx, 50%) var(--zy, 50%);
	transition: transform var(--dur-panel-out) var(--ease-out);
}
.design__img { width: 100%; }
/* A studio photo (not a cut-out): its edges melt into the chapter background. */
.is-photo > .design__img {
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

.hotspot {
	position: absolute;
	left: var(--x);
	top: var(--y);
	display: flex;
	align-items: center;
	gap: var(--s-2);
	min-width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background: transparent;
	transform: translate(-20px, -50%);
	cursor: pointer;
	transition: opacity var(--dur-ui) ease;
}
.hotspot__dot {
	position: relative;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: color-mix(in oklab, var(--c-ink) 55%, transparent);
	border: 1.5px solid var(--c-ink-inverse);
	box-shadow: 0 0 0 1px color-mix(in oklab, var(--c-ink) 35%, transparent);
}
.hotspot__dot::after {
	content: "";
	position: absolute;
	inset: 13px;
	border-radius: 50%;
	background: var(--c-ink-inverse);
}
.hotspot__label {
	padding: var(--s-1) var(--s-3);
	border-radius: var(--r-control);
	background: var(--c-ink);
	color: var(--c-ink-inverse);
	font-size: var(--fs-small);
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	transform: translateX(-6px);
	transition: opacity var(--dur-hover) ease, transform var(--dur-hover) var(--ease-out);
	pointer-events: none;
}
.hotspot:focus-visible .hotspot__label,
.hotspot[aria-expanded="true"] .hotspot__label { opacity: 1; transform: none; }

@media (hover: hover) and (pointer: fine) {
	.hotspot:hover .hotspot__label { opacity: 1; transform: none; }
}

/* Touch screens have no hover: the labels stay on (from tablets up; on phones the car is too small for them). */
@media (hover: none) and (min-width: 48em) {
	.hotspot__label { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
	.hotspot__dot::before {
		content: "";
		position: absolute;
		inset: -1px;
		border-radius: 50%;
		border: 1px solid var(--c-ink-inverse);
		animation: pulse 2400ms var(--ease-out) infinite;
	}
}
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(1.7); opacity: 0; } }

/* Phones: the car is a third of the desktop size, so the point is too — a 24 px dot in a 44 px tap area (labels are
   off here, the panel names the detail). */
@media (max-width: 47.99em) {
	.hotspot { justify-content: center; min-width: 44px; height: 44px; transform: translate(-50%, -50%); }
	.hotspot__dot { width: 24px; height: 24px; border-width: 1.5px; }
	.hotspot__dot::after { inset: 7px; }
	.hotspot__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; }
}

/* The details as a mosaic of large photos (Porsche-like cards): wide + narrow, then narrow + wide; the name and a ring
   on the photo, the whole photo is the button. Phones: a strip that swipes sideways. */
.cards { position: relative; z-index: 1; list-style: none; margin-block: var(--s-7) 0; display: grid; gap: var(--s-5); transition: opacity var(--dur-ui) ease; }
.is-zoomed .cards { opacity: 0; }
.card {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--r-media);
	overflow: hidden;
	background: var(--c-night-2);
	color: var(--c-ink-inverse);
	text-align: left;
	cursor: pointer;
}
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-reveal) var(--ease-out); }
.card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(to top, rgb(13 14 16 / 0.82), transparent); pointer-events: none; }
.card__label {
	position: absolute;
	z-index: 1;
	inset: auto var(--s-5) var(--s-5);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-4);
	font-size: var(--fs-h3);
	font-weight: 500;
	line-height: 1.25;
}
.card__ring { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid color-mix(in oklab, currentColor 55%, transparent); border-radius: 50%; transition: background-color var(--dur-hover) ease, color var(--dur-hover) ease; }
.card__ring::before,
.card__ring::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; }
.card__ring::after { transform: rotate(90deg); }
.card:active .card__ring { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
	.card:hover .card__img { transform: scale(1.03); }
	.card:hover .card__ring { background: var(--c-ink-inverse); color: var(--c-ink); }
}
@media (min-width: 48em) {
	.cards { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(300px, 34vw, 540px); }
	.cards__item { grid-column: span 7; }
	.cards__item:nth-child(4n + 2),
	.cards__item:nth-child(4n + 3) { grid-column: span 5; }
}
@media (max-width: 47.99em) {
	.cards { grid-auto-flow: column; grid-auto-columns: 82vw; gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
	.cards::-webkit-scrollbar { display: none; }
	.cards__item { aspect-ratio: 4 / 5; scroll-snap-align: start; }
	.card:focus-visible { outline-offset: -4px; }
	.card__label { inset-inline: var(--s-4); bottom: var(--s-4); font-size: 1.125rem; }
}

/* Details without JS: a grid of cards under the car. */
.details {
	display: grid;
	gap: var(--s-7) var(--s-6);
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin: var(--s-8) auto 0;
	padding-inline: var(--gutter);
}
@media (min-width: 48em) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 75em) { .details { grid-template-columns: repeat(3, 1fr); } }

.detail__media { margin-bottom: var(--s-4); }
.detail__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.detail__text { color: var(--c-muted-day); }

/* With JS: the details are a panel on the right; the car zooms into the open point. */
.js .details {
	position: fixed;
	z-index: 45;
	top: var(--header);
	right: 0;
	bottom: 0;
	width: min(100vw, 560px);
	max-width: none;
	margin: 0;
	padding: var(--s-6) var(--s-7) var(--s-7);
	display: block;
	overflow: auto;
	overscroll-behavior: contain;
	background: var(--c-day-2);
	color: var(--c-ink);
	box-shadow: var(--shadow-float);
	transform: translateX(100%);
	visibility: hidden;
	transition: transform var(--dur-panel-out) var(--ease-out), visibility 0s linear var(--dur-panel-out);
}
.js .detail { display: none; }
.js .detail.is-active { display: block; }
.js .detail:focus:not(:focus-visible) { outline: none; }
.detail__close { margin-top: var(--s-6); color: var(--c-ink); }
.detail__x { position: relative; width: 12px; height: 12px; }
.detail__x::before,
.detail__x::after { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 12px; background: currentColor; transform: rotate(45deg); }
.detail__x::after { transform: rotate(-45deg); }

.is-detail-open .details {
	transform: none;
	visibility: visible;
	transition: transform var(--dur-panel) var(--ease-out), visibility 0s;
}
.is-zoomed .design__frame {
	transform: translateX(var(--zshift, -18vw)) scale(1.7);
	transition: transform var(--dur-panel) var(--ease-out);
}
.is-detail-open .hotspot:not([aria-expanded="true"]) { opacity: 0; pointer-events: none; }

@media (max-width: 47.99em) {
	.js .details { top: auto; height: 72svh; width: 100vw; padding: var(--s-6) var(--gutter); transform: translateY(100%); }
	.is-zoomed .design__frame { transform: scale(1.5); }
}

/* Full-bleed photo (V10, drive): the frame fills the screen; as it comes in it opens from an inset rounded card and the
   photo settles from a slight zoom (scenes.js --rv, Porsche-like). Without JS or with reduced motion it is simply open. */
.bleed { --rv: 1; position: relative; }
.js .bleed { --rv: 0; }
.bleed__frame {
	position: relative;
	overflow: hidden;
	min-height: 100svh;
	clip-path: inset(calc((1 - var(--rv)) * 6svh) calc((1 - var(--rv)) * 5vw) round calc((1 - var(--rv)) * 24px));
}
.bleed__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(calc(1.1 - var(--rv) * 0.1));
}

/* 12 V10 ------------------------------------------------------------------------------------------------------ */
/* The engine and its sound: the engine bay fills the screen with the heading on it, the sound button bottom left;
   the photo lights up while it plays. */
.power { padding-bottom: var(--s-9); }

.engine { isolation: isolate; }
.engine__img {
	object-position: 12% 50%;
	filter: brightness(0.86);
	transition: filter 1200ms var(--ease-out);
}
.engine__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to top, rgb(13 14 16 / 0.8) 0%, transparent 30%),
		linear-gradient(to right, rgb(13 14 16 / 0.72) 0%, rgb(13 14 16 / 0.3) 38%, transparent 62%);
	transition: opacity 1200ms var(--ease-out);
}
/* Portrait phones: the engine fills the frame, so the heading needs its own shade at the top. */
@media (max-width: 47.99em) {
	.engine__img { object-position: 66% 50%; }
	.engine__shade {
		background:
			linear-gradient(to bottom, rgb(13 14 16 / 0.94) 0%, rgb(13 14 16 / 0.82) 42%, transparent 66%),
			linear-gradient(to top, rgb(13 14 16 / 0.85) 0%, transparent 34%);
	}
}
.is-playing .engine__img { filter: brightness(1.18); }
.is-playing .engine__shade { opacity: 0.7; }

.engine__over {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: var(--s-8);
	min-height: 100svh;
	padding-block: calc(var(--header) + var(--s-8)) var(--s-8);
}
.power__head { display: grid; gap: var(--s-5); justify-items: start; }
.power__lead { margin: 0; max-width: 38ch; color: color-mix(in oklab, var(--c-ink-inverse) 82%, transparent); }

.engine__sound { position: relative; }
.js .engine__audio { display: none; }
.engine__audio { width: min(100%, 360px); }

/* The sound button: a light disc with play / pause, a ring that runs with the recording (--t from power.js). */
.sound-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s-5);
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-ink-inverse);
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.sound-btn__disc {
	position: relative;
	display: grid;
	place-items: center;
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--c-ink-inverse);
	color: var(--c-ink);
	box-shadow: 0 10px 30px rgb(0 0 0 / 0.45);
	transition: transform var(--dur-press) var(--ease-out);
}
.sound-btn__disc::before {
	content: "";
	position: absolute;
	inset: -8px;
	border-radius: 50%;
	background: conic-gradient(var(--c-amber) calc(var(--t, 0) * 1turn), rgb(240 240 238 / 0.32) 0);
	mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
}
.sound-btn svg { width: 26px; height: 26px; fill: currentColor; }
.sound-btn__pause,
.sound-btn[aria-pressed="true"] .sound-btn__play { display: none; }
.sound-btn[aria-pressed="true"] .sound-btn__pause { display: block; }
.sound-btn__text { display: grid; gap: var(--s-1); }
.sound-btn__label { font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.sound-btn__hint { font-size: var(--fs-small); color: var(--c-muted-night); }
.sound-btn:active .sound-btn__disc { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
	.sound-btn:hover .sound-btn__disc { transform: scale(1.05); }
}
@media (max-width: 29.99em) {
	.sound-btn { gap: var(--s-4); }
	.sound-btn__disc { width: 60px; height: 60px; }
	.sound-btn__label { font-size: 1.125rem; }
}

/* Engine data: one fine line at the foot of the chapter. */
.spec-line {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--s-5) var(--s-6);
	margin-top: var(--s-7);
	margin-bottom: 0;
	padding-top: var(--s-5);
	border-top: 1px solid var(--c-line-night);
}
.spec-line__label { font-size: var(--fs-small); color: var(--c-muted-night); }
.spec-line__value { margin: var(--s-1) 0 0; font-size: 1.125rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-line__unit { color: var(--c-muted-night); }
@media (min-width: 62em) {
	.spec-line { grid-template-columns: repeat(4, 1fr); }
}

/* 13 Drive ---------------------------------------------------------------------------------------------------- */
/* The cockpit fills the screen; below it the copy on the left and a large pair of photos that drift apart slightly. */
.drive { padding-bottom: var(--s-10); overflow: clip; }
.drive__bleed { margin: 0; }
.drive__img { object-position: 50% 55%; }
@media (max-width: 47.99em) { .drive__img { object-position: 31% 55%; } }
.drive__bleed-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: var(--s-6);
	z-index: 1;
	font-size: var(--fs-small);
	color: var(--c-ink-inverse);
	text-shadow: 0 1px 12px rgb(0 0 0 / 0.5);
}

.drive__grid { display: grid; gap: var(--s-8); margin-top: var(--s-9); }
.drive__copy { display: grid; gap: var(--s-5); }
.drive__text { max-width: 52ch; color: var(--c-muted-day); }
@media (min-width: 62em) {
	.drive__copy { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: end; }
}

/* A tall frame and a wide one, bottoms offset (editorial pair). */
.collage { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.collage__item { transform: translate3d(0, calc(var(--d, 0) * var(--sp, 0) * 400px), 0); }
.collage__img { width: 100%; object-fit: cover; border-radius: var(--r-media); }
.collage__item:nth-child(odd) .collage__img { aspect-ratio: 4 / 5; }
.collage__item:nth-child(even) .collage__img { aspect-ratio: 5 / 4; }
.collage__caption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--c-muted-day); }

@media (min-width: 48em) {
	.collage { grid-template-columns: 5fr 7fr; gap: var(--s-7); align-items: end; }
	.collage__item:nth-child(even) { margin-bottom: var(--s-10); }
}

/* 13b Film ---------------------------------------------------------------------------------------------------- */
/* Ferrari-like: a panoramic driving film edge to edge (the footage is 20:9); the band opens from an inset card like
   the full-bleed photos (--rv). Phones get a taller crop so the car is not a sliver. */
.film { padding-block: var(--s-10) var(--s-5); } /* the spec sheet below brings its own top space */
.film__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.film__lead { margin: 0; color: var(--c-muted-night); }
@media (min-width: 62em) {
	.film__head { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: end; }
}
.film__band { --rv: 1; margin: 0; }
.js .film__band { --rv: 0; }
.film__frame {
	position: relative;
	overflow: hidden;
	aspect-ratio: 20 / 9;
	background: var(--c-night-2);
	clip-path: inset(calc((1 - var(--rv)) * 4vw) calc((1 - var(--rv)) * 5vw) round calc((1 - var(--rv)) * 24px));
}
@media (max-width: 47.99em) { .film__frame { aspect-ratio: 4 / 3; } }
.film__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(calc(1.08 - var(--rv) * 0.08));
}
.film__toggle {
	position: absolute;
	right: var(--gutter);
	bottom: var(--s-5);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgb(240 240 238 / 0.6);
	border-radius: 50%;
	background: rgb(13 14 16 / 0.32);
	color: var(--c-ink-inverse);
	cursor: pointer;
	transition: background-color var(--dur-hover) ease, transform var(--dur-press) var(--ease-out);
}
.film__icon { width: 20px; height: 20px; fill: currentColor; }
.film__icon--pause,
.film__band.is-playing .film__icon--play { display: none; }
.film__band.is-playing .film__icon--pause { display: block; }
.film__toggle:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
	.film__toggle:hover { background: rgb(13 14 16 / 0.6); }
}
.film__caption { margin-top: var(--s-4); font-size: var(--fs-small); color: var(--c-muted-night); }

/* 14 Spec sheet ----------------------------------------------------------------------------------------------- */
.specs { padding-block: var(--s-10); }
.tabs { margin-top: var(--s-7); }

.tabs__list { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); border-bottom: 1px solid var(--c-line-night); }
.tabs__tab {
	position: relative;
	min-height: 48px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--c-muted-night);
	font-weight: 500;
	cursor: pointer;
	transition: color var(--dur-hover) ease;
}
.tabs__tab::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	background: var(--c-ink-inverse);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-ui) var(--ease-out);
}
.tabs__tab[aria-selected="true"] { color: var(--c-ink-inverse); }
.tabs__tab[aria-selected="true"]::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
	.tabs__tab:hover { color: var(--c-ink-inverse); }
}

.tabs__panels { display: grid; gap: var(--s-9); }
.js .tabs__panels { margin-top: var(--s-7); }
.tabs__panel { display: grid; gap: var(--s-6); }
.js .tabs__panel[hidden] { display: none; }
.js .tabs__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (min-width: 62em) {
	.tabs__panel { grid-template-columns: 7fr 5fr; align-items: center; gap: var(--s-8); }
	.tabs__title { grid-column: 1 / -1; }
}

.tabs__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 38%; border-radius: var(--r-media); }
/* A cut-out car is shown whole, standing in the frame (its shadow is in the file). */
.tabs__media--cut { background: radial-gradient(60% 55% at 50% 50%, color-mix(in oklab, var(--c-ink-inverse) 16%, var(--c-night)) 0%, transparent 72%); }
.tabs__media--cut .tabs__img { object-fit: contain; object-position: 50% 80%; border-radius: 0; }

.sheet { margin: 0; }
.sheet__row { display: flex; justify-content: space-between; gap: var(--s-5); padding: var(--s-3) 0; border-bottom: 1px solid var(--c-line-night); }
.sheet__label { color: var(--c-muted-night); }
.sheet__value { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Phones: the five tabs stay on one line as a strip that swipes sideways (edge to edge, the right end fades to show
   there is more); rows stack the label over the value so long values never break mid-figure. */
@media (max-width: 47.99em) {
	.tabs__list {
		flex-wrap: nowrap;
		gap: var(--s-5);
		margin-inline: calc(-1 * var(--gutter));
		padding: 4px var(--gutter) 0;
		padding-inline-end: var(--s-8);
		overflow-x: auto;
		scrollbar-width: none;
		overscroll-behavior-x: contain;
		border-bottom: 0;
		box-shadow: inset 0 -1px var(--c-line-night);
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - var(--s-8)), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - var(--s-8)), transparent);
	}
	.tabs__list::-webkit-scrollbar { display: none; }
	.tabs__tab { flex: none; white-space: nowrap; }
	.tabs__tab::after { bottom: 0; }
	.tabs__tab:focus-visible { outline-offset: -2px; }
}
@media (max-width: 29.99em) {
	.sheet__row { flex-direction: column; gap: 2px; }
	.sheet__label { font-size: var(--fs-small); }
	.sheet__value { text-align: left; }
}

/* The photo of a newly chosen tab comes in with a diagonal wipe (Koenigsegg-like); the rows fade in. */
@media (prefers-reduced-motion: no-preference) {
	.tabs__panel.is-entering .tabs__media { animation: wipe var(--dur-wipe) var(--ease-in-out) both; }
	.tabs__panel.is-entering .sheet__row { animation: fade-in var(--dur-ui) var(--ease-out) both; animation-delay: calc(120ms + var(--i, 0) * 40ms); }
}
@keyframes wipe {
	from { clip-path: polygon(100% 0, 115% 0, 100% 100%, 100% 100%); }
	to { clip-path: polygon(0 0, 115% 0, 100% 100%, -15% 100%); }
}

/* 15 Heritage ------------------------------------------------------------------------------------------------- */
/* Then and now as a matched pair edge to edge: each half of the screen, the same frame and angle, the years set large
   on the photos. */
.heritage { padding-top: var(--s-10); }
.heritage__copy { display: grid; gap: var(--s-5); margin-bottom: var(--s-8); }
.heritage__text { max-width: 52ch; color: var(--c-muted-day); }
@media (min-width: 62em) {
	.heritage__copy { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: end; }
}

.heritage__pair { display: grid; gap: 2px; background: var(--c-day); }
@media (min-width: 48em) {
	.heritage__pair { grid-template-columns: 1fr 1fr; }
}
.heritage__item { position: relative; margin: 0; overflow: hidden; background: var(--c-night); }
.heritage__frame { overflow: hidden; }
.heritage__img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform var(--dur-reveal) var(--ease-out);
}
.heritage__then .heritage__img { object-position: 50% 80%; filter: grayscale(1) contrast(1.05); }
.heritage__now .heritage__img { object-position: 50% 62%; }
.heritage__item::after {
	content: "";
	position: absolute;
	inset: 50% 0 0;
	pointer-events: none;
	background: linear-gradient(to top, rgb(13 14 16 / 0.72), transparent);
}
.heritage__caption {
	position: absolute;
	z-index: 1;
	left: var(--gutter);
	right: var(--gutter);
	bottom: var(--s-6);
	display: flex;
	align-items: baseline;
	gap: var(--s-4);
	color: var(--c-ink-inverse);
}
/* Phones: the photos are small, so the year stands under each of them instead of on the car. */
@media (max-width: 47.99em) {
	.heritage__item::after { content: none; }
	.heritage__caption { position: static; padding: var(--s-4) var(--gutter) var(--s-5); }
}
.heritage__year {
	font-size: clamp(3rem, 1.5rem + 4.6vw, 6.5rem);
	font-stretch: 75%;
	font-weight: 600;
	line-height: 0.85;
	font-variant-numeric: tabular-nums;
}
.heritage__name { font-size: var(--fs-body); font-weight: 500; }

@media (hover: hover) and (pointer: fine) {
	.heritage__item:hover .heritage__img { transform: scale(1.03); }
}

/* 16 Outro ---------------------------------------------------------------------------------------------------- */
.outro { padding-block: var(--s-11) 0; overflow: clip; }
.outro__inner { position: relative; z-index: 1; display: grid; gap: var(--s-8); }
.outro__title { font-size: clamp(2.75rem, 1rem + 7vw, 9rem); line-height: 0.92; }
.outro__side { display: grid; gap: var(--s-6); justify-items: start; }

@media (min-width: 62em) {
	.outro__inner { grid-template-columns: 8fr 4fr; align-items: end; }
}

/* The car once more: edge to edge, the studio melts into the night above and below it. */
.outro__media { margin: calc(-1 * var(--s-8)) 0 0; pointer-events: none; }
.outro__img {
	width: 100%;
	aspect-ratio: 16 / 8.2;
	object-fit: cover;
	object-position: 50% 60%;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 26%, #000 80%, transparent 100%);
}
@media (max-width: 47.99em) {
	.outro__media { margin-top: 0; }
	.outro__img { width: 112vw; max-width: none; margin-left: -6vw; aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: no-preference) {
	.js .outro .line { overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
	.js .outro .line__in { transform: translateY(105%); transition: transform 900ms var(--ease-out); transition-delay: calc(var(--i) * 80ms); }
	.js .outro.is-in .line__in { transform: none; }
}

/* 17 Footer --------------------------------------------------------------------------------------------------- */
.site-footer { background: var(--c-night); color: var(--c-muted-night); border-top: 1px solid var(--c-line-night); font-size: var(--fs-small); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4) var(--s-6); padding-block: var(--s-6); }
.site-footer__dev { margin: 0; }
.site-footer a { color: var(--c-ink-inverse); }
.credits__toggle { cursor: pointer; color: var(--c-ink-inverse); }
.credits__list { margin: var(--s-4) 0 0; padding-left: var(--s-5); max-width: 80ch; }

/* 18 Plain pages ---------------------------------------------------------------------------------------------- */
body:not(.home) main { max-width: calc(var(--measure) + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--header) + var(--s-9)) var(--gutter) var(--s-9); }

/* 19 Reduced motion: no pinning, scrub, drift or zoom; nothing stays hidden ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }

	.js .scene { height: auto; }
	.js .scene__sticky { position: relative; height: auto; min-height: 100svh; }
	.hero { --p: 0 !important; }
	.profile { --p: 1 !important; --in: 1 !important; }
	.collage__item { transform: none; }
	.is-zoomed .design__frame { transform: none; }
	.bleed,
	.film__band { --rv: 1 !important; }
}
