/* The hub's look follows the wireframe animations: a dark instrument, glowing lines,
   IBM Plex for text and labels, STIX Two italic for accents. Each method has one colour,
   used wherever the method appears. */
:root {
	color-scheme: dark;
	--ground: #04070c;
	--panel: #08101a;
	--panel-hi: #0c1622;
	--line: #16283a;
	--ink: #e3eff6;
	--text: #c3d4e0;
	--dim: #7d98ac;
	--faint: #2c4556;

	--bads: #ff8a3d;
	--vbmc: #ff4fa3;
	--ibs: #6ee7a0;
	--ace: #e9ff5a;
	--link: #7fdcff;
	--ui: #4fd8e8;

	--sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--serif: "STIX Two Text", Georgia, "Times New Roman", serif;

	--wrap: 70rem;
	--gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--ground);
	color: var(--text);
	font: 17px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0.5em 0; }
code { font-family: var(--mono); font-size: 0.9em; }
.small { font-size: 0.88rem; color: var(--dim); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.c-vbmc { color: var(--vbmc); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--ink); color: var(--ground); padding: 6px 10px; }
.skip:focus { left: 8px; }

/* Top bar */
.topbar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 12px var(--gutter);
	background: rgba(4, 7, 12, 0.82);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
	font-family: var(--mono); font-size: 13px;
}
.brand { color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: 0.08em; white-space: nowrap; }
.brand span { color: var(--dim); letter-spacing: 0.04em; font-weight: 400; }
.topbar nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.topbar nav a { color: var(--dim); text-decoration: none; white-space: nowrap; }
.topbar nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
	.topbar { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; padding-bottom: 8px; }
	.topbar nav { gap: 14px; max-width: 100%; }
}

/* Hero: the wireframe fills the section; the text sits over its dark side. */
.hero {
	position: relative;
	min-height: min(92vh, 900px);
	display: flex; flex-direction: column; justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid var(--line);
}
.stage { position: absolute; inset: 0 0 0 24%; }
.stage .poster, .stage iframe {
	position: absolute; inset: 0; width: 100%; height: 100%;
	border: 0; object-fit: cover; object-position: 50% 50%;
}
.stage iframe { pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.stage iframe.on { opacity: 1; }
.stage::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(90deg, rgba(4, 7, 12, 1) 0%, rgba(4, 7, 12, 0.6) 22%, rgba(4, 7, 12, 0) 48%),
		linear-gradient(0deg, rgba(4, 7, 12, 0.9) 0%, rgba(4, 7, 12, 0) 22%);
}
.hero-text { position: relative; z-index: 1; width: 100%; padding-top: 72px; padding-bottom: 96px; }
.hero-text > * { max-width: 34rem; }
.eyebrow, .kicker {
	font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--ui); margin: 0 0 14px;
}
.eyebrow::before { content: "\25B8\00a0"; }
h1 { font-size: clamp(2.3rem, 4.4vw + 0.6rem, 4rem); margin: 0 0 0.35em; }
.lead { font-size: 1.12rem; color: var(--text); max-width: 44rem; }
.hero .lead { color: var(--ink); opacity: 0.88; max-width: 31rem; }
.stage-note {
	position: absolute; z-index: 1; left: 0; right: 0; bottom: 18px;
	margin: 0 auto; font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: right;
}
@media (max-width: 760px) {
	.hero { min-height: 0; justify-content: flex-end; }
	.stage { position: relative; inset: auto; height: 78vw; min-height: 260px; }
	.stage .poster { object-position: 60% 50%; }
	.stage::after { background: linear-gradient(0deg, rgba(4, 7, 12, 1) 0%, rgba(4, 7, 12, 0) 45%); }
	.hero-text { padding-top: 0; padding-bottom: 28px; margin-top: -36px; }
	.stage-note { position: static; text-align: left; padding-bottom: 24px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
	display: inline-block; padding: 10px 18px; border-radius: 999px;
	font: 500 15px/1.2 var(--sans); text-decoration: none;
	color: var(--ink); border: 1px solid var(--faint); background: var(--panel-hi);
}
.btn:hover { border-color: var(--dim); color: var(--ink); }
.btn.primary { background: var(--ui); border-color: var(--ui); color: var(--ground); box-shadow: 0 0 22px rgba(79, 216, 232, 0.35); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; }

/* Bands */
.band { padding: clamp(56px, 8vw, 96px) 0; border-bottom: 1px solid var(--line); }
.band h2 { font-size: clamp(1.7rem, 2.2vw + 0.8rem, 2.4rem); margin: 0 0 0.6em; }

/* Cards */
.cards { display: grid; gap: 16px; margin-top: 8px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
	--accent: var(--ui);
	position: relative;
	background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
	padding: 22px 22px 20px;
}
.card.pick { display: block; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.card.pick::before, .tool::before {
	content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px;
	background: var(--accent); box-shadow: 0 0 14px var(--accent); border-radius: 2px;
}
.card.pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.card.pick .q { font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.35; color: var(--ink); margin-top: 4px; }
.card.pick .a { font-family: var(--mono); font-size: 14px; color: var(--accent); margin-top: 14px; }
.card.pick .a b { font-weight: 500; }

/* Tools */
.tool {
	--accent: var(--ui);
	position: relative;
	display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 8px 40px;
	padding: 28px 0 26px; margin-top: 18px;
	border-top: 1px solid var(--line);
}
.tool::before { left: 0; right: auto; width: 64px; }
.tool .role { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.tool h3 { font-size: 1.7rem; margin: 0; }
.tool h3 span { display: block; font: 400 14px/1.4 var(--mono); color: var(--dim); margin-top: 6px; letter-spacing: 0; }
.tool-body > p:first-child { margin-top: 0; }
.install {
	display: inline-block; margin: 10px 0 4px; padding: 7px 12px; border-radius: 6px;
	background: var(--panel-hi); border: 1px solid var(--line); color: var(--ink);
}
.install::before { content: "$ "; color: var(--dim); }
.links { font-family: var(--mono); font-size: 14px; margin: 12px 0 6px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ref { font-size: 0.88rem; color: var(--dim); margin: 6px 0 0; }
.ref a { color: var(--dim); }
.ref a:hover { color: var(--ink); }
@media (max-width: 760px) {
	.tool { grid-template-columns: 1fr; }
}

/* In use */
.cards.fields { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 18px 0 28px; }
.cards.fields:empty { display: none; }
.field .area { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.field h3 { font-size: 1.02rem; font-weight: 500; line-height: 1.35; margin: 0 0 8px; }
.field h3 a { color: var(--ink); text-decoration: none; }
.field h3 a:hover { text-decoration: underline; }
.field .used { font-size: 0.92rem; margin: 0; }
.field .meta { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 10px 0 0; }
.story { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px; }
.story img { width: 100%; height: auto; border-radius: 6px; display: block; transition: filter 0.2s; }
.story-img { display: block; }
.story-img:hover img { filter: brightness(1.15); }
.story h3 { font-size: 1.5rem; margin: 0 0 6px; }
.story .kicker { margin-bottom: 8px; }
@media (max-width: 760px) {
	.story { grid-template-columns: 1fr; }
}

/* Footer */
.foot { padding: 40px 0 56px; color: var(--dim); font-size: 0.95rem; }
.foot a { color: var(--text); }
