/* NetCon theme — layout and component styles. Tokens live in theme.json. */

:root {
	--nc-ink: var(--wp--preset--color--ink);
	--nc-soft: var(--wp--preset--color--ink-soft);
	--nc-paper: var(--wp--preset--color--paper);
	--nc-tint: var(--wp--preset--color--tint);
	--nc-rule: var(--wp--preset--color--rule);
	--nc-blue: var(--wp--preset--color--signal);
	--nc-blue-light: var(--wp--preset--color--signal-bright);
	--nc-navy: var(--wp--preset--color--navy);
	--nc-amber: var(--wp--preset--color--amber);
	--nc-section: var(--wp--preset--spacing--60);
	--nc-header-h: 76px;
}

html { scroll-padding-top: calc(var(--nc-header-h) + 1rem); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-kerning: normal; }

/* Headings: the expanded width axis is the type personality. */
h1, h2, h3, .wp-block-heading { font-stretch: 112%; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-weight: 760; letter-spacing: -0.02em; }
p { text-wrap: pretty; }

/* Template plumbing */
.wp-site-blocks > * + * { margin-block-start: 0; }
.nc-main { padding-top: 0; padding-bottom: 0; }
.nc-main > .wp-block-post-content > * + .alignfull { margin-block-start: 0; }

:where(a, button, .wp-element-button):focus-visible {
	outline: 3px solid var(--nc-blue-light);
	outline-offset: 3px;
	border-radius: 3px;
}

/* ------------------------------------------------------------ header */
.nc-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu overlay inside the header box. */
.nc-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--nc-paper) 92%, transparent);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
}
.admin-bar .nc-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .nc-header { top: 0; } }
.nc-header.is-scrolled { border-bottom-color: var(--nc-rule); }
.nc-header__bar { min-height: var(--nc-header-h); gap: 1.5rem; }
.nc-header__nav { gap: clamp(1rem, 2.5vw, 2rem); }
.nc-logo img { display: block; height: auto; }
.nc-nav .wp-block-navigation-item__content { color: var(--nc-ink); padding-block: .4rem; }
.nc-nav .wp-block-navigation-item__content:hover { color: var(--nc-blue); }
.nc-nav .current-menu-item > .wp-block-navigation-item__content,
.nc-nav [aria-current="page"] { box-shadow: inset 0 -2px 0 var(--nc-blue); }
.nc-header__cta .wp-block-button__link { padding: .7rem 1.1rem; font-size: .95rem; }

.nc-nav .wp-block-navigation-item__content { white-space: nowrap; }
@media (max-width: 1100px) {
	.nc-header .nc-header__cta.wp-block-buttons { display: none !important; }
	.nc-nav .wp-block-navigation__container { gap: 1.25rem; }
}
@media (max-width: 1000px) {
	.nc-hero__grid.wp-block-columns { flex-wrap: wrap !important; }
	.nc-hero__grid.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.nc-hero__grid > .wp-block-column:last-child { max-width: 34rem; }
	.nc-hero__title { max-width: 16ch; }
}
@media (max-width: 781px) {
	:root { --nc-header-h: 64px; }
	.nc-header .nc-logo img { width: 150px !important; }
	.nc-header .nc-header__cta.wp-block-buttons { display: none !important; }
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { align-items: flex-start !important; }
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--nc-paper);
	padding: 1.5rem clamp(1rem, 4vw, 2.5rem);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item {
	font-size: 1.5rem;
	font-weight: 650;
	font-stretch: 110%;
}

/* ------------------------------------------------------------ shared */
.nc-section { padding-block: var(--nc-section); }
.nc-section__head { margin-bottom: var(--wp--preset--spacing--50); }
.nc-section__head > * { max-width: 44rem; }
.nc-section__head > * + * { margin-top: 1rem; }
.nc-section__sub { color: var(--nc-soft); font-size: var(--wp--preset--font-size--large); line-height: 1.45; margin: 0; }
.nc-section__head .wp-block-heading { margin: 0; }
.nc-section__head .nc-section__sub { margin-top: 1rem; }

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--nc-ink);
	color: var(--nc-paper);
	border-color: var(--nc-ink);
}

/* ------------------------------------------------------------ hero */
.nc-hero {
	padding-top: clamp(2rem, 6vw, 5rem);
	padding-bottom: var(--nc-section);
	position: relative;
}
.nc-hero__grid { gap: clamp(2rem, 5vw, 4rem); }
.nc-hero__title {
	font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.5rem);
	line-height: 1.02;
	max-width: 13ch;
	margin: 0;
}
.nc-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
	color: var(--nc-soft);
	max-width: 36rem;
	margin-top: 1.5rem;
}
.nc-hero__actions { margin-top: 2rem; gap: .75rem; }
.nc-hero__meta { margin-top: 1.5rem; font-size: var(--wp--preset--font-size--small); color: var(--nc-soft); }

/* Topology figure */
.nc-topo { margin: 0; position: relative; }
.nc-topo::before {
	content: "";
	position: absolute;
	inset: -4% -2% 3.5rem;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient(circle, rgba(26, 93, 180, .16) 1px, transparent 1.5px);
	background-size: 22px 22px;
	-webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
	mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}
.nc-topo__svg, .nc-topo__caption { position: relative; z-index: 1; }
.nc-topo__svg { display: block; width: 100%; height: auto; overflow: visible; }
.nc-topo__link {
	stroke: var(--nc-blue);
	stroke-width: 4;
	stroke-linecap: round;
	opacity: .55;
	transition: stroke .9s ease, opacity .9s ease, stroke-width .9s ease;
}
.nc-topo__link--tangle { opacity: 0; }
.nc-topo__node { transition: fill .9s ease, stroke .9s ease; stroke-width: 4; }
.nc-topo__node--dot { stroke: var(--nc-paper); }
.nc-topo__node--ring { fill: var(--nc-paper); stroke: var(--nc-blue-light); stroke-width: 6; }
.nc-topo__node--l2 { fill: #3C9EDD; }
.nc-topo__node--l3 { fill: #2C7FCA; }
.nc-topo__node--l4 { fill: var(--nc-blue); }
.nc-topo__node--l5 { fill: var(--nc-navy); }

.nc-topo.is-tangled .nc-topo__link { stroke: #9AA8B4; opacity: .7; stroke-width: 3; }
.nc-topo.is-tangled .nc-topo__node--dot { fill: #9AA8B4; }
.nc-topo.is-tangled .nc-topo__node--ring { stroke: #9AA8B4; }
.nc-topo.is-tangled .nc-topo__node.is-problem { fill: var(--nc-amber); }

.nc-topo__caption {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1rem;
	padding-top: .75rem;
	border-top: 1px solid var(--nc-rule);
	font-size: var(--wp--preset--font-size--small);
	color: var(--nc-soft);
}
.nc-topo__state::before {
	content: "";
	display: inline-block;
	width: .55rem;
	height: .55rem;
	margin-right: .55rem;
	border-radius: 50%;
	background: var(--nc-blue);
	transition: background .9s ease;
	vertical-align: .05em;
}
.nc-topo.is-tangled .nc-topo__state::before { background: var(--nc-amber); }
.nc-topo__replay {
	flex: none;
	white-space: nowrap;
	font: inherit;
	color: var(--nc-ink);
	background: none;
	border: 1px solid var(--nc-rule);
	border-radius: 999px;
	padding: .3rem .85rem;
	cursor: pointer;
}
.nc-topo__replay:hover { border-color: var(--nc-ink); }

/* Pre-paint: when JS will animate, hide until the tangled state is set. */
.nc-js .nc-topo:not(.is-ready) .nc-topo__svg { opacity: 0; }
.nc-topo.is-ready .nc-topo__svg { opacity: 1; transition: opacity .4s ease; }

@media (max-width: 781px) {
	.nc-hero__grid > .wp-block-column:last-child { max-width: 30rem; }
}

/* ------------------------------------------------------------ intro */
.nc-intro {
	background-color: var(--nc-ink);
	color: #D7DEE5;
	/* Faint topology linework, bottom right. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%23ffffff' stroke-opacity='.09' stroke-width='1.5'%3E%3Cpath d='M60 80 220 140 380 60 540 150M220 140 300 280 460 300 540 150M300 280 120 330M380 60 460 300'/%3E%3Cg fill='%2314222E'%3E%3Ccircle cx='60' cy='80' r='6'/%3E%3Ccircle cx='220' cy='140' r='8'/%3E%3Ccircle cx='380' cy='60' r='6'/%3E%3Ccircle cx='540' cy='150' r='7'/%3E%3Ccircle cx='300' cy='280' r='9'/%3E%3Ccircle cx='460' cy='300' r='6'/%3E%3Ccircle cx='120' cy='330' r='5'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right -90px bottom -70px;
	background-size: min(640px, 80vw) auto;
}
.nc-intro__grid { gap: clamp(2rem, 6vw, 5rem); }
.nc-statement {
	color: var(--nc-paper);
	font-size: clamp(1.6rem, 1rem + 2.2vw, 2.6rem);
	font-weight: 600;
	font-stretch: 108%;
	line-height: 1.18;
	letter-spacing: -0.01em;
	margin: 0;
}
.nc-intro__grid p:not(.nc-statement) { max-width: 34rem; font-size: 1.125rem; }
.nc-intro__grid .wp-block-column > p:first-child { margin-top: 0; }
.nc-intro__kicker { color: var(--nc-paper); font-weight: 600; border-left: 3px solid var(--nc-blue-light); padding-left: 1rem; }

/* ------------------------------------------------------------ problems: symptom panel on graph paper */
.nc-problems-section { position: relative; isolation: isolate; }
.nc-problems-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(26, 93, 180, .075) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26, 93, 180, .075) 1px, transparent 1px);
	background-size: 32px 32px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 45%, #000 35%, transparent 80%);
	mask-image: radial-gradient(ellipse 80% 90% at 70% 45%, #000 35%, transparent 80%);
}
.nc-problems__grid { gap: clamp(2rem, 6vw, 5rem); }
.nc-problems__grid h2 { margin-top: 0; }
.nc-problems__grid .nc-section__sub { margin-top: 1rem; }
.nc-problems__note {
	margin-top: 2rem;
	padding-left: 1rem;
	border-left: 3px solid var(--nc-amber);
	font-weight: 600;
	font-size: 1.0625rem;
	max-width: 26rem;
}
.nc-symptoms {
	list-style: none;
	margin: 0;
	padding: .35rem 0;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--nc-rule);
	border-radius: 10px;
	box-shadow: 0 1px 0 rgba(20, 34, 46, .03), 0 24px 48px -32px rgba(15, 58, 122, .35);
}
.nc-symptoms li {
	position: relative;
	margin: 0;
	padding: 1rem 1.5rem 1rem 3.1rem;
	font-size: 1.0625rem;
	line-height: 1.45;
}
.nc-symptoms li + li { border-top: 1px solid var(--nc-tint); }
.nc-symptoms li::before {
	content: "";
	position: absolute;
	left: 1.5rem;
	top: 1.42rem;
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--nc-amber);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--nc-amber) 16%, transparent);
}

/* ------------------------------------------------------------ services: five connected capabilities */
.nc-services-section {
	position: relative;
	isolation: isolate;
	background-color: var(--nc-navy);
	color: #B9C8DA;
}
.nc-services-section::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
	background-size: 40px 40px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
	mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.nc-services-section .nc-section__head > * { max-width: 60rem; }
.nc-services__title { color: var(--wp--preset--color--white); font-size: clamp(1.75rem, 1rem + 2.6vw, 3rem); max-width: 32ch; }
.nc-services-section .nc-section__sub { color: #B9C8DA; }

.nc-path {
	--node: 56px;
	--gap: 1.5rem;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: var(--gap);
}
.nc-path > * { margin: 0; }
.nc-step {
	position: relative;
	display: flex;
	flex-direction: column;
}
.nc-step > * { margin: 0; }
/* Link to the next node */
.nc-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: calc(var(--node) / 2 - 1px);
	left: var(--node);
	right: calc(var(--gap) * -1);
	height: 2px;
	background: linear-gradient(90deg, var(--nc-blue-light), rgba(70, 184, 236, .35));
}
.nc-step__node {
	display: grid;
	place-items: center;
	width: var(--node);
	height: var(--node);
	flex: none;
	border-radius: 50%;
	background: var(--nc-navy);
	border: 2px solid var(--nc-blue-light);
	color: var(--wp--preset--color--white);
}
.nc-step__node .nc-icon { width: 26px; height: 26px; }
.nc-step__verb {
	margin-top: 1.25rem;
	color: var(--nc-blue-light);
	font-weight: 700;
	font-stretch: 112%;
	font-size: 1.0625rem;
}
.nc-step__title {
	margin-top: .35rem;
	color: var(--wp--preset--color--white);
	font-size: 1.125rem;
	line-height: 1.25;
	font-stretch: 106%;
}
.nc-step__summary {
	margin-top: .65rem;
	margin-bottom: 1.25rem;
	font-size: .9375rem;
	line-height: 1.55;
}
.nc-step__outcome {
	margin-top: auto;
	padding: .85rem 1rem;
	background: rgba(255, 255, 255, .06);
	border-top: 2px solid var(--nc-blue-light);
	border-radius: 0 0 6px 6px;
	color: #E3EBF5;
	font-size: .875rem;
	line-height: 1.5;
}
.nc-step__outcome strong { display: block; color: var(--wp--preset--color--white); font-weight: 650; margin-bottom: .2rem; }
/* Align verb, title, summary and outcome across the five columns. */
@supports (grid-template-rows: subgrid) {
	@media (min-width: 1101px) {
		.nc-path { grid-template-rows: repeat(5, auto); row-gap: 0; }
		.nc-step { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
		.nc-step__outcome { margin-top: 0; }
	}
}
.nc-services__more { margin-top: var(--wp--preset--spacing--50); }

@media (max-width: 1100px) {
	.nc-path { grid-template-columns: 1fr; --gap: 2.25rem; max-width: 46rem; }
	.nc-step {
		display: grid;
		grid-template-columns: var(--node) minmax(0, 1fr);
		column-gap: 1.5rem;
		align-content: start;
	}
	.nc-step > * { grid-column: 2; }
	.nc-step > .nc-step__node { grid-column: 1; grid-row: 1 / span 4; align-self: start; }
	.nc-step__verb { margin-top: .2rem; }
	.nc-step__summary { margin-bottom: 1rem; }
	.nc-step:not(:last-child)::after {
		top: var(--node);
		bottom: calc(var(--gap) * -1);
		left: calc(var(--node) / 2 - 1px);
		right: auto;
		width: 2px;
		height: auto;
		background: linear-gradient(180deg, var(--nc-blue-light), rgba(70, 184, 236, .35));
	}
}
@media (max-width: 600px) {
	.nc-path { --node: 44px; }
	.nc-step { column-gap: 1rem; }
	.nc-step__node .nc-icon { width: 21px; height: 21px; }
}

/* ------------------------------------------------------------ audience: connected trunk + alongside diagram */
.nc-audience-section { background: var(--wp--preset--color--white); }
.nc-audience__grid { gap: clamp(2rem, 6vw, 5rem); }
.nc-audience__grid h2 { margin-top: 0; }
.nc-audience__grid .nc-section__sub { margin-top: 1rem; font-size: 1.125rem; max-width: 34rem; }
.nc-audience { list-style: none; padding: 0; margin: 2rem 0 0; }
.nc-audience li {
	position: relative;
	margin: 0;
	padding: .8rem 0 .8rem 2.25rem;
	font-size: 1.0625rem;
	line-height: 1.5;
}
.nc-audience li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.15rem;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2.5px solid var(--nc-blue);
	background: var(--wp--preset--color--white);
	z-index: 1;
}
.nc-audience li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: 5px;
	top: calc(1.15rem + 12px);
	bottom: -1.15rem;
	width: 2px;
	background: #BCD0E6;
}
.nc-audience strong { font-weight: 650; }

.nc-callout {
	background: var(--nc-paper);
	border: 1px solid var(--nc-rule);
	border-radius: 10px;
	padding: clamp(1.5rem, 3vw, 2.25rem);
}
.nc-callout > * { margin: 0; }
.nc-callout > * + * { margin-top: 1rem; }
.nc-callout__title { font-size: var(--wp--preset--font-size--large); }
.nc-callout__link a { font-weight: 600; }
.nc-alongside { display: block; width: 100%; max-width: 340px; height: auto; margin-bottom: .5rem; overflow: visible; }
.nc-alongside text { font-family: inherit; font-size: 12.5px; font-weight: 600; fill: var(--nc-soft); }
.nc-alongside__peer { stroke: var(--nc-rule); stroke-width: 2; stroke-dasharray: 3 6; stroke-linecap: round; }
.nc-alongside__link { stroke: var(--nc-blue); stroke-width: 3; stroke-linecap: round; opacity: .55; }
.nc-alongside__node { stroke: var(--nc-paper); stroke-width: 4; }
.nc-alongside__node--msp { fill: var(--nc-soft); }
.nc-alongside__node--netcon { fill: var(--nc-blue); }
.nc-alongside__node--net { fill: var(--wp--preset--color--white); stroke: var(--nc-blue-light); stroke-width: 5; }
@media (min-width: 782px) {
	.nc-audience__grid > .wp-block-column:last-child { padding-top: .5rem; }
}

/* ------------------------------------------------------------ why: tinted band, six linked points */
.nc-why-section { background: var(--nc-tint); }
.nc-why__head { gap: clamp(1.5rem, 6vw, 5rem); align-items: end; }
.nc-why__head h2 { margin: 0; }
.nc-why__head .nc-section__sub { margin: 0; font-size: 1.125rem; max-width: 40rem; }
.nc-why {
	list-style: none;
	padding: 0;
	margin: 2.5rem 0 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}
@media (max-width: 1000px) { .nc-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nc-why { grid-template-columns: 1fr; } }
.nc-why li {
	position: relative;
	margin: 0;
	padding: 1.2rem 1.25rem 1.2rem 3.4rem;
	background: var(--wp--preset--color--white);
	border: 1px solid #D5DFE9;
	border-radius: 8px;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.4;
}
.nc-why li::before {
	content: "";
	position: absolute;
	left: 1.15rem;
	top: 1.55rem;
	width: 22px;
	height: 12px;
	background: var(--nc-blue);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Ccircle cx='4' cy='6' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M7 6h8' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='18' cy='6' r='4' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Ccircle cx='4' cy='6' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3Cpath d='M7 6h8' stroke='%23000' stroke-width='2'/%3E%3Ccircle cx='18' cy='6' r='4' fill='%23000'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ------------------------------------------------------------ CTA */
.nc-cta {
	background: var(--nc-navy);
	color: #DCE6F2;
	padding-block: var(--nc-section);
	background-image:
		radial-gradient(circle at 88% 30%, rgba(70, 184, 236, .22) 0 1px, transparent 1.5px);
	background-size: 22px 22px;
}
.nc-cta__inner > * { max-width: 50rem; }
.nc-cta__title { color: var(--wp--preset--color--white); font-size: clamp(1.9rem, 1rem + 3vw, 3.25rem); margin: 0; }
.nc-cta__text { font-size: 1.125rem; max-width: 40rem; margin-top: 1.25rem; }
.nc-cta__actions { margin-top: 2rem; gap: .75rem; }
.nc-btn-light .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--nc-navy); }
.nc-btn-light .wp-block-button__link:hover { background: var(--nc-blue-light); color: var(--nc-ink); }
.nc-btn-ghost .wp-block-button__link { color: var(--wp--preset--color--white); border-color: rgba(255, 255, 255, .6); }
.wp-block-button.is-style-outline.nc-btn-ghost .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--nc-navy); border-color: var(--wp--preset--color--white); }

/* ------------------------------------------------------------ footer */
.nc-footer { padding-top: var(--wp--preset--spacing--60); padding-bottom: 2rem; font-size: var(--wp--preset--font-size--small); background: var(--nc-paper); }
.nc-footer__grid { gap: 2.5rem; }
.nc-footer__about { color: var(--nc-soft); max-width: 24rem; margin-top: 1.25rem; }
.nc-footer__heading { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin: 0 0 .75rem; }
.nc-footer__links { list-style: none; padding: 0; margin: 0; }
.nc-footer__links li { margin: 0; padding: .3rem 0; }
.nc-footer__links a { color: var(--nc-ink); text-decoration: none; }
.nc-footer__links a:hover { color: var(--nc-blue); text-decoration: underline; }
.nc-footer__base { margin-top: var(--wp--preset--spacing--50); padding-top: 1.25rem; border-top: 1px solid var(--nc-rule); color: var(--nc-soft); }
.nc-footer__base p { margin: 0; }

/* Mobile action bar */
.nc-actionbar { display: none; }
@media (max-width: 781px) {
	.nc-actionbar {
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: .5rem;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		padding: .6rem clamp(1rem, 4vw, 2.5rem) calc(.6rem + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--nc-paper) 94%, transparent);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		border-top: 1px solid var(--nc-rule);
	}
	.nc-actionbar a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 48px;
		border-radius: 4px;
		font-weight: 600;
		text-decoration: none;
	}
	.nc-actionbar__call { border: 1.5px solid var(--nc-ink); color: var(--nc-ink); }
	.nc-actionbar__enquire { background: var(--nc-ink); color: var(--nc-paper); }
	body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ------------------------------------------------------------ inner pages */
.nc-page { padding-bottom: var(--nc-section); }
.nc-page__head { padding-top: clamp(2rem, 6vw, 4.5rem); padding-bottom: 1rem; }
.nc-page__head h1 { font-size: clamp(2.25rem, 1.2rem + 3.5vw, 3.75rem); max-width: 18ch; }

/* ============================================================ inner pages (v1.2) */

/* Page hero */
.nc-page-hero {
	position: relative;
	isolation: isolate;
	padding-top: clamp(2.5rem, 7vw, 5.5rem);
	padding-bottom: clamp(2.75rem, 6vw, 4.75rem);
	border-bottom: 1px solid var(--nc-rule);
}
.nc-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(26, 93, 180, .07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(26, 93, 180, .07) 1px, transparent 1px);
	background-size: 32px 32px;
	-webkit-mask-image: radial-gradient(ellipse 60% 100% at 100% 30%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 100% at 100% 30%, #000 20%, transparent 75%);
}
.nc-page-hero__inner > *, .nc-page-hero__grid .wp-block-column > * { margin-block: 0; }
.nc-page-hero__title {
	font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.9rem);
	line-height: 1.04;
	max-width: 18ch;
}
.nc-page-hero .nc-lead { max-width: 42rem; }
.nc-page-hero .wp-block-group > .nc-lead, .nc-page-hero .wp-block-column > .nc-lead { margin-top: 1.5rem; }
.nc-page-hero .wp-block-group > .nc-page-hero__actions, .nc-page-hero .wp-block-column > .nc-page-hero__actions { margin-top: 2rem; }
.nc-page-hero__actions { gap: .75rem; }
.nc-page-hero .wp-block-group > .nc-hero-direct { margin-top: 1.5rem; font-weight: 600; font-size: 1.0625rem; }
.nc-hero-direct a { white-space: nowrap; }
.nc-page-hero--compact { padding-bottom: clamp(2rem, 4vw, 3rem); }
.nc-page-hero--compact .nc-page-hero__title { max-width: 22ch; }
.nc-page-hero--dark { background: var(--nc-ink); color: #C9D4DF; border-bottom: 0; }
.nc-page-hero--dark::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
}
.nc-page-hero--dark .nc-page-hero__title { color: var(--wp--preset--color--white); }
.nc-page-hero--dark .nc-lead { color: #C9D4DF; }
.nc-page-hero__grid { gap: clamp(2rem, 6vw, 5rem); align-items: center !important; }
.nc-alongside--hero { max-width: 420px; margin: 0 auto; }
.nc-page-hero--dark .nc-alongside text { fill: #C9D4DF; }
.nc-page-hero--dark .nc-alongside__node { stroke: var(--nc-ink); }
.nc-page-hero--dark .nc-alongside__node--msp { fill: #8A9AA8; }
.nc-page-hero--dark .nc-alongside__node--netcon { fill: var(--nc-blue-light); }
.nc-page-hero--dark .nc-alongside__node--net { fill: var(--nc-ink); stroke: var(--nc-blue-light); stroke-width: 5; }
.nc-page-hero--dark .nc-alongside__link { stroke: var(--nc-blue-light); }
.nc-page-hero--dark .nc-alongside__peer { stroke: #4B5D6B; }

/* Shared split layout and lists */
.nc-split { gap: clamp(2rem, 6vw, 5rem); }
.nc-split h2 { margin-top: 0; }
.nc-split .nc-section__sub { margin-top: 1rem; font-size: 1.125rem; }
.nc-list { list-style: none; padding: 0; margin: 0; }
.nc-list li { position: relative; margin: 0; padding: .45rem 0 .45rem 1.6rem; line-height: 1.5; }
.nc-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .95rem;
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	box-sizing: border-box;
}
.nc-list--amber li::before { background: var(--nc-amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--nc-amber) 16%, transparent); }
.nc-list--blue li::before { border: 2px solid var(--nc-blue); background: var(--wp--preset--color--white); width: .65rem; height: .65rem; top: .9rem; }
.nc-list--muted li { color: var(--nc-soft); }
.nc-list--muted li::before { border-radius: 1px; width: .7rem; height: 2px; top: 1.15rem; background: #9AA8B4; }
.nc-cta__alt { margin-top: 1.25rem; font-size: .95rem; color: #B9C8DA; }
.nc-cta__alt a { color: var(--wp--preset--color--white); }

/* Services: jump navigation */
.nc-jump {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	max-width: 50rem;
	margin-top: clamp(2.25rem, 5vw, 3.25rem);
}
.nc-jump a {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .65rem;
	color: var(--nc-ink);
	font-weight: 600;
	text-decoration: none;
}
.nc-jump a:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 21px;
	left: 44px;
	right: 0;
	height: 2px;
	background: #BCD0E6;
}
.nc-jump__node {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--nc-blue);
	background: var(--wp--preset--color--white);
	color: var(--nc-blue);
	transition: background .15s ease, color .15s ease;
}
.nc-jump__node .nc-icon { width: 21px; height: 21px; }
.nc-jump a:hover .nc-jump__node, .nc-jump a:focus-visible .nc-jump__node { background: var(--nc-blue); color: var(--wp--preset--color--white); }
.nc-jump__label { font-size: .95rem; }
@media (max-width: 600px) {
	.nc-jump a::after { top: 17px !important; left: 36px !important; }
	.nc-jump__node { width: 36px; height: 36px; }
	.nc-jump__node .nc-icon { width: 18px; height: 18px; }
	.nc-jump { column-gap: .35rem; }
	.nc-jump__label { font-size: .78rem; line-height: 1.25; overflow-wrap: anywhere; }
}

/* Services: detail sections joined by a vertical path */
.nc-svc { background: var(--wp--preset--color--white); padding-block: var(--nc-section); scroll-margin-top: calc(var(--nc-header-h) + .5rem); }
.nc-svc--alt { background: var(--nc-paper); }
.nc-svc__inner {
	--node: 64px;
	position: relative;
	display: grid;
	grid-template-columns: var(--node) minmax(0, 1fr);
	column-gap: clamp(1.25rem, 3vw, 2.5rem);
}
.nc-svc__inner > * { margin: 0 !important; }
.nc-svc__inner::before {
	content: "";
	position: absolute;
	left: calc(var(--node) / 2 - 1px);
	width: 2px;
	top: calc(var(--nc-section) * -1);
	bottom: calc(var(--nc-section) * -1);
	background: #BCD0E6;
}
.nc-svc--first .nc-svc__inner::before { top: calc(var(--node) / 2); }
.nc-svc--last .nc-svc__inner::before { bottom: auto; height: calc(var(--nc-section) + var(--node) / 2); }
.nc-svc__node {
	position: relative;
	display: grid;
	place-items: center;
	width: var(--node);
	height: var(--node);
	border-radius: 50%;
	border: 2px solid var(--nc-blue);
	background: var(--wp--preset--color--white);
	color: var(--nc-blue);
}
.nc-svc__node .nc-icon { width: 28px; height: 28px; }
.nc-svc__body > * { margin: 0; }
.nc-svc__verb { color: var(--nc-blue); font-weight: 700; font-stretch: 112%; font-size: 1.0625rem; padding-top: .35rem; }
.nc-svc__title { margin-top: .35rem !important; font-size: clamp(1.6rem, 1rem + 1.8vw, 2.4rem); }
.nc-svc__lead { margin-top: 1rem !important; font-size: var(--wp--preset--font-size--large); line-height: 1.5; color: var(--nc-soft); max-width: 48rem; }
.nc-svc__cols { margin-top: 2rem !important; gap: clamp(1.5rem, 4vw, 3rem); }
.nc-svc__label { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; margin: 0 0 .6rem; }
.nc-svc__receive {
	margin-top: 2rem !important;
	padding: 1.25rem 1.5rem;
	background: var(--nc-navy);
	border-left: 4px solid var(--nc-blue-light);
	border-radius: 0 8px 8px 0;
	color: #E3EBF5;
	max-width: 52rem;
}
.nc-svc__receive > * { margin: 0; }
.nc-svc__receive .nc-svc__label { color: var(--wp--preset--color--white); margin-bottom: .35rem; }
@media (max-width: 781px) {
	.nc-svc__inner { --node: 44px; column-gap: 1rem; }
	.nc-svc__node .nc-icon { width: 21px; height: 21px; }
	.nc-svc__verb { padding-top: .5rem; }
}

/* Services: scale of engagement */
.nc-scale-section { background: var(--nc-tint); }
.nc-scale { gap: 1rem; }
.nc-scale__item {
	height: 100%;
	padding: 1.5rem;
	background: var(--wp--preset--color--white);
	border: 1px solid #D5DFE9;
	border-radius: 8px;
}
.nc-scale__item > * { margin: 0; }
.nc-scale__item > * + * { margin-top: .6rem; }
.nc-scale__glyph { display: block; width: 64px; height: 40px; margin-bottom: .4rem; }
.nc-scale__glyph line { stroke: #9CB8D8; stroke-width: 2; }
.nc-scale__glyph circle { fill: var(--nc-blue); stroke: var(--wp--preset--color--white); stroke-width: 2; }
.nc-scale__title { font-size: 1.125rem; }
.nc-scale__item p { color: var(--nc-soft); font-size: .975rem; }

/* MSP: situation tiles */
.nc-tiles-section { background: var(--nc-paper); }
.nc-tiles {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
}
.nc-tiles li {
	margin: 0;
	padding: 1.35rem 1.25rem 1.4rem;
	background: var(--wp--preset--color--white);
	border: 1px solid #D5DFE9;
	border-top: 3px solid var(--nc-blue);
	border-radius: 4px 4px 8px 8px;
	color: var(--nc-soft);
	font-size: .95rem;
	line-height: 1.5;
}
.nc-tiles strong { display: block; margin-bottom: .45rem; color: var(--nc-ink); font-size: 1.0625rem; line-height: 1.3; font-weight: 650; }
@media (max-width: 1100px) { .nc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nc-tiles { grid-template-columns: 1fr; } }

/* MSP: scope boundary */
.nc-scope-section { background: var(--wp--preset--color--white); }
.nc-scope { gap: 1.25rem; }
.nc-scope__panel { height: 100%; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 10px; border: 1px solid var(--nc-rule); }
.nc-scope__panel > * { margin: 0; }
.nc-scope__panel h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.nc-scope__panel--do { border-top: 4px solid var(--nc-blue); }
.nc-scope__panel--dont { background: var(--nc-paper); border-top: 4px solid #9AA8B4; }

/* Ordered steps */
.nc-steps { list-style: none; padding: 0; margin: 0; counter-reset: nc-step; }
.nc-steps li { position: relative; margin: 0; counter-increment: nc-step; color: var(--nc-soft); line-height: 1.55; }
.nc-steps li::before {
	content: counter(nc-step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	box-sizing: border-box;
	border-radius: 6px;
	border: 1.5px solid #BCD0E6;
	background: var(--wp--preset--color--white);
	color: var(--nc-blue);
	font-weight: 700;
	font-stretch: 110%;
}
.nc-steps strong { display: block; color: var(--nc-ink); font-size: 1.125rem; font-weight: 650; margin-bottom: .25rem; }
.nc-steps--vertical li { padding: .15rem 0 1.75rem 3.5rem; }
.nc-steps--vertical li:last-child { padding-bottom: 0; }
.nc-steps--vertical li:not(:last-child)::after {
	content: "";
	position: absolute;
	left: calc(1.125rem - 1px);
	top: 2.6rem;
	bottom: .35rem;
	width: 2px;
	background: #BCD0E6;
}
.nc-steps--compact li { padding-bottom: 1.1rem; font-size: .95rem; }
.nc-steps--compact strong { display: inline; font-size: 1em; }
.nc-steps--compact li::before { width: 1.75rem; height: 1.75rem; font-size: .9rem; }
.nc-steps--compact li { padding-left: 2.75rem; }
.nc-steps--compact li:not(:last-child)::after { left: calc(.875rem - 1px); top: 2.1rem; }
.nc-process-section { background: var(--nc-tint); }

/* About */
.nc-about-section { background: var(--wp--preset--color--white); }
.nc-about__lead { font-size: var(--wp--preset--font-size--large); line-height: 1.5; font-weight: 500; margin-top: 0; }
.nc-split .wp-block-column > p { max-width: 40rem; }
.nc-approach-section {
	background-color: var(--nc-ink);
	color: #C9D4DF;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%23ffffff' stroke-opacity='.08' stroke-width='1.5'%3E%3Cpath d='M60 80 220 140 380 60 540 150M220 140 300 280 460 300 540 150M300 280 120 330M380 60 460 300'/%3E%3Cg fill='%2314222E'%3E%3Ccircle cx='60' cy='80' r='6'/%3E%3Ccircle cx='220' cy='140' r='8'/%3E%3Ccircle cx='380' cy='60' r='6'/%3E%3Ccircle cx='540' cy='150' r='7'/%3E%3Ccircle cx='300' cy='280' r='9'/%3E%3Ccircle cx='460' cy='300' r='6'/%3E%3Ccircle cx='120' cy='330' r='5'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left -120px bottom -90px;
	background-size: min(560px, 75vw) auto;
}
.nc-approach-section h2 { color: var(--wp--preset--color--white); }
.nc-approach-section .nc-section__sub { color: #C9D4DF; }
.nc-steps--dark li { color: #B9C8D6; }
.nc-steps--dark strong { color: var(--wp--preset--color--white); }
.nc-steps--dark li::before { background: rgba(70, 184, 236, .12); border-color: rgba(70, 184, 236, .45); color: var(--nc-blue-light); }
.nc-steps--dark li:not(:last-child)::after { background: rgba(70, 184, 236, .3); }
.nc-principles-section { background: var(--nc-paper); }
.nc-principles {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 2.5rem;
}
.nc-principles li { margin: 0; padding: 1.1rem 0 1.6rem; border-top: 2px solid var(--nc-ink); color: var(--nc-soft); line-height: 1.5; }
.nc-principles strong { display: block; color: var(--nc-ink); font-size: 1.125rem; font-weight: 650; margin-bottom: .35rem; }
@media (max-width: 1000px) { .nc-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .nc-principles { grid-template-columns: 1fr; } }

/* Contact */
.nc-contact-section { background: var(--nc-paper); padding-top: clamp(2rem, 5vw, 3.5rem); }
.nc-contact { gap: clamp(1.5rem, 4vw, 3rem); }
.nc-contact > .wp-block-column > * + * { margin-top: 1.25rem; }
.nc-form-panel {
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	background: var(--wp--preset--color--white);
	border: 1px solid var(--nc-rule);
	border-radius: 10px;
	box-shadow: 0 24px 48px -36px rgba(15, 58, 122, .35);
}
.nc-form-panel > * { margin: 0; }
.nc-form-panel__title { font-size: 1.375rem; margin-bottom: 1.5rem !important; }
.nc-direct {
	padding: clamp(1.5rem, 3vw, 2rem);
	background: var(--nc-navy);
	border-radius: 10px;
	color: #DCE6F2;
}
.nc-direct > * { margin: 0; }
.nc-direct__title { color: var(--wp--preset--color--white); font-size: 1.25rem; margin-bottom: 1.25rem !important; }
.nc-direct__rows { display: grid; gap: .25rem; }
.nc-direct__row {
	display: grid;
	grid-template-columns: 2.5rem 1fr;
	gap: .85rem;
	align-items: center;
	padding: .65rem 0;
	color: var(--wp--preset--color--white);
	text-decoration: none;
}
.nc-direct__row + .nc-direct__row { border-top: 1px solid rgba(255, 255, 255, .12); }
.nc-direct__icon {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 1.5px solid var(--nc-blue-light);
	color: var(--nc-blue-light);
}
.nc-direct__icon .nc-icon { width: 19px; height: 19px; }
.nc-direct__label { display: block; font-size: .8rem; color: #A9BBD0; }
.nc-direct__value { display: block; font-size: 1.125rem; font-weight: 650; font-stretch: 106%; overflow-wrap: anywhere; }
.nc-direct__value--small { font-size: .95rem; font-weight: 500; font-stretch: 100%; line-height: 1.45; }
a.nc-direct__row:hover .nc-direct__value { text-decoration: underline; }
.nc-next { padding: 1.5rem 0 0; }
.nc-next > * { margin: 0; }
.nc-next__title { font-size: 1.0625rem; font-stretch: 100%; margin-bottom: 1rem !important; }

/* Enquiry form */
.nc-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem 1.25rem; }
.nc-field { margin: 0; min-width: 0; }
.nc-field--full { grid-column: 1 / -1; }
fieldset.nc-field { border: 0; padding: 0; }
.nc-field label, .nc-field legend { display: block; margin-bottom: .4rem; padding: 0; font-weight: 600; font-size: .95rem; color: var(--nc-ink); }
.nc-field__optional { font-weight: 400; color: var(--nc-soft); }
.nc-field__hint { margin: -.15rem 0 .5rem; font-size: .875rem; color: var(--nc-soft); }
.nc-form input[type="text"], .nc-form input[type="email"], .nc-form input[type="tel"], .nc-form select, .nc-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: .75rem .85rem;
	border: 1px solid #B3C1CF;
	border-radius: 6px;
	background: var(--wp--preset--color--white);
	color: var(--nc-ink);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}
.nc-form textarea { min-height: 9.5rem; resize: vertical; }
.nc-form select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2.5rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2346565D' stroke-width='1.6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .9rem center;
	background-size: 12px 8px;
}
.nc-form input:focus, .nc-form select:focus, .nc-form textarea:focus { outline: 3px solid rgba(70, 184, 236, .45); outline-offset: 0; border-color: var(--nc-blue); }
.nc-field--error input, .nc-field--error select, .nc-field--error textarea { border-color: #B42318; }
.nc-field__error { margin: .4rem 0 0; color: #B42318; font-size: .875rem; font-weight: 500; }
.nc-choice { display: flex; flex-wrap: wrap; gap: .6rem; }
.nc-field .nc-choice__opt {
	display: inline-flex !important;
	align-items: center;
	gap: .5rem;
	margin: 0 !important;
	padding: .55rem 1rem;
	border: 1px solid #B3C1CF;
	border-radius: 999px;
	font-weight: 500 !important;
	cursor: pointer;
}
.nc-field .nc-choice__opt:has(input:checked) { border-color: var(--nc-blue); background: #EEF4FB; }
.nc-choice__opt input { accent-color: var(--nc-blue); width: 1rem; height: 1rem; margin: 0; }
.nc-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nc-form__submit {
	margin-top: 1.5rem;
	padding: .95rem 1.75rem;
	border: 0;
	border-radius: 4px;
	background: var(--nc-ink);
	color: var(--nc-paper);
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
}
.nc-form__submit:hover { background: var(--nc-blue); color: var(--wp--preset--color--white); }
.nc-form-status { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: 8px; }
.nc-form-status p { margin: 0; }
.nc-form-status p + p { margin-top: .4rem; }
.nc-form-status__title { font-weight: 650; font-size: 1.0625rem; }
.nc-form-status:focus { outline: none; }
.nc-form-status--sent { background: #EEF4FB; border: 1px solid #B9D0EA; border-left: 4px solid var(--nc-blue); }
.nc-form-status--error { background: #FDF3F2; border: 1px solid #F1C4BF; border-left: 4px solid #B42318; color: #7A1A12; }
@media (max-width: 600px) {
	.nc-form__grid { grid-template-columns: 1fr; }
}

/* Responsive stacking for two-column inner layouts */
@media (max-width: 1000px) {
	.nc-contact.wp-block-columns, .nc-page-hero__grid.wp-block-columns { flex-wrap: wrap !important; }
	.nc-contact.wp-block-columns > .wp-block-column, .nc-page-hero__grid.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
	.nc-alongside--hero { margin: 0; max-width: 360px; }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
