/* ==========================================================================
   Expertist Infrastructure — Design System
   Palette:  Void #0A0D12 · Panel #12171F · Panel-2 #171D26 · Border #232B36
             Signal Amber #E8A33D · Trace Cyan #4FD8C4
             Paper #ECEEF2 · Slate #7C8698 · Slate-dim #4E5867
   Type:     Display/UI — IBM Plex Sans · Body — Inter · Data/mono — IBM Plex Mono
   Signature: the orchestration graph — a hub-and-node network motif reused
   at hero scale (Home) and inline scale (section dividers).
   ========================================================================== */

:root {
	--void: #0A0D12;
	--panel: #12171F;
	--panel-2: #171D26;
	--border: #232B36;

	--amber: #E8A33D;
	--amber-dim: #8C6425;
	--cyan: #4FD8C4;

	--paper: #ECEEF2;
	--slate: #7C8698;
	--slate-dim: #4E5867;

	--font-display: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

	--container: 1200px;
	--radius: 3px;
	--gap: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--void);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--slate); }
.mono { font-family: var(--font-mono); }

:focus-visible {
	outline: 2px solid var(--amber);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--amber);
	color: var(--void);
	padding: 10px 16px;
	z-index: 999;
	font-family: var(--font-mono);
	font-size: 13px;
}
.skip-link:focus { left: 12px; top: 12px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px);
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 780px; }

.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section--divider { padding: 40px 0; }
.section-lede { max-width: 640px; font-size: 1.05rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.eyebrow {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.14em;
	color: var(--amber);
	margin-bottom: 16px;
	font-weight: 500;
}

h1 { font-size: clamp(2rem, 3.2vw, 3.1rem); color: var(--paper); }
h2 { font-size: clamp(1.5rem, 2.2vw, 2.1rem); color: var(--paper); }
h3 { font-size: 1.15rem; color: var(--paper); }

.prose p { color: var(--slate); max-width: 68ch; }
.prose strong { color: var(--paper); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose h2 { margin-top: 1.6em; }

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--cyan);
	font-family: var(--font-mono);
	font-size: 14px;
	border-bottom: 1px solid transparent;
	transition: border-color 0.15s ease;
}
.text-link:hover { border-color: var(--cyan); }

/* ---------- Buttons / pills ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
	transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--amber); color: var(--void); }
.btn--primary:hover { background: #f0b158; }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--slate); }

.pill {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.06em;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid var(--border);
	color: var(--slate);
}
.pill--live { color: var(--cyan); border-color: rgba(79,216,196,0.35); }
.pill--building { color: var(--amber); border-color: rgba(232,163,61,0.35); }
.pill--planned { color: var(--slate); }
.pill--stat { color: var(--amber); border-color: rgba(232,163,61,0.35); margin-top: 12px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10,13,18,0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	padding: 18px 24px;
}
.brand-mark { display: flex; align-items: center; }
.brand-mark__text { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.02em; font-size: 18px; color: var(--paper); }
.brand-mark__accent { color: var(--amber); }
.nav { flex: 1; }
.nav__list { display: flex; gap: 28px; flex-wrap: wrap; }
.nav__link { font-size: 14px; color: var(--slate); transition: color 0.15s ease; }
.nav__link:hover { color: var(--paper); }
.nav__cta { margin-left: auto; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--paper); display: block; }
.mobile-nav { display: none; }

@media (max-width: 900px) {
	.nav, .nav__cta { display: none; }
	.nav-toggle { display: flex; }
	.mobile-nav {
		display: none;
		flex-direction: column;
		gap: 20px;
		padding: 24px;
		border-top: 1px solid var(--border);
		background: var(--panel);
	}
	.mobile-nav.is-open { display: flex; }
	.nav__list--mobile { flex-direction: column; gap: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 64px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-bottom: 56px; }
.hero__headline { margin: 18px 0 22px; }
.hero__sub p { font-size: 1.05rem; max-width: 46ch; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.hero__graph { display: flex; justify-content: center; align-items: center; }

.readout-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--panel); }
.readout-strip__inner { display: flex; flex-wrap: wrap; gap: 40px; padding: 22px 24px; }
.readout { display: flex; flex-direction: column; gap: 4px; }
.readout__value { font-size: 22px; color: var(--amber); font-weight: 600; }
.readout__label { font-size: 11px; letter-spacing: 0.08em; color: var(--slate); }

@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__graph { order: -1; max-width: 320px; margin: 0 auto; }
}

/* ---------- Orchestration graph ---------- */
.o-graph { width: 100%; height: auto; }
.o-graph--hero { max-width: 480px; }
.o-graph__hub-label { font-family: var(--font-mono); font-size: 13px; fill: var(--amber); letter-spacing: 0.05em; }

.o-graph__pulse-line { animation: pulse-travel 3.4s linear infinite; opacity: 0.9; }
@keyframes pulse-travel {
	0% { stroke-dashoffset: 300; opacity: 0; }
	8% { opacity: 1; }
	90% { opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

.o-graph__hub-pulse {
	transform-origin: center;
	animation: hub-ring 2.6s ease-out infinite;
}
@keyframes hub-ring {
	0% { r: 42; opacity: 0.6; }
	100% { r: 70; opacity: 0; }
}

.o-graph__ring { animation: ring-rotate 60s linear infinite; transform-origin: center; }
@keyframes ring-rotate { to { transform: rotate(360deg); } }

.o-graph--inline .o-graph__pulse line { animation: pulse-travel-inline 2.6s linear infinite; }
@keyframes pulse-travel-inline {
	0% { stroke-dashoffset: 220; opacity: 0; }
	10% { opacity: 1; }
	85% { opacity: 1; }
	100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- Systems teaser (Home) ---------- */
.systems-teaser { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); margin-top: 40px; }
.system-card {
	display: block;
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	transition: border-color 0.15s ease, transform 0.15s ease;
}
a.system-card:hover { border-color: var(--amber-dim); transform: translateY(-2px); }
.system-card__index { color: var(--amber); font-size: 13px; }
.system-card__title { margin: 10px 0 8px; font-size: 1.05rem; }
.system-card__excerpt { font-size: 14px; margin: 0; }

@media (max-width: 900px) {
	.systems-teaser { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.systems-teaser { grid-template-columns: 1fr; }
}

/* ---------- Pipeline (Systems page) ---------- */
.pipeline { display: flex; flex-direction: column; }
.pipeline__stage {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: 24px;
	padding: 40px 0;
	border-top: 1px solid var(--border);
}
.pipeline__stage:first-child { border-top: none; }
.pipeline__marker { font-size: 15px; color: var(--amber); padding-top: 6px; }
.pipeline__title { margin-bottom: 12px; }
.pipeline__desc p { max-width: 62ch; }

@media (max-width: 640px) {
	.pipeline__stage { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Portfolio ---------- */
.section--cluster { padding: 56px 0; }
.cluster-heading { margin-bottom: 8px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 28px; }
.brand-card {
	background: var(--panel);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.brand-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-card__logo { max-height: 28px; }
.brand-card__logo--text { font-size: 13px; color: var(--paper); }
.brand-card__title { margin: 4px 0 0; font-size: 1.05rem; }
.brand-card__desc { font-size: 14px; margin: 0; }
.brand-card__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--slate); }

@media (max-width: 900px) { .brand-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .brand-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.team-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.team-card__photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.team-card__photo--placeholder { display: flex; align-items: center; justify-content: center; background: var(--panel-2); font-size: 32px; color: var(--amber); }
.team-card__name { margin-bottom: 2px; }
.team-card__role { color: var(--slate); font-size: 14px; margin-bottom: 4px; }
.team-card__creds { font-size: 12px; color: var(--cyan); margin-bottom: 10px; }
.team-card__bio p { font-size: 14px; }

@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Posts / Newsroom ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.post-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; transition: border-color 0.15s ease; }
.post-card:hover { border-color: var(--amber-dim); }
.post-card__media img { width: 100%; height: 160px; object-fit: cover; }
.post-card__date { display: block; font-size: 11px; color: var(--slate); padding: 18px 18px 0; }
.post-card__title { padding: 8px 18px 0; font-size: 1.05rem; }
.post-card__excerpt { padding: 8px 18px 20px; font-size: 14px; margin: 0; }

@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .post-grid { grid-template-columns: 1fr; } }

.single-media { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.post-meta { color: var(--slate); font-size: 12px; }

/* pagination */
.pagination, .navigation.pagination ul { display: flex; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span, .navigation.pagination a, .navigation.pagination span {
	display: inline-flex; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius);
	font-family: var(--font-mono); font-size: 13px; color: var(--slate);
}
.pagination .current, .navigation.pagination .current { color: var(--amber); border-color: var(--amber-dim); }

/* ---------- CTA band ---------- */
.section--cta { background: var(--panel); }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.form__label { font-family: var(--font-mono); font-size: 12px; color: var(--slate); letter-spacing: 0.04em; }
.form__input {
	background: var(--void);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--paper);
	padding: 12px 14px;
	font-family: var(--font-body);
	font-size: 14px;
}
.form__input:focus { border-color: var(--amber); }
.form__textarea { resize: vertical; }
.form__submit { margin-top: 8px; justify-content: center; }
.form__honeypot { position: absolute; left: -9999px; }

.notice { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 13px; }
.notice--success { border-color: rgba(79,216,196,0.4); color: var(--cyan); }
.notice--error { border-color: rgba(232,163,61,0.4); color: var(--amber); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border); }
.page-hero--404 { text-align: center; padding: 120px 0; }
.page-hero--404 .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-tagline { font-size: 14px; margin: 12px 0 16px; max-width: 34ch; }
.footer-legal { font-size: 12px; color: var(--slate-dim); }
.footer-heading { font-size: 12px; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 14px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { font-size: 14px; color: var(--slate); }
.footer-list a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--slate-dim); }
.footer-bottom__system::before { content: '● '; color: var(--cyan); }

@media (max-width: 900px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.two-col { grid-template-columns: 1fr; gap: 32px; }
	.section { padding: 56px 0; }
}

/* ---------- Corporate division status (Expertist Life) ---------- */
.pill--operational-internal { color: var(--paper); border-color: var(--slate-dim); }

/* ---------- Section head with inline link (used on Brand Pitch) ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.section-head h2 { margin-bottom: 0; }
.section-head__link { white-space: nowrap; }

/* ---------- Brand Pitch page ---------- */
.pitch-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--border); }
.pitch-hero h1 { max-width: 22ch; }
.pitch-hero__sub { max-width: 64ch; margin-top: 16px; }
.pitch-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

.section--proof-strip-standalone { padding: 0; border-top: none; }
.readout-strip__inner--standalone { background: var(--panel); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 24px; }

.track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 32px; }
.track-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.track-card h3 { margin-bottom: 10px; }
.track-card p { max-width: 48ch; }

@media (max-width: 900px) { .track-grid { grid-template-columns: 1fr; } }

.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
