/* ==========================================================================
   Brendan Njoku
   Bold and modern: near-black, warm white, and a spectrum drawn from the
   colours of the four ventures. Bricolage Grotesque for display, Inter for
   reading, JetBrains Mono for small labels.
   ========================================================================== */

:root {
	--bn-bg: #0B0B0D;
	--bn-bg-2: #111114;
	--bn-surface: #16161A;
	--bn-line: rgba(255, 255, 255, .08);
	--bn-line-2: rgba(255, 255, 255, .16);
	--bn-text: #F3F1EC;
	--bn-muted: #A29F98;
	--bn-dim: #6E6B65;
	--bn-focus: #F2B84B;
	--bn-spectrum: linear-gradient(90deg, #F26B3A 0%, #D45BD1 38%, #3FB8DA 72%, #7FBFB0 100%);

	--bn-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
	--bn-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--bn-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--bn-container: 1240px;
	--bn-gutter: clamp(20px, 5vw, 56px);
	--bn-section: clamp(96px, 12vw, 168px);
	--bn-ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bn-bg); }
body { margin: 0; background: var(--bn-bg); color: var(--bn-text); font: 400 17px/1.65 var(--bn-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--bn-focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--bn-display); font-weight: 700; letter-spacing: -.03em; color: var(--bn-text); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: #D45BD1; color: #fff; }
[id] { scroll-margin-top: 84px; }

.bn-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--bn-text); color: var(--bn-bg); border-radius: 8px; text-decoration: none; font-weight: 600; }
.bn-skip:focus { top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.bn-container { position: relative; width: 100%; max-width: calc(var(--bn-container) + 2 * var(--bn-gutter)); margin: 0 auto; padding: 0 var(--bn-gutter); }
.bn-container--text { max-width: calc(760px + 2 * var(--bn-gutter)); }

.bn-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font: 500 12.5px/1.2 var(--bn-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--bn-muted); }
.bn-kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--bn-spectrum); flex: none; }

.bn-h2 { font-size: clamp(40px, 6vw, 84px); line-height: .95; letter-spacing: -.045em; font-weight: 800; max-width: 12ch; }
.bn-head { margin-bottom: clamp(48px, 6vw, 80px); }
.bn-lede { font-size: clamp(20px, 1.9vw, 24px); line-height: 1.5; color: var(--bn-text); }

/* Buttons */
.bn-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bn-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 600 15.5px/1 var(--bn-sans); text-decoration: none; transition: background .25s, color .25s, border-color .25s, transform .25s var(--bn-ease); }
.bn-btn:hover { transform: translateY(-2px); }
.bn-btn .bn-i { transition: transform .25s var(--bn-ease); }
.bn-btn:hover .bn-i { transform: translateX(3px); }
.bn-btn--light { background: var(--bn-text); color: var(--bn-bg); }
.bn-btn--light:hover { background: #fff; color: var(--bn-bg); }
.bn-btn--ghost { color: var(--bn-text); border-color: var(--bn-line-2); background: rgba(255, 255, 255, .03); }
.bn-btn--ghost:hover { border-color: rgba(255, 255, 255, .45); color: #fff; }

/* Header */
.bn-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.bn-header.is-scrolled { background: rgba(11, 11, 13, .94); border-bottom-color: var(--bn-line); }
.bn-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.bn-wordmark { display: inline-flex; align-items: center; font: 700 19px/1 var(--bn-display); letter-spacing: -.02em; color: var(--bn-text); text-decoration: none; }
.bn-nav { display: flex; align-items: center; gap: 30px; }
.bn-nav__link { color: var(--bn-muted); font: 500 14.5px/1 var(--bn-sans); text-decoration: none; transition: color .2s; }
.bn-nav__link:hover { color: var(--bn-text); }
.bn-nav__cta { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--bn-line-2); color: var(--bn-text); font: 600 14px/1 var(--bn-sans); text-decoration: none; transition: background .2s, color .2s; }
.bn-nav__cta:hover { background: var(--bn-text); color: var(--bn-bg); }
@media (max-width: 640px) { .bn-nav__link { display: none; } .bn-header__inner { min-height: 64px; } }

/* Hero */
.bn-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: max(720px, min(100svh, 960px)); padding-top: calc(76px + clamp(48px, 7vw, 96px)); isolation: isolate; }
.bn-hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
.bn-hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 60% 70% at 18% 50%, rgba(11, 11, 13, .82) 0%, rgba(11, 11, 13, .4) 55%, transparent 80%), linear-gradient(0deg, var(--bn-bg) 0%, transparent 22%); }
.bn-hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: clamp(32px, 5vw, 80px); padding-bottom: clamp(48px, 6vw, 88px); }
.bn-hero__name { display: flex; flex-direction: column; margin-bottom: 28px; font-size: clamp(68px, 12vw, 184px); font-weight: 800; line-height: .86; letter-spacing: -.055em; }
.bn-hero__name span:last-child { background: var(--bn-spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.bn-hero__lead { max-width: 26ch; margin-bottom: 26px; font: 500 clamp(22px, 2.3vw, 30px)/1.25 var(--bn-display); letter-spacing: -.02em; color: var(--bn-text); }

/* "Currently" rotator */
.bn-now { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 40px; font: 500 15px/1.4 var(--bn-mono); }
.bn-now__label { display: inline-flex; align-items: center; gap: 8px; color: var(--bn-dim); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.bn-now__pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #5BE49B; }
.bn-now__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #5BE49B; animation: bn-pulse 2s ease-out infinite; will-change: transform, opacity; }
@keyframes bn-pulse { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3); opacity: 0; } }
.bn-rotator { position: relative; display: inline-grid; overflow: hidden; height: 1.4em; }
.bn-rotator__item { grid-area: 1 / 1; color: var(--c); white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .6s var(--bn-ease), opacity .6s; }
.bn-rotator__item.is-active { transform: translateY(0); opacity: 1; }
.bn-rotator__item.is-leaving { transform: translateY(-110%); opacity: 0; }

/* Portrait: the spectrum ring is a rotating layer clipped by the frame,
   so it is animated by the graphics card rather than repainted. */
.bn-portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; padding: 2px; border-radius: 30px; overflow: hidden; isolation: isolate; box-shadow: 0 40px 120px -40px rgba(212, 91, 209, .45), 0 0 80px -20px rgba(63, 184, 218, .3); }
.bn-portrait::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: 150%; aspect-ratio: 1; margin: -75% 0 0 -75%; background: conic-gradient(#F26B3A, #D45BD1, #3FB8DA, #7FBFB0, #F26B3A); animation: bn-spin 8s linear infinite; will-change: transform; }
@keyframes bn-spin { to { transform: rotate(360deg); } }
.bn-portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: var(--bn-surface); }
.bn-portrait.is-missing::after { content: ""; position: absolute; inset: 2px; border-radius: 28px; background: radial-gradient(circle at 30% 20%, #26262D, var(--bn-surface)); }
.bn-portrait__tag { position: absolute; z-index: 1; left: 18px; bottom: 18px; padding: 8px 12px; border-radius: 10px; background: rgba(11, 11, 13, .85); border: 1px solid var(--bn-line-2); font: 500 12px/1 var(--bn-mono); color: var(--bn-text); letter-spacing: .02em; }
@media (max-width: 900px) {
	.bn-hero { min-height: 0; }
	.bn-hero__inner { grid-template-columns: 1fr; }
	.bn-portrait { max-width: 360px; width: 78%; justify-self: start; }
	.bn-hero__shade { background: linear-gradient(180deg, rgba(11, 11, 13, .75) 0%, rgba(11, 11, 13, .55) 50%, rgba(11, 11, 13, .2) 100%), linear-gradient(0deg, var(--bn-bg) 0%, transparent 18%); }
}

/* Sections */
.bn-section { padding: var(--bn-section) 0; }
.bn-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .bn-split { grid-template-columns: 1fr; } }
.bn-prose { color: var(--bn-muted); font-size: 18px; line-height: 1.7; }
.bn-prose p { max-width: 58ch; }
.bn-prose .bn-lede { margin-bottom: 1.1em; }

/* Skills */
.bn-skills { list-style: none; margin: clamp(64px, 8vw, 112px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--bn-line-2); }
.bn-skills li { padding: 28px 28px 0 0; }
.bn-skills li + li { padding-left: 28px; border-left: 1px solid var(--bn-line); }
.bn-skills__n { display: block; margin-bottom: 40px; font: 500 12.5px/1 var(--bn-mono); color: var(--bn-dim); }
.bn-skills h3 { margin-bottom: 10px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.bn-skills p { color: var(--bn-muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 960px) {
	.bn-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bn-skills li:nth-child(3) { padding-left: 0; border-left: 0; }
	.bn-skills li:nth-child(n+3) { margin-top: 32px; border-top: 1px solid var(--bn-line); }
}
@media (max-width: 560px) {
	.bn-skills { grid-template-columns: 1fr; }
	.bn-skills li, .bn-skills li + li { padding: 24px 0; border-left: 0; margin-top: 0; }
	.bn-skills li + li { border-top: 1px solid var(--bn-line); }
	.bn-skills__n { margin-bottom: 16px; }
}

/* Ventures */
.bn-section--ventures { background: var(--bn-bg-2); border-top: 1px solid var(--bn-line); border-bottom: 1px solid var(--bn-line); }
.bn-ventures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--bn-line-2); }
.bn-venture { position: relative; border-bottom: 1px solid var(--bn-line-2); }
.bn-venture__link { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1.15fr) minmax(0, 1fr) 56px; align-items: center; gap: 28px; padding: clamp(28px, 3.4vw, 44px) 16px; text-decoration: none; color: inherit; isolation: isolate; overflow: hidden; }
.bn-venture__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 140% at 20% 50%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .45s var(--bn-ease); }
.bn-venture__link::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--bn-ease); }
.bn-venture__link:hover::before, .bn-venture__link:focus-visible::before { opacity: 1; }
.bn-venture__link:hover::after, .bn-venture__link:focus-visible::after { transform: scaleY(1); }
.bn-venture__n { font: 500 13px/1 var(--bn-mono); color: var(--bn-dim); }
.bn-venture__main { display: flex; flex-direction: column; gap: 10px; }
.bn-venture__name { font: 800 clamp(30px, 3.8vw, 54px)/1 var(--bn-display); letter-spacing: -.045em; transition: color .3s, transform .45s var(--bn-ease); }
.bn-venture__link:hover .bn-venture__name { color: var(--c); transform: translateX(6px); }
.bn-venture__role { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 13px/1.3 var(--bn-mono); color: var(--bn-muted); }
.bn-venture__tag { padding: 4px 8px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); color: var(--c); font-size: 11.5px; }
.bn-venture__text { color: var(--bn-muted); font-size: 16px; line-height: 1.6; max-width: 46ch; }
.bn-venture__go { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--bn-line-2); color: var(--bn-text); transition: background .3s, border-color .3s, color .3s, transform .45s var(--bn-ease); }
.bn-venture__link:hover .bn-venture__go { background: var(--c); border-color: var(--c); color: var(--bn-bg); transform: rotate(45deg); }
@media (max-width: 860px) {
	.bn-venture__link { grid-template-columns: 40px minmax(0, 1fr) 48px; gap: 16px 18px; padding: 28px 4px; }
	.bn-venture__text { grid-column: 2 / 3; grid-row: 2; }
	.bn-venture__go { width: 44px; height: 44px; }
}

/* Contact */
.bn-contact { position: relative; overflow: hidden; isolation: isolate; padding-bottom: calc(var(--bn-section) * .9); }
.bn-contact__glow { position: absolute; z-index: -1; inset: 0; pointer-events: none; background: radial-gradient(ellipse 35% 45% at 18% 105%, rgba(242, 107, 58, .16), transparent 70%), radial-gradient(ellipse 35% 45% at 45% 110%, rgba(212, 91, 209, .18), transparent 70%), radial-gradient(ellipse 35% 45% at 75% 105%, rgba(63, 184, 218, .16), transparent 70%); }
.bn-contact__title { margin-bottom: 28px; font-size: clamp(72px, 14vw, 220px); font-weight: 800; line-height: .85; letter-spacing: -.06em; }
.bn-contact__text { max-width: 48ch; margin-bottom: 40px; color: var(--bn-muted); font-size: clamp(18px, 1.7vw, 21px); }

/* Footer */
.bn-footer { border-top: 1px solid var(--bn-line); padding: 28px 0; font-size: 14px; color: var(--bn-dim); }
.bn-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.bn-footer p { margin: 0; }
.bn-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.bn-footer__links a { color: var(--bn-muted); text-decoration: none; }
.bn-footer__links a:hover { color: var(--bn-text); }

/* Pages */
.bn-page { padding: calc(76px + clamp(64px, 9vw, 112px)) 0 var(--bn-section); }
.bn-page__title { margin-bottom: 40px; font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: .95; letter-spacing: -.045em; }
.bn-page__title a { text-decoration: none; }
.bn-content { color: var(--bn-muted); font-size: 17px; line-height: 1.75; }
.bn-content h2 { margin: 2em 0 .6em; font-size: 28px; }
.bn-content h3 { margin: 1.6em 0 .5em; font-size: 21px; }
.bn-content a { color: var(--bn-text); }

/* Scroll reveal (only when JavaScript is running) */
.js .bn-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--bn-ease), transform .9s var(--bn-ease); transition-delay: var(--delay, 0ms); }
.js .bn-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .bn-reveal { opacity: 1; transform: none; }
}
