/* =========================================================================
   Velorus
   Dark luxury system. Gold lives on dark surfaces only, never as reading
   text on light ground, which keeps every text pair above WCAG AA.
   ========================================================================= */

:root {
	/* Brand palette, exact values from the client brand board */
	--ink:        #0D0D0F;
	--surface:    #1A1C20;
	--surface-2:  #2A2E35;
	--gold:       #D4AF37;
	--gold-light: #F1D9A6;
	--gold-deep:  #A98B2A;
	--paper:      #EDEFF2;
	--white:      #FFFFFF;

	/* Derived text tones */
	--text:       #EDEFF2;
	--text-muted: #A2A9B4;
	--text-dark:  #14161A;
	--text-dark-muted: #4A5260;

	--line:       rgba(255, 255, 255, 0.09);
	--line-solid: #23262C;

	--grad-gold: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-deep) 100%);
	--grad-dark: linear-gradient(180deg, #1A1C20 0%, #0D1117 100%);

	/* Type scale */
	--fs-eyebrow: 0.75rem;
	--fs-body:    1.0625rem;
	--fs-lede:    1.1875rem;
	--fs-h3:      1.25rem;
	--fs-h2:      clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
	--fs-h1:      clamp(2.5rem, 1.6rem + 3vw, 3.75rem);
	--fs-metric:  clamp(2.5rem, 1.6rem + 3vw, 4rem);

	/* Rhythm, 4/8 based */
	--gap:      1.5rem;
	--section:  clamp(5rem, 3rem + 7vw, 9rem);
	--shell:    1200px;
	--radius:   14px;
	--radius-sm: 10px;

	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur:  240ms;
}

/* ---------- base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--text);
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: var(--fs-body);
	font-weight: 300;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	margin: 0;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--gold);
	color: var(--ink);
	padding: 0.75rem 1.25rem;
	font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* ---------- type helpers ---------- */

.eyebrow {
	margin: 0 0 1rem;
	font-size: var(--fs-eyebrow);
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--gold);
}
/* On the light surface the brand gold drops to ~2.8:1, so the eyebrow uses a
   deeper bronze that clears AA while staying in the gold family. */
.eyebrow--dark { color: #6E5A1C; }

.section__title {
	font-size: var(--fs-h2);
	max-width: 18ch;
}

.section__lede {
	margin-top: 1.25rem;
	font-size: var(--fs-lede);
	color: var(--text-muted);
	max-width: 56ch;
}

/* ---------- buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
		color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur) var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn--lg { padding: 0.9375rem 1.875rem; font-size: 1rem; }

/* Gold fill with near-black label: ~8:1 contrast */
.btn--primary {
	background: var(--gold);
	color: var(--ink);
	font-weight: 600;
}
.btn--primary:hover { background: var(--gold-light); }

.btn--ghost {
	border-color: rgba(255, 255, 255, 0.22);
	color: var(--text);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* For use on light surfaces */
.btn--dark {
	background: var(--ink);
	color: var(--white);
	font-weight: 500;
}
.btn--dark:hover { background: var(--surface-2); }

/* ---------- header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(13, 13, 15, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 76px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__word {
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--white);
}
.brand__tag {
	margin-top: 3px;
	font-size: 0.5625rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--gold);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 2rem;
}
.site-nav a {
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--white); }
.site-nav .current-menu-item > a { color: var(--white); }

.site-header__cta { flex: none; }

/* ---------- hero ---------- */

.hero {
	position: relative;
	padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
	overflow: hidden;
}

.hero__field {
	position: absolute;
	inset: 0;
	background-image: url("../img/network-abstract.webp");
	background-size: cover;
	background-position: 72% 42%;
	opacity: 0.4;
	pointer-events: none;
}
.hero__field::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, var(--ink) 6%, rgba(13, 13, 15, 0.8) 46%, rgba(13, 13, 15, 0.28) 100%),
		linear-gradient(180deg, rgba(13, 13, 15, 0.55) 0%, transparent 28%, var(--ink) 99%);
}

/* Live flow canvas: work entering the system, routed, resolved. */
.hero__flow {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.hero__inner {
	position: relative;
	max-width: 62rem;
	padding-block: clamp(1rem, 4vw, 4rem);
}

/* Weight contrast inside a single Poppins headline: the setup reads light,
   the consequence lands bold. */
.hero__title {
	font-size: var(--fs-h1);
	line-height: 1.04;
	letter-spacing: -0.04em;
	max-width: 24ch;
	text-wrap: balance;
}
.hero__title-a,
.hero__title-b {
	display: block;
}
.hero__title-a {
	font-weight: 300;
	color: var(--text-muted);
}
.hero__title-b {
	font-weight: 600;
	color: var(--white);
}

/* The two halves land in sequence: the setup, then the consequence. */
.has-js .hero__title-a,
.has-js .hero__title-b {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.has-js .hero__title.is-in .hero__title-a,
.has-js .hero__title.is-in .hero__title-b {
	opacity: 1;
	transform: none;
}
.has-js .hero__title.is-in .hero__title-b { transition-delay: 160ms; }

.hero__lede {
	margin-top: 1.75rem;
	font-size: var(--fs-lede);
	color: var(--text-muted);
	max-width: 44ch;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.875rem;
	margin-top: 2.25rem;
}

/* ---------- signature: the operations rail ---------- */

.rail {
	position: relative;
	margin-top: clamp(3rem, 6vw, 5.5rem);
	border-top: 1px solid var(--line);
	background: rgba(13, 13, 15, 0.78);
	backdrop-filter: blur(8px);
}

.rail__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(1.5rem, 4vw, 4rem);
	align-items: center;
	padding-block: 1.5rem;
}

.rail__labels {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.rail__label {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.rail__note {
	font-size: 0.625rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--text-muted);
	opacity: 0.6;
}

.band {
	display: grid;
	grid-template-columns: repeat(24, 1fr);
	gap: 3px;
	height: 20px;
}
.band__cell {
	background: rgba(255, 255, 255, 0.06);
	border-radius: 2px;
	transform-origin: bottom;
}
.band__cell.is-on {
	background: var(--grad-gold);
	animation: bandRise 620ms var(--ease) backwards;
	animation-delay: calc(var(--i) * 26ms + 500ms);
}
@keyframes bandRise {
	from { transform: scaleY(0.15); opacity: 0; }
	to   { transform: scaleY(1); opacity: 1; }
}

.band__scale {
	display: flex;
	justify-content: space-between;
	margin-top: 0.5rem;
	font-size: 0.625rem;
	letter-spacing: 0.06em;
	color: var(--text-muted);
	opacity: 0.65;
}

.rail__stats {
	display: flex;
	gap: clamp(1.5rem, 3vw, 2.75rem);
	margin: 0;
}
.rail__stat { display: flex; flex-direction: column; gap: 0.3125rem; }
.rail__stat dt {
	font-size: 0.625rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.rail__stat dd {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 500;
	line-height: 1;
	color: var(--white);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* ---------- sections ---------- */

.section { padding-block: var(--section); }

.section__head { margin-bottom: clamp(2.5rem, 4vw, 4rem); }

.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* problem */

.section--problem { border-top: 1px solid var(--line-solid); }

.card {
	padding: 1.75rem;
	background: var(--surface);
	border: 1px solid var(--line-solid);
	border-radius: var(--radius);
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover { border-color: rgba(212, 175, 55, 0.4); transform: translateY(-3px); }
.card__title {
	font-size: var(--fs-h3);
	margin-bottom: 0.75rem;
}
.card p { color: var(--text-muted); font-size: 0.9375rem; }

.card--problem { position: relative; padding-top: 2.25rem; }
.card--problem::before {
	content: "";
	position: absolute;
	top: 1.75rem;
	left: 1.75rem;
	width: 28px;
	height: 2px;
	background: var(--grad-gold);
}

/* the shift, before and after */

/* Sits between two dark sections, so a hairline keeps them from merging. */
.section--shift { border-top: 1px solid var(--line-solid); }

.shift {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gap);
}

.shift__col {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border: 1px solid var(--line-solid);
	border-radius: var(--radius);
}
.shift__col--now { background: rgba(255, 255, 255, 0.015); }
.shift__col--next {
	background: linear-gradient(180deg, rgba(212, 175, 55, 0.07) 0%, rgba(212, 175, 55, 0.015) 100%);
	border-color: rgba(212, 175, 55, 0.42);
}

.shift__title {
	margin-bottom: 1.5rem;
	padding-bottom: 1.125rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--text-muted);
}
.shift__col--next .shift__title { color: var(--gold); }

.shift__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	font-size: 0.9375rem;
}
.shift__list li {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
	line-height: 1.5;
}
.shift__col--now .shift__list li { color: var(--text-muted); }

.shift__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 50%;
	flex: none;
}
.shift__icon .icon { width: 13px; height: 13px; stroke-width: 2.25; }
.shift__icon--now {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-muted);
}
.shift__icon--next {
	background: rgba(212, 175, 55, 0.16);
	color: var(--gold);
}

/* solutions */

.section--solutions { background: var(--surface); border-block: 1px solid var(--line-solid); }

/* The delivery model as a physical stack: the layer you touch on top,
   the foundation at the base, each one seated on the next. */
.stack {
	border: 1px solid var(--line-solid);
	border-radius: var(--radius);
	overflow: hidden;
}

.stack__layer {
	display: grid;
	grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 3rem);
	align-items: baseline;
	position: relative;
	padding: clamp(1.5rem, 2.6vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
	/* Each layer sits a shade deeper than the one above it. */
	background: rgba(255, 255, 255, calc(0.028 - var(--depth) * 0.007));
	transition: background var(--dur) var(--ease);
}
.stack__layer + .stack__layer { border-top: 1px solid var(--line-solid); }
.stack__layer:hover { background: rgba(212, 175, 55, 0.05); }

/* Gold spine, strongest at the foundation. */
.stack__layer::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--gold);
	opacity: calc(0.28 + var(--depth) * 0.22);
}

.stack__label {
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--text-muted);
}

.stack__title {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: var(--fs-h3);
	margin-bottom: 0.5rem;
}
.stack__icon {
	display: inline-flex;
	color: var(--gold);
}
.stack__icon .icon { width: 20px; height: 20px; }
.stack__body p {
	color: var(--text-muted);
	font-size: 0.9375rem;
	max-width: 58ch;
}

.stack__note {
	margin-top: 1.25rem;
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
	color: var(--text-muted);
}

/* how it works */

.steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 var(--gap);
}
.step {
	position: relative;
	padding: 2.5rem 1.5rem 0 0;
	border-top: 1px solid var(--line-solid);
}
.step::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	width: 38%;
	height: 1px;
	background: var(--gold);
}
.step__when {
	display: block;
	margin-bottom: 0.875rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}
.step__title { font-size: var(--fs-h3); margin-bottom: 0.625rem; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }

/* outcomes */

.section--outcomes { background: var(--surface); border-block: 1px solid var(--line-solid); }

/* Operating rhythm as a plain schedule. Reads as an operations document
   rather than three interchangeable stat cards. */
.cadence { margin: 0; }

.cadence__row {
	display: grid;
	grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
	gap: clamp(1rem, 3vw, 3rem);
	align-items: baseline;
	padding-block: clamp(1.5rem, 2.4vw, 2rem);
	border-top: 1px solid var(--line-solid);
}
.cadence__row:last-child { border-bottom: 1px solid var(--line-solid); }

.cadence__when {
	position: relative;
	padding-left: 1.125rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}
.cadence__when::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.4em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--gold);
}

.cadence__what { margin: 0; }
.cadence__title {
	font-size: var(--fs-h3);
	margin-bottom: 0.5rem;
}
.cadence__what p {
	color: var(--text-muted);
	font-size: 0.9375rem;
	max-width: 58ch;
}

/* people, the light break */

.section--people {
	background: var(--paper);
	color: var(--text-dark);
}
.section--people .section__title { color: var(--text-dark); max-width: 20ch; }
.section--people p { color: var(--text-dark-muted); }

.people__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: center;
}
.people__copy .btn { margin-top: 1.75rem; }

.people__media { position: relative; }
.people__figure {
	margin: 0;
	overflow: hidden;
	border-radius: var(--radius);
	box-shadow: 0 24px 60px -28px rgba(13, 13, 15, 0.55);
}
.people__figure--sub {
	position: absolute;
	right: -1.5rem;
	bottom: -3rem;
	width: 46%;
	border: 6px solid var(--paper);
	border-radius: var(--radius);
}

/* closing CTA */

.cta {
	position: relative;
	padding-block: clamp(4rem, 3rem + 5vw, 7rem);
	background: var(--grad-gold);
	color: var(--ink);
	text-align: center;
}
.cta__inner { max-width: 42rem; margin-inline: auto; }
.cta__title { font-size: var(--fs-h2); color: var(--ink); }
.cta__lede {
	margin-top: 1.125rem;
	font-size: var(--fs-lede);
	color: rgba(13, 13, 15, 0.78);
}
.cta .btn { margin-top: 2rem; }

/* footer */

.site-footer {
	padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
	background: var(--ink);
	border-top: 1px solid var(--line-solid);
}
.site-footer__top {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 3rem;
	padding-bottom: 3rem;
}
.site-footer__line {
	margin-top: 1.125rem;
	max-width: 32ch;
	font-size: 0.9375rem;
	color: var(--text-muted);
}
.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 3rem;
	justify-content: flex-end;
}
.site-footer__col { display: flex; flex-direction: column; gap: 0.75rem; }
.site-footer__heading {
	margin-bottom: 0.25rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gold);
}
.site-footer__col a {
	font-size: 0.9375rem;
	color: var(--text-muted);
	transition: color var(--dur) var(--ease);
}
.site-footer__col a:hover { color: var(--white); }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line-solid);
	font-size: 0.8125rem;
	color: var(--text-muted);
}
.site-footer__bottom p { margin: 0; }
.site-footer__meta { opacity: 0.7; }

/* ---------- reveal ---------- */

/* Content is visible by default. Only when scripting is available do we hide
   it to animate it in, so a JS failure can never leave the page blank. */
.has-js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 620ms var(--ease), transform 620ms var(--ease);
	transition-delay: calc(var(--d, 0) * 90ms);
}
.has-js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
	.rail__inner { grid-template-columns: 1fr; gap: 1.75rem; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: 1fr; gap: 0; }
	.step { padding-right: 0; }
	.shift { grid-template-columns: 1fr; }
	.people__inner { grid-template-columns: 1fr; }
	.people__figure--sub { width: 40%; right: 0; bottom: -2rem; }
}

@media (max-width: 860px) {
	/* Until the inner pages exist there is no menu to collapse, so the header
	   carries the brand and the single call to action. */
	.site-nav { display: none; }

	.grid--3 { grid-template-columns: 1fr; }
	.section__title { max-width: none; }
}

@media (max-width: 760px) {
	.stack__layer,
	.cadence__row {
		grid-template-columns: 1fr;
		gap: 0.625rem;
	}
}

@media (max-width: 620px) {
	.grid--4 { grid-template-columns: 1fr; }
	.step { padding-top: 2rem; }
	.site-footer__nav { justify-content: flex-start; }
	.band { height: 16px; gap: 2px; }
	.rail__stats { flex-wrap: wrap; gap: 1.25rem 2rem; }
	.hero__title { max-width: none; }
	/* The lockup tagline wraps to two lines at this width, so the wordmark carries it. */
	.brand__tag { display: none; }
	.brand__mark { width: 30px; height: 30px; }
	.people__figure--sub { position: static; width: 100%; margin-top: 1rem; border: 0; }
	.site-footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- motion and print ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-delay: 0ms !important;
		transition-duration: 0.001ms !important;
	}
	.has-js .reveal { opacity: 1; transform: none; }
	.band__cell.is-on { animation: none; }
}
