/**
 * Blocks Master — "mission control".
 *
 * Dark is this design's native state: a near-black navy canvas, a faint
 * coordinate grid, and cyan light used the way an ops console uses it — to
 * mark the things that are live. Light mode is a genuine second skin rather
 * than an inversion, because the same glow that reads as "active" on black
 * reads as "washed out" on white.
 *
 * No colour literal appears below the token block. Everything resolves through
 * the custom properties inc/brand.php prints under :root[data-theme="dark"]
 * and :root[data-theme="light"], which is what lets three Customizer pickers
 * re-skin the marketing site, the login screen and the signed-in portal at
 * once. See shared/theme-mode-contract.md.
 */

/* ==========================================================================
   Non-colour tokens
   (Colour tokens are inlined per mode by inc/brand.php.)
   ========================================================================== */

:root {
	--bmt-max: 1200px;
	--bmt-gutter: 24px;

	--bmt-r: 16px;
	--bmt-r-sm: 10px;
	--bmt-r-lg: 24px;

	--bmt-ease: cubic-bezier(.2, .7, .3, 1);
	--bmt-ease-out: cubic-bezier(.16, 1, .3, 1);

	--bmt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--bmt-display: "Sora", var(--bmt-font);
	--bmt-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--bmt-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--bmt-text);
	background: var(--bmt-canvas);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/*
 * The coordinate grid. Fixed rather than scrolling so it reads as the surface
 * the content moves over, not as texture printed on the content — and pinned
 * behind everything with a negative z-index so it never intercepts a click.
 */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(var(--bmt-grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--bmt-grid-line) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
	-webkit-mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 35%, transparent 78%);
	pointer-events: none;
}

h1, h2, h3, h4 {
	font-family: var(--bmt-display);
	font-weight: 700;
	letter-spacing: -.028em;
	line-height: 1.1;
	margin: 0 0 .5em;
	color: var(--bmt-text);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1.1em; }

a { color: var(--bmt-primary); text-underline-offset: 3px; }
a:hover { color: var(--bmt-text); }

img { max-width: 100%; height: auto; }

::selection { background: var(--bmt-primary); color: var(--bmt-on-primary); }

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

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

.bmt-skip-link:focus {
	position: fixed; top: 12px; left: 12px; z-index: 999;
	width: auto; height: auto; clip: auto; clip-path: none;
	padding: 10px 16px;
	background: var(--bmt-primary); color: var(--bmt-on-primary);
	border-radius: var(--bmt-r-sm); text-decoration: none; font-weight: 600;
}

.bmt-wrap {
	width: 100%;
	max-width: var(--bmt-max);
	margin: 0 auto;
	padding-left: var(--bmt-gutter);
	padding-right: var(--bmt-gutter);
}

/* Data readouts. Tabular figures so a column of numbers stays a column when
   the values change — the thing that makes a readout look instrument-grade
   rather than typed. */
.bmt-mono, .bmt-stat-num, .bmt-chip-val, .bmt-fare-grid strong, .bmt-port strong {
	font-family: var(--bmt-mono);
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
	letter-spacing: -.02em;
}

/* ==========================================================================
   Motion — scroll reveals
   ========================================================================== */

.bmt-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity .7s var(--bmt-ease-out), transform .7s var(--bmt-ease-out);
	transition-delay: var(--d, 0ms);
	will-change: opacity, transform;
}
.bmt-reveal.is-in { opacity: 1; transform: none; }

/* Without JS the observer never runs, so nothing would ever become visible. */
.no-js .bmt-reveal { opacity: 1; transform: none; }

/*
 * Above-the-fold entrance. The hero uses this rather than .bmt-reveal because
 * a reveal starts invisible and waits for an observer — which means the first
 * thing a visitor sees depends on a footer script having executed. On a slow
 * connection that is a blank hero. A CSS animation runs at first paint, needs
 * no JavaScript at all, and `both` holds the start state through the delay.
 */
.bmt-rise {
	animation: bmt-rise-in .8s var(--bmt-ease-out) both;
	animation-delay: var(--d, 0ms);
}
@keyframes bmt-rise-in {
	from { opacity: 0; transform: translateY(22px); }
	to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.bmt-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--bmt-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: transform .2s var(--bmt-ease), box-shadow .25s var(--bmt-ease),
		background .2s var(--bmt-ease), border-color .2s var(--bmt-ease), color .2s var(--bmt-ease);
}
.bmt-btn:hover { transform: translateY(-2px); }
.bmt-btn:active { transform: translateY(0); }

.bmt-btn-primary {
	background: var(--bmt-primary);
	color: var(--bmt-on-primary);
	box-shadow: 0 0 0 0 var(--bmt-glow), 0 8px 24px -8px var(--bmt-glow);
}
.bmt-btn-primary:hover {
	color: var(--bmt-on-primary);
	box-shadow: 0 0 28px -2px var(--bmt-glow), 0 14px 34px -10px var(--bmt-glow);
}

.bmt-btn-outline {
	border-color: var(--bmt-border);
	color: var(--bmt-text);
	background: transparent;
}
.bmt-btn-outline:hover {
	border-color: var(--bmt-primary);
	color: var(--bmt-primary);
	box-shadow: inset 0 0 22px -12px var(--bmt-glow);
}

.bmt-btn-ghost { color: var(--bmt-muted); background: transparent; }
.bmt-btn-ghost:hover { color: var(--bmt-text); background: var(--bmt-surface-2); }

.bmt-btn-lg { padding: 15px 30px; font-size: 16px; }
.bmt-btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */

.bmt-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: transparent;
	transition: background .3s var(--bmt-ease), border-color .3s var(--bmt-ease), backdrop-filter .3s var(--bmt-ease);
	border-bottom: 1px solid transparent;
}
/* Only once the page has moved does the bar acquire a surface — over the hero
   it should feel like part of the artwork, not a tray sitting on top of it. */
.bmt-header.is-scrolled {
	background: color-mix(in srgb, var(--bmt-canvas) 82%, transparent);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom-color: var(--bmt-border);
}

.bmt-header-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }

.bmt-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.bmt-brand { line-height: 0; }
.bmt-brand-logo { height: 54px; width: auto; max-width: none; display: block; }
/* Both logo versions are in the markup; the colour mode picks one. */
.bmt-logo-dark { display: none; }
:root[data-theme="dark"] .bmt-logo-dark { display: block; }
:root[data-theme="dark"] .bmt-logo-light { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) .bmt-logo-dark { display: block; }
	:root:not([data-theme]) .bmt-logo-light { display: none; }
}
.bmt-footer .bmt-brand-logo { height: 64px; }

.bmt-wordmark {
	font-family: var(--bmt-display);
	font-size: 19px;
	letter-spacing: -.03em;
	color: var(--bmt-text);
	display: inline-flex;
	align-items: baseline;
	gap: .32em;
}
.bmt-wordmark strong { font-weight: 800; }
.bmt-wordmark span { font-weight: 500; color: var(--bmt-muted); }

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

.bmt-menu { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.bmt-menu a {
	position: relative;
	color: var(--bmt-muted);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	padding: 6px 0;
	transition: color .18s var(--bmt-ease);
}
.bmt-menu a::after {
	content: "";
	position: absolute; left: 0; right: 100%; bottom: 0;
	height: 1px; background: var(--bmt-primary);
	transition: right .28s var(--bmt-ease);
	box-shadow: 0 0 8px var(--bmt-glow);
}
.bmt-menu a:hover { color: var(--bmt-text); }
.bmt-menu a:hover::after { right: 0; }

.bmt-header-actions { display: flex; align-items: center; gap: 8px; }

/* --- colour-mode switch --- */

.bmt-theme-toggle {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 3px;
	border: 1px solid var(--bmt-border);
	border-radius: 999px;
	background: var(--bmt-surface-2);
}
.bmt-theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px; height: 28px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--bmt-muted);
	cursor: pointer;
	transition: background .18s var(--bmt-ease), color .18s var(--bmt-ease);
}
.bmt-theme-btn svg { width: 15px; height: 15px; }
.bmt-theme-btn:hover { color: var(--bmt-text); }
.bmt-theme-btn[aria-pressed="true"] {
	background: var(--bmt-primary);
	color: var(--bmt-on-primary);
	box-shadow: 0 0 14px -2px var(--bmt-glow);
}

.bmt-nav-toggle {
	display: none;
	margin-left: auto;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px; height: 42px;
	padding: 0 9px;
	background: var(--bmt-surface-2);
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r-sm);
	cursor: pointer;
}
.bmt-nav-toggle span[aria-hidden] { display: block; height: 2px; background: var(--bmt-text); border-radius: 2px; }

/* ==========================================================================
   Section furniture
   ========================================================================== */

.bmt-section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
/* Two stacked sections would otherwise pay both paddings and leave a gap twice
   the intended size. Bands that paint their own ground keep their top padding,
   since for them it is interior space rather than a gap. */
.bmt-section + .bmt-section { padding-top: 0; }
.bmt-section + .bmt-roles { padding-top: clamp(56px, 8vw, 104px); }

.bmt-section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.bmt-section-head-left { margin-left: 0; text-align: left; }
.bmt-section-sub { color: var(--bmt-muted); font-size: 1.06rem; margin: 0; }

.bmt-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--bmt-mono);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bmt-primary);
	margin: 0 0 16px;
}
/* A live indicator, not decoration — the same visual cue the product uses for
   an active block. */
.bmt-eyebrow::before {
	content: "";
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--bmt-primary);
	box-shadow: 0 0 0 0 var(--bmt-glow);
	animation: bmt-pulse 2.6s var(--bmt-ease) infinite;
}
@keyframes bmt-pulse {
	0%   { box-shadow: 0 0 0 0 var(--bmt-glow); }
	70%  { box-shadow: 0 0 0 8px transparent; }
	100% { box-shadow: 0 0 0 0 transparent; }
}

.bmt-accent { color: var(--bmt-primary); }

/* A hairline that fades out at both ends, used to separate bands without
   drawing a hard rule across the canvas. */
.bmt-rule {
	height: 1px;
	border: 0;
	margin: 0;
	background: linear-gradient(90deg, transparent, var(--bmt-border) 18%, var(--bmt-border) 82%, transparent);
}

/* ==========================================================================
   Card surface
   ========================================================================== */

.bmt-card {
	position: relative;
	background: var(--bmt-surface);
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r);
	overflow: hidden;
}
/* A lit top edge. One pixel of brand colour does more to make a dark card feel
   deliberate than any amount of shadow can on a near-black background, where
   shadows are essentially invisible. */
.bmt-card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--bmt-border-lit), transparent);
	opacity: .9;
}

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

.bmt-hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }

/* Two offset radial washes rather than one centred glow: the asymmetry is what
   keeps a full-bleed gradient from reading as a vignette. */
.bmt-hero::before {
	content: "";
	position: absolute;
	inset: -30% -10% auto -10%;
	height: 150%;
	z-index: -1;
	background:
		radial-gradient(60% 50% at 18% 18%, var(--bmt-glow-soft), transparent 70%),
		radial-gradient(50% 45% at 88% 8%, rgba(var(--bmt-accent-rgb), .10), transparent 68%);
	pointer-events: none;
}

.bmt-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
	gap: clamp(32px, 5vw, 68px);
	align-items: center;
}

.bmt-hero-title { margin-bottom: 22px; }
.bmt-hero-title em {
	font-style: normal;
	color: var(--bmt-primary);
	text-shadow: 0 0 36px var(--bmt-glow);
}

.bmt-hero-sub {
	font-size: clamp(1.04rem, 1.5vw, 1.18rem);
	color: var(--bmt-muted);
	max-width: 34em;
	margin-bottom: 30px;
}

.bmt-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }

.bmt-hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bmt-hero-points li { position: relative; padding-left: 28px; font-size: 15px; color: var(--bmt-muted); }
.bmt-hero-points li::before {
	content: "";
	position: absolute; left: 3px; top: .5em;
	width: 11px; height: 6px;
	border-left: 2px solid var(--bmt-primary);
	border-bottom: 2px solid var(--bmt-primary);
	transform: rotate(-45deg);
}

/* --- the route network --- */

.bmt-hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 440px; }

.bmt-network { width: 100%; max-width: 560px; height: auto; overflow: visible; }

.bmt-net-arc {
	fill: none;
	stroke: var(--bmt-primary);
	stroke-width: 1.4;
	stroke-linecap: round;
	opacity: .75;
	filter: drop-shadow(0 0 5px var(--bmt-glow));
	stroke-dasharray: var(--len, 400);
	stroke-dashoffset: var(--len, 400);
	animation: bmt-draw 2.6s var(--bmt-ease-out) forwards;
	animation-delay: var(--delay, 0s);
}
@keyframes bmt-draw { to { stroke-dashoffset: 0; } }

.bmt-net-arc-dim { stroke: var(--bmt-muted); opacity: .3; filter: none; }

/* The aircraft: a dot riding the same path the arc drew. `offset-path` is set
   inline per element (the path data lives in the markup), so only the motion
   itself is declared here — which is what lets reduced-motion stop it. */
.bmt-net-ship {
	fill: var(--bmt-primary);
	filter: drop-shadow(0 0 7px var(--bmt-glow));
	offset-distance: 0%;
	offset-rotate: 0deg;
	animation: bmt-fly 6.5s var(--bmt-ease) 2.4s infinite;
}
@keyframes bmt-fly {
	0%       { offset-distance: 0%;   opacity: 0; }
	8%       { opacity: 1; }
	88%      { opacity: 1; }
	100%     { offset-distance: 100%; opacity: 0; }
}
/* Browsers without offset-path would pin the dot at the origin, where it reads
   as a stray mark — hide it rather than show a bug. */
@supports not (offset-path: path('M0 0 L1 1')) {
	.bmt-net-ship { display: none; }
}

.bmt-net-node circle.bmt-node-core { fill: var(--bmt-canvas); stroke: var(--bmt-primary); stroke-width: 1.6; }
.bmt-net-node circle.bmt-node-halo {
	fill: var(--bmt-primary);
	opacity: .18;
	transform-box: fill-box;
	transform-origin: center;
	animation: bmt-halo 3.4s var(--bmt-ease) infinite;
	animation-delay: var(--delay, 0s);
}
@keyframes bmt-halo {
	0%, 100% { transform: scale(1); opacity: .20; }
	50%      { transform: scale(1.65); opacity: 0; }
}
.bmt-net-label {
	font-family: var(--bmt-mono);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .06em;
	fill: var(--bmt-muted);
}
.bmt-net-label-hot { fill: var(--bmt-primary); }

/* Sweep: a slow conic wipe, masked to the artwork's circle. */
.bmt-net-sweep { transform-origin: center; animation: bmt-sweep 11s linear infinite; }
@keyframes bmt-sweep { to { transform: rotate(360deg); } }

/* --- floating readouts --- */

.bmt-chip {
	position: absolute;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 15px;
	border-radius: var(--bmt-r-sm);
	background: color-mix(in srgb, var(--bmt-surface) 78%, transparent);
	border: 1px solid var(--bmt-border);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 18px 40px -22px var(--bmt-scrim);
	animation: bmt-float 7s var(--bmt-ease) infinite;
	animation-delay: var(--delay, 0s);
}
.bmt-chip-key {
	font-family: var(--bmt-mono);
	font-size: 9.5px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--bmt-muted);
}
.bmt-chip-val { font-size: 16px; font-weight: 700; color: var(--bmt-text); line-height: 1.1; }
.bmt-chip-val.is-hot { color: var(--bmt-primary); }

@keyframes bmt-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}

.bmt-chip-1 { top: 2%;   left: -3%; }
.bmt-chip-2 { top: 68%;  right: -4%; }
.bmt-chip-3 { bottom: 4%; left: -3%; }

/* ==========================================================================
   Route marquee
   ========================================================================== */

.bmt-marquee {
	position: relative;
	padding: 18px 0;
	border-top: 1px solid var(--bmt-border);
	border-bottom: 1px solid var(--bmt-border);
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.bmt-marquee-track {
	display: flex;
	align-items: center;
	gap: 44px;
	width: max-content;
	animation: bmt-marquee 42s linear infinite;
}
.bmt-marquee:hover .bmt-marquee-track { animation-play-state: paused; }
@keyframes bmt-marquee { to { transform: translateX(-50%); } }

.bmt-route {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	font-family: var(--bmt-mono);
	font-size: 13px;
	letter-spacing: .04em;
	color: var(--bmt-muted);
	white-space: nowrap;
}
.bmt-route b { color: var(--bmt-text); font-weight: 600; }
.bmt-route i {
	font-style: normal;
	width: 22px; height: 1px;
	background: linear-gradient(90deg, var(--bmt-primary), transparent);
	position: relative;
}
.bmt-route i::after {
	content: "";
	position: absolute; right: -1px; top: -2px;
	width: 4px; height: 4px; border-radius: 50%;
	background: var(--bmt-primary);
	box-shadow: 0 0 7px var(--bmt-glow);
}

/* ==========================================================================
   Stats
   ========================================================================== */

.bmt-stats { padding-top: clamp(44px, 5vw, 72px) !important; padding-bottom: clamp(44px, 5vw, 72px); }
.bmt-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.bmt-stat {
	position: relative;
	padding: 26px 22px;
	border-radius: var(--bmt-r);
	background: var(--bmt-surface);
	border: 1px solid var(--bmt-border);
	transition: border-color .3s var(--bmt-ease), transform .3s var(--bmt-ease);
}
.bmt-stat:hover { border-color: var(--bmt-border-lit); transform: translateY(-3px); }
.bmt-stat-num {
	display: block;
	font-size: clamp(1.9rem, 3vw, 2.5rem);
	font-weight: 700;
	color: var(--bmt-primary);
	line-height: 1;
	margin-bottom: 9px;
	text-shadow: 0 0 30px var(--bmt-glow);
}
.bmt-stat-label { font-size: 13.5px; color: var(--bmt-muted); line-height: 1.45; display: block; }

/* ==========================================================================
   Steps
   ========================================================================== */

.bmt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }

.bmt-step {
	position: relative;
	padding: 30px 26px;
	background: var(--bmt-surface);
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r);
	transition: border-color .3s var(--bmt-ease), transform .3s var(--bmt-ease);
}
.bmt-step:hover { border-color: var(--bmt-border-lit); transform: translateY(-3px); }

.bmt-step-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; margin-bottom: 18px;
	border-radius: 12px;
	background: var(--bmt-primary);
	color: var(--bmt-on-primary);
	font-family: var(--bmt-mono); font-weight: 700; font-size: 15px;
	box-shadow: 0 0 26px -6px var(--bmt-glow);
}
.bmt-step p { margin: 0; color: var(--bmt-muted); font-size: 15px; }

/* ==========================================================================
   Features
   ========================================================================== */

.bmt-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.bmt-feature {
	position: relative;
	padding: 30px 26px;
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r);
	background: var(--bmt-surface);
	overflow: hidden;
	transition: border-color .3s var(--bmt-ease), transform .3s var(--bmt-ease);
}
/* A glow that tracks the pointer. The coordinates come from theme.js; with no
   JS the variables are unset and the layer simply stays at zero opacity. */
.bmt-feature::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), var(--bmt-glow-soft), transparent 70%);
	opacity: 0;
	transition: opacity .35s var(--bmt-ease);
	pointer-events: none;
}
.bmt-feature:hover { border-color: var(--bmt-border-lit); transform: translateY(-3px); }
.bmt-feature:hover::after { opacity: 1; }

.bmt-feature-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; margin-bottom: 18px;
	border-radius: 13px;
	background: var(--bmt-surface-2);
	border: 1px solid var(--bmt-border);
	color: var(--bmt-primary);
}
.bmt-feature-icon svg { width: 22px; height: 22px; }
.bmt-feature h3 { position: relative; }
.bmt-feature p { margin: 0; color: var(--bmt-muted); font-size: 15px; position: relative; }

/* ==========================================================================
   Roles — an interactive console
   ========================================================================== */

.bmt-roles { position: relative; }
.bmt-roles::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(70% 55% at 50% 0%, var(--bmt-glow-soft), transparent 70%);
	pointer-events: none;
}

.bmt-role-switch {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-bottom: 34px;
}
.bmt-role-tab {
	padding: 10px 20px;
	border-radius: 999px;
	border: 1px solid var(--bmt-border);
	background: var(--bmt-surface);
	color: var(--bmt-muted);
	font-family: var(--bmt-font);
	font-size: 14.5px; font-weight: 600;
	cursor: pointer;
	transition: color .2s var(--bmt-ease), border-color .2s var(--bmt-ease), background .2s var(--bmt-ease), box-shadow .25s var(--bmt-ease);
}
.bmt-role-tab:hover { color: var(--bmt-text); border-color: var(--bmt-border-lit); }
.bmt-role-tab[aria-selected="true"] {
	background: var(--bmt-primary);
	border-color: var(--bmt-primary);
	color: var(--bmt-on-primary);
	box-shadow: 0 0 26px -6px var(--bmt-glow);
}

.bmt-role-stage {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	gap: 0;
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r-lg);
	overflow: hidden;
	background: var(--bmt-surface);
	box-shadow: 0 40px 90px -50px var(--bmt-scrim);
}

/* The mock sidebar is deliberately the real portal's proportions and language,
   so what is shown here is recognisably the thing they will sign in to. */
.bmt-role-side {
	background: var(--bmt-bg);
	border-right: 1px solid var(--bmt-border);
	padding: 18px 14px;
	min-height: 340px;
}
.bmt-role-side-head {
	display: flex; align-items: center; gap: 9px;
	padding: 0 8px 16px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--bmt-border);
}
.bmt-role-avatar {
	width: 30px; height: 30px; border-radius: 9px;
	background: var(--bmt-primary); color: var(--bmt-on-primary);
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--bmt-mono); font-size: 12px; font-weight: 700;
}
.bmt-role-who { line-height: 1.25; }
.bmt-role-who strong { display: block; font-size: 13.5px; color: var(--bmt-text); }
.bmt-role-who span { font-size: 11.5px; color: var(--bmt-muted); }

.bmt-role-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bmt-role-nav li {
	display: flex; align-items: center; gap: 9px;
	font-size: 13.5px;
	padding: 8px 11px;
	border-radius: var(--bmt-r-sm);
	color: var(--bmt-muted);
	animation: bmt-slide-in .45s var(--bmt-ease-out) both;
	animation-delay: var(--d, 0ms);
}
.bmt-role-nav li::before {
	content: "";
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--bmt-border);
	flex: 0 0 5px;
}
.bmt-role-nav li.is-active {
	background: var(--bmt-primary);
	color: var(--bmt-on-primary);
	font-weight: 600;
}
.bmt-role-nav li.is-active::before { background: var(--bmt-on-primary); }
.bmt-role-group {
	font-family: var(--bmt-mono);
	font-size: 9.5px; font-weight: 600;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--bmt-muted);
	opacity: .65;
	padding: 12px 11px 4px;
	animation: bmt-slide-in .45s var(--bmt-ease-out) both;
	animation-delay: var(--d, 0ms);
}
@keyframes bmt-slide-in {
	from { opacity: 0; transform: translateX(-10px); }
	to   { opacity: 1; transform: none; }
}

.bmt-role-main { padding: 24px 26px; }
.bmt-role-main-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.bmt-role-main-head h3 { margin: 0; font-size: 1.05rem; }
.bmt-role-caption { font-size: 13.5px; color: var(--bmt-muted); margin: 0; max-width: 46em; }

.bmt-role-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.bmt-role-tile {
	padding: 15px 16px;
	border-radius: var(--bmt-r-sm);
	background: var(--bmt-surface-2);
	border: 1px solid var(--bmt-border);
}
.bmt-role-tile span {
	display: block;
	font-family: var(--bmt-mono);
	font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--bmt-muted); margin-bottom: 6px;
}
.bmt-role-tile strong {
	font-family: var(--bmt-mono);
	font-variant-numeric: tabular-nums;
	font-size: 17px; color: var(--bmt-text);
}
.bmt-role-tile strong.is-hot { color: var(--bmt-primary); }

.bmt-role-bars { display: grid; gap: 9px; }
.bmt-role-bar { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--bmt-muted); }
.bmt-role-bar-label { font-family: var(--bmt-mono); width: 74px; flex: 0 0 74px; }
.bmt-role-bar-track { flex: 1; height: 6px; border-radius: 999px; background: var(--bmt-surface-2); overflow: hidden; }
.bmt-role-bar-fill {
	display: block; height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--bmt-primary-dim), var(--bmt-primary));
	box-shadow: 0 0 14px -2px var(--bmt-glow);
	width: 0;
	transition: width 1.1s var(--bmt-ease-out);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.bmt-faq-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.bmt-faq-inner .bmt-section-head { margin-bottom: 0; position: sticky; top: 110px; }

.bmt-faq-list { display: grid; gap: 10px; }

.bmt-faq-item {
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r);
	background: var(--bmt-surface);
	overflow: hidden;
	transition: border-color .25s var(--bmt-ease);
}
.bmt-faq-item[open] { border-color: var(--bmt-border-lit); }
.bmt-faq-item summary {
	cursor: pointer;
	list-style: none;
	padding: 19px 56px 19px 22px;
	position: relative;
	font-family: var(--bmt-display);
	font-weight: 600;
	font-size: 16px;
	color: var(--bmt-text);
}
.bmt-faq-item summary::-webkit-details-marker { display: none; }
.bmt-faq-item summary::after {
	content: "";
	position: absolute; right: 24px; top: 50%;
	width: 9px; height: 9px;
	border-right: 2px solid var(--bmt-muted);
	border-bottom: 2px solid var(--bmt-muted);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .25s var(--bmt-ease), border-color .25s var(--bmt-ease);
}
.bmt-faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--bmt-primary); }
.bmt-faq-item[open] summary { color: var(--bmt-primary); }
.bmt-faq-answer { padding: 0 22px 21px; }
.bmt-faq-answer p { margin: 0; color: var(--bmt-muted); font-size: 15.5px; }

/* ==========================================================================
   Request access
   ========================================================================== */

.bmt-access-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: clamp(28px, 5vw, 56px);
	align-items: start;
	background: var(--bmt-surface);
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r-lg);
	padding: clamp(28px, 4vw, 52px);
	overflow: hidden;
}
.bmt-access-inner::before {
	content: "";
	position: absolute; inset: 0;
	background: radial-gradient(70% 90% at 0% 0%, var(--bmt-glow-soft), transparent 62%);
	pointer-events: none;
}
.bmt-access-copy, .bmt-access-form { position: relative; }
.bmt-access-copy p { color: var(--bmt-muted); }

.bmt-access-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.bmt-access-points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--bmt-muted); }
.bmt-access-points li::before {
	content: ""; position: absolute; left: 3px; top: .5em;
	width: 10px; height: 6px;
	border-left: 2px solid var(--bmt-primary);
	border-bottom: 2px solid var(--bmt-primary);
	transform: rotate(-45deg);
}

.bmt-form { background: var(--bmt-bg); border: 1px solid var(--bmt-border); border-radius: var(--bmt-r); padding: 26px; }
.bmt-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bmt-field { margin: 0 0 15px; }
.bmt-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--bmt-text); }
.bmt-field label span { color: var(--bmt-primary); }

.bmt-form input[type="text"],
.bmt-form input[type="email"],
.bmt-form input[type="tel"],
.bmt-form textarea {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	color: var(--bmt-text);
	background: var(--bmt-surface);
	border: 1px solid var(--bmt-border);
	border-radius: var(--bmt-r-sm);
	transition: border-color .18s var(--bmt-ease), box-shadow .18s var(--bmt-ease);
}
.bmt-form input::placeholder, .bmt-form textarea::placeholder { color: var(--bmt-muted); opacity: .7; }
.bmt-form input:focus, .bmt-form textarea:focus {
	outline: none;
	border-color: var(--bmt-primary);
	box-shadow: 0 0 0 3px var(--bmt-glow-soft), 0 0 18px -6px var(--bmt-glow);
}
.bmt-form textarea { resize: vertical; }

/* Off-screen rather than display:none — a bot that skips hidden fields still
   sees this one, which is the entire point of a honeypot. */
.bmt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bmt-form-fine { margin: 13px 0 0; font-size: 12.5px; color: var(--bmt-muted); text-align: center; }

.bmt-form-notice { padding: 13px 16px; border-radius: var(--bmt-r-sm); margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.bmt-form-notice-ok { background: var(--bmt-glow-soft); border-color: var(--bmt-primary); color: var(--bmt-text); }
.bmt-form-notice-bad { background: var(--bmt-surface-2); border-color: var(--bmt-border); color: var(--bmt-text); }

/* ==========================================================================
   Pages, posts, prose
   ========================================================================== */

.bmt-page-head { padding: clamp(48px, 6vw, 88px) 0 clamp(18px, 2vw, 30px); }
.bmt-post-hero { margin-top: 28px; }
.bmt-post-hero img { border-radius: var(--bmt-r); }

.bmt-prose { max-width: 760px; padding-top: clamp(24px, 3vw, 40px); padding-bottom: clamp(48px, 6vw, 80px); }
.bmt-prose h2 { margin-top: 1.7em; }
.bmt-prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.bmt-prose ul, .bmt-prose ol { padding-left: 1.3em; }
.bmt-prose li { margin-bottom: .45em; }
.bmt-prose blockquote {
	margin: 1.7em 0; padding: 4px 0 4px 22px;
	border-left: 2px solid var(--bmt-primary);
	color: var(--bmt-muted); font-style: italic;
}
.bmt-prose img { border-radius: var(--bmt-r); }
.bmt-prose code {
	font-family: var(--bmt-mono); font-size: .9em;
	background: var(--bmt-surface-2); border: 1px solid var(--bmt-border);
	padding: .12em .4em; border-radius: 5px;
}
.bmt-prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
.bmt-prose th, .bmt-prose td { border: 1px solid var(--bmt-border); padding: 10px 13px; text-align: left; font-size: 15px; }
.bmt-prose th { background: var(--bmt-surface-2); font-weight: 600; }

.bmt-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bmt-post-card {
	border: 1px solid var(--bmt-border); border-radius: var(--bmt-r);
	overflow: hidden; background: var(--bmt-surface);
	display: flex; flex-direction: column;
	transition: border-color .3s var(--bmt-ease), transform .3s var(--bmt-ease);
}
.bmt-post-card:hover { border-color: var(--bmt-border-lit); transform: translateY(-3px); }
.bmt-post-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.bmt-post-body { padding: 22px; }
.bmt-post-meta { font-family: var(--bmt-mono); font-size: 11.5px; color: var(--bmt-muted); margin-bottom: 7px; letter-spacing: .06em; }
.bmt-post-title { font-size: 1.12rem; margin-bottom: .4em; }
.bmt-post-title a { color: var(--bmt-text); text-decoration: none; }
.bmt-post-title a:hover { color: var(--bmt-primary); }
.bmt-post-body p { font-size: 15px; color: var(--bmt-muted); }
.bmt-readmore { font-weight: 600; font-size: 14.5px; text-decoration: none; }

.bmt-pagination { margin-top: 38px; }
.bmt-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 11px; margin-right: 6px;
	border: 1px solid var(--bmt-border); border-radius: var(--bmt-r-sm);
	text-decoration: none; font-size: 14.5px; color: var(--bmt-muted);
}
.bmt-pagination .page-numbers:hover { border-color: var(--bmt-border-lit); color: var(--bmt-text); }
.bmt-pagination .page-numbers.current {
	background: var(--bmt-primary); border-color: var(--bmt-primary); color: var(--bmt-on-primary);
}

.bmt-searchform { display: flex; gap: 8px; max-width: 460px; }
.bmt-searchform input[type="search"] {
	flex: 1; padding: 12px 14px; font: inherit; font-size: 15px;
	color: var(--bmt-text); background: var(--bmt-surface);
	border: 1px solid var(--bmt-border); border-radius: var(--bmt-r-sm);
}
.bmt-searchform input[type="search"]:focus { outline: none; border-color: var(--bmt-primary); }

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

.bmt-footer { position: relative; border-top: 1px solid var(--bmt-border); background: var(--bmt-bg); margin-top: clamp(48px, 7vw, 88px); }

.bmt-footer-top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	padding-top: 56px;
	padding-bottom: 42px;
	align-items: start;
}
.bmt-footer-blurb { font-size: 14.5px; margin: 15px 0 0; max-width: 32em; color: var(--bmt-muted); }

.bmt-widget-title {
	font-family: var(--bmt-mono);
	font-size: 10.5px; font-weight: 600;
	text-transform: uppercase; letter-spacing: .16em;
	color: var(--bmt-muted); margin-bottom: 15px;
}

.bmt-footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bmt-footer-menu a, .bmt-footer-contact a { color: var(--bmt-muted); text-decoration: none; font-size: 14.5px; }
.bmt-footer-menu a:hover, .bmt-footer-contact a:hover { color: var(--bmt-primary); }
.bmt-footer-contact p { margin: 0 0 8px; font-size: 14.5px; color: var(--bmt-muted); }

.bmt-footer-widgets { display: grid; gap: 26px; }
.bmt-footer h2, .bmt-footer h3, .bmt-footer h4,
.bmt-footer .wp-block-heading {
	font-family: var(--bmt-mono);
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .16em;
	color: var(--bmt-muted);
	margin: 0 0 15px;
	line-height: 1.4;
}
.bmt-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bmt-widget li { font-size: 14.5px; color: var(--bmt-muted); }
.bmt-widget a { color: var(--bmt-muted); text-decoration: none; }
.bmt-widget a:hover { color: var(--bmt-primary); }
.bmt-widget p, .bmt-widget label { font-size: 14.5px; color: var(--bmt-muted); }
.bmt-widget select, .bmt-widget input[type="search"], .bmt-widget input[type="text"] {
	width: 100%; padding: 9px 11px; font: inherit; font-size: 14.5px;
	color: var(--bmt-text); background: var(--bmt-surface);
	border: 1px solid var(--bmt-border); border-radius: var(--bmt-r-sm);
}

.bmt-footer-bottom { border-top: 1px solid var(--bmt-border); padding-top: 22px; padding-bottom: 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bmt-footer-bottom p { margin: 0; font-size: 13.5px; color: var(--bmt-muted); }

/* ==========================================================================
   Portal page
   ========================================================================== */

/* The portal template renders no header or footer, so the application sits
   directly on the body and owns the full viewport height. */
.bmt-portal-shell { background: var(--bmt-bg); }
.bmt-portal-shell::before { display: none; } /* No decorative grid behind an application. */
.bmt-portal-shell .bm-portal { min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; }
.bmt-portal-shell .bm-portal.is-full-bleed { width: 100%; max-width: none; margin-left: 0; margin-right: 0; }

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

@media (max-width: 1080px) {
	.bmt-feature-grid { grid-template-columns: repeat(2, 1fr); }
	.bmt-post-grid { grid-template-columns: repeat(2, 1fr); }
	.bmt-stat-grid { grid-template-columns: repeat(2, 1fr); }
	.bmt-footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bmt-role-stage { grid-template-columns: 236px minmax(0, 1fr); }
}

@media (max-width: 900px) {
	.bmt-hero-inner { grid-template-columns: 1fr; }
	.bmt-hero-visual { order: -1; min-height: 300px; }
	.bmt-steps { grid-template-columns: 1fr; }
	.bmt-faq-inner { grid-template-columns: 1fr; }
	.bmt-faq-inner .bmt-section-head { position: static; }
	.bmt-access-inner { grid-template-columns: 1fr; }
	.bmt-role-stage { grid-template-columns: 1fr; }
	.bmt-role-side { border-right: 0; border-bottom: 1px solid var(--bmt-border); min-height: 0; }
	.bmt-chip-1 { top: 0; left: 0; }
	.bmt-chip-2 { top: auto; bottom: 6%; right: 0; }
	.bmt-chip-3 { display: none; }
}

@media (max-width: 782px) {
	.bmt-nav-toggle { display: flex; }

	/* The menu becomes a sheet under the header rather than an overlay: the
	   header stays put, so the way back out is always where it was. */
	.bmt-nav {
		position: absolute;
		top: 100%; left: 0; right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 14px var(--bmt-gutter) 22px;
		background: var(--bmt-canvas);
		border-bottom: 1px solid var(--bmt-border);
		display: none;
	}
	.bmt-header.is-nav-open { background: var(--bmt-canvas); }
	.bmt-header.is-nav-open .bmt-nav { display: flex; }
	.bmt-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.bmt-menu a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--bmt-border); font-size: 16px; }
	.bmt-menu a::after { display: none; }
	.bmt-header-actions { margin-top: 18px; flex-direction: column; align-items: stretch; }
	.bmt-header-actions .bmt-btn { width: 100%; }
	.bmt-theme-toggle { align-self: center; }
}

@media (max-width: 620px) {
	.bmt-brand-logo { height: 36px; }
	.bmt-footer .bmt-brand-logo { height: 48px; }
	body { font-size: 16px; }
	.bmt-feature-grid, .bmt-post-grid, .bmt-stat-grid { grid-template-columns: 1fr; }
	.bmt-footer-top { grid-template-columns: 1fr; gap: 28px; }
	.bmt-field-row { grid-template-columns: 1fr; }
	.bmt-hero-actions .bmt-btn { width: 100%; }
	.bmt-role-tiles { grid-template-columns: 1fr; }
	.bmt-chip { padding: 9px 12px; }
	.bmt-chip-val { font-size: 14px; }
}

/* ==========================================================================
   Reduced motion
   ==========================================================================
   Everything decorative stops. The reveals must still END visible — disabling
   the transition without resetting the start state would leave the whole page
   invisible to exactly the people who asked for less movement. */

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

	.bmt-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
	.bmt-rise { animation: none !important; opacity: 1 !important; transform: none !important; }

	.bmt-net-arc { stroke-dashoffset: 0 !important; animation: none !important; }
	.bmt-net-ship, .bmt-net-sweep, .bmt-net-node circle.bmt-node-halo { animation: none !important; }
	.bmt-chip, .bmt-eyebrow::before { animation: none !important; }
	.bmt-marquee-track { animation: none !important; }
	.bmt-role-nav li, .bmt-role-group { animation: none !important; opacity: 1 !important; transform: none !important; }
	.bmt-role-bar-fill { transition: none !important; }

	.bmt-btn:hover, .bmt-feature:hover, .bmt-step:hover, .bmt-stat:hover, .bmt-post-card:hover { transform: none; }
	*, *::before, *::after { animation-duration: .001ms !important; transition-duration: .08s !important; }
}
