@font-face {
	font-family: Geist;
	src: url("./assets/fonts/geist-regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: Geist;
	src: url("./assets/fonts/geist-semibold.ttf") format("truetype");
	font-weight: 500 700;
	font-display: swap;
}
:root {
	--background: #fff;
	--foreground: #18181b;
	--muted: #f4f4f5;
	--muted-foreground: #71717a;
	--border: #e4e4e7;
	--handwritten:
		"Caveat Brush", "Caveat", "Patrick Hand", "Comic Neue", "Chalkboard SE",
		"Comic Sans MS", cursive;
	--motion: cubic-bezier(0.2, 0, 0.2, 1);
}
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 92px;
}
/* Cross-page navigation fades the content while retaining the shared header. */
@view-transition { navigation: auto; }
body > .site-header { view-transition-name: site-header; }
::view-transition-group(*) { animation-duration: 180ms; animation-timing-function: ease-in-out; }
::view-transition-group(site-header) { z-index: 1; }
::view-transition-old(*),
::view-transition-new(*) { animation-duration: 180ms; animation-timing-function: ease-in-out; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
body {
	margin: 0;
	background: var(--background);
	color: var(--foreground);
	font:
		15px / 1.6 Geist,
		system-ui,
		sans-serif;
	-webkit-font-smoothing: antialiased;
}
button,
input {
	font: inherit;
}
button,
a {
	-webkit-tap-highlight-color: transparent;
}
button {
	color: inherit;
	cursor: pointer;
}
a {
	color: inherit;
	text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid #52525b;
	outline-offset: 5px;
}
img {
	display: block;
	max-width: 100%;
	height: auto;
}
h1,
h2,
h3,
p,
figure {
	margin: 0;
}
h1,
h2,
h3 {
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.045em;
}
h2 {
	font-size: clamp(30px, 3.5vw, 46px);
}
h2 span {
	color: #71717a;
}
h3 {
	font-size: 24px;
	letter-spacing: -0.035em;
}
p {
	color: var(--muted-foreground);
}
[hidden] {
	display: none !important;
}
::selection {
	background: #dbeafe;
}
.container {
	width: min(1200px, calc(100% - 64px));
	margin-inline: auto;
}
.skip-link {
	position: fixed;
	left: 20px;
	top: -80px;
	padding: 10px 16px;
	background: white;
	z-index: 100;
}
.skip-link:focus {
	top: 12px;
}
.site-header {
	height: 76px;
	width: min(1280px, calc(100% - 64px));
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	border-bottom: 1px solid var(--border);
}
/* One floating navigation bar, shared across pages. */
body > .site-header { --header-padding: 12px; --header-shadow: 0 8px 24px -8px rgb(0 0 0 / .12); position: sticky; top: 16px; z-index: 60; width: min(1280px, calc(100% - 48px)); height: 64px; margin: 16px auto 0; padding-inline: var(--header-padding); border: 1px solid var(--border); border-radius: 14px; background: rgb(255 255 255 / .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--header-shadow); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-replay.button { display: none; position: absolute; right: calc(var(--header-padding) + var(--header-brand-width, 99px) - 35px); top: 50%; transform: translateY(-50%); width: 38px; padding: 0; border: 0; overflow: hidden; background: transparent; color: #52525b; transition: width 200ms ease-out, background-color 160ms; }
body > .site-header .button { height: 38px; }
.header-replay svg { position: absolute; right: 9px; top: 9px; width: 20px; height: 20px; }
.header-replay > span { position: absolute; right: 34px; white-space: nowrap; opacity: 0; transition: opacity 130ms ease-out; }
.header-replay.button:is(:hover, :focus-visible) { width: 110px; }
.header-replay:is(:hover, :focus-visible) > span { opacity: 1; }
.header-replay.button:is(:hover, :focus-visible) { background: #f4f4f5; }
@media (hover: none) {
  .header-replay.button { width: 110px; }
  .header-replay > span { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .header-replay.button, .header-replay > span { transition: none; }
}
.header-github.button { width: 37px; height: 37px; padding: 0; }
.header-github svg { width: 18px; height: 18px; }
@media (max-height: 450px) {
  body > .site-header { --header-padding: 4px; top: 8px; height: 48px; margin-top: 8px; border-radius: 12px; }
}
.brand {
	font-size: 20px;
	letter-spacing: -0.6px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}
.brand img {
	border-radius: 8px;
}
.site-header .header-nav { position: relative; display: flex; align-items: center; gap: 20px; margin-left: 17px; margin-right: auto; white-space: nowrap; }
.header-nav::before { content: ""; position: absolute; left: -21px; top: calc(50% - 6px); width: 1px; height: 12px; background: var(--border); transition: opacity 350ms ease; }
.intro-pending:not([data-intro="docking"]) .header-nav::before { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .header-nav::before { transition: none; } }
.header-nav a { padding: 10px 0; font-family: CatalexMark, Geist, system-ui, sans-serif; font-size: 13px; font-weight: 500; line-height: 20px; color: #71717a; text-decoration: none; border: 0; background: none; transition: color 150ms; }
.header-nav a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--foreground); }
nav a:hover,
.site-footer a:hover {
	color: #18181b;
}
.button {
	font-size: 12px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	border: 1px solid var(--border);
	padding: 8px 14px;
	border-radius: 7px;
	background: #fff;
	transition: background 160ms;
}
.button:hover {
	background: #f4f4f5;
}
.button.solid {
	color: #fff;
	background: #27272a;
	border-color: #27272a;
}
.button.solid:hover {
	background: #3f3f46;
}
/* Give the recorded demo the full width beneath its centered introduction. */
.hero {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  padding-block: 64px 88px;
}
.hero-copy { min-width: 0; width: 100%; margin-inline: auto; text-align: center; }
.hero-copy .hero-caption { margin-inline: auto; }
.hero h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero h1 > span { display: inline; white-space: normal; }
.hero h1 em { font-style: italic; color: #7653b5; margin-right: .07em; }
.hero-caption { margin-top: 24px; font-size: 18px; line-height: 1.65; }
.hero-caption > span { display: block; text-wrap: balance; }
.hero-caption > span + span { margin-top: 16px; }
/* Reuse the original scientific typography and brand artwork for the intro. */
@font-face { font-family: CatalexMath; src: url('./assets/fonts/katex-main-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
.reaction { display: flex; align-items: center; justify-content: center; gap: 24px; width: min(1100px, calc(100% - 64px)); font-family: CatalexMath, Georgia, serif; font-size: clamp(25px, 3.5vw, 38px); line-height: 1; }
.reactant { white-space: nowrap; font-weight: 400; letter-spacing: 0; }
.reactant sub { font-size: .54em; vertical-align: baseline; position: relative; bottom: -.35em; margin-left: 2px; }
.operator { color: #52525b; font-size: .95em; }
.catalyst { position: relative; flex: 0 0 180px; height: 36px; display: flex; align-items: center; }
.catalyst-brand { position: absolute; bottom: calc(50% + 10px); left: 50%; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.catalyst-cat { flex-shrink: 0; width: 36px; height: 30px; object-fit: contain; }
.reaction-arrow { width: 100%; height: 24px; stroke: #3f3f46; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.reaction-arrow path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.intro-letter { opacity: 0; }
.text-link {
	display: inline-flex;
	gap: 18px;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
}
.hero > .text-link {
	margin-top: 22px;
}
.section-topline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	margin-bottom: 30px;
}
.segmented {
	display: flex;
	gap: 3px;
	background: #f4f4f5;
	padding: 3px;
	border: 1px solid #e4e4e7;
	border-radius: 8px;
}
.segmented button {
	border: 1px solid transparent;
	border-radius: 5px;
	padding: 4px 12px;
	font-size: 12px;
	background: transparent;
	color: #71717a;
}
.segmented button[aria-pressed="true"] {
	background: #fff;
	color: #18181b;
	border-color: #e4e4e7;
	box-shadow: 0 1px 2px #00000008;
}
.highlights {
	padding: 120px 0 96px;
	overflow: hidden;
}
.highlight-track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 3px max(32px, calc((100vw - 1200px) / 2));
	scroll-padding-inline: max(32px, calc((100vw - 1200px) / 2));
	overscroll-behavior-x: contain;
}
.highlight-track::-webkit-scrollbar {
	display: none;
}
.highlight-card {
	position: relative;
	isolation: isolate;
	flex: 0 0 min(610px, 78vw);
	height: 470px;
	background: #f4f4f5;
	border-radius: 20px;
	overflow: hidden;
	scroll-snap-align: start;
}
.card-copy {
	padding: 32px 34px 24px;
	position: relative;
	z-index: 2;
}
.card-copy h3 {
	font-size: 28px;
}
.card-copy p {
	font-size: 14px;
	margin-top: 10px;
	color: #52525b;
}
/* Two screenshot treatments share one baseline, inset, and frame. */
.highlight-card { --visual-top: 180px; --visual-inset: 34px; }
.card-visual {
	position: absolute;
	top: var(--visual-top);
	left: var(--visual-inset);
	right: var(--visual-inset);
	bottom: 24px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 20px #0000000d;
	overflow: hidden;
}
.card-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.highlight-card[data-visual="bleed"] .card-visual {
	right: auto;
	bottom: auto;
	width: calc(100% - var(--visual-inset) * 2 + 80px);
	aspect-ratio: auto;
}
.highlight-card[data-visual="bleed"] .card-visual img { height: auto; }

/* Shared highlight navigation and responsive page layout. */
.highlight-track { padding-right: calc(100vw - min(610px, 78vw) - max(32px, (100vw - 1200px) / 2)); }
.carousel-controls {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}
.carousel-direction {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	min-height: 36px;
	padding: 4px 10px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 13px;
	transition: opacity 160ms;
}
.carousel-direction svg { width: 16px; height: 16px; flex-shrink: 0; }
.carousel-direction:hover:not(:disabled) { opacity: .65; }
.carousel-direction:disabled { opacity: .3; cursor: default; }
#highlight-prev { justify-self: start; }
#highlight-next { justify-self: end; }
.carousel-dots { display: flex; align-items: center; gap: 4px; }
.carousel-dots button {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 4px;
	border: 0;
	border-radius: 6px;
	background: transparent;
}
.carousel-dots button span {
	display: block;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: #d4d4d8;
	transition: width 200ms var(--motion), background 200ms;
}
.carousel-dots button[aria-pressed="true"] span { width: 40px; background: #18181b; }
.carousel-dots button:hover span { background: #71717a; }
.file-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-tokens span { border: 1px solid var(--border); border-radius: 8px; }
.history-line { display: flex; align-items: center; color: #71717a; }
.history-line i { width: 9px; height: 9px; border: 2px solid #a1a1aa; border-radius: 50%; }
.history-line:after { content: ""; width: 40px; height: 1px; background: #d4d4d8; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); padding-block: 28px; }
.site-footer > span, .site-footer > a:last-child { font-size: 12px; color: #71717a; }
@media (max-width: 760px) {
  body > .site-header { height: 96px; padding-bottom: 32px; }
  .site-header .header-nav { position: absolute; left: var(--header-padding); bottom: 5px; margin-left: 0; }
  .header-nav::before { display: none; }
  .header-nav a { padding-block: 4px; font-size: 13px; }
  .site-header .header-replay { top: 31px; }
}
@media (max-width: 600px) {
  .site-header .header-replay { top: 29px; }
}
@media (max-width: 600px) {
	html { scroll-padding-top: 80px; }
	body > .site-header { --header-padding: 10px; top: 12px; width: calc(100% - 24px); height: 92px; margin-top: 12px; border-radius: 12px; }
	.container, .site-header { width: calc(100% - 36px); }
	.site-header { height: 64px; }
	h2 { font-size: 30px; }
	.section-topline { margin-bottom: 24px; }
	.highlight-track { gap: 16px; padding-left: 18px; padding-right: calc(100vw - 86vw - 18px); scroll-padding-inline: 18px; }
	.highlight-card { flex-basis: 86vw; height: 415px; }
	.card-copy { padding: 26px 24px 24px; }
	.card-copy h3 { font-size: 25px; }
	.card-copy p { font-size: 12px; }
	.highlight-card { --visual-top: 190px; --visual-inset: 24px; }
	.carousel-controls { gap: 8px; }
	.carousel-direction span { display: none; }
	.site-footer { flex-wrap: wrap; }
	.site-footer > span { flex-basis: 100%; order: 3; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.workspace-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.workspace-heading-row .segmented { flex-shrink: 0; margin-top: 8px; }
.highlights { padding-top: 48px; }
@media(max-width:600px) { .workspace-heading-row { flex-direction: column; gap: 0; margin-bottom: 24px; } .workspace-heading-row .section-heading { margin-bottom: 12px; } .workspace-heading-row .segmented { margin-top: 0; } .highlights { padding-top: 24px; } }

.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.hero-action { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 56px; padding: 14px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; transition: background 160ms, transform 160ms; }
.hero-action svg { width: 19px; height: 19px; flex-shrink: 0; }
.hero-action-primary { color: #fff; background: #27272a; }
.hero-action-primary:hover { background: #3f3f46; }
.hero-action-secondary { color: #27272a; background: #f4f4f5; gap: 10px; }
.hero-action-secondary:hover { background: #e4e4e7; }
.hero-action:active { transform: translateY(1px); }
.hero-workspace { min-width: 0; width: 100%; }
.hero-window { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.hero-window-controls, .screenshot-window-controls { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-workspace img { width: 100%; height: auto; }
.hero-demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.hero-window.is-playing .hero-demo-video { opacity: 1; }
.hero-window-controls { z-index: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero + .highlights { padding-top: 56px; }
@media(max-width:1100px) {
  .hero { gap: 40px; padding-block: 56px 72px; }
  .hero h1 { font-size: clamp(44px, 5.5vw, 64px); }
  .hero-caption { font-size: 16px; margin-top: 24px; }
  .hero-actions { gap: 10px; }
  .hero-action { padding-inline: 18px; gap: 12px; font-size: 13px; }
  .reaction { gap: 18px; font-size: 30px; }
  .catalyst { flex-basis: 150px; }
}
@media(max-width:900px) {
  .hero { gap: 40px; padding-block: 48px 64px; }
  .hero h1 { font-size: clamp(44px, 6.2vw, 56px); }
  .reaction { gap: 14px; font-size: 25px; }
  .catalyst { flex-basis: 130px; }
}
@media(max-width:600px) {
  .hero { width: calc(100% - 36px); gap: 28px; padding-block: 36px 48px; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 54px); }
  .hero-caption { font-size: 15px; line-height: 1.65; margin-top: 20px; }
  .hero-caption > span + span { margin-top: 12px; }
  .hero-actions { gap: 10px; margin-top: 26px; }
  .hero-action { min-height: 50px; padding: 12px 16px; gap: 10px; font-size: 12px; border-radius: 8px; }
  .hero-action svg { width: 16px; height: 16px; }
  .hero-action-secondary { gap: 8px; }
  .hero-window { border-radius: 7px; }
  .hero + .highlights { padding-top: 36px; }
  .reaction { display: grid; grid-template-columns: auto 20px auto; gap: 52px 8px; width: calc(100% - 36px); font-size: clamp(21px, 5.6vw, 30px); }
  .catalyst { grid-column: 1 / 3; width: 132px; justify-self: end; height: 30px; }
  .product { grid-column: 3; }
}

/* Standalone highlights; the app renderer remains a local screenshot tool. */
.highlights { padding-bottom: 100px; }
.compile-preview { position: absolute; top: 168px; left: 34px; right: 34px; height: 302px; overflow: hidden; border: 1px solid var(--border); border-radius: 10px 10px 0 0; background: white; }
.compile-preview img { width: 225%; max-width: none; height: auto; margin-left: -125%; }
.highlight-setup, .highlight-history { margin: 42px 34px 0; }
.highlight-setup .file-tokens { min-height: 90px; gap: 10px; }
.highlight-setup .file-tokens span { font-size: 16px; padding: 10px 14px; background: #fff; }
.highlight-setup > p, .highlight-history > p { font-size: 30px; font-weight: 500; letter-spacing: -.03em; color: var(--foreground); margin-bottom: 8px; }
.highlight-setup > span, .highlight-history > span { color: #71717a; font-size: 14px; }
.highlight-history .history-line { height: 60px; font-size: 16px; gap: 18px; margin-bottom: 30px; }
@media(max-width:600px) {
  .highlights { padding-bottom: 64px; }
  .compile-preview { top: 170px; left: 22px; right: 22px; height: 245px; }
  .highlight-setup, .highlight-history { margin: 34px 24px 0; }
  .highlight-setup .file-tokens { gap: 6px; min-height: 100px; }
  .highlight-setup .file-tokens span { font-size: 11px; padding: 9px 8px; }
  .highlight-setup > p, .highlight-history > p { font-size: 26px; }
  .highlight-history .history-line { gap: 9px; font-size: 12px; }
  .highlight-history .history-line:after { width: 20px; }
}


.card-copy .card-note { font-size: 11px; line-height: 1.45; margin-top: 6px; color: var(--muted-foreground); }
@media(max-width:600px) { .card-copy .card-note { font-size: 10px; } }

/* Agent philosophy: a simple type scale and a compact draft diagram. */
.agent-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; padding-block: 64px 120px; border-top: 1px solid var(--border); }
.agent-story h2 { font-size: clamp(36px, 3.6vw, 48px); line-height: 1.12; margin-bottom: 24px; }
.agent-intro, .agent-contributions { font-size: 15px; line-height: 1.7; color: #52525b; }
.agent-intro { text-wrap: pretty; }
.agent-contributions { margin: 24px 0 0; }
.agent-contributions > div + div { margin-top: 20px; }
.agent-contributions dt { font-weight: 600; color: var(--foreground); }
.agent-contributions dd { margin: 4px 0 0; }
.agent-figures { align-self: center; justify-self: center; min-width: 0; width: 100%; max-width: 400px; }
.agent-figure { position: relative; border: 1px solid #27272a; background: #050505; color: #fff; border-radius: 16px; padding: 28px; }
.review-flow { position: relative; height: 480px; }
.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.flow-lines path { stroke-width: 2; vector-effect: non-scaling-stroke; }
.author-line { stroke: #fff; }
.draft-line { stroke: #a78bfa; }
.accepted-line { stroke: #4ade80; }
/* Fixed-size HTML nodes stay circular while the connecting paths resize. */
.flow-node { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #050505; transform: translate(-50%, -50%); }
.flow-start { left: 28%; top: 430px; }
.flow-edit { left: 28%; top: 260px; }
.draft-node { left: 60%; top: 340px; border-color: #a78bfa; background: #a78bfa; }
.accepted-node { left: 28%; top: 78px; border-color: #4ade80; background: #4ade80; }
.flow-label { position: absolute; font-size: 12px; color: #fff; white-space: nowrap; }
.flow-project, .flow-author, .flow-accepted { left: 0; width: calc(28% - 16px); transform: translateY(-50%); text-align: right; white-space: normal; line-height: 18px; }
.flow-project { top: 430px; }
.flow-author { top: 260px; }
.flow-accepted { top: 78px; color: #4ade80; }
.flow-agent-step { position: absolute; top: 340px; left: calc(60% + 16px); transform: translateY(-50%); width: calc(40% - 16px); text-align: left; font-size: 12px; line-height: 1.6; }
.flow-agent-step strong { display: block; color: #a78bfa; font-weight: 600; }
.flow-agent-step span { display: block; color: #fff; margin-top: 4px; }
.review-gate { position: absolute; left: 44%; top: 190px; transform: translate(-50%, -50%); display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; box-sizing: border-box; width: calc(32% + 48px); height: 64px; border: 1px solid #fff; background: #fff; color: #18181b; border-radius: 8px; }
.review-gate strong { display: block; font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; }
.review-gate span { font-size: 11px; line-height: 16px; font-weight: 400; }
.review-figure[data-flow-state="complete"] .review-gate { background: #16804c; border-color: #16804c; color: #fff; }
.flow-replay { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid #3f3f46; border-radius: 8px; background: #161618; color: #fff; cursor: pointer; }
.flow-replay[hidden] { display: none; }
.flow-replay svg { width: 16px; height: 16px; }
.flow-replay:hover { background: #27272a; border-color: #71717a; }
.flow-replay:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media(max-width:1100px) {
  .agent-section { gap: 36px; grid-template-columns: minmax(0,1fr) minmax(0,420px); }
  .agent-figure { padding: 24px; }
}
@media(max-width:820px) {
  .agent-section { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 72px; }
  .agent-contributions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .agent-contributions > div + div { margin-top: 0; }
}
@media(max-width:600px) {
  .agent-story h2 { font-size: 36px; }
  .agent-contributions { grid-template-columns: 1fr; gap: 20px; }
  .agent-figure { padding: 22px 16px; border-radius: 12px; }
  .flow-replay { right: 6px; bottom: 6px; border-radius: 6px; }
}

/* Research principles use the same compact type and neutral rules as the agent section. */
.research-section { border-top: 1px solid var(--border); padding-block: 64px 100px; }
.research-section h2 { font-size: clamp(36px, 3.6vw, 48px); }
.research-intro { margin-top: 24px; }
.research-intro, .research-principles { font-size: 15px; line-height: 1.7; color: #52525b; }
.research-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; row-gap: 28px; list-style: none; padding: 0; margin: 36px 0 0; }
.research-principles li { border-top: 1px solid var(--border); padding-top: 20px; }
/* DialogIconHeader proportions, scaled with the Welcome controls (1.25×). */
.research-icon-frame { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 12px; border: 1px solid #e4e4e7; border-radius: 10px; background: #f7f7f8; color: #71717a; }
.research-icon { width: 20px; height: 20px; flex-shrink: 0; }
.research-principles h3 { font-size: 15px; line-height: 1.7; letter-spacing: normal; color: var(--foreground); }
.research-principles p { margin-top: 4px; }
@media(max-width:820px) {
  .research-section { padding-block: 44px 72px; }
  .research-principles { column-gap: 32px; }
}
@media(max-width:600px) {
  .research-section h2 { font-size: 36px; }
  .research-principles { grid-template-columns: 1fr; row-gap: 24px; margin-top: 28px; }
}


.download-for-mac, .download-action { gap: 8px; }
.download-apple, .download-github { display: block; flex-shrink: 0; transform: translateY(-1px); }
.download-for-mac .download-apple, .download-action .download-apple { width: 14px; height: 14px; }
.header-download .download-apple { width: 12px; height: 12px; }
.header-download.button { gap: 7px; background: #18181b; border-color: #18181b; color: #fff; }
.header-download.button:hover { background: #27272a; }

/* The expanded highlights view reuses the carousel's content and images. */
.highlights-view-link { flex-shrink: 0; gap: 8px; border-color: transparent; background: #f4f4f5; cursor: pointer; }
.highlights-view-link:hover { background: #e4e4e7; }
.highlights-view-link svg { width: 16px; height: 16px; }
html { scrollbar-gutter: stable; }
html.highlights-open { overflow: hidden; }
dialog.highlights-view { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; color: var(--foreground); background: var(--background); overflow: auto; overscroll-behavior: contain; scroll-padding-top: 80px; }
dialog.highlights-view::backdrop { background: transparent; }
.highlights-overlay-content { padding: 0 36px; max-width: 1680px; margin-inline: auto; }
.highlights-close { width: 36px; height: 36px; padding: 0; border: 0; background: #f4f4f5; cursor: pointer; }
.highlights-close:hover { background: #e4e4e7; }
.highlights-view .section-topline { position: sticky; top: 0; z-index: 5; height: 80px; width: 100%; margin: 0; border-bottom: 1px solid var(--border); background: var(--background); }
.highlights-view .section-topline h2 { font-size: 24px; letter-spacing: -.035em; }
.highlights-detail-layout { display: grid; grid-template-columns: 112px minmax(220px,1fr) minmax(0,1.6fr); gap: 40px; }
.highlights-menu { grid-area: 1 / 1; position: sticky; top: calc(50svh + 40px); transform: translateY(-50%); align-self: start; margin-top: calc(50svh - 40px); padding-block: 8px; max-height: calc(100svh - 144px); overflow-y: auto; }
.highlights-menu ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.highlights-menu a { display: grid; white-space: nowrap; padding: 12px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted-foreground); font-size: 13px; line-height: 1.5; }
/* Reserve the bold label's width in every state, including the mobile strip. */
.highlights-menu a > span { grid-area: 1 / 1; }
.highlights-menu .menu-label-measure { font-weight: 600; visibility: hidden; }
.highlights-menu a:hover { color: var(--foreground); }
.highlights-menu a[aria-current] { border-left-color: var(--foreground); color: var(--foreground); font-weight: 600; }
.highlights-menu a:focus-visible { outline-offset: -2px; }
.highlights-view .highlight-track { grid-area: 1 / 2; display: block; overflow: visible; padding: 0; scroll-snap-type: none; }
.highlights-view .highlight-card { scroll-snap-align: none; display: flex; align-items: center; min-height: 0; height: auto; padding: 32px 0; border-radius: 0; border: 0; background: transparent; overflow: visible; }
.highlights-view .highlight-card .card-copy { opacity: .4; transition: opacity 200ms ease; }
.highlights-view .highlight-card.is-active .card-copy { opacity: 1; }
.highlights-stage { grid-area: 1 / 3; position: sticky; top: 80px; align-self: start; height: calc(100svh - 80px); display: grid; align-items: center; min-width: 0; padding-block: 40px; }
.highlights-stage .card-visual { grid-area: 1 / 1; opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.highlights-stage .card-visual.is-active { opacity: 1; }
.highlights-view .highlight-card:last-child { border-bottom: 0; }
.highlights-view .card-copy { padding: 0; }
.highlights-view .card-copy h2 { font-size: clamp(26px,2.4vw,36px); line-height: 1.15; margin-bottom: 18px; }
.highlights-view .card-copy p { font-size: 17px; line-height: 1.65; }
.highlights-view .card-copy .card-note { font-size: 13px; margin-top: 12px; }
.highlights-view .card-visual, .highlights-view [data-visual="bleed"] .card-visual { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: auto; margin: 0; border-radius: 10px; background: #fafafa; }
.highlights-view .card-visual img, .highlights-view [data-visual="bleed"] .card-visual img { width: 100%; height: auto; max-height: calc(100svh - 160px); object-fit: contain; margin: 0; }
@media(max-width:1100px) {
  .highlights-detail-layout { grid-template-columns: 112px minmax(190px,1fr) minmax(0,1.4fr); gap: 24px; }
}
@media(max-width:820px) {
  dialog.highlights-view { --stage-height: clamp(150px, 32svh, 280px); scroll-padding-top: calc(128px + var(--stage-height)); }
  .highlights-overlay-content { padding-inline: 24px; }
  .highlights-detail-layout { display: block; }
  .highlights-menu { top: 80px; transform: none; margin-top: 0; z-index: 4; padding: 0; background: var(--background); max-height: none; overflow-x: auto; scrollbar-width: thin; }
  .highlights-menu ol { display: flex; border-left: 0; border-bottom: 1px solid var(--border); width: max-content; min-width: 100%; }
  .highlights-menu a { white-space: nowrap; margin: 0 0 -1px; border-left: 0; border-bottom: 2px solid transparent; padding: 14px 12px; font-size: 12px; }
  .highlights-menu a[aria-current] { border-bottom-color: var(--foreground); }
  .highlights-stage { top: 128px; z-index: 3; height: var(--stage-height); padding-block: 16px; background: var(--background); border-bottom: 1px solid var(--border); }
  .highlights-stage .card-visual { width: auto; max-width: 100%; justify-self: center; }
  .highlights-stage .card-visual img { width: auto; max-height: calc(var(--stage-height) - 32px); }
  .highlights-view .highlight-card { min-height: 0; padding-block: 28px; }
  .highlights-view .card-copy { max-width: 560px; }
  .highlights-view .card-copy p { font-size: 15px; }
}
@media(max-width:600px) {
  .highlights .section-topline { gap: 12px; }
  .highlights-overlay-content { padding-inline: 18px; }
  .highlights-view .section-topline h2 { font-size: 22px; }
  .highlights-view .card-copy h2 { font-size: 28px; }
}

/* Offscreen content resets so its reveal can replay on re-entry. */
@media (prefers-reduced-motion: no-preference) {
  #main [data-reveal="pending"] { opacity: 0; }
}

/* Keep the existing section divider beneath the new hero. */
.hero + .highlights { position: relative; }
.hero + .highlights::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1200px, calc(100% - 64px)); border-top: 1px solid var(--border); }
@media(max-width:600px) { .hero + .highlights::before { width: calc(100% - 36px); } }

@media(prefers-reduced-motion: reduce) {
  .highlights-stage .card-visual, .highlights-view .highlight-card .card-copy { transition: none; }
}

/* Keep navigation out of the terminal opening; reveal it for Welcome. */
.intro-scene { display: none; }
.intro-pending { overflow: hidden; }
.intro-pending .intro-scene { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #fff; }
.intro-pending .intro-scene :is(.reactant, .operator, .catalyst-brand) { opacity: 0; }
.intro-pending :is(#main, .site-footer) { opacity: 0; pointer-events: none; }
.intro-pending .site-header { visibility: hidden; }
.intro-pending body#top > .site-header { border-color: transparent; box-shadow: none; }
body#top > .site-header::after { content: ""; position: absolute; left: calc(var(--header-padding) + var(--header-brand-width, 99px) - 56px); right: calc(var(--header-padding) + var(--header-brand-width, 99px) - 56px); bottom: -1px; height: 1px; background: var(--border); opacity: 0; pointer-events: none; transition: opacity 350ms ease; }
.intro-pending:not([data-intro="docking"]) body#top > .site-header::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body#top > .site-header::after { transition: none; } }
.intro-pending.welcome-preview .site-header,
.intro-pending:is([data-intro="revealing"], [data-intro="ready"], [data-intro="docking"]) .site-header { visibility: visible; }
.intro-pending .header-actions { visibility: hidden; pointer-events: none; }
.intro-pending .site-header .catalex-mark > span { visibility: hidden; }
.intro-pending .header-replay.button { display: inline-flex; }
.site-header .brand { gap: 6px; line-height: 1; }
.site-header .brand img { position: relative; left: 0; object-fit: contain; border-radius: 0; }
.intro-pending:not([data-intro="docking"]):not(.welcome-returning) .site-header .brand img { left: calc(100% - 32px); }
@media(prefers-reduced-motion: reduce) {
  .intro-pending { overflow: auto; }
  .intro-pending .intro-scene { display: none; }
  .intro-pending :is(#main, .site-footer) { opacity: 1; pointer-events: auto; }
}

@font-face { font-family: GeistMono; src: url('./assets/fonts/geist-mono-regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

/* Optional terminal opening: cursor-led source, then a circular paper reveal. */
.intro-pending.typewriter-pending { overflow: hidden; }
.intro-pending.typewriter-pending .skip-link { display: none; }
.intro-pending.typewriter-pending .intro-scene { display: block; overflow: hidden; background: #050505; }
.intro-pending.typewriter-pending :is(#main, .site-footer) { opacity: 0; pointer-events: none; }
html.intro-pending.welcome-returning :is(#main, .site-footer) { opacity: 1; }
.welcome-returning { overflow-anchor: none; }
.intro-pending.welcome-returning .intro-scene { transform: translateY(-100svh); }
.intro-pending.welcome-returning body#top > .site-header { visibility: visible; border-color: var(--border); box-shadow: var(--header-shadow); }
.intro-pending.welcome-returning .site-header :is(.header-actions, .catalex-mark > span) { visibility: visible; }
.intro-pending.welcome-returning .header-replay { opacity: 0; }
@font-face { font-family: CatalexMark; src: url('./assets/fonts/geist-medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
.terminal-intro { --formula-scale: 1; --actions-y: 60%; --scroll-progress: 0; }
.terminal-view { position: absolute; inset: 0; overflow: hidden; background: #050505; }
.terminal-track { position: absolute; top: 0; left: 0; width: max-content; margin: 0; color: #ededed; font: clamp(34px, 4.4vw, 64px) / 1.4 GeistMono, monospace; letter-spacing: -.035em; white-space: pre; transform-origin: 0 0; }
.latex-command { color: #9fbaff; }
.latex-delimiter { color: #b1bac9; }
.latex-brace { color: #d6b38c; }
.latex-operator { color: #c5a5df; }
.terminal-cursor { display: inline-block; width: .64em; height: 1.08em; margin-left: .04em; vertical-align: -.18em; background: #ededed; }
.terminal-result { position: absolute; inset: 0; z-index: 2; background: #ffffff; visibility: hidden; clip-path: circle(0px at 50% 50%); }
.is-revealing .terminal-result { visibility: visible; }
.intro-pending.welcome-preview .intro-scene { background: #ffffff; }
.welcome-preview .terminal-view { visibility: hidden; }
.welcome-description { position: absolute; left: 50%; transform: translateX(-50%); width: min(720px, calc(100% - 40px)); text-align: center; }
.terminal-caption.hero-caption { position: static; width: auto; max-width: none; margin: 0; text-align: center; font-size: 16px; line-height: 1.5; font-weight: 400; letter-spacing: normal; color: #71717a; }
.terminal-caption > span { text-wrap: balance; }
@media(max-width:600px) { .terminal-caption.hero-caption { font-size: 14px; } }
.welcome-views { --view-scale: 1.25; display: flex; position: absolute; left: 50%; transform: translateX(-50%); z-index: 3; width: max-content; height: calc(32px * var(--view-scale)); align-items: center; gap: 0; padding: calc(4px * var(--view-scale)); border: 0; border-radius: calc(10px * var(--view-scale)); background: oklch(.97 0 0 / .5); outline: calc(1px * var(--view-scale)) solid oklch(.922 0 0 / .7); outline-offset: calc(-1px * var(--view-scale)); }
.welcome-views button { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: calc(28px * var(--view-scale)); height: calc(24px * var(--view-scale)); min-height: 0; padding: 0; border: 0; border-radius: calc(8px * var(--view-scale)); font-family: Geist, system-ui, sans-serif; color: oklch(.556 0 0); cursor: pointer; transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.welcome-views button:hover { background: rgb(255 255 255 / .7); color: oklch(.145 0 0); }
.welcome-views button[aria-pressed="true"] { background: #fff; color: oklch(.145 0 0); box-shadow: 0 calc(1px * var(--view-scale)) calc(3px * var(--view-scale)) 0 #0000001a, 0 calc(1px * var(--view-scale)) calc(2px * var(--view-scale)) calc(-1px * var(--view-scale)) #0000001a; }
.welcome-views button:focus-visible { outline: calc(1.5px * var(--view-scale)) solid currentColor; outline-offset: calc(-3px * var(--view-scale)); }
.welcome-views svg { width: calc(16px * var(--view-scale)); height: calc(16px * var(--view-scale)); flex-shrink: 0; }
.welcome-code { position: absolute; z-index: 1; box-sizing: border-box; margin: 0; padding: 24px; border: 1px solid #27272a; border-radius: 12px; background: #050505; color: #ededed; font: 18px / 1.5 GeistMono, monospace; letter-spacing: -.035em; white-space: pre-wrap; overflow-wrap: anywhere; overflow: hidden; }
.welcome-code code { display: block; font: inherit; white-space: inherit; }
.terminal-formula { position: absolute; left: 50%; transform: translateX(-50%); }
.terminal-intro .reaction { position: absolute; inset: 0 auto auto 0; display: flex; flex-wrap: nowrap; width: max-content; gap: 24px; font: 38px / 1 CatalexMath, Georgia, serif; color: #35353b; transform: scale(var(--formula-scale)); transform-origin: 0 0; }
.terminal-intro :is(.reactant, .operator, .catalyst-brand) { opacity: 1 !important; }
.terminal-intro .reactant { white-space: nowrap; }
.terminal-intro .operator { color: inherit; }
.terminal-intro .catalyst { flex: 0 0 180px; width: 180px; height: 36px; }
.catalex-mark { display: inline-flex; align-items: center; width: max-content; gap: 6px; color: #35353b; font: 500 24px / 1 CatalexMark, Geist, system-ui, sans-serif; letter-spacing: -.4px; white-space: nowrap; }
.catalex-mark img { flex-shrink: 0; width: 1.6em; height: .9em; object-fit: contain; border-radius: 0; transform: translateY(-1px); transition: transform 250ms var(--motion); }
.site-header .catalex-mark { font-size: 17px; letter-spacing: -.25px; }
.site-header .catalex-mark img { width: 32px; height: 18px; }
.wordmark-flight { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; transform-origin: top left; white-space: nowrap; }
.action-flight.button { position: fixed; left: 0; top: 0; z-index: 70; padding: 0; overflow: hidden; pointer-events: none; transition: none; }
.action-flight-content { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; white-space: nowrap; }
.action-flight-content svg { flex-shrink: 0; width: 18px; height: 18px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .terminal-intro.is-ready .catalex-mark:hover img,
  .site-header .brand:hover .catalex-mark img { transform: rotate(-5deg) translateY(-5px); }
}
.terminal-compile { position: absolute; z-index: 3; transform: translate(-50%, -50%); border: 1px solid #e4e4e7; border-radius: 7px; background: #ffffff; color: #18181b; font: 600 18px Geist, system-ui, sans-serif; cursor: pointer; transition: background-color 80ms ease-out; }
.terminal-compile.is-focused { outline: none; }
.terminal-cursor-flight { position: absolute; z-index: 4; display: block; margin: 0; border: 2px solid #ffffff; pointer-events: none; transform-origin: center; }
.terminal-cursor-smear { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.terminal-cursor[hidden] { display: none; }
.terminal-compile:is(:active, .is-pressed) { background: #e4e4e7; }
.terminal-intro .reaction-arrow { stroke: currentColor; }
.terminal-intro .reaction-arrow path { stroke-dashoffset: 0; }
.terminal-actions.hero-actions { position: absolute; left: 50%; top: var(--actions-y); transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0; width: max-content; max-width: calc(100% - 28px); }
.terminal-scroll { position: absolute; left: 50%; bottom: max(30px, env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 4px 16px 20px; border: 0; background: transparent; font-size: 12px; color: #71717a; white-space: nowrap; }
.terminal-scroll > span { position: absolute; left: calc(50% - 20px); bottom: 6px; width: 40px; height: 1px; background: #d4d4d8; }
.terminal-scroll > span::after { content: ''; display: block; width: 100%; height: 100%; background: #71717a; transform: scaleX(var(--scroll-progress)); transform-origin: left; }
.terminal-scroll:hover { color: #27272a; }
.main-return-scroll { position: fixed; top: var(--return-top); bottom: auto; z-index: 55; font-size: 11px; line-height: 14px; padding: 13px 12px 0; }
.main-return-scroll > span { top: 3px; bottom: auto; }
.main-return-scroll[hidden] { display: none; }
@media(max-width:600px) {
  .terminal-intro .catalyst-brand { font-size: clamp(24px, calc(12px / var(--formula-scale)), 35px); }
  .welcome-code { padding: 16px; }
  .terminal-actions.hero-actions { gap: 10px; }
}
@media(max-height:540px) {
  .terminal-actions .hero-action { min-height: 42px; padding-block: 8px; }
  .terminal-scroll { bottom: 2px; padding-bottom: 14px; }
  .main-return-scroll { bottom: auto; padding-bottom: 0; }
}
@media(max-width:360px) { .welcome-code { padding: 10px; } }
@media(max-height:450px) { .welcome-code { padding: 12px; } }
@media(pointer:coarse) { .welcome-views { --view-scale: 1.6; } }
@media(prefers-reduced-motion: reduce) { .terminal-intro, .terminal-intro * { transition: none !important; animation: none !important; } }

/* Download uses the same quiet shell and primary action as the landing page. */
.download-page { min-height: 100svh; display: flex; flex-direction: column; }
.download-page .site-header { flex-shrink: 0; }
.download-main { flex: 1; display: grid; place-items: center; padding: 80px 24px 100px; }
.download-content { text-align: center; max-width: 680px; }
.download-icon { width: clamp(156px, 20vw, 208px); margin: 0 auto 36px; }
.download-content h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.2; }
.download-note { margin-top: 24px; }
.download-note-label { display: inline-flex; align-items: center; vertical-align: baseline; margin-right: 4px; padding: 3px 9px; border-radius: 6px; background: var(--muted); color: #52525b; font-size: 12px; font-weight: 500; line-height: 1.5; }
.download-note .download-note-label { display: inline; margin: 0; padding: 0; border-radius: 0; background: none; color: #52525b; font-size: inherit; font-weight: 600; line-height: inherit; }
.download-title-name { white-space: nowrap; }
.download-note p { margin-top: 0; font-size: 14px; line-height: 1.8; text-wrap: pretty; }
.download-content p a { color: var(--foreground); text-decoration: underline; text-underline-offset: 3px; }
.download-content p a:hover { color: #7653b5; }
.download-action { margin-top: 32px; border: 0; min-width: 200px; }
@media(max-width: 600px) {
  .download-main { padding: 56px 24px 72px; }
  .download-content h1 { font-size: clamp(26px, 7.7vw, 32px); }
}

/* Compact navigation uses the same header on Welcome and the content pages. */
.header-identity { display: contents; }
.mobile-navigation { display: none; }
@media (max-width: 760px) {
  body > .site-header { --header-padding: 8px; top: 12px; width: calc(100% - 24px); height: 60px; margin-top: 12px; padding: 8px; gap: 8px; border-radius: 12px; }
  .header-identity { display: flex; min-width: 0; align-items: center; gap: 6px; }
  .site-header .brand { flex: 0 0 32px; }
  .site-header .brand .catalex-mark { gap: 0; }
  .site-header .brand .catalex-mark > span { display: none; }
  .intro-pending:not([data-intro="docking"]):not(.welcome-returning) .site-header .brand img { left: 0; }
  .site-header .header-nav { display: none; }
  .mobile-navigation { display: block; min-width: 0; }
  .mobile-navigation summary { display: flex; align-items: center; gap: 5px; min-height: 42px; list-style: none; cursor: pointer; color: var(--foreground); font: 500 15px/20px CatalexMark, Geist, system-ui, sans-serif; letter-spacing: normal; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-navigation summary svg { flex: 0 0 15px; width: 15px; height: 15px; color: #71717a; transition: transform 160ms ease; }
  .mobile-navigation[open] summary svg { transform: rotate(180deg); }
  .mobile-navigation nav { position: absolute; top: calc(100% + 8px); left: 8px; width: min(224px, calc(100vw - 48px)); padding: 6px; display: grid; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 8px 24px -8px rgb(0 0 0 / .14); }
  .mobile-navigation nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; font: 500 15px/20px CatalexMark, Geist, system-ui, sans-serif; color: #52525b; }
  .mobile-navigation nav a:is(:hover, :focus-visible, [aria-current="page"]) { color: var(--foreground); background: #f4f4f5; }
  .mobile-navigation summary:focus-visible { outline: 2px solid #a1a1aa; outline-offset: 2px; border-radius: 5px; }
  .site-header .header-actions { margin-left: auto; flex-shrink: 0; gap: 6px; }
  body > .site-header .header-actions .button { width: 40px; height: 40px; padding: 0; min-width: 0; }
  .site-header .header-download, .terminal-actions a[href$="download/"] { display: none; }
  .header-download > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .site-header .header-replay { top: 50%; right: 9px; }
  .intro-pending body#top > .site-header { border-color: var(--border); box-shadow: var(--header-shadow); }
  body#top > .site-header::after { display: none; }
  .intro-pending.welcome-returning .intro-scene { transform: none; }
  .intro-pending.welcome-returning .header-replay { opacity: 1; }
  html.intro-pending.welcome-returning .site-header .header-actions { visibility: hidden; }
  .terminal-scroll { touch-action: manipulation; }
  .terminal-scroll > span, .main-return-scroll { display: none; }
  @media (hover: none) {
    .header-replay.button { width: 38px; }
    .header-replay > span { opacity: 0; }
    .header-replay.button:focus-visible { width: 110px; }
    .header-replay:focus-visible > span { opacity: 1; }
  }
}
