/* ==========================================================================
   Brands Nexus Network 3.7: the "Trust is infrastructure" homepage design.
   Cool light page, near-black ink, one cobalt accent, and a navy-and-gold
   BrandsClass section. Everything is scoped to .nx so the rest of the site is
   untouched. Fonts are self-hosted.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/instrument-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* --- Tokens ---------------------------------------------------------------- */
.nx {
	--nx-ground: #f2f4f7;
	--nx-raised: #f8f9fb;
	--nx-ink: #0a0f1c;
	--nx-body: #2b3446;
	--nx-muted: #566074;
	--nx-line: #d5dae3;
	--nx-accent: #1f3de0;
	--nx-navy: #0b1730;
	--nx-gold: #d4a24a;
	--nx-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--nx-text: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--nx-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	--nx-pad: clamp(20px, 5vw, 96px);

	background: var(--nx-ground);
	color: var(--nx-ink);
	font-family: var(--nx-text);
	font-size: 1.0625rem;
	line-height: 1.55;
	text-align: left;
}
:where(.nx) *, :where(.nx) *::before, :where(.nx) *::after { box-sizing: border-box; }
:where(.nx) :is(h1, h2, h3, p, ul, figure, blockquote) { margin: 0; padding: 0; text-align: left; }
:where(.nx) ul { list-style: none; }
:where(.nx) a { color: inherit; text-decoration: none; }
.nx a:focus-visible, .nx button:focus-visible { outline: 3px solid var(--nx-accent); outline-offset: 3px; border-radius: 6px; }
.nx-wrap { width: 100%; padding-inline: var(--nx-pad); }
.nx-mono { font-family: var(--nx-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }

.nx-h2 { font-family: var(--nx-display); font-weight: 700; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; color: var(--nx-ink); }

/* --- Buttons --------------------------------------------------------------- */
.nx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; border-radius: 999px; font-family: var(--nx-text); font-weight: 600; font-size: 1rem; line-height: 1.2; transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.nx-btn--solid { background: var(--nx-ink); color: #f2f4f7; border: 1.5px solid var(--nx-ink); }
.nx-btn--solid:hover { background: var(--nx-accent); border-color: var(--nx-accent); color: #fff; }
.nx-btn--line { background: transparent; color: var(--nx-ink); border: 1.5px solid var(--nx-ink); }
.nx-btn--line:hover { background: var(--nx-ink); color: #f2f4f7; }
.nx-btn--gold { background: var(--nx-gold); color: var(--nx-navy); border: 1.5px solid var(--nx-gold); }
.nx-btn--gold:hover { background: #f0c16a; border-color: #f0c16a; }

.nx-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.nx-lift:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -22px rgba(10, 15, 28, 0.45); }

/* --- Hero ------------------------------------------------------------------ */
.nx-hero .nx-wrap { padding-top: clamp(28px, 5vw, 60px); padding-bottom: clamp(48px, 7vw, 96px); display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px; }
.nx-hero__copy { flex: 1.5 1 520px; min-width: 0; }
.nx-hero__eyebrow { margin-bottom: 28px; color: var(--nx-muted); }
.nx-hero__title { font-family: var(--nx-display); font-weight: 700; font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 0.95; letter-spacing: -0.045em; text-wrap: balance; color: var(--nx-ink); }
.nx-hl { color: var(--nx-accent); }
.nx-hero__lead { margin-top: 34px; max-width: 34em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; color: var(--nx-body); }
.nx-hero__actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; }
.nx-hero__map { flex: 1 1 340px; min-width: 0; max-width: 500px; margin-inline: auto; }
.nx-hero__map svg { width: 100%; height: auto; display: block; overflow: visible; }
.nx-flow { stroke-dasharray: 5 7; animation: nx-flow 2.4s linear infinite; }
.nx-spin { transform-origin: 200px 200px; animation: nx-spin 60s linear infinite; }
.nx-pulse { animation: nx-pulse 3.2s ease-in-out infinite; }
@keyframes nx-flow { to { stroke-dashoffset: -48; } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* --- Strip ----------------------------------------------------------------- */
.nx-strip { border-top: 1px solid var(--nx-line); border-bottom: 1px solid var(--nx-line); background: var(--nx-raised); }
.nx-strip__grid { padding-block: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px 32px; }
.nx-strip__word { font-family: var(--nx-display); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.nx-strip__word span { display: block; margin-top: 4px; font-family: var(--nx-mono); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); }

/* --- Platforms: a full-width band, four equal columns ---------------------- */
.nx-platforms { padding-top: clamp(64px, 9vw, 120px); }
.nx-platforms__head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.nx-platforms__head .nx-h2 { grid-column: 1 / 4; max-width: none; font-size: clamp(2.125rem, 3.5vw, 3.5rem); text-wrap: balance; }
.nx-platforms__lead { grid-column: 4 / 5; padding-left: clamp(20px, 2.4vw, 44px); font-size: 1.0625rem; line-height: 1.55; color: var(--nx-body); }

.nx-pf { border-block: 1px solid var(--nx-line); background: var(--nx-raised); }
.nx-pf__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-inline: var(--nx-pad); }
.nx-pf__item { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(28px, 3.2vw, 52px) clamp(20px, 2.4vw, 44px); border-left: 1px solid var(--nx-line); }
.nx-pf__item:first-child { border-left: 0; padding-left: 0; }
.nx-pf__item:last-child { padding-right: 0; }
.nx-pf__item::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--nx-accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.nx-pf__item:hover::before, .nx-pf__item:focus-within::before { transform: scaleX(1); }
.nx-pf__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--nx-muted); }
.nx-pf__top b { font-weight: 500; color: var(--nx-accent); }
.nx-pf__name { margin-top: 10px; font-family: var(--nx-display); font-weight: 700; font-size: clamp(1.75rem, 2.5vw, 2.625rem); line-height: 1; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.nx-pf__kicker { font-family: var(--nx-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); }
.nx-pf__text { margin-top: 6px; color: var(--nx-body); font-size: 1rem; line-height: 1.6; }
.nx-pf__link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--nx-ink); }
.nx-pf__link span { display: inline-block; color: var(--nx-accent); transition: transform 0.2s ease; }
.nx-pf__link:hover { color: var(--nx-accent); }
.nx-pf__link:hover span { transform: translateX(5px); }

/* --- Principles ------------------------------------------------------------ */
.nx-principles .nx-wrap { padding-top: clamp(72px, 10vw, 140px); }
.nx-principles .nx-h2 { margin-bottom: 48px; font-size: clamp(2.125rem, 4.4vw, 3.75rem); max-width: 14em; }
.nx-principles__grid { border-top: 1.5px solid var(--nx-ink); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.nx-principle { padding: 30px 32px 30px 0; border-bottom: 1px solid var(--nx-line); }
.nx-principle h3 { margin-bottom: 12px; font-family: var(--nx-display); font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.nx-principle p { color: var(--nx-body); }

/* --- Founder quote --------------------------------------------------------- */
.nx-quote .nx-wrap { padding-top: clamp(72px, 10vw, 140px); }
.nx-quote__box { background: #e7ebf2; border-radius: 28px; padding: clamp(28px, 5vw, 72px); display: flex; flex-wrap: wrap; align-items: center; gap: 32px 64px; }
.nx-quote__text { flex: 2 1 460px; min-width: 0; font-family: var(--nx-display); font-weight: 600; font-size: clamp(1.75rem, 3.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; color: var(--nx-ink); }
.nx-quote__by { flex: 1 1 220px; min-width: 0; }
.nx-quote__name { font-weight: 600; font-size: 1.1875rem; }
.nx-quote__role { margin-top: 4px; color: var(--nx-muted); }
.nx-quote__note { margin-top: 18px; font-size: 0.97rem; color: var(--nx-body); }

/* --- Partners -------------------------------------------------------------- */
.nx-partners .nx-wrap { padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(72px, 10vw, 120px); }
.nx-partners .nx-h2 { margin-bottom: 14px; max-width: 12em; }
.nx-partners__lead { margin-bottom: 44px; max-width: 34em; color: var(--nx-body); }
.nx-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.nx-door { min-height: 240px; border-radius: 24px; padding: 34px; display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--nx-line); color: var(--nx-ink); }
.nx-door h3 { font-family: var(--nx-display); font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; }
.nx-door p { color: var(--nx-body); }
.nx-door__cta { margin-top: auto; font-weight: 600; color: var(--nx-accent); overflow-wrap: anywhere; }
.nx-door--dark { background: var(--nx-ink); border-color: var(--nx-ink); color: #f2f4f7; }
.nx-door--dark p { color: #c9d0de; }
.nx-door--dark .nx-door__cta { color: #9db2ff; }

/* --- Page chrome when the page opens on this design ------------------------- */
body.bnn-nx, body.bnn-nx .bnn-main, html:has(body.bnn-nx) { background: #f2f4f7; }
body.bnn-nx .bnn-header { --bg: #f2f4f7; --card: #ffffff; --card-2: #f8f9fb; --text: #0a0f1c; --muted: #566074; --muted-2: #566074; --line: #d5dae3; --pill: #e4e8f0; --brand: #1f3de0; --brand-hover: #3a55f0; --brand-ink: #ffffff; --line-brand: rgba(31, 61, 224, 0.24); background: rgba(242, 244, 247, 0.9); color: #0a0f1c; }
body.bnn-nx .bnn-header .bnn-panel { background: #ffffff; box-shadow: 0 32px 60px -24px rgba(10, 15, 28, 0.3); }
body.bnn-nx .bnn-header .bnn-menu__link, body.bnn-nx .bnn-header .bnn-nav .menu-item a { font-family: var(--nx-text); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 0.97rem; }
body.bnn-nx .bnn-btn--primary { border-radius: 999px; }

/* --- Motion and small screens ----------------------------------------------- */
@media (prefers-reduced-motion: reduce) { .nx-flow, .nx-spin, .nx-pulse { animation: none; } .nx-lift { transition: none; } .nx-lift:hover { transform: none; } }
@media (max-width: 1099px) {
	.nx-platforms__head { grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
	.nx-platforms__head .nx-h2, .nx-platforms__lead { grid-column: 1; padding-left: 0; }
	.nx-pf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-pf__item:nth-child(odd) { border-left: 0; padding-left: 0; }
	.nx-pf__item:nth-child(even) { padding-right: 0; }
	.nx-pf__item:nth-child(n+3) { border-top: 1px solid var(--nx-line); }
}
@media (max-width: 599px) {
	.nx-pf__grid { grid-template-columns: minmax(0, 1fr); }
	.nx-pf__item, .nx-pf__item:nth-child(even) { border-left: 0; padding-inline: 0; }
	.nx-pf__item + .nx-pf__item { border-top: 1px solid var(--nx-line); }
}
@media (max-width: 899px) {
	.nx-hero__map { max-width: 440px; }
	.nx-principle { padding-right: 0; }
}
