/* ==========================================================================
   Aptelic LLP — homepage
   Loaded after site.css. Owns the homepage widgets: the orchestration
   diagram, the agent run, the pilot-to-production stage, the capability
   tiles and the scenario explorer.
   ========================================================================== */

:root {
	--hero-min: 88vh;
}

.anim-armed [data-anim="up"] {
	opacity: 0;
}

.anim-armed .hx-title .line-inner {
	transform: translateY(105%);
}

.gsap-motion .hx-title .line-inner {
	transform: none;
}

/* Shared section furniture ------------------------------------------------ */

.sec-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.sec-kicker::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--gold);
}

.pg-head {
	display: grid;
	gap: 1.15rem clamp(2rem, 6vw, 5rem);
	align-items: end;
	margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

@media (min-width: 62rem) {
	.pg-head {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	}
}

.pg-head h2 {
	font-size: clamp(1.95rem, 3.9vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.pg-head h2 .serif,
.serif {
	font-family: var(--font-serif);
	font-weight: 400;
	font-style: italic;
	letter-spacing: -0.026em;
	color: var(--navy);
}

.pg-head > p {
	font-size: clamp(0.98rem, 1.15vw, 1.0625rem);
	color: var(--ink-muted);
	max-width: 48ch;
}

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

.hx {
	position: relative;
	min-height: var(--hero-min);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: clamp(2rem, 5vw, 3.5rem) 0;
	overflow: hidden;
}

.hx-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
	flex: 1;
}

@media (min-width: 64rem) {
	.hx-grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
		gap: clamp(2.5rem, 4vw, 4rem);
	}
}

.hx-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: clamp(1rem, 2vw, 1.5rem);
	font-family: var(--font-mono);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.hx-kicker::before {
	content: "";
	width: 1.75rem;
	height: 1px;
	background: var(--gold);
}

.hx-title {
	margin: 0;
	font-size: clamp(2.75rem, 6.6vw, 5.25rem);
	line-height: 0.95;
	letter-spacing: -0.045em;
	font-weight: 600;
	color: var(--ink);
	margin-left: -0.045em;
}

.hx-title .line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.06em;
}

.hx-title .line-inner {
	display: block;
	will-change: transform;
}

.hx-sub {
	max-width: 40ch;
	margin-top: clamp(1.4rem, 2.4vw, 2rem);
	font-size: clamp(1rem, 1.25vw, 1.125rem);
	line-height: 1.56;
	color: var(--ink-muted);
}

.hx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	margin-top: clamp(1.5rem, 2.6vw, 2rem);
}

@media (max-width: 30rem) {
	.hx-actions {
		display: grid;
		grid-template-columns: minmax(0, 1fr);
	}

	.hx-actions .btn {
		width: 100%;
	}
}

.hx-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.75rem;
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
	padding-block: 1.25rem;
	border-top: 1px solid var(--line);
}

.hx-points {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
}

.hx-points span {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink-muted);
}

.hx-points span::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--gold);
	flex: none;
}

/* ==========================================================================
   Orchestration diagram
   ========================================================================== */

.orch {
	position: relative;
	margin: 0;
	padding: clamp(1rem, 1.8vw, 1.4rem);
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
}

.orch-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.4rem;
}

.orch-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.orch-pip {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 3px rgba(176, 138, 62, 0.16);
	transition: background-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}

.orch-badge.is-retry .orch-pip {
	background: var(--navy);
	box-shadow: 0 0 0 3px rgba(14, 43, 78, 0.14);
}

.orch-hint {
	font-family: var(--font-mono);
	font-size: 0.625rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

@media (hover: none) {
	.orch-hint {
		display: none;
	}
}

.orch-svg {
	display: block;
	width: 100%;
	height: clamp(15rem, 34vw, 19rem);
	touch-action: pan-y;
}

@media (max-width: 64rem) {
	.orch-svg {
		/* Taller when stacked: the flow runs top to bottom and the fan-out
		   labels sit under their nodes. */
		height: clamp(24rem, 78vw, 30rem);
	}

	.gr-label {
		font-size: 9px;
		letter-spacing: 0.1em;
	}
}

/* Edges ------------------------------------------------------------------- */

.gr-edge {
	stroke: var(--line-strong);
	stroke-width: 1.25;
	transition: stroke 0.3s var(--ease), stroke-width 0.3s var(--ease);
}

.gr-edge-retry {
	stroke-dasharray: 4 5;
	stroke: var(--line-strong);
	opacity: 0.85;
}

.gr-edge.is-live {
	stroke: var(--navy);
	stroke-width: 1.6;
}

.gr-edge.is-adjacent {
	stroke: var(--gold);
	stroke-width: 1.8;
}

/* The travelling packet is a dash sliding along a copy of the edge. */
.gr-flow {
	stroke: var(--navy);
	stroke-width: 3;
	stroke-linecap: round;
	opacity: 0.9;
}

.gr-flow-retry {
	stroke: var(--gold-deep);
}

/* Nodes ------------------------------------------------------------------- */

.gr-node {
	cursor: pointer;
	outline: none;
}

.gr-box {
	fill: var(--surface);
	stroke: var(--line-strong);
	stroke-width: 1.25;
	transition: stroke 0.3s var(--ease), fill 0.3s var(--ease);
}

.gr-core {
	fill: var(--ink-faint);
	transition: fill 0.3s var(--ease), r 0.3s var(--ease);
}

.gr-ring {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.5;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
	pointer-events: none;
}

/* Invisible, fixed-size, and the only thing in the node that takes a tap. */
.gr-hit {
	fill: transparent;
	cursor: pointer;
	outline: none;
}

.gr-hit:focus-visible {
	fill: rgba(14, 43, 78, 0.06);
	stroke: var(--navy);
	stroke-width: 2;
}

.gr-label {
	font-family: var(--font-mono);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	fill: var(--ink-muted);
	transition: fill 0.3s var(--ease);
}

.gr-node.is-active .gr-box {
	stroke: var(--navy);
	fill: var(--navy-tint);
}

.gr-node.is-active .gr-core {
	fill: var(--navy);
	r: 5;
}

.gr-node.is-active .gr-ring {
	animation: gr-pulse 1.1s var(--ease-out);
}

@keyframes gr-pulse {
	0% { opacity: 0.6; transform: scale(0.72); }
	100% { opacity: 0; transform: scale(1.35); }
}

.gr-node.is-inspect .gr-box {
	stroke: var(--gold);
	fill: var(--gold-tint);
}

.gr-node.is-inspect .gr-core {
	fill: var(--gold-deep);
}

.gr-node.is-inspect .gr-label,
.gr-node.is-active .gr-label {
	fill: var(--ink);
}

.gr-node:focus-within .gr-box {
	stroke: var(--navy);
	stroke-width: 2.5;
}

/* Readout ----------------------------------------------------------------- */

.orch-readout {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.75rem;
	margin-top: 0.25rem;
	padding-top: 0.85rem;
	border-top: 1px solid var(--line);
	min-height: 3.1rem;
}

.orch-read-label {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold-deep);
	flex: none;
}

.orch-read-text {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--ink-muted);
	flex: 1 1 16rem;
}

.orch[data-inspecting="true"] .orch-read-label {
	color: var(--navy);
}

/* ==========================================================================
   The business challenge — the dark beat between hero and approach
   ========================================================================== */

.chal {
	position: relative;
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(4rem, 9vw, 7rem);
	overflow: hidden;
}

.chal::before {
	content: "";
	position: absolute;
	top: -32%;
	right: -8%;
	width: 46rem;
	height: 46rem;
	background: radial-gradient(circle, rgba(176, 138, 62, 0.14), transparent 62%);
	pointer-events: none;
}

.chal-inner {
	position: relative;
}

.chal .sec-kicker {
	color: var(--gold-soft);
}

.chal .sec-kicker::before {
	background: var(--gold-soft);
}

.chal-line {
	max-width: 24ch;
	margin: 0;
	font-size: clamp(1.9rem, 4.4vw, 3.3rem);
	line-height: 1.08;
	letter-spacing: -0.035em;
	font-weight: 600;
	color: #fff;
}

.chal-line .serif {
	color: var(--gold-soft);
}

.chal-body {
	max-width: 48ch;
	margin-top: clamp(1.3rem, 2.4vw, 1.9rem);
	font-size: clamp(0.98rem, 1.15vw, 1.0625rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.64);
}

.chal-cols {
	display: grid;
	gap: 0;
	margin-top: clamp(2.5rem, 5vw, 4rem);
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 52rem) {
	.chal-cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.chal-col {
	padding: clamp(1.4rem, 2.4vw, 1.9rem) 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

@media (min-width: 52rem) {
	.chal-col {
		padding-right: clamp(1.5rem, 3vw, 2.75rem);
		border-bottom: 0;
	}

	.chal-col + .chal-col {
		padding-left: clamp(1.5rem, 3vw, 2.75rem);
		border-left: 1px solid rgba(255, 255, 255, 0.14);
	}
}

.chal-n {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	color: var(--gold-soft);
	margin-bottom: 0.85rem;
}

.chal-col h3 {
	margin: 0 0 0.45rem;
	font-size: 1.0625rem;
	color: #fff;
	letter-spacing: -0.018em;
}

.chal-col p {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.6);
}

.chal-col-accent h3 {
	color: var(--gold-soft);
}

/* ==========================================================================
   Agent run simulation
   ========================================================================== */

.sim-sec {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--paper-warm);
	border-block: 1px solid var(--line);
}

.sim {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
}

.sim-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	padding: clamp(1rem, 1.8vw, 1.35rem);
	border-bottom: 1px solid var(--line);
	background: var(--paper);
}

.sim-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.sim-chip {
	padding: 0.55rem 1rem;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--ink-soft);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
		color var(--t-fast) var(--ease);
}

.sim-chip:hover {
	border-color: var(--navy);
	color: var(--ink);
}

.sim-chip[aria-pressed="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.sim-run {
	padding: 0.6rem 1.15rem;
	font-size: 0.8125rem;
}

/* Present, but a footnote rather than a warning band. */
.sim-disclaimer {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem clamp(1rem, 1.8vw, 1.35rem);
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--ink-muted);
	background: var(--paper);
	border-bottom: 1px solid var(--line);
}

.sim-disclaimer::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
	flex: none;
}

.sim-grid {
	display: grid;
	gap: 0;
}

@media (min-width: 58rem) {
	.sim-grid {
		grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
	}

	.sim-col-side {
		border-left: 1px solid var(--line);
	}
}

.sim-col {
	padding: clamp(1.15rem, 2vw, 1.6rem);
}

.sim-col + .sim-col {
	border-top: 1px solid var(--line);
}

@media (min-width: 58rem) {
	.sim-col + .sim-col {
		border-top: 0;
	}
}

.sim-h {
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ink-faint);
	margin-bottom: 0.6rem;
}

.sim-h-gap {
	margin-top: 1.4rem;
}

.sim-request {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink);
	font-weight: 500;
}

.sim-agents {
	display: grid;
	gap: 0.6rem;
}

.sim-agent {
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	padding: 0.85rem 1rem;
	background: var(--paper);
	transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.sim-agent header {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.sim-agent h4 {
	margin: 0;
	font-size: 0.9375rem;
	letter-spacing: -0.015em;
	flex: 1;
}

.sim-pip {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--line-strong);
	flex: none;
	transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.sim-state {
	font-family: var(--font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-faint);
}

.sim-agent[data-agent-state="running"] {
	border-color: var(--navy);
	background: var(--navy-tint);
}

.sim-agent[data-agent-state="running"] .sim-pip {
	background: var(--navy);
	animation: sim-blink 1s var(--ease) infinite;
}

.sim-agent[data-agent-state="running"] .sim-state {
	color: var(--navy);
}

.sim-agent[data-agent-state="done"] {
	border-color: var(--line-strong);
}

.sim-agent[data-agent-state="done"] .sim-pip {
	background: var(--positive);
}

.sim-agent[data-agent-state="done"] .sim-state {
	color: var(--positive);
}

@keyframes sim-blink {
	0%, 100% { box-shadow: 0 0 0 0 rgba(14, 43, 78, 0.28); }
	50% { box-shadow: 0 0 0 5px rgba(14, 43, 78, 0); }
}

.sim-agent ul {
	display: grid;
	gap: 0.3rem;
	margin-top: 0.7rem;
}

.sim-agent li {
	display: flex;
	gap: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.72rem;
	line-height: 1.5;
	color: var(--ink-faint);
	transition: color 0.3s var(--ease);
}

.sim-agent li span {
	color: var(--line-strong);
	transition: color 0.3s var(--ease);
}

.sim-agent li[data-tool-done="true"] {
	color: var(--ink-muted);
}

.sim-agent li[data-tool-done="true"] span {
	color: var(--gold-deep);
}

/* Checks ------------------------------------------------------------------ */

.sim-checks {
	display: grid;
	gap: 0.55rem;
}

.sim-checks li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-size: 0.875rem;
	color: var(--ink-faint);
	transition: color 0.3s var(--ease);
}

.sim-check-mark {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1.5px solid var(--line-strong);
	flex: none;
	position: relative;
	transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.sim-checks li[data-passed="true"] {
	color: var(--ink-soft);
}

.sim-checks li[data-passed="true"] .sim-check-mark {
	border-color: var(--positive);
	background: var(--positive);
}

.sim-checks li[data-passed="true"] .sim-check-mark::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.5px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 1.6px 1.6px 0;
	transform: rotate(45deg);
}

.sim-result {
	margin-top: 1.5rem;
	padding-top: 1.3rem;
	border-top: 1px solid var(--line);
	opacity: 0.45;
	transition: opacity 0.45s var(--ease);
}

.sim[data-phase="done"] .sim-result {
	opacity: 1;
}

.sim-result-text {
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--ink);
}

.sim-note {
	margin-top: 0.7rem;
	padding-left: 0.85rem;
	border-left: 2px solid var(--gold);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--ink-muted);
}

.sim-status {
	padding: 0.75rem clamp(1rem, 1.8vw, 1.35rem);
	border-top: 1px solid var(--line);
	background: var(--paper);
	font-family: var(--font-mono);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	color: var(--ink-muted);
}

/* ==========================================================================
   Pilot to production
   ========================================================================== */

.jr {
	background: var(--navy-deep);
	color: rgba(255, 255, 255, 0.72);
}

.jr-pin {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-block: clamp(3rem, 7vw, 5rem);
	overflow: hidden;
}

.jr[data-mode="steps"] .jr-pin {
	min-height: 0;
}

.jr-grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
	width: 100%;
}

@media (min-width: 62rem) {
	.jr-grid {
		grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	}
}

.jr .sec-kicker {
	color: var(--gold-soft);
}

.jr .sec-kicker::before {
	background: var(--gold-soft);
}

.jr h2 {
	color: #fff;
	font-size: clamp(1.9rem, 3.8vw, 3rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.jr-stagebox {
	min-height: 15rem;
}

.jr-phase {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold-soft);
	margin-bottom: 0.55rem;
}

.jr-title {
	margin: 0 0 0.7rem;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	letter-spacing: -0.03em;
	color: #fff;
}

.jr-body {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.64);
	max-width: 42ch;
}

.jr-gains {
	display: grid;
	gap: 0.55rem;
	margin-top: 1.2rem;
}

.jr-gains li {
	position: relative;
	padding-left: 1.4rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.8);
}

.jr-gains li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 0.7rem;
	height: 1px;
	background: var(--gold-soft);
}

.jr-steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.jr-step {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.95rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.8125rem;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
		color var(--t-fast) var(--ease);
}

.jr-step:hover {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.jr-step[aria-pressed="true"] {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--navy-deep);
	font-weight: 600;
}

.jr-step-n {
	font-family: var(--font-mono);
	font-size: 0.65rem;
	letter-spacing: 0.12em;
	opacity: 0.8;
}

/* The architecture that gains layers ------------------------------------- */

.jr-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	max-height: 26rem;
	border-radius: var(--r-lg);
	background: rgba(255, 255, 255, 0.03);
	display: grid;
	place-items: center;
}

.jr-boundary {
	position: absolute;
	inset: 12%;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: var(--r-md);
	transition: border-color 0.6s var(--ease), inset 0.6s var(--ease), border-style 0.6s var(--ease);
}

.jr-boundary span {
	position: absolute;
	top: -0.62rem;
	left: 1rem;
	padding: 0 0.45rem;
	background: var(--navy-deep);
	font-family: var(--font-mono);
	font-size: 0.55rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	/* Fade with opacity only. Transitioning the colour's alpha instead put
	   the label at 4.27:1 for the middle of every transition. */
	color: var(--gold-soft);
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.jr-stage[data-level="1"] .jr-boundary,
.jr-stage[data-level="2"] .jr-boundary,
.jr-stage[data-level="3"] .jr-boundary {
	border-style: solid;
	border-color: var(--gold-soft);
}

.jr-stage[data-level="1"] .jr-boundary span,
.jr-stage[data-level="2"] .jr-boundary span,
.jr-stage[data-level="3"] .jr-boundary span {
	opacity: 1;
}

.jr-core {
	position: relative;
	z-index: 1;
	text-align: center;
}

.jr-rack {
	display: flex;
	gap: 0.4rem;
	justify-content: center;
}

.jr-unit {
	width: 1.5rem;
	height: 3.25rem;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.34);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
		background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

/* Replicas only exist once the system is scaled. */
.jr-unit[data-unit="2"],
.jr-unit[data-unit="3"],
.jr-unit[data-unit="4"] {
	opacity: 0;
	transform: scaleY(0.4);
}

/* Added capacity is gold so the difference between the original unit and
   its replicas is legible against the navy ground. */
.jr-stage[data-level="3"] .jr-unit[data-unit="2"],
.jr-stage[data-level="3"] .jr-unit[data-unit="3"],
.jr-stage[data-level="3"] .jr-unit[data-unit="4"] {
	opacity: 1;
	transform: none;
	background: rgba(217, 190, 126, 0.32);
	border-color: var(--gold-soft);
}

.jr-racklabel {
	margin-top: 0.7rem;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
}

.jr-layer {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	border: 1px solid rgba(217, 190, 126, 0.4);
	background: rgba(7, 26, 50, 0.9);
	font-family: var(--font-mono);
	font-size: 0.58rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold-soft);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.jr-auth  { top: 16%; left: 14%; }
.jr-obs   { top: 16%; right: 14%; }
.jr-fall  { bottom: 16%; left: 14%; }
.jr-scale { bottom: 16%; right: 14%; }

.jr-stage[data-level="1"] .jr-auth,
.jr-stage[data-level="2"] .jr-auth,
.jr-stage[data-level="3"] .jr-auth,
.jr-stage[data-level="2"] .jr-obs,
.jr-stage[data-level="3"] .jr-obs,
.jr-stage[data-level="2"] .jr-fall,
.jr-stage[data-level="3"] .jr-fall,
.jr-stage[data-level="3"] .jr-scale {
	opacity: 1;
	transform: none;
}

.jr-obs svg {
	width: 3.5rem;
	height: 0.9rem;
}

.jr-obs polyline {
	fill: none;
	stroke: var(--gold-soft);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 62rem) {
	.jr-stage {
		max-height: 19rem;
		width: 100%;
	}

	.jr-layer {
		font-size: 0.52rem;
		padding: 0.28rem 0.55rem;
	}
}

/* ==========================================================================
   Capability tiles
   ========================================================================== */

.bn {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.bn-grid {
	display: grid;
	gap: clamp(0.85rem, 1.4vw, 1.15rem);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 44rem) {
	.bn-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 68rem) {
	.bn-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.bn-wide {
		grid-column: span 2;
	}

	/* Six tiles with two double-width ones leave a ninth cell empty; the
	   closing tile takes the full row instead. */
	.bn-grid > .bn-tile:last-child {
		grid-column: 1 / -1;
	}

	.bn-grid > .bn-tile:last-child {
		flex-direction: row;
		align-items: stretch;
	}

	/* Fixed width: the wireframe blocks are positioned for a single-tile
	   panel and stretch oddly across a full row. */
	.bn-grid > .bn-tile:last-child .bn-demo {
		flex: 0 0 26rem;
		height: auto;
		min-height: 10rem;
		border-bottom: 0;
		border-right: 1px solid var(--line);
	}

	.bn-grid > .bn-tile:last-child .bn-body {
		flex: 1 1 auto;
		justify-content: center;
		max-width: 46rem;
	}
}

.bn-tile {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease),
		border-color var(--t-ui) var(--ease);
}

.bn-tile:hover,
.bn-tile:focus-visible {
	transform: translateY(-4px);
	border-color: var(--line-strong);
	box-shadow: var(--shadow-lg);
}

.bn-demo {
	position: relative;
	height: 8.5rem;
	background: var(--stone);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.bn-body {
	padding: clamp(1.1rem, 1.8vw, 1.45rem);
	display: flex;
	flex-direction: column;
	flex: 1;
}

.bn-body h3 {
	margin: 0 0 0.4rem;
	font-size: 1.0625rem;
	letter-spacing: -0.022em;
}

.bn-body p {
	font-size: 0.875rem;
	line-height: 1.52;
	color: var(--ink-muted);
}

.bn-go {
	margin-top: auto;
	padding-top: 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold-deep);
}

.bn-go::after {
	content: " \2192";
	display: inline-block;
	transition: transform var(--t-ui) var(--ease);
}

.bn-tile:hover .bn-go::after {
	transform: translateX(3px);
}

/* 1. Agentic — a token hops between specialists */
.bn-demo-agentic {
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0 2rem;
}

.bn-hop {
	position: relative;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 8px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease),
		transform 0.35s var(--ease);
}

.bn-hop.is-on {
	transform: translateY(-4px);
}

.bn-hop.is-on {
	border-color: var(--navy);
	background: var(--navy-tint);
}

/* A ring around the active hop reads as selection. A dot that travels the
   row reads as work being handed between specialists, which is the point. */
.bn-token {
	position: absolute;
	top: 0;
	left: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 4px rgba(176, 138, 62, 0.16);
	pointer-events: none;
	transition: transform 0.5s var(--ease-out);
}

/* The rail the token runs along. */
.bn-demo-agentic::before {
	content: "";
	position: absolute;
	left: 3.2rem;
	right: 3.2rem;
	top: 50%;
	height: 1px;
	background: var(--line-strong);
}

/* 2. Generative — a structured answer streams in */
.bn-demo-gen {
	display: flex;
	align-items: center;
	padding: 1.1rem;
}

.bn-stream {
	font-family: var(--font-mono);
	font-size: 0.72rem;
	line-height: 1.7;
	color: var(--ink-soft);
	word-break: break-word;
}

.bn-demo-gen::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 0.9rem;
	background: var(--gold);
	opacity: 0;
	margin-left: 2px;
}

.bn-tile.is-typing .bn-demo-gen::after {
	opacity: 1;
	animation: bn-caret 0.9s steps(1) infinite;
}

@keyframes bn-caret { 50% { opacity: 0; } }

/* 3. Migration — segments cross to the modern platform */
.bn-demo-mig {
	display: grid;
	align-content: center;
	gap: 1.1rem;
	padding: 0 1.4rem;
}

.bn-bar {
	position: relative;
	height: 1.6rem;
	z-index: 0;
	border-radius: 5px;
	border: 1px dashed var(--line-strong);
	display: flex;
	gap: 3px;
	padding: 3px;
}

.bn-bar-new {
	border-style: solid;
	border-color: var(--navy);
	background: var(--navy-tint);
}

.bn-bar-old {
	z-index: 1;
}

.bn-bar-old span {
	flex: 1;
	border-radius: 3px;
	background: var(--line-strong);
	transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out),
		background-color 0.6s var(--ease);
}

.bn-bar-old span.is-moved {
	background: var(--gold);
	transform: translateY(2.7rem);
	opacity: 0.9;
}

/* 4. Automation — a queue drains */
.bn-demo-auto {
	display: grid;
	align-content: center;
	gap: 0.85rem;
	padding: 0 1.4rem;
}

.bn-queue {
	display: flex;
	gap: 5px;
}

.bn-queue span {
	flex: 1;
	height: 1.5rem;
	border-radius: 4px;
	background: var(--line-strong);
	transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}

.bn-queue span.is-done {
	background: var(--positive);
	transform: scaleY(0.55);
}

.bn-counter {
	font-family: var(--font-mono);
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ink-muted);
}

.bn-counter span {
	color: var(--navy);
	font-weight: 500;
}

/* 5. Cloud — replicas track load */
.bn-demo-cloud {
	display: grid;
	align-content: center;
	gap: 0.9rem;
	padding: 0 1.4rem;
}

.bn-reps {
	display: flex;
	gap: 6px;
	align-items: flex-end;
	height: 2.6rem;
}

.bn-reps span {
	flex: 1;
	height: 100%;
	border-radius: 4px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	opacity: 0.35;
	transform: scaleY(0.5);
	transform-origin: bottom;
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease),
		background-color 0.45s var(--ease);
}

.bn-reps span.is-up {
	opacity: 1;
	transform: none;
	background: var(--navy-tint);
	border-color: var(--navy);
}

.bn-loadtrack {
	height: 3px;
	border-radius: 2px;
	background: var(--line-strong);
	overflow: hidden;
}

.bn-loadfill {
	display: block;
	height: 100%;
	background: var(--gold);
	transform-origin: left;
	transform: scaleX(0.25);
	transition: transform 0.55s var(--ease-out);
}

/* 6. Custom software — an operator interface assembles */
.bn-demo-custom {
	padding: 1.1rem 1.4rem;
}

.bn-blk {
	position: absolute;
	border-radius: 4px;
	background: var(--line-strong);
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.bn-blk.is-in {
	opacity: 1;
	transform: none;
}

.bn-blk-nav  { left: 1.4rem; right: 1.4rem; top: 1.1rem; height: 0.75rem; background: var(--navy); opacity: 0; }
.bn-blk-side { left: 1.4rem; top: 2.3rem; bottom: 1.1rem; width: 2.2rem; }
.bn-blk-main { left: 4.1rem; right: 1.4rem; top: 2.3rem; height: 2.4rem; background: var(--navy-tint); border: 1px solid var(--line-strong); }
.bn-blk-a    { left: 4.1rem; right: 4.6rem; top: 5.1rem; height: 0.7rem; }
.bn-blk-b    { left: 4.1rem; right: 1.4rem; top: 6.3rem; height: 0.7rem; background: var(--gold); }

/* ==========================================================================
   Scenario explorer
   ========================================================================== */

.ex {
	padding-block: clamp(4rem, 8vw, 7rem);
	background: var(--paper-warm);
	border-block: 1px solid var(--line);
}

.ex-tabs {
	display: flex;
	gap: 0.45rem;
	overflow-x: auto;
	padding-bottom: 0.6rem;
	margin-bottom: 1.35rem;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.ex-tab {
	flex: none;
	padding: 0.6rem 1.05rem;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
	color: var(--ink-soft);
	background: var(--surface);
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
		color var(--t-fast) var(--ease);
}

.ex-tab:hover {
	border-color: var(--navy);
	color: var(--ink);
}

.ex-tab[aria-selected="true"] {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.ex-panel {
	display: grid;
	gap: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
	overflow: hidden;
	transition: opacity 0.15s var(--ease);
}

.ex-panel[data-swapping="true"] {
	opacity: 0.35;
}

@media (min-width: 62rem) {
	.ex-panel {
		grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.95fr);
	}
}

.ex-col {
	padding: clamp(1.25rem, 2.2vw, 1.85rem);
}

.ex-col + .ex-col {
	border-top: 1px solid var(--line);
}

@media (min-width: 62rem) {
	.ex-col + .ex-col {
		border-top: 0;
		border-left: 1px solid var(--line);
	}
}

.ex-col-out {
	background: var(--stone);
}

.ex-h {
	font-family: var(--font-mono);
	font-size: 0.625rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	/* --ink-faint drops to 4.39:1 on --stone in the outcome column. */
	color: var(--ink-muted);
	margin-bottom: 0.65rem;
}

.ex-h-gap {
	margin-top: 1.4rem;
}

.ex-problem {
	font-size: 0.9375rem;
	line-height: 1.58;
	color: var(--ink-muted);
}

.ex-flow {
	display: grid;
	gap: 0.5rem;
}

.ex-stepi {
	display: flex;
	align-items: baseline;
	gap: 0.65rem;
	font-size: 0.875rem;
	color: var(--ink-soft);
}

.ex-stepn {
	flex: none;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--font-mono);
	font-size: 0.6rem;
	color: var(--gold-deep);
	border: 1px solid var(--gold-soft);
}

.ex-deliver {
	display: grid;
	gap: 0.7rem;
}

.ex-deliver li {
	position: relative;
	padding-left: 1.35rem;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ink-muted);
}

.ex-deliver li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6em;
	width: 0.7rem;
	height: 1px;
	background: var(--gold);
}

.ex-outcome {
	font-size: 0.9375rem;
	line-height: 1.55;
	font-weight: 500;
	color: var(--navy);
	margin-bottom: 1.1rem;
}

/* ==========================================================================
   Why row
   ========================================================================== */

.why-sec {
	padding-block: clamp(4rem, 8vw, 7rem);
}

.why-row {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--line-strong);
}

@media (min-width: 46rem) {
	.why-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: clamp(1.5rem, 3vw, 2.75rem);
	}
}

@media (min-width: 72rem) {
	.why-row {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.why-cell {
	padding-block: clamp(1.3rem, 2.2vw, 1.75rem);
	border-bottom: 1px solid var(--line);
}

@media (min-width: 72rem) {
	.why-cell {
		border-bottom: 0;
	}
}

.why-n {
	font-family: var(--font-mono);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	color: var(--gold-deep);
	margin-bottom: 0.6rem;
}

.why-cell h3 {
	margin: 0 0 0.4rem;
	font-size: 1.0625rem;
	letter-spacing: -0.022em;
}

.why-cell p {
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--ink-muted);
}

.why-more {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ==========================================================================
   Scroll-spy indicator in the header
   ========================================================================== */

.site-nav > a[data-spy-active]::after {
	transform: scaleX(1);
}

.site-nav > a[data-spy-active] {
	color: var(--ink);
	font-weight: 600;
}

/* ==========================================================================
   Reduced motion + print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.anim-armed [data-anim],
	[data-anim] {
		opacity: 1 !important;
		transform: none !important;
	}

	.hx-title .line-inner,
	.cta-title .line-inner {
		transform: none !important;
	}

	/* Widgets hold a representative finished state rather than looping. */
	.gr-node.is-active .gr-ring,
	.sim-agent[data-agent-state="running"] .sim-pip,
	.bn-tile.is-typing .bn-demo-gen::after {
		animation: none !important;
	}

	.jr-pin {
		min-height: 0;
	}

	.ex-panel[data-swapping="true"] {
		opacity: 1;
	}

	.bn-token,
	.bn-bar-old span,
	.bn-queue span,
	.bn-reps span,
	.bn-blk,
	.jr-unit,
	.jr-layer,
	.jr-boundary {
		transition-duration: 0.001ms !important;
	}
}

@media print {
	.orch-svg,
	.jr-stage,
	.bn-demo {
		display: none !important;
	}

	[data-anim],
	.line-inner {
		opacity: 1 !important;
		transform: none !important;
	}

	.jr,
	.cta-panel {
		background: #fff !important;
		color: #000 !important;
	}

	.jr h2,
	.jr-title {
		color: #000 !important;
	}
}
