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

:root {
	/*
		Breakpoints:
		- 54rem: narrow viewports stack the audio player and simplify nav.
		- 72rem: wide viewports have room for the sticky story side rail.
		Fractional rem pairs avoid inclusive overlap at breakpoint boundaries.
	*/
	--hero-image: linear-gradient(135deg, #090a10 0%, #141720 42%, #050506 100%);
	--bg: #050506;
	--bg-soft: #0b0c0f;
	--panel: #101217;
	--panel-2: #171a20;
	--text: #f3efe7;
	--muted: #a9a39a;
	--dim: #6f6a62;
	--line: rgba(255, 255, 255, 0.12);
	--accent: #d48a45;
	--accent-2: #ffca87;
	--danger: #b94c3d;
	--max-prose: 760px;
	--max-wide: 1080px;
	--nav-height: 72px;
	--sticky-audio-clearance: 6.25rem;
	--serif: Georgia, "Times New Roman", Times, serif;
	--sans:
		"Science Gothic", Inter, ui-sans-serif, system-ui, -apple-system,
		BlinkMacSystemFont, "Segoe UI", sans-serif;
	--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

html {
	scroll-behavior: smooth;
	background: var(--bg);
}

body {
	margin: 0;
	color: var(--text);
	background: var(--bg);
	font-family: var(--sans);
	font-weight: 300;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

a {
	color: inherit;
	text-decoration-color: rgba(212, 138, 69, 0.65);
	text-underline-offset: 0.24em;
	transition:
		color 160ms ease,
		text-decoration-color 160ms ease,
		opacity 160ms ease;
}

a:hover,
a:focus-visible {
	color: var(--accent-2);
	text-decoration-color: currentColor;
}

.skip-link {
	position: fixed;
	left: 1rem;
	top: 1rem;
	z-index: 100;
	transform: translateY(-140%);
	background: var(--text);
	color: #111;
	padding: 0.65rem 0.85rem;
	border-radius: 999px;
	font-weight: 700;
	text-decoration: none;
	text-decoration-color: transparent;
}

.skip-link:hover,
.skip-link:focus,
.skip-link:focus-visible {
	color: #111;
	text-decoration-color: transparent;
}

.skip-link:focus,
.skip-link:focus-visible {
	transform: translateY(0);
	outline: 2px solid #050506;
	outline-offset: 3px;
	box-shadow: 0 0 0 5px rgb(255 202 135 / 0.82);
}

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	overflow: clip;
	background-color: #07080b;
	background-image:
		linear-gradient(
			to bottom,
			rgba(0, 0, 0, 0.55),
			rgba(0, 0, 0, 0.05) 28%,
			rgba(0, 0, 0, 0.18) 70%,
			var(--bg) 100%
		),
		radial-gradient(
			circle at 76% 28%,
			rgba(212, 138, 69, 0.15),
			transparent 30rem
		),
		radial-gradient(
			circle at 18% 72%,
			rgba(185, 76, 61, 0.12),
			transparent 28rem
		),
		var(--hero-image),
		linear-gradient(135deg, #090a10 0%, #141720 42%, #050506 100%);
	background-size: cover, auto, auto, cover, cover;
	background-position: center, center, center, center, center;
	background-repeat: no-repeat;
}

.hero-particles {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
}

.hero-particles canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

.site-nav {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 10;
	min-height: var(--nav-height);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem clamp(1rem, 4vw, 3rem);
	background: linear-gradient(
		to bottom,
		rgba(5, 5, 6, 0.74),
		rgba(5, 5, 6, 0.16)
	);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(0.6rem, 3vw, 2rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-links li {
	margin: 0;
	padding: 0;
}

.nav-links a {
	display: inline-flex;
	align-items: center;
	min-height: 2.4rem;
	padding: 0.35rem 0.15rem;
	border-bottom: 1px solid transparent;
	color: rgba(243, 239, 231, 0.9);
	font-family: var(--mono);
	font-size: clamp(0.72rem, 2.2vw, 0.82rem);
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}

.nav-links a:hover,
.nav-links a:focus-visible {
	color: #fff;
	border-bottom-color: var(--accent);
}

.nav-links a[aria-current="page"] {
	color: var(--accent-2);
	border-bottom-color: var(--accent);
}

.story-shell {
	position: relative;
	scroll-margin-top: var(--sticky-audio-clearance);
	background:
		radial-gradient(
			circle at 12% 6%,
			rgba(212, 138, 69, 0.09),
			transparent 30rem
		),
		radial-gradient(
			circle at 88% 20%,
			rgba(185, 76, 61, 0.08),
			transparent 24rem
		),
		linear-gradient(to bottom, #050506 0%, #090a0d 35%, #050506 100%);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.story-wrap {
	width: min(100%, var(--max-wide));
	margin-inline: auto;
}

.story-toc {
	display: none;
}

.story-toc[hidden] {
	display: none !important;
}

.mobile-story-toc {
	display: none;
}

.mobile-story-toc[hidden] {
	display: none !important;
}

.mobile-story-toc-scrim {
	display: none;
}

.story-toc__label {
	margin: 0 0 1rem;
	color: var(--dim);
	font-family: var(--mono);
	font-size: 0.68rem;
	letter-spacing: 0.18em;
	line-height: 1.2;
	text-transform: uppercase;
}

.story-toc__list {
	position: relative;
	margin: 0;
	padding: 0 0 0 0.95rem;
	list-style: none;
}

.story-toc__list::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 1px;
	background: linear-gradient(
		to bottom,
		transparent,
		rgba(255, 255, 255, 0.16) 12%,
		rgba(255, 255, 255, 0.08) 88%,
		transparent
	);
}

.story-toc li {
	margin: 0;
	padding: 0;
}

.mobile-story-toc li {
	margin: 0;
	padding: 0;
}

.story-toc__link {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: baseline;
	padding: 0.38rem 0 0.38rem 0.05rem;
	color: rgba(243, 239, 231, 0.72);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	line-height: 1.35;
	text-decoration: none;
	text-transform: uppercase;
	transition:
		color 160ms ease,
		opacity 160ms ease,
		transform 160ms ease;
}

.story-toc__title {
	min-width: 0;
}

.story-toc__time {
	justify-self: end;
	color: var(--dim);
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
	opacity: 0.82;
}

.story-toc__link::before {
	content: "";
	position: absolute;
	left: -0.95rem;
	top: 50%;
	width: 1px;
	height: 1.3rem;
	background: transparent;
	transform: translateY(-50%);
	transition:
		background 160ms ease,
		box-shadow 160ms ease;
}

.story-toc__link:hover,
.story-toc__link:focus-visible {
	color: var(--accent-2);
}

.story-toc__link[data-state="past"] {
	color: var(--dim);
	opacity: 0.58;
}

.story-toc__link[data-state="past"]:hover,
.story-toc__link[data-state="past"]:focus-visible {
	color: rgba(255, 202, 135, 0.72);
	opacity: 0.86;
}

.story-toc__link[aria-current="true"] {
	color: var(--accent-2);
	opacity: 1;
	transform: translateX(0.15rem);
}

.story-toc__link[aria-current="true"] .story-toc__time {
	color: rgba(255, 202, 135, 0.82);
}

.story-toc__link[aria-current="true"]::before {
	background: var(--accent);
	box-shadow: 0 0 0.7rem rgba(212, 138, 69, 0.45);
}

.prose {
	width: min(100%, var(--max-prose));
	margin-inline: auto;
	color: rgba(243, 239, 231, 0.92);
	font-family: var(--serif);
	font-size: clamp(1.05rem, 1.8vw, 1.22rem);
}

.chapter-header {
	margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
	margin: 0 0 0.9rem;
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.76rem;
	letter-spacing: 0.22em;
	text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
	color: #fff;
	font-family: var(--sans);
	font-weight: 300;
	line-height: 1.05;
	letter-spacing: -0.03em;
}

h1 {
	margin: 0;
	font-size: clamp(3rem, 10vw, 6.6rem);
	max-width: 11ch;
	text-transform: uppercase;
}

h2 {
	margin: 3.2rem 0 1rem;
	font-size: clamp(1.8rem, 4.5vw, 3rem);
}

.prose h2[id] {
	scroll-margin-top: var(--sticky-audio-clearance);
}

h3 {
	margin: 2.4rem 0 0.7rem;
	font-size: clamp(1.25rem, 3vw, 1.7rem);
}

h4 {
	margin: 2rem 0 0.5rem;
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.84rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

p {
	margin: 0 0 1.25rem;
}

.lede {
	max-width: 38rem;
	margin-top: 1.2rem;
	color: var(--muted);
	font-family: var(--sans);
	font-weight: 300;
	font-size: clamp(1.05rem, 2.2vw, 1.25rem);
	line-height: 1.7;
}

strong {
	color: #fff;
	font-weight: 800;
}

em {
	color: var(--accent-2);
	font-style: italic;
}

mark {
	background: rgba(212, 138, 69, 0.22);
	color: #fff;
	padding: 0.05em 0.18em;
	border-radius: 0.2em;
}

blockquote {
	position: relative;
	margin: 2.4rem 0;
	padding: clamp(1.4rem, 4vw, 2rem);
	background: linear-gradient(
		135deg,
		rgba(255, 255, 255, 0.055),
		rgba(255, 255, 255, 0.018)
	);
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 0.85rem;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

blockquote p {
	margin: 0;
	color: #fff;
	font-size: clamp(1.18rem, 2.3vw, 1.55rem);
	line-height: 1.45;
}

blockquote cite {
	display: block;
	margin-top: 0.95rem;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.74rem;
	font-style: normal;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

hr {
	height: 1px;
	margin: 3rem 0;
	border: 0;
	background: linear-gradient(
		to right,
		transparent,
		rgba(212, 138, 69, 0.6),
		transparent
	);
}

ul,
ol {
	margin: 1rem 0 1.6rem;
	padding-left: 1.25rem;
}

li {
	margin-bottom: 0.55rem;
	padding-left: 0.25rem;
}

li::marker {
	color: var(--accent);
}

code,
pre {
	font-family: var(--mono);
}

:not(pre) > code {
	color: var(--accent-2);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 0.25rem;
	padding: 0.08rem 0.28rem;
	font-size: 0.86em;
}

pre {
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	margin: 2rem 0;
	padding: 1.25rem;
	background: #050608;
	border: 1px solid var(--line);
	border-radius: 0.85rem;
	color: #e9decf;
	font-size: 0.86rem;
	line-height: 1.65;
	box-shadow:
		inset 0 0 0 1px rgba(212, 138, 69, 0.05),
		0 18px 60px rgba(0, 0, 0, 0.3);
}

table {
	width: 100%;
	margin: 2rem 0;
	border-collapse: collapse;
	overflow: hidden;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 0.95rem;
	border: 1px solid var(--line);
	border-radius: 0.8rem;
}

th,
td {
	padding: 0.85rem 0.9rem;
	text-align: left;
	border-bottom: 1px solid var(--line);
	vertical-align: top;
}

th {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	font-family: var(--mono);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

tr:last-child td {
	border-bottom: 0;
}

.callout {
	margin: 2rem 0;
	padding: 1.2rem 1.25rem;
	background: linear-gradient(
		135deg,
		rgba(185, 76, 61, 0.14),
		rgba(212, 138, 69, 0.08)
	);
	border: 1px solid rgba(212, 138, 69, 0.25);
	border-radius: 0.85rem;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 0.98rem;
}

.callout strong {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.76rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

figure {
	margin: 2.4rem 0;
	padding: 1rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--line);
	border-radius: 0.85rem;
}

.figure-placeholder {
	display: grid;
	place-items: center;
	min-height: 14rem;
	background:
		linear-gradient(
			135deg,
			rgba(212, 138, 69, 0.12),
			rgba(185, 76, 61, 0.08)
		),
		repeating-linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.04) 0 1px,
			transparent 1px 12px
		);
	border-radius: 0.55rem;
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.18em;
	text-align: center;
	text-transform: uppercase;
}

figcaption {
	margin-top: 0.8rem;
	color: var(--muted);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 0.9rem;
}

.anchor-placeholder {
	display: block;
	height: 0;
	overflow: hidden;
	visibility: hidden;
}

.story-footer {
	margin-top: clamp(4rem, 8vw, 6rem);
	padding: clamp(2rem, 5vw, 3rem) 0 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 0.9rem;
}

.legal-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 4vw, 2rem);
	width: min(100%, var(--max-wide));
	margin-inline: auto;
}

.legal-card {
	padding: 1.25rem;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid var(--line);
	border-radius: 0.85rem;
}

.legal-card h2 {
	margin: 0 0 0.85rem;
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.17em;
	text-transform: uppercase;
}

.legal-card p {
	margin-bottom: 0.85rem;
}

.legal-card p:last-child {
	margin-bottom: 0;
}

.audio-player {
	--audio-player-edge: clamp(0.85rem, 3vw, 1.5rem);
	--audio-player-height: 4.65rem;
	position: sticky;
	top: 0;
	z-index: 90;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(15rem, 34rem);
	gap: 1rem;
	align-items: center;
	width: min(
		calc(100% - var(--audio-player-edge) - var(--audio-player-edge)),
		var(--max-wide)
	);
	min-height: var(--audio-player-height);
	margin: calc(0px - var(--audio-player-height) - var(--audio-player-edge))
		auto var(--audio-player-edge);
	padding: 0.85rem 1rem;
	background: rgba(5, 6, 8, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 0.65rem;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	isolation: isolate;
	transition:
		background 220ms ease,
		border-color 220ms ease,
		border-radius 220ms ease,
		box-shadow 220ms ease;
}

.audio-player::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	z-index: -1;
	background: rgba(0, 0, 0, 0.96);
	box-shadow:
		0 0 0 100vmax rgba(0, 0, 0, 0.96),
		0 14px 42px rgba(0, 0, 0, 0.44);
	clip-path: inset(0 -100vmax);
	opacity: 0;
	transition: opacity 220ms ease;
}

.audio-player.is-stuck {
	background: transparent;
	border-color: transparent;
	border-radius: 0;
	box-shadow: none;
}

.audio-player.is-stuck::before {
	opacity: 1;
}

.audio-player__label {
	min-width: 0;
}

.audio-player__mount {
	min-width: 0;
}

.audio-player__eyebrow {
	display: block;
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.audio-player__title {
	display: block;
	overflow: hidden;
	color: #fff;
	font-family: var(--sans);
	font-size: 0.98rem;
	font-weight: 300;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.audio-player__status {
	color: var(--muted);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.audio-player__media {
	display: none;
}

.audio-controls {
	--audio-speed-column-width: 4.35rem;
	display: grid;
	grid-template-columns:
		2.25rem auto minmax(7rem, 1fr) auto
		var(--audio-speed-column-width) 2.25rem minmax(
			4.5rem,
			6rem
		);
	gap: 0.65rem;
	align-items: center;
	min-width: 0;
}

.audio-controls__button {
	position: relative;
	display: grid;
	place-items: center;
	width: 2.25rem;
	aspect-ratio: 1;
	padding: 0;
	color: var(--text);
	background:
		linear-gradient(
			135deg,
			rgba(255, 255, 255, 0.1),
			rgba(255, 255, 255, 0.025)
		),
		rgba(5, 6, 8, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 0.45rem;
	box-shadow:
		inset 0 0 0 1px rgba(212, 138, 69, 0.04),
		0 12px 28px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	transition:
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease,
		background 160ms ease;
}

.audio-controls__button:hover,
.audio-controls__button:focus-visible {
	color: var(--accent-2);
	background:
		linear-gradient(
			135deg,
			rgba(212, 138, 69, 0.16),
			rgba(255, 255, 255, 0.04)
		),
		rgba(8, 9, 12, 0.92);
	border-color: rgba(255, 202, 135, 0.42);
	transform: translateY(-1px);
}

.audio-controls__button:focus-visible {
	outline: 2px solid rgba(255, 202, 135, 0.72);
	outline-offset: 3px;
}

.audio-controls__button[aria-pressed="true"] {
	border-color: rgba(212, 138, 69, 0.54);
	box-shadow:
		inset 0 0 0 1px rgba(212, 138, 69, 0.12),
		0 0 20px rgba(212, 138, 69, 0.13),
		0 12px 28px rgba(0, 0, 0, 0.28);
}

.audio-controls__button--toc {
	display: none;
}

.audio-controls__button--speed {
	grid-template-columns: auto auto;
	justify-self: center;
	justify-content: center;
	gap: 0.18rem;
	width: fit-content;
	min-width: 3.15rem;
	max-width: var(--audio-speed-column-width);
	min-height: 2.25rem;
	padding: 0 0.42rem;
	aspect-ratio: auto;
}

.audio-controls__icon {
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	overflow: hidden;
	font-family: "Material Icons Round";
	font-size: 1.25rem;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-feature-settings: "liga";
	-webkit-font-smoothing: antialiased;
	font-feature-settings: "liga";
}

.audio-controls__speed-value {
	color: currentColor;
	font-family: var(--mono);
	font-size: 0.66rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

.audio-controls__time {
	color: rgba(243, 239, 231, 0.82);
	font-family: var(--mono);
	font-size: 0.76rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.05em;
	line-height: 1;
	white-space: nowrap;
}

.audio-controls__time--duration {
	color: var(--dim);
}

.audio-controls__seek,
.audio-controls__volume {
	display: grid;
	min-width: 0;
}

.audio-controls input[type="range"],
.audio-speed-menu input[type="range"] {
	--range-progress: 0%;
	width: 100%;
	min-width: 0;
	height: 1rem;
	margin: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.audio-controls input[type="range"]:focus-visible,
.audio-speed-menu input[type="range"]:focus-visible {
	outline: 2px solid rgba(255, 202, 135, 0.72);
	outline-offset: 0.35rem;
}

.audio-controls input[type="range"]::-webkit-slider-runnable-track,
.audio-speed-menu input[type="range"]::-webkit-slider-runnable-track {
	height: 0.28rem;
	background:
		linear-gradient(var(--accent), var(--accent)) 0 / var(--range-progress)
			100% no-repeat,
		rgba(255, 255, 255, 0.16);
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.audio-controls input[type="range"]::-moz-range-track,
.audio-speed-menu input[type="range"]::-moz-range-track {
	height: 0.28rem;
	background: rgba(255, 255, 255, 0.16);
	border: 0;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.audio-controls input[type="range"]::-moz-range-progress,
.audio-speed-menu input[type="range"]::-moz-range-progress {
	height: 0.28rem;
	background: var(--accent);
	border-radius: 999px;
}

.audio-controls input[type="range"]::-webkit-slider-thumb,
.audio-speed-menu input[type="range"]::-webkit-slider-thumb {
	width: 0.82rem;
	aspect-ratio: 1;
	margin-top: -0.27rem;
	background: var(--accent-2);
	border: 2px solid #1b120b;
	border-radius: 50%;
	box-shadow:
		0 0 0 2px rgba(255, 202, 135, 0.22),
		0 0 16px rgba(212, 138, 69, 0.28);
	-webkit-appearance: none;
	appearance: none;
}

.audio-controls input[type="range"]::-moz-range-thumb,
.audio-speed-menu input[type="range"]::-moz-range-thumb {
	width: 0.82rem;
	height: 0.82rem;
	background: var(--accent-2);
	border: 2px solid #1b120b;
	border-radius: 50%;
	box-shadow:
		0 0 0 2px rgba(255, 202, 135, 0.22),
		0 0 16px rgba(212, 138, 69, 0.28);
}

.audio-player__speed-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	right: 1rem;
	z-index: 3;
	width: min(21rem, calc(100% - 2rem));
	padding: 0.82rem;
	background: rgba(0, 0, 0, 0.96);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-top-color: rgba(255, 202, 135, 0.36);
	border-radius: 0.55rem;
	box-shadow:
		0 24px 54px rgba(0, 0, 0, 0.5),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.audio-player__speed-menu[hidden] {
	display: none;
}

.audio-speed-menu__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.72rem;
	color: var(--dim);
	font-family: var(--mono);
	font-size: 0.66rem;
	letter-spacing: 0.16em;
	line-height: 1.2;
	text-transform: uppercase;
}

.audio-speed-menu__header strong {
	color: var(--accent-2);
	font-size: 0.76rem;
	letter-spacing: 0.06em;
}

.audio-speed-menu__presets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.45rem;
	margin-bottom: 0.82rem;
}

.audio-speed-menu__preset {
	min-width: 0;
	padding: 0.48rem 0.4rem;
	color: rgba(243, 239, 231, 0.86);
	background: rgba(255, 255, 255, 0.055);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 0.36rem;
	font-family: var(--mono);
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
	cursor: pointer;
	transition:
		background 160ms ease,
		border-color 160ms ease,
		color 160ms ease;
}

.audio-speed-menu__preset:hover,
.audio-speed-menu__preset:focus-visible,
.audio-speed-menu__preset[aria-pressed="true"] {
	color: var(--accent-2);
	background: rgba(212, 138, 69, 0.16);
	border-color: rgba(255, 202, 135, 0.42);
}

.audio-speed-menu__preset:focus-visible {
	outline: 2px solid rgba(255, 202, 135, 0.72);
	outline-offset: 2px;
}

.audio-speed-menu__range {
	display: grid;
	gap: 0.46rem;
	color: var(--dim);
	font-family: var(--mono);
	font-size: 0.64rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

@media (min-width: 72rem) {
	.story-shell.has-story-toc .story-wrap {
		display: grid;
		grid-template-columns: minmax(10rem, 12rem) minmax(0, var(--max-prose));
		column-gap: clamp(2.25rem, 4.5vw, 4rem);
		align-items: start;
		width: min(100%, 64.5rem);
	}

	.story-shell.has-story-toc .story-toc[data-ready="true"] {
		position: sticky;
		top: var(--sticky-audio-clearance);
		display: block;
		max-height: calc(100svh - var(--sticky-audio-clearance) - 1rem);
		overflow-y: auto;
		padding-top: 0.25rem;
		padding-right: 0.25rem;
		justify-self: end;
		width: min(100%, 12rem);
	}

	.story-shell.has-story-toc .prose {
		width: 100%;
	}
}

@media (max-width: 71.999rem) {
	.audio-player.is-stuck .audio-controls {
		grid-template-columns:
			2.25rem auto minmax(0, 1fr) auto
			var(--audio-speed-column-width) 2.25rem 2.25rem minmax(
				4.5rem,
				6rem
			);
	}

	.audio-player.is-stuck .audio-controls__button--toc {
		display: grid;
	}

	.mobile-story-toc[data-ready="true"] {
		display: block;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		z-index: 2;
		max-height: min(50svh, 22rem);
		overflow-x: hidden;
		overflow-y: auto;
		padding: 0.9rem 0.9rem 1rem;
		background: rgba(0, 0, 0, 0.96);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		box-shadow: 0 22px 46px rgba(0, 0, 0, 0.4);
	}

	.mobile-story-toc .story-toc__link[aria-current="true"] {
		transform: none;
	}

	.mobile-story-toc__label {
		margin: 0 0 0.65rem;
		color: var(--dim);
		font-family: var(--mono);
		font-size: 0.66rem;
		letter-spacing: 0.18em;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.mobile-story-toc-scrim:not([hidden]) {
		position: fixed;
		inset: 0;
		z-index: 85;
		display: block;
		width: 100%;
		min-height: 100svh;
		padding: 0;
		background: rgba(0, 0, 0, 0.62);
		border: 0;
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
	}
}

@media (min-width: 54.001rem) and (max-width: 71.999rem) {
	.audio-controls {
		grid-template-columns:
			2.25rem auto minmax(0, 1fr) auto
			var(--audio-speed-column-width) 2.25rem 2.25rem minmax(
				4.5rem,
				6rem
			);
	}

	.audio-controls__button--toc {
		display: grid;
		visibility: hidden;
		pointer-events: none;
	}

	.audio-player.is-stuck .audio-controls__button--toc {
		visibility: visible;
		pointer-events: auto;
	}
}

@media (max-width: 54rem) {
	:root {
		--sticky-audio-clearance: 8rem;
	}

	.site-nav {
		align-items: flex-start;
	}

	.nav-links {
		gap: 0.3rem 1rem;
	}

	.nav-links :last-child {
		flex-basis: 100%;
		text-align: center;
	}

	.legal-grid {
		grid-template-columns: 1fr;
	}

	.audio-player {
		--audio-player-height: 6.85rem;
		grid-template-columns: 1fr;
		gap: 0.65rem;
		padding: 0.8rem;
	}

	.audio-player.is-stuck {
		padding: 0.8rem;
	}

	.audio-controls {
		grid-template-columns:
			2.25rem auto minmax(0, 1fr) auto
			var(--audio-speed-column-width);
		gap: 0.5rem;
	}

	.audio-player.is-stuck .audio-controls {
		grid-template-columns:
			2.25rem auto minmax(0, 1fr) auto
			var(--audio-speed-column-width) 2.25rem;
	}

	.audio-controls__button--mute,
	.audio-controls__volume {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}

:root {
	--dm-lockup-width: clamp(28rem, 42vw, 54rem);
	--dm-text: rgb(232 236 238 / 0.9);
	--dm-red: rgb(151 2 16 / 0.86);
	--dm-red-soft: rgb(151 2 16 / 0.52);
}

.deepwell-title {
	position: absolute;
	left: clamp(2rem, 5.35vw, 5.8rem);
	bottom: clamp(8.1rem, calc(12vh + 2rem), 11.1rem);
	z-index: 5;
	width: var(--dm-lockup-width);
	max-width: 100%;
	margin: 0;
	font-family:
		"Science Gothic",
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	text-transform: uppercase;
	color: var(--dm-text);
	user-select: none;
	text-rendering: geometricPrecision;
	-webkit-font-smoothing: antialiased;
	filter: drop-shadow(0 0 0.12rem rgb(255 255 255 / 0.16))
		drop-shadow(0 1.15rem 1.85rem rgb(0 0 0 / 0.58));
}

.deepwell-title__art {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.deepwell-title__kicker,
.deepwell-title__main {
	fill: currentColor;
	font-family:
		"Science Gothic",
		system-ui,
		-apple-system,
		BlinkMacSystemFont,
		"Segoe UI",
		sans-serif;
	font-synthesis: none;
	text-rendering: geometricPrecision;
	text-transform: uppercase;
}

.deepwell-title__kicker {
	font-size: 42px;
	font-weight: 320;
	font-stretch: 118%;
	font-variation-settings:
		"wdth" 118,
		"wght" 320;
	opacity: 0.86;
}

.deepwell-title__main {
	font-size: 124px;
	font-weight: 255;
	font-stretch: 132%;
	font-variation-settings:
		"wdth" 132,
		"wght" 255;
	opacity: 0.92;
}

.deepwell-title__rule {
	fill: none;
	stroke: var(--dm-red);
	stroke-linecap: butt;
	stroke-width: 1px;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 0.42rem rgb(151 2 16 / 0.26));
}

.deepwell-title__rule--left {
	opacity: 0.88;
}

.deepwell-title__rule--notch {
	opacity: 0.78;
}

.deepwell-title__rule--right {
	stroke: var(--dm-red-soft);
	opacity: 0.82;
}

@media (max-width: 54rem) {
	:root {
		--dm-lockup-width: min(88vw, 33rem);
	}

	.deepwell-title {
		left: clamp(1rem, 7vw, 2.3rem);
		bottom: clamp(8.1rem, calc(14rem - 0.8vw), 11.1rem);
	}
}

@media (min-width: 54.001rem) and (max-width: 71.999rem) {
	:root {
		--dm-lockup-width: min(82vw, 44rem);
	}

	.characters-page .characters-hero h1 {
		font-size: 4.35rem;
		font-stretch: 118%;
		font-variation-settings:
			"wdth" 118,
			"wght" 240;
	}
}

.characters-page {
	--characters-cormac: #ffb36a;
	--characters-mara: #8fd3c8;
	--characters-alert: #d95d50;
	--characters-classified: #b3122f;
	--characters-classified-readable: #ff6d7f;
	overflow-x: clip;
}

.characters-page .characters-hero {
	display: flex;
	align-items: flex-end;
	min-height: 82svh;
	padding:
		calc(var(--nav-height) + 3rem) clamp(1.25rem, 5vw, 4rem)
		clamp(3rem, 8vh, 5rem);
}

.characters-page .characters-hero__content {
	position: relative;
	z-index: 5;
	width: min(100%, var(--max-wide));
	min-width: 0;
	margin-inline: auto;
}

.characters-page .characters-hero h1 {
	max-width: none;
	margin: 0;
	font-size: 5.6rem;
	font-weight: 240;
	font-stretch: 132%;
	font-variation-settings:
		"wdth" 132,
		"wght" 240;
	letter-spacing: 0;
	text-transform: uppercase;
	text-shadow: 0 1.4rem 2.6rem rgb(0 0 0 / 0.68);
}

.characters-page .characters-hero__lede {
	max-width: 43rem;
	margin: 1.1rem 0 0;
	color: rgb(243 239 231 / 0.84);
	font-family: var(--sans);
	font-size: 1.18rem;
	font-weight: 300;
	line-height: 1.65;
	text-shadow: 0 1rem 2rem rgb(0 0 0 / 0.72);
}

.characters-page .characters-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.6rem;
}

.characters-page .characters-hero__actions a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 100%;
	min-width: 0;
	min-height: 2.75rem;
	padding: 0.55rem 0.8rem;
	color: #fff;
	background: rgb(5 6 8 / 0.74);
	border: 1px solid rgb(255 255 255 / 0.16);
	border-radius: 0.5rem;
	box-shadow: 0 1rem 2.5rem rgb(0 0 0 / 0.28);
	font-family: var(--mono);
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	white-space: normal;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.characters-page .characters-hero__actions a:hover,
.characters-page .characters-hero__actions a:focus-visible {
	color: var(--accent-2);
	border-color: rgb(255 202 135 / 0.42);
}

.characters-page .characters-hero__actions .material-icons-round {
	font-size: 1.08rem;
	letter-spacing: 0;
}

.characters-page .characters-shell {
	padding-top: clamp(2.8rem, 7vw, 5.4rem);
}

.characters-page .characters-prose {
	width: min(100%, 72rem);
	max-width: none;
	min-width: 0;
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.7;
	overflow-wrap: break-word;
}

.characters-page .characters-prose h1,
.characters-page .characters-prose h2,
.characters-page .characters-prose h3 {
	letter-spacing: 0;
}

.characters-page .characters-prose h1 {
	max-width: 13ch;
	font-size: 4.4rem;
	font-weight: 260;
	font-stretch: 124%;
	font-variation-settings:
		"wdth" 124,
		"wght" 260;
}

.characters-page .characters-prose h2 {
	margin: 0;
	font-size: clamp(2.25rem, 5vw, 3.45rem);
	font-weight: 260;
	font-stretch: 118%;
	font-variation-settings:
		"wdth" 118,
		"wght" 260;
}

.characters-page .characters-prose h3 {
	margin: 0 0 0.7rem;
	color: #fff;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.characters-page .dossier-index {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
	gap: clamp(1rem, 3vw, 1.6rem);
	align-items: stretch;
	min-width: 0;
	margin: 0 0 clamp(1.35rem, 3.5vw, 2.2rem);
	padding: clamp(1rem, 2.8vw, 1.45rem);
	overflow: clip;
	background:
		linear-gradient(90deg, rgb(255 179 106 / 0.12), transparent 38%),
		linear-gradient(135deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.018)),
		rgb(6 8 10 / 0.82);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 0.5rem;
	box-shadow: 0 1.6rem 4.5rem rgb(0 0 0 / 0.25);
}

.characters-page .dossier-index::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 0.2rem;
	background: linear-gradient(90deg, var(--accent), var(--characters-alert), transparent);
	opacity: 0.82;
}

.characters-page .dossier-index > * {
	position: relative;
	min-width: 0;
}

.characters-page .dossier-index__summary {
	max-width: 36rem;
	margin: 0;
	color: rgb(243 239 231 / 0.82);
	font-size: 0.98rem;
	line-height: 1.68;
}

.characters-page .dossier-index__files {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
	min-width: 0;
}

.characters-page .dossier-index__files a {
	display: grid;
	align-content: start;
	gap: 0.42rem;
	min-width: 0;
	min-height: 9rem;
	padding: 0.95rem;
	color: rgb(243 239 231 / 0.9);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.018)),
		rgb(2 3 5 / 0.42);
	border: 1px solid rgb(255 255 255 / 0.13);
	border-top-color: rgb(255 202 135 / 0.35);
	border-radius: 0.45rem;
	text-decoration: none;
	transition:
		border-color 160ms ease,
		color 160ms ease,
		transform 160ms ease,
		background 160ms ease;
}

.characters-page .dossier-index__files a:hover,
.characters-page .dossier-index__files a:focus-visible {
	color: #fff;
	background:
		linear-gradient(135deg, rgb(255 179 106 / 0.12), rgb(255 255 255 / 0.025)),
		rgb(4 5 7 / 0.72);
	border-color: rgb(255 202 135 / 0.42);
	transform: translateY(-1px);
}

.characters-page .dossier-index__files span,
.characters-page .attachment-card span {
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.64rem;
	letter-spacing: 0.14em;
	line-height: 1.25;
	text-transform: uppercase;
}

.characters-page .dossier-index__files strong {
	display: block;
	color: #fff;
	font-size: 1.18rem;
	font-weight: 420;
	line-height: 1.16;
	overflow-wrap: anywhere;
}

.characters-page .dossier-index__files em {
	align-self: end;
	color: rgb(243 239 231 / 0.62);
	font-family: var(--mono);
	font-size: 0.68rem;
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.characters-page .dossier-index__file--classified {
	background:
		linear-gradient(135deg, rgb(179 18 47 / 0.16), rgb(255 255 255 / 0.014)),
		rgb(2 3 5 / 0.48);
	border-top-color: color-mix(in srgb, var(--characters-classified) 72%, transparent);
}

.characters-page .dossier-index__file--classified span {
	color: var(--characters-classified-readable);
}

.characters-page .character-profile {
	--profile-accent: var(--accent);
	position: relative;
	min-width: 0;
	margin: 0 0 clamp(2.4rem, 5.5vw, 4.8rem);
	padding: 0;
	overflow: clip;
	background:
		linear-gradient(180deg, rgb(255 255 255 / 0.055), transparent 13rem),
		linear-gradient(135deg, rgb(255 255 255 / 0.035), rgb(255 255 255 / 0.01)),
		rgb(4 5 7 / 0.9);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 0.5rem;
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.025),
		0 1.8rem 5rem rgb(0 0 0 / 0.32);
}

.characters-page .character-profile::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 0.22rem;
	background: linear-gradient(to bottom, var(--profile-accent), transparent 66%);
	opacity: 0.85;
}

.characters-page .character-profile--cormac {
	--profile-accent: var(--characters-cormac);
}

.characters-page .character-profile--mara {
	--profile-accent: var(--characters-mara);
}

.characters-page .character-profile--lucius {
	--profile-accent: var(--characters-classified);
}

.characters-page .character-profile--lucius .character-sigil,
.characters-page .character-profile--lucius .dossier-file__bar span:first-child,
.characters-page .character-profile--lucius .redaction-list dt,
.characters-page .character-profile--lucius .record-table th,
.characters-page .character-profile--lucius .attachment-card span {
	color: var(--characters-classified-readable);
}

.characters-page .dossier-file__bar {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem 0.95rem;
	min-width: 0;
	padding: 0.62rem clamp(0.9rem, 2.5vw, 1.25rem) 0.62rem clamp(1.1rem, 3vw, 1.55rem);
	color: rgb(243 239 231 / 0.68);
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--profile-accent) 12%, transparent), transparent 44%),
		rgb(0 0 0 / 0.3);
	border-bottom: 1px solid rgb(255 255 255 / 0.11);
	font-family: var(--mono);
	font-size: 0.65rem;
	letter-spacing: 0.14em;
	line-height: 1.35;
	text-transform: uppercase;
}

.characters-page .dossier-file__bar span {
	min-width: 0;
	overflow-wrap: anywhere;
}

.characters-page .dossier-file__bar span:first-child {
	color: var(--profile-accent);
}

.characters-page .character-profile__mast {
	display: grid;
	grid-template-columns: 4.8rem minmax(0, 1fr) minmax(8.5rem, auto);
	gap: clamp(1rem, 2.5vw, 1.4rem);
	align-items: start;
	min-width: 0;
	margin: 0;
	padding: clamp(1.2rem, 3vw, 1.7rem) clamp(1rem, 3vw, 1.55rem);
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.characters-page .character-sigil {
	display: grid;
	place-items: center;
	width: 4.8rem;
	aspect-ratio: 1;
	color: var(--profile-accent);
	background:
		linear-gradient(135deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.02)),
		rgb(5 6 8 / 0.74);
	border: 1px solid color-mix(in srgb, var(--profile-accent) 36%, transparent);
	border-radius: 0.5rem;
	box-shadow:
		inset 0 0 0 1px rgb(255 255 255 / 0.04),
		0 1rem 2.6rem rgb(0 0 0 / 0.24);
}

.characters-page .character-sigil .material-icons-round {
	font-size: 2rem;
	letter-spacing: 0;
}

.characters-page .character-profile__summary {
	max-width: 58rem;
	margin: 0.85rem 0 0;
	color: rgb(243 239 231 / 0.83);
	font-size: 1.08rem;
	line-height: 1.75;
}

.characters-page .character-profile__identity {
	min-width: 0;
}

.characters-page .character-profile__identity h2 {
	overflow-wrap: anywhere;
}

.characters-page .dossier-stamp {
	display: grid;
	gap: 0.16rem;
	justify-self: end;
	min-width: 0;
	max-width: 11rem;
	padding: 0.58rem 0.7rem;
	color: var(--profile-accent);
	background: rgb(0 0 0 / 0.22);
	border: 2px solid color-mix(in srgb, var(--profile-accent) 58%, transparent);
	border-radius: 0.25rem;
	box-shadow:
		inset 0 0 0 1px rgb(0 0 0 / 0.36),
		0 0 1.2rem color-mix(in srgb, var(--profile-accent) 14%, transparent);
	font-family: var(--mono);
	line-height: 1.08;
	text-align: center;
	text-transform: uppercase;
	transform: rotate(-1.5deg);
}

.characters-page .dossier-stamp span {
	font-size: 0.58rem;
	letter-spacing: 0.16em;
}

.characters-page .dossier-stamp strong {
	color: currentColor;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.1em;
}

.characters-page .dossier-stamp--contested {
	color: var(--characters-alert);
	border-color: rgb(217 93 80 / 0.64);
}

.characters-page .dossier-stamp--classified {
	color: var(--characters-classified-readable);
	border-color: color-mix(in srgb, var(--characters-classified) 78%, transparent);
	box-shadow:
		inset 0 0 0 1px rgb(0 0 0 / 0.42),
		0 0 1.3rem rgb(179 18 47 / 0.2);
}

.characters-page .dossier-file__meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	min-width: 0;
	background: rgb(0 0 0 / 0.18);
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.characters-page .dossier-file__meta div {
	min-width: 0;
	padding: 0.82rem clamp(0.85rem, 2.2vw, 1.1rem);
	border-right: 1px solid rgb(255 255 255 / 0.09);
}

.characters-page .dossier-file__meta div:last-child {
	border-right: 0;
}

.characters-page .dossier-file__meta span,
.characters-page .character-fact span {
	display: block;
	margin-bottom: 0.42rem;
	color: var(--dim);
	font-family: var(--mono);
	font-size: 0.62rem;
	letter-spacing: 0.14em;
	line-height: 1.25;
	text-transform: uppercase;
}

.characters-page .dossier-file__meta strong {
	display: block;
	color: rgb(255 255 255 / 0.9);
	font-size: 0.83rem;
	font-weight: 520;
	line-height: 1.36;
	overflow-wrap: anywhere;
}

.characters-page .character-facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.75rem;
	margin: 0 clamp(1rem, 3vw, 1.55rem) 1.35rem;
}

.characters-page .character-fact {
	min-width: 0;
	padding: 0.72rem 0;
	border-top: 1px solid color-mix(in srgb, var(--profile-accent) 36%, transparent);
}

.characters-page .character-fact strong {
	display: block;
	color: rgb(255 255 255 / 0.94);
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.4;
}

.characters-page .character-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 2rem);
	min-width: 0;
	margin: 1.25rem clamp(1rem, 3vw, 1.55rem);
}

.characters-page .dossier-card {
	min-width: 0;
	padding: 0.15rem 0 0.15rem 1rem;
	border-left: 2px solid color-mix(in srgb, var(--profile-accent) 66%, transparent);
}

.characters-page .dossier-card--quote {
	border-left-color: rgb(255 255 255 / 0.16);
}

.characters-page .record-card,
.characters-page .release-ledger,
.characters-page .redaction-card {
	min-width: 0;
	padding: 0.9rem 0 0;
	border-top: 1px solid color-mix(in srgb, var(--profile-accent) 28%, transparent);
}

.characters-page .attachment-card {
	min-width: 0;
	padding: 0.95rem;
	background:
		linear-gradient(135deg, rgb(255 255 255 / 0.045), rgb(255 255 255 / 0.012)),
		rgb(5 6 8 / 0.34);
	border: 1px solid rgb(255 255 255 / 0.1);
	border-top-color: color-mix(in srgb, var(--profile-accent) 38%, transparent);
	border-radius: 0.32rem;
}

.characters-page .dossier-card p,
.characters-page .record-card p,
.characters-page .attachment-card p {
	margin-bottom: 0.95rem;
	color: rgb(243 239 231 / 0.82);
	font-size: 0.98rem;
	line-height: 1.7;
}

.characters-page .dossier-card p:last-child,
.characters-page .record-card p:last-child,
.characters-page .attachment-card p:last-child {
	margin-bottom: 0;
}

.characters-page .compact-quote {
	margin: 1rem 0 0;
	padding: 0.8rem 0 0.8rem 1rem;
	background: transparent;
	border: 0;
	border-left: 2px solid color-mix(in srgb, var(--profile-accent) 52%, transparent);
	border-radius: 0;
	box-shadow: none;
}

.characters-page .compact-quote p {
	color: #fff;
	font-size: 1.04rem;
}

.characters-page .record-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 1.8rem);
	min-width: 0;
	margin: 1.35rem clamp(1rem, 3vw, 1.55rem) 1.55rem;
}

.characters-page .record-card ul {
	margin: 0;
	padding-left: 1rem;
	color: rgb(243 239 231 / 0.82);
	font-size: 0.96rem;
}

.characters-page .record-table {
	width: 100%;
	margin: 0.55rem 0 0;
	border: 0;
	border-top: 1px solid rgb(255 255 255 / 0.1);
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0;
	background: transparent;
	font-size: 0.86rem;
	table-layout: fixed;
	overflow: hidden;
}

.characters-page .record-table th,
.characters-page .record-table td {
	padding: 0.68rem 0.72rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.characters-page .record-table th {
	width: 42%;
	color: rgb(247 209 166 / 0.78);
	background: rgb(255 255 255 / 0.032);
	border-right: 1px solid rgb(255 255 255 / 0.07);
	font-size: 0.62rem;
	letter-spacing: 0.12em;
}

.characters-page .record-table td {
	color: rgb(243 239 231 / 0.88);
	font-weight: 350;
}

.characters-page .record-table tr:last-child th,
.characters-page .record-table tr:last-child td {
	border-bottom: 0;
}

.characters-page .intel-strip {
	display: block;
	max-width: 100%;
	min-width: 0;
	margin: 1.2rem clamp(1rem, 3vw, 1.55rem) 1.35rem;
	background:
		linear-gradient(90deg, color-mix(in srgb, var(--profile-accent) 10%, transparent), transparent 22rem),
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 1.48rem,
			rgb(255 255 255 / 0.035) 1.48rem,
			rgb(255 255 255 / 0.035) 1.54rem
		),
		#050608;
	border-color: color-mix(in srgb, var(--profile-accent) 32%, var(--line));
	border-radius: 0.5rem;
	color: rgb(241 230 215 / 0.9);
	font-size: 0.82rem;
	white-space: pre;
}

.characters-page .intel-strip code {
	display: block;
	width: max-content;
	max-width: none;
}

.characters-page .intel-strip--classified {
	background:
		linear-gradient(90deg, rgb(179 18 47 / 0.16), transparent 22rem),
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 1.48rem,
			rgb(179 18 47 / 0.08) 1.48rem,
			rgb(179 18 47 / 0.08) 1.54rem
		),
		#050608;
}

.characters-page .redaction-mark {
	display: inline;
	color: rgb(136 128 120 / 0.9);
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: var(--mono);
	font-style: normal;
	font-weight: 650;
	letter-spacing: 0.015em;
	line-height: inherit;
	text-shadow: none;
}

.characters-page .redaction-mark[data-redaction] {
	display: inline-block;
	position: relative;
	color: transparent;
}

.characters-page .redaction-mark[data-redaction]::after {
	content: attr(data-redaction);
	position: absolute;
	inset: 0 auto auto 0;
	color: rgb(136 128 120 / 0.9);
	line-height: inherit;
	white-space: pre;
}

.characters-page .dossier-appendix {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.8fr);
	gap: clamp(1rem, 3vw, 1.8rem);
	min-width: 0;
	margin: 1.4rem clamp(1rem, 3vw, 1.55rem) 1.55rem;
}

.characters-page .redaction-list {
	display: grid;
	gap: 0.55rem;
	margin: 0;
}

.characters-page .redaction-list div {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.7fr) minmax(0, 1fr);
	gap: 0.7rem;
	min-width: 0;
	padding: 0.68rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.08);
}

.characters-page .redaction-list div:last-child {
	border-bottom: 0;
}

.characters-page .redaction-list dt {
	color: var(--accent-2);
	font-family: var(--mono);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.35;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.characters-page .redaction-list dd {
	margin: 0;
	color: rgb(243 239 231 / 0.78);
	font-size: 0.92rem;
	line-height: 1.45;
}

.characters-page .attachment-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	min-width: 0;
	margin: 1.45rem clamp(1rem, 3vw, 1.55rem) clamp(1.1rem, 3vw, 1.55rem);
}

.characters-page .attachment-card h3 {
	margin: 0.62rem 0 0.55rem;
}

.characters-page .attachment-card--tags {
	display: grid;
	align-content: start;
}

.characters-page .crossref-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.48rem;
	margin: 0.7rem 0 0;
	padding: 0;
	list-style: none;
}

.characters-page .crossref-list li {
	margin: 0;
	padding: 0.42rem 0.5rem;
	color: rgb(243 239 231 / 0.84);
	background: rgb(255 255 255 / 0.05);
	border: 1px solid color-mix(in srgb, var(--profile-accent) 26%, transparent);
	border-radius: 0.28rem;
	font-family: var(--mono);
	font-size: 0.64rem;
	letter-spacing: 0.1em;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

@media (min-width: 72rem) {
	.characters-page .story-shell.has-story-toc .story-wrap {
		grid-template-columns: minmax(10rem, 12rem) minmax(0, 72rem);
		width: min(100%, 88rem);
	}

	.characters-page .story-shell.has-story-toc .prose {
		width: 100%;
	}
}

@media (max-width: 71.999rem) {
	.characters-page .dossier-index {
		grid-template-columns: 1fr;
	}

	.characters-page .character-profile__mast {
		grid-template-columns: 4.8rem minmax(0, 1fr);
	}

	.characters-page .dossier-stamp {
		grid-column: 2;
		justify-self: start;
	}

	.characters-page .dossier-file__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.characters-page .dossier-file__meta div:nth-child(2n) {
		border-right: 0;
	}

	.characters-page .dossier-file__meta div:nth-child(-n + 2) {
		border-bottom: 1px solid rgb(255 255 255 / 0.09);
	}

	.characters-page .character-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.characters-page .character-columns,
	.characters-page .record-grid,
	.characters-page .dossier-appendix {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 54rem) {
	.characters-page .characters-hero {
		min-height: 74svh;
		padding:
			calc(var(--nav-height) + 3rem) 1.1rem
			clamp(2rem, 7vh, 3.5rem);
	}

	.characters-page .characters-hero h1 {
		max-width: 100%;
		font-size: clamp(2.65rem, 13.5vw, 4.2rem);
		font-stretch: 104%;
		font-variation-settings:
			"wdth" 104,
			"wght" 240;
		line-height: 1.06;
		overflow-wrap: anywhere;
	}

	.characters-page .characters-hero__lede {
		font-size: 1rem;
	}

	.characters-page .characters-prose h1 {
		font-size: 2.7rem;
	}

	.characters-page .characters-prose h2 {
		font-size: 2.15rem;
	}

	.characters-page .dossier-index,
	.characters-page .character-profile {
		border-radius: 0.45rem;
	}

	.characters-page .dossier-index__files,
	.characters-page .dossier-file__meta,
	.characters-page .attachment-grid {
		grid-template-columns: 1fr;
	}

	.characters-page .character-profile__mast {
		grid-template-columns: 1fr;
	}

	.characters-page .dossier-file__meta div,
	.characters-page .dossier-file__meta div:nth-child(2n),
	.characters-page .dossier-file__meta div:nth-child(-n + 2) {
		border-right: 0;
		border-bottom: 1px solid rgb(255 255 255 / 0.09);
	}

	.characters-page .dossier-file__meta div:last-child {
		border-bottom: 0;
	}

	.characters-page .dossier-stamp {
		grid-column: auto;
		justify-self: start;
		transform: none;
	}

	.characters-page .character-facts {
		grid-template-columns: 1fr;
	}

	.characters-page .redaction-list div {
		grid-template-columns: 1fr;
		gap: 0.18rem;
	}

	.characters-page .record-table th,
	.characters-page .record-table td {
		padding: 0.62rem 0.65rem;
	}

	.characters-page .record-table th {
		width: 44%;
	}
}

@media (max-width: 24rem) {
	.characters-page .characters-hero h1 {
		font-size: 2.45rem;
		font-stretch: 100%;
		font-variation-settings:
			"wdth" 100,
			"wght" 240;
	}
}

.ship-page {
	--ship-accent: #ffb36a;
	--ship-teal: #8fd3c8;
	--ship-red: #d95d50;
	--ship-steel: #9fb2bc;
	overflow-x: clip;
}

.ship-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 86svh;
	overflow: clip;
	background: #050506;
}

.ship-hero::before,
.ship-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.ship-hero::before {
	background:
		linear-gradient(
			to bottom,
			rgb(5 5 6 / 0.72),
			rgb(5 5 6 / 0.14) 30%,
			rgb(5 5 6 / 0.18) 56%,
			rgb(5 5 6 / 0.9) 100%
		),
		linear-gradient(90deg, rgb(5 5 6 / 0.78), transparent 58%);
}

.ship-hero::after {
	background:
		linear-gradient(90deg, rgb(255 179 106 / 0.12), transparent 34%),
		linear-gradient(to top, var(--bg), transparent 22%);
	mix-blend-mode: screen;
	opacity: 0.52;
}

.ship-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	background: #050506;
}

.ship-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 54% 50%;
}

.ship-hero__content {
	position: relative;
	z-index: 2;
	width: min(100%, var(--max-wide));
	min-width: 0;
	margin-inline: auto;
	padding:
		calc(var(--nav-height) + 3rem) clamp(1.25rem, 5vw, 4rem)
		clamp(3.4rem, 8vh, 5.5rem);
}

.ship-hero h1 {
	max-width: 11ch;
	margin: 0;
	font-size: clamp(3.4rem, 10.8vw, 8rem);
	font-weight: 230;
	font-stretch: 132%;
	font-variation-settings:
		"wdth" 132,
		"wght" 230;
	letter-spacing: 0;
	line-height: 0.92;
	text-transform: uppercase;
	text-shadow: 0 1.4rem 2.8rem rgb(0 0 0 / 0.82);
	overflow-wrap: break-word;
}

.ship-hero__kicker {
	margin: 1rem 0 0;
	color: var(--ship-accent);
	font-family: var(--mono);
	font-size: clamp(0.78rem, 1.6vw, 0.96rem);
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
	text-shadow: 0 0.8rem 1.8rem rgb(0 0 0 / 0.86);
}

.ship-hero__lede {
	max-width: 42rem;
	margin: 1rem 0 0;
	color: rgb(243 239 231 / 0.86);
	font-size: clamp(1rem, 2vw, 1.24rem);
	line-height: 1.66;
	text-shadow: 0 1rem 2rem rgb(0 0 0 / 0.78);
}

.ship-shell {
	padding: 0 clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
	background:
		linear-gradient(180deg, rgb(255 179 106 / 0.06), transparent 30rem),
		linear-gradient(90deg, rgb(143 211 200 / 0.045), transparent 40%),
		var(--bg);
}

.ship-registry {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	width: min(100%, var(--max-wide));
	min-width: 0;
	margin: 0 auto;
	transform: translateY(-50%);
	background: rgb(5 6 8 / 0.9);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-radius: 0.5rem;
	box-shadow: 0 1.5rem 4rem rgb(0 0 0 / 0.35);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.ship-registry div {
	min-width: 0;
	padding: 0.9rem 1rem;
	border-right: 1px solid rgb(255 255 255 / 0.1);
}

.ship-registry div:last-child {
	border-right: 0;
}

.ship-registry span,
.ship-fact-sheet dt,
.ship-gallery figcaption span {
	display: block;
	margin-bottom: 0.4rem;
	color: var(--dim);
	font-family: var(--mono);
	font-size: 0.63rem;
	letter-spacing: 0.14em;
	line-height: 1.24;
	text-transform: uppercase;
}

.ship-registry strong {
	display: block;
	color: rgb(255 255 255 / 0.92);
	font-size: 0.9rem;
	font-weight: 520;
	line-height: 1.34;
	overflow-wrap: anywhere;
}

.ship-official-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1rem, 3vw, 1.75rem);
	align-items: center;
	width: min(100%, var(--max-wide));
	min-width: 0;
	margin: clamp(0.45rem, 2vw, 1.4rem) auto clamp(4rem, 7vw, 6rem);
	padding: clamp(1rem, 2.8vw, 1.45rem);
	background:
		linear-gradient(90deg, rgb(255 179 106 / 0.14), transparent 48%),
		linear-gradient(135deg, rgb(143 211 200 / 0.09), transparent 42%),
		rgb(5 6 8 / 0.86);
	border: 1px solid rgb(255 255 255 / 0.14);
	border-left: 3px solid var(--ship-accent);
	border-radius: 0.5rem;
	box-shadow: 0 1.4rem 4rem rgb(0 0 0 / 0.28);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.ship-official-link__copy {
	min-width: 0;
}

.ship-official-link .eyebrow {
	margin-bottom: 0.55rem;
}

.ship-official-link h2 {
	margin: 0;
	color: #fff;
	font-family: var(--mono);
	font-size: clamp(1.15rem, 2.4vw, 1.55rem);
	font-weight: 740;
	letter-spacing: 0.04em;
	line-height: 1.16;
	text-transform: uppercase;
}

.ship-official-link p:not(.eyebrow) {
	max-width: 43rem;
	margin: 0.5rem 0 0;
	color: rgb(243 239 231 / 0.78);
	font-size: 0.92rem;
	line-height: 1.55;
}

.ship-official-link p.ship-official-link__disclaimer {
	color: rgb(243 239 231 / 0.52);
	font-size: 0.73rem;
	letter-spacing: 0.02em;
}

.ship-official-link__button,
.ship-official-link__button:visited {
	display: inline-flex;
	gap: 0.58rem;
	align-items: center;
	justify-content: center;
	min-width: min(100%, 19rem);
	min-height: 2.85rem;
	padding: 0.72rem 0.95rem;
	color: #050608;
	font-family: var(--mono);
	font-size: 0.76rem;
	font-weight: 780;
	letter-spacing: 0.08em;
	line-height: 1.28;
	text-align: center;
	text-decoration: none;
	text-decoration-color: transparent;
	text-transform: uppercase;
	background: linear-gradient(135deg, var(--ship-accent), #f8d095);
	border: 1px solid rgb(255 255 255 / 0.28);
	border-radius: 0.36rem;
	box-shadow: 0 0.9rem 2rem rgb(255 179 106 / 0.14);
	transition:
		transform 160ms ease,
		box-shadow 160ms ease,
		filter 160ms ease;
}

.ship-official-link__button:hover,
.ship-official-link__button:focus-visible {
	color: #050608;
	text-decoration-color: transparent;
	transform: translateY(-1px);
	box-shadow: 0 1.1rem 2.4rem rgb(255 179 106 / 0.2);
	filter: brightness(1.06);
}

.ship-official-link__button .material-icons-round {
	flex: 0 0 auto;
	font-size: 1.1rem;
	letter-spacing: 0;
}

.ship-section {
	width: min(100%, var(--max-wide));
	min-width: 0;
	margin: clamp(4.2rem, 8.5vw, 7rem) auto 0;
	padding-top: clamp(1.4rem, 3.2vw, 2.15rem);
	border-top: 1px solid rgb(255 255 255 / 0.13);
}

.ship-section--intro {
	margin-top: clamp(3.6rem, 6vw, 5rem);
}

.ship-section__header {
	min-width: 0;
	max-width: 66rem;
	margin-bottom: clamp(1.65rem, 3.8vw, 2.6rem);
}

.ship-section__header .eyebrow {
	margin-bottom: 0.9rem;
}

.ship-section__header h2 {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.3rem, 5.8vw, 4.5rem);
	font-weight: 240;
	font-stretch: 122%;
	font-variation-settings:
		"wdth" 122,
		"wght" 240;
	letter-spacing: 0;
	text-transform: uppercase;
	text-wrap: balance;
	overflow-wrap: normal;
	word-break: normal;
}

.ship-section__header p:not(.eyebrow) {
	max-width: 38rem;
	margin: 1rem 0 0;
	color: rgb(243 239 231 / 0.7);
	font-size: 0.98rem;
	line-height: 1.68;
}

.ship-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.48fr);
	gap: clamp(1.25rem, 4vw, 3rem);
	align-items: start;
	min-width: 0;
}

.ship-intro-copy {
	max-width: 46rem;
	min-width: 0;
	color: rgb(243 239 231 / 0.84);
	font-size: clamp(1rem, 1.7vw, 1.14rem);
	line-height: 1.74;
}

.ship-fact-sheet {
	min-width: 0;
	margin: 0;
	border-top: 1px solid color-mix(in srgb, var(--ship-accent) 40%, transparent);
}

.ship-fact-sheet div {
	display: grid;
	grid-template-columns: minmax(7.5rem, 0.55fr) minmax(0, 1fr);
	gap: 1rem;
	min-width: 0;
	padding: 0.78rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.ship-fact-sheet dd {
	margin: 0;
	color: rgb(255 255 255 / 0.9);
	font-size: 0.94rem;
	line-height: 1.42;
	overflow-wrap: anywhere;
}

.ship-gallery {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: clamp(0.85rem, 2vw, 1.1rem);
	min-width: 0;
}

.ship-gallery__item {
	position: relative;
	grid-column: span 4;
	min-width: 0;
	margin: 0;
	overflow: clip;
	background: rgb(5 6 8 / 0.58);
	border: 1px solid rgb(255 255 255 / 0.12);
	border-radius: 0.42rem;
	box-shadow: 0 1.4rem 3.6rem rgb(0 0 0 / 0.2);
}

.ship-gallery__item--wide {
	grid-column: span 8;
	grid-row: span 2;
}

.ship-gallery__item--tall {
	grid-row: span 2;
}

.ship-gallery picture {
	display: block;
	aspect-ratio: 16 / 9;
	background: rgb(0 0 0 / 0.36);
}

.ship-gallery__item--wide picture,
.ship-gallery__item--tall picture {
	height: 100%;
	min-height: 22rem;
}

.ship-gallery img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ship-gallery figcaption {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 2.8rem 0.85rem 0.85rem;
	background: linear-gradient(to top, rgb(0 0 0 / 0.84), transparent);
}

.ship-gallery figcaption span {
	color: var(--ship-accent);
}

.ship-gallery figcaption strong {
	display: block;
	color: rgb(255 255 255 / 0.92);
	font-size: 0.86rem;
	font-weight: 420;
	line-height: 1.34;
}

.ship-role-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1rem, 3vw, 1.8rem);
	min-width: 0;
}

.ship-role-grid section {
	min-width: 0;
	padding-top: 0.95rem;
	border-top: 1px solid color-mix(in srgb, var(--ship-teal) 36%, transparent);
}

.ship-role-grid .material-icons-round {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--ship-teal);
	font-size: 1.7rem;
	letter-spacing: 0;
}

.ship-role-grid h3,
.ship-zone-list h3,
.ship-incident-notes h3 {
	margin: 0 0 0.55rem;
	color: #fff;
	font-family: var(--mono);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.ship-role-grid p,
.ship-zone-list p,
.ship-incident-notes p {
	margin: 0;
	color: rgb(243 239 231 / 0.78);
	font-size: 0.96rem;
	line-height: 1.68;
}

.ship-zone-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 2rem;
	min-width: 0;
	border-top: 1px solid color-mix(in srgb, var(--ship-accent) 28%, transparent);
}

.ship-zone-list article {
	min-width: 0;
	padding: 1rem 0;
	border-bottom: 1px solid rgb(255 255 255 / 0.1);
}

.ship-incident-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
	gap: clamp(1rem, 3vw, 2rem);
	align-items: start;
	min-width: 0;
}

.ship-telemetry {
	margin: 0;
	background:
		linear-gradient(90deg, rgb(143 211 200 / 0.12), transparent 24rem),
		repeating-linear-gradient(
			to bottom,
			transparent 0,
			transparent 1.48rem,
			rgb(255 255 255 / 0.034) 1.48rem,
			rgb(255 255 255 / 0.034) 1.54rem
		),
		#050608;
	border-color: color-mix(in srgb, var(--ship-teal) 34%, var(--line));
	border-radius: 0.42rem;
	color: rgb(226 246 243 / 0.9);
	font-size: 0.82rem;
	white-space: pre;
}

.ship-incident-notes {
	display: grid;
	gap: 1rem;
	min-width: 0;
}

.ship-incident-notes section {
	min-width: 0;
	padding: 0.95rem 0 0;
	border-top: 1px solid color-mix(in srgb, var(--ship-red) 34%, transparent);
}

@media (max-width: 71.999rem) {
	.ship-registry,
	.ship-role-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ship-registry div:nth-child(2n) {
		border-right: 0;
	}

	.ship-registry div:nth-child(-n + 2) {
		border-bottom: 1px solid rgb(255 255 255 / 0.1);
	}

	.ship-official-link {
		grid-template-columns: 1fr;
	}

	.ship-official-link__button {
		width: fit-content;
		max-width: 100%;
	}

	.ship-section__header,
	.ship-intro-grid,
	.ship-incident-grid {
		grid-template-columns: 1fr;
	}

	.ship-gallery__item,
	.ship-gallery__item--wide,
	.ship-gallery__item--tall {
		grid-column: span 6;
		grid-row: auto;
	}

	.ship-gallery__item--wide picture,
	.ship-gallery__item--tall picture {
		min-height: 0;
	}
}

@media (max-width: 54rem) {
	.ship-hero {
		min-height: 78svh;
	}

	.ship-hero::before {
		background:
			linear-gradient(
				to bottom,
				rgb(5 5 6 / 0.74),
				rgb(5 5 6 / 0.28) 32%,
				rgb(5 5 6 / 0.42) 60%,
				rgb(5 5 6 / 0.93) 100%
			);
	}

	.ship-hero__media img {
		object-position: 62% 50%;
	}

	.ship-hero__content {
		padding:
			calc(var(--nav-height) + 2.65rem) 1rem
			clamp(2.35rem, 7vh, 3.6rem);
	}

	.ship-hero h1 {
		font-size: clamp(2.65rem, 12vw, 3.45rem);
		font-stretch: 96%;
		font-variation-settings:
			"wdth" 96,
			"wght" 230;
		line-height: 0.95;
	}

	.ship-hero__kicker {
		max-width: 100%;
		font-size: 0.72rem;
		letter-spacing: 0.1em;
		overflow-wrap: break-word;
		text-wrap: balance;
	}

	.ship-hero__lede {
		font-size: 0.98rem;
		line-height: 1.58;
	}

	.ship-shell {
		padding-inline: 1rem;
	}

	.ship-registry {
		grid-template-columns: 1fr;
		transform: translateY(-1.6rem);
	}

	.ship-registry div,
	.ship-registry div:nth-child(2n),
	.ship-registry div:nth-child(-n + 2) {
		border-right: 0;
		border-bottom: 1px solid rgb(255 255 255 / 0.1);
	}

	.ship-registry div:last-child {
		border-bottom: 0;
	}

	.ship-official-link {
		margin-bottom: clamp(3.2rem, 11vw, 4.8rem);
		padding: 1rem;
	}

	.ship-official-link__button {
		width: 100%;
		min-width: 0;
	}

	.ship-section--intro {
		margin-top: 0;
	}

	.ship-section {
		margin-top: clamp(3rem, 11vw, 4.5rem);
		padding-top: clamp(1.35rem, 5vw, 1.8rem);
	}

	.ship-section__header {
		margin-bottom: clamp(1.4rem, 6vw, 2rem);
	}

	.ship-section__header h2 {
		font-size: clamp(1.95rem, 8.8vw, 2.65rem);
		font-stretch: 96%;
		font-variation-settings:
			"wdth" 96,
			"wght" 240;
		line-height: 1.05;
	}

	.ship-section__header p:not(.eyebrow) {
		font-size: 0.94rem;
		line-height: 1.58;
	}

	.ship-fact-sheet div,
	.ship-zone-list,
	.ship-role-grid {
		grid-template-columns: 1fr;
	}

	.ship-gallery {
		grid-template-columns: 1fr;
	}

	.ship-gallery__item,
	.ship-gallery__item--wide,
	.ship-gallery__item--tall {
		grid-column: auto;
	}

	.ship-gallery picture {
		aspect-ratio: 4 / 3;
	}

	.ship-telemetry {
		font-size: 0.74rem;
	}
}
