/* ==========================================================================
   Cloud-Nova — design system v3
   --------------------------------------------------------------------------
   No CSS framework. Tokens first, then layout, then components.

   The page is built from alternating bands: dark, full-bleed sections carry
   the hero, the statement breaks and the footer; light sections carry the
   reading content. Dark bands keep their own fixed palette in both themes,
   so the composition holds whichever theme is on.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
	color-scheme: light;

	/* Brand. #2E907F is the mark colour; it only reaches 3.9:1 on white, so
	   body-size text uses --brand-ink and the pure tone is kept for fills,
	   borders and large display type. */
	--brand:        #2E907F;
	--brand-ink:    #1C6F60;
	--brand-strong: #175B4F;
	--brand-lift:   #4FC3AB;
	--brand-soft:   rgba(46, 144, 127, .10);
	--brand-softer: rgba(46, 144, 127, .05);
	/* Both stops carry white text: 7.9:1 at the dark end, 4.8:1 at the light
	   end. A brighter light stop drops under AA. */
	--brand-grad:   linear-gradient(135deg, #175B4F 0%, #24806A 100%);

	/* Fixed dark palette, used by dark bands in both themes. */
	--d-900: #05120F;
	--d-800: #081A16;
	--d-700: #0C241E;
	--d-600: #113128;
	--d-line: rgba(140, 220, 203, .16);
	--d-ink:  #EAF4F1;
	--d-ink-2: #A9C6BF;
	/* 4.8:1 on the lightest part of the dark gradients. */
	--d-ink-3: #93B3AB;

	--bg:        #FFFFFF;
	--bg-sub:    #F4F8F7;
	--bg-raise:  #FFFFFF;

	--ink:    #0D1917;
	--ink-2:  #495956;
	--ink-3:  #5F6F6C;
	--ink-on-brand: #FFFFFF;

	--line:        #E2EAE8;
	--line-strong: #C9D7D4;

	--shadow-sm: 0 1px 2px rgba(13, 25, 23, .05);
	--shadow-md: 0 10px 30px -14px rgba(13, 25, 23, .22);
	--shadow-lg: 0 30px 70px -32px rgba(13, 25, 23, .34);
	--shadow-dark: 0 30px 70px -30px rgba(0, 0, 0, .7);

	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

	--step--1: clamp(.82rem, .80rem + .10vw, .88rem);
	--step-0:  clamp(1rem, .97rem + .14vw, 1.0625rem);
	--step-1:  clamp(1.13rem, 1.08rem + .24vw, 1.28rem);
	--step-2:  clamp(1.33rem, 1.24rem + .45vw, 1.62rem);
	--step-3:  clamp(1.57rem, 1.42rem + .76vw, 2.07rem);
	--step-4:  clamp(1.86rem, 1.62rem + 1.2vw, 2.64rem);
	--step-5:  clamp(2.05rem, 1.72rem + 1.65vw, 3.1rem);
	--step-6:  clamp(2.4rem, 1.95rem + 2.25vw, 3.9rem);

	--sp-1: .25rem;
	--sp-2: .5rem;
	--sp-3: .75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: 4rem;
	--sp-9: 6rem;
	/* The site's rhythm. Every band takes its top and bottom padding from this,
	   so the gap between any two sections is the same wherever you are. */
	--section-y: clamp(2.5rem, 1.75rem + 2vw, 3.75rem);

	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 16px;
	--radius-xl: 22px;

	--wrap:       1200px;
	--wrap-tight: 760px;
	--gutter:     clamp(1.25rem, .9rem + 1.7vw, 2.5rem);

	--header-h: 78px;

	--ease: cubic-bezier(.22, .68, .32, 1);
	--dur:  .28s;
}

html[data-theme='dark'] {
	color-scheme: dark;

	--brand:        #3FB09A;
	--brand-ink:    #4FC3AB;
	--brand-strong: #6BD4BE;
	--brand-soft:   rgba(63, 176, 154, .14);
	--brand-softer: rgba(63, 176, 154, .07);

	/* The page ground drops well below the bands. The dark bands were designed
	   to interrupt a white page; on a dark page a dark band is nothing at all.
	   Measured end to end, every surface on this page used to sit within 0.6%
	   luminance of every other, so the whole thing read as one flat wash and
	   the section rhythm that carries light mode simply vanished. */
	--bg:        #03100C;
	--bg-sub:    #0D241D;
	--bg-raise:  #143931;

	/* In dark mode the fixed band palette inverts its role: the bands sit
	   above the ground as raised panels rather than below it as holes. */
	--d-900: #0B2019;
	--d-800: #112A22;
	--d-700: #17352C;
	--d-600: #1E4238;

	--ink:    #EAF4F1;
	--ink-2:  #A9C6BF;
	--ink-3:  #86A49C;
	--ink-on-brand: #04120D;

	--line:        rgba(234, 244, 241, .11);
	--line-strong: rgba(234, 244, 241, .22);

	--shadow-sm: none;
	--shadow-md: 0 10px 30px -14px rgba(0, 0, 0, .7);
	--shadow-lg: 0 30px 70px -32px rgba(0, 0, 0, .8);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.65;
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--sp-4);
	color: inherit;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.028em;
	text-wrap: balance;
}
h1 { font-size: var(--step-6); letter-spacing: -.038em; }
h2 { font-size: var(--step-5); letter-spacing: -.032em; }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }
h5 { font-size: var(--step-1); }
h6 { font-size: var(--step-0); }

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-strong); }

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

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.2em; }
li + li { margin-top: .35em; }

hr { height: 1px; border: 0; background: var(--line); margin: var(--sp-7) 0; }

blockquote {
	margin: var(--sp-6) 0;
	padding: var(--sp-2) 0 var(--sp-2) var(--sp-5);
	border-left: 2px solid var(--brand);
	color: var(--ink-2);
	font-size: var(--step-1);
}

code, kbd, pre, samp { font-family: var(--font-mono); font-size: .92em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }

:focus-visible {
	outline: 2px solid var(--brand-ink);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}
.cn-band :focus-visible { outline-color: var(--brand-lift); }

.cn-skip {
	position: absolute;
	left: var(--sp-4);
	top: -100px;
	z-index: 200;
	padding: .7rem 1.1rem;
	background: var(--brand-ink);
	color: #fff;
	border-radius: var(--radius);
	font-weight: 600;
	text-decoration: none;
	transition: top var(--dur) var(--ease);
}
.cn-skip:focus { top: var(--sp-4); color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.cn-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.cn-wrap--tight { max-width: var(--wrap-tight); }

.cn-section { padding-block: var(--section-y); position: relative; }
.cn-section--sub { background: var(--bg-sub); }
.cn-section--line { border-top: 1px solid var(--line); }
.cn-section--tight { padding-block: calc(var(--section-y) * .6); }

/* A dark band keeps its palette in both themes. */
.cn-band {
	position: relative;
	overflow: hidden;
	background: var(--d-900);
	color: var(--d-ink);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--ink-3: var(--d-ink-3);
	--line: var(--d-line);
	--line-strong: rgba(140, 220, 203, .3);
	--brand-ink: var(--brand-lift);
	--brand-strong: #7FE0C8;
	--bg-raise: var(--d-700);
	--bg-sub: var(--d-800);
	--brand-soft: rgba(79, 195, 171, .12);
	--brand-softer: rgba(79, 195, 171, .06);
}
.cn-band--raised { background: var(--d-800); }
.cn-band > * { position: relative; z-index: 2; }

/* Texture shared by the dark bands: a faint engineering grid plus a soft
   teal glow, both drawn rather than loaded. */
.cn-band__grid {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(140, 220, 203, .06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(140, 220, 203, .06) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 0%, transparent 72%);
	pointer-events: none;
}
/* No filter: blur() here. A blurred element this large is repainted on every
   scroll frame and was the main source of scroll jank; the radial gradient is
   already soft enough on its own. */
.cn-band__glow {
	position: absolute;
	z-index: 0;
	width: 62rem;
	height: 62rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(46, 144, 127, .3) 0%, rgba(46, 144, 127, .12) 42%, rgba(46, 144, 127, 0) 70%);
	pointer-events: none;
	will-change: transform;
}
.cn-band__glow--tr { top: -34rem; right: -22rem; }
.cn-band__glow--bl { bottom: -40rem; left: -26rem; opacity: .7; }

.cn-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 640px)  { .cn-grid--2, .cn-grid--3, .cn-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .cn-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cn-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   4. Section headers
   -------------------------------------------------------------------------- */
.cn-eyebrow {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin: 0 0 var(--sp-4);
	font-family: var(--font-mono);
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand-ink);
}
.cn-eyebrow::before {
	content: '';
	width: 30px;
	height: 2px;
	background: currentColor;
	flex: none;
	opacity: .65;
	border-radius: 2px;
}
.cn-eyebrow__num { opacity: .6; font-variant-numeric: tabular-nums; }

.cn-shead { max-width: 60ch; margin-bottom: var(--sp-6); }
.cn-shead:last-child { margin-bottom: 0; }
.cn-shead--center { margin-inline: auto; text-align: center; }
.cn-shead--center .cn-eyebrow { justify-content: center; }
.cn-shead__lede {
	margin-top: var(--sp-4);
	font-size: var(--step-1);
	color: var(--ink-2);
	line-height: 1.6;
}

.cn-ticked { position: relative; }
.cn-ticked::before,
.cn-ticked::after {
	content: '';
	position: absolute;
	width: 10px;
	height: 10px;
	border: 1px solid var(--brand);
	opacity: .55;
	pointer-events: none;
}
.cn-ticked::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cn-ticked::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.cn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .55rem;
	padding: .85rem 1.6rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	font-size: var(--step-0);
	font-weight: 650;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
	            color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cn-btn svg { width: 1.05em; height: 1.05em; flex: none; }
.cn-btn:active { transform: translateY(1px); }

.cn-btn--primary {
	background: var(--brand-grad);
	color: #FFFFFF;
	border-color: transparent;
	box-shadow: 0 10px 26px -12px rgba(28, 111, 96, .75);
}
.cn-btn--primary:hover {
	color: #FFFFFF;
	box-shadow: 0 14px 34px -12px rgba(28, 111, 96, .9);
	transform: translateY(-2px);
}

.cn-btn--ghost {
	background: transparent;
	color: var(--ink);
	border-color: var(--line-strong);
}
.cn-btn--ghost:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-softer); }

.cn-btn--light {
	background: #FFFFFF;
	color: #0D1917;
	border-color: #FFFFFF;
}
.cn-btn--light:hover { background: #E9F4F1; border-color: #E9F4F1; color: #0D1917; transform: translateY(-2px); }

.cn-btn--sm { padding: .55rem 1.05rem; font-size: var(--step--1); }

.cn-link {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	gap: .45rem;
	font-weight: 650;
	text-decoration: none;
	color: var(--brand-ink);
}
.cn-link svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease); }
.cn-link:hover svg { transform: translateX(4px); }
/* A card's own link reaches across the card's footer, so the whole row takes
   the click. Only inside a card: this used to be on every .cn-link, and a
   link standing on its own then stretched over its entire section. "All
   services in detail" lay on top of every service tile, so each tile's
   "Learn more" opened the services page instead of its own service, and the
   same blanket covered the About page's last section and both single pages. */
.cn-tile__foot .cn-link::after,
.cn-project__foot .cn-link::after { content: ''; position: absolute; inset: 0; }

.cn-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   6. Header
   --------------------------------------------------------------------------
   Sits transparent over the dark band at the top of every page, and turns
   solid once the page scrolls.
   -------------------------------------------------------------------------- */
.cn-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
	            backdrop-filter var(--dur) var(--ease);
	/* While transparent the header sits on the dark hero. */
	--hdr-ink: rgba(234, 244, 241, .82);
	--hdr-ink-strong: #FFFFFF;
	--hdr-line: rgba(234, 244, 241, .22);
}
.cn-header.is-stuck {
	background: color-mix(in srgb, var(--bg) 90%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom-color: var(--line);
	--hdr-ink: var(--ink-2);
	--hdr-ink-strong: var(--ink);
	--hdr-line: var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
	.cn-header.is-stuck { background: var(--bg); }
}

.cn-header__inner {
	display: flex;
	align-items: center;
	gap: var(--sp-5);
	min-height: var(--header-h);
}

body { padding-top: 0; }

.cn-brand {
	display: inline-flex;
	align-items: center;
	gap: .7rem;
	text-decoration: none;
	color: var(--hdr-ink-strong);
	flex: none;
}
.cn-brand__mark { width: auto; height: 40px; flex: none; }
.cn-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.cn-brand__name { font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
.cn-brand__sub {
	font-family: var(--font-mono);
	font-size: .65rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	opacity: .62;
}
.cn-brand img.cn-brand__custom { height: 42px; width: auto; }

/* The footer brand sits on a dark band and keeps the dark palette. */
.cn-footer .cn-brand { color: var(--d-ink); }

.cn-nav { margin-left: auto; }
.cn-nav__list {
	display: flex;
	align-items: center;
	gap: .1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.cn-nav__list li { margin: 0; }
.cn-nav__list a {
	position: relative;
	display: block;
	padding: .55rem .85rem;
	border-radius: var(--radius);
	color: var(--hdr-ink);
	font-size: .95rem;
	font-weight: 600;
	text-decoration: none;
	transition: color var(--dur) var(--ease);
}
.cn-nav__list a:hover { color: var(--hdr-ink-strong); }
.cn-nav__list a::after {
	content: '';
	position: absolute;
	left: .85rem;
	right: .85rem;
	bottom: .3rem;
	height: 2px;
	border-radius: 2px;
	background: var(--brand-lift);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dur) var(--ease);
}
.cn-header.is-stuck .cn-nav__list a::after { background: var(--brand); }
.cn-nav__list a:hover::after { transform: scaleX(1); }
.cn-nav__list .current-menu-item > a,
.cn-nav__list .current_page_item > a,
.cn-nav__list a[aria-current='page'] { color: var(--hdr-ink-strong); }
.cn-nav__list .current-menu-item > a::after,
.cn-nav__list .current_page_item > a::after,
.cn-nav__list a[aria-current='page']::after { transform: scaleX(1); }

.cn-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + .4rem);
	left: 0;
	min-width: 230px;
	margin: 0;
	padding: .4rem;
	list-style: none;
	background: var(--bg-raise);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.cn-nav__list > li { position: relative; }
.cn-nav__list > li:hover > .sub-menu,
.cn-nav__list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cn-nav__list .sub-menu a { color: var(--ink-2); }
.cn-nav__list .sub-menu a:hover { color: var(--ink); }
.cn-nav__list .sub-menu a::after { display: none; }

.cn-header__actions { display: flex; align-items: center; gap: .5rem; flex: none; }

.cn-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--hdr-line);
	border-radius: var(--radius);
	color: var(--hdr-ink);
	cursor: pointer;
	transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.cn-iconbtn:hover { color: var(--hdr-ink-strong); border-color: var(--brand); background: rgba(46, 144, 127, .12); }
.cn-iconbtn svg { width: 19px; height: 19px; }

.cn-themetoggle .cn-ico-sun { display: none; }
html[data-theme='dark'] .cn-themetoggle .cn-ico-sun { display: block; }
html[data-theme='dark'] .cn-themetoggle .cn-ico-moon { display: none; }


.cn-burger { display: none; }

/* --------------------------------------------------------------------------
   6b. The menu on narrow screens
   --------------------------------------------------------------------------
   A real <dialog> opened with showModal(), which the browser paints in the top
   layer — above every stacking context on the page at once.

   It has to be. The panel before this was a fixed-position child of the
   header, and the header gains a backdrop-filter when it turns solid on
   scroll. A backdrop-filter makes an element the containing block for its
   fixed descendants, so "inset: header-height 0 0" stopped meaning "the window
   below the header" and started meaning "the header's own box", which is
   seventy pixels tall. The menu collapsed to a sliver and the section behind
   it showed through. Measured at 766px tall at the top of the page and 89px
   once scrolled, on every page.

   Nothing here may use position:fixed for that reason. The top layer needs no
   z-index and cannot be reached by a parallax layer, a transform or a filter.
   -------------------------------------------------------------------------- */
.cn-menu {
	/* position and z-index are for the fallback below: a dialog opened with
	   showModal() is in the top layer and neither applies to it. This element
	   is a child of <body>, never of the header, so no backdrop-filter can
	   capture it the way one captured the panel before it. */
	position: fixed;
	inset: 0;
	z-index: 300;
	border: 0;
	padding: 0;
	margin: 0;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	background: transparent;
	overflow: hidden;
	color: var(--d-ink);
}
.cn-menu::backdrop {
	background: rgba(3, 10, 9, .72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.cn-menu__panel {
	position: absolute;
	inset-block-start: calc(var(--header-h) + var(--sp-3));
	inset-inline: var(--gutter);
	max-height: calc(100% - var(--header-h) - var(--sp-6));
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: var(--sp-4) var(--sp-5) var(--sp-5);
	background: linear-gradient(180deg, var(--d-800) 0%, var(--d-900) 100%);
	/* A touch brighter than --d-line. In dark theme the page behind the dim
	   is already near-black, and the card has to read as a surface lifted off
	   it rather than a slightly different shade of the same dark. */
	border: 1px solid rgba(140, 220, 203, .24);
	border-radius: calc(var(--radius) * 1.6);
	box-shadow: var(--shadow-dark);
}
/* Past phone width the card stops growing and sits against the side the
   burger is on, so the links stay a short reach from the thumb instead of
   stretching the width of a tablet. */
@media (min-width: 560px) {
	.cn-menu__panel {
		inset-inline: auto var(--gutter);
		width: min(420px, calc(100% - var(--gutter) * 2));
	}
}

.cn-menu__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-3);
	padding-bottom: var(--sp-3);
	border-bottom: 1px solid var(--d-line);
}
.cn-menu__eyebrow {
	font-family: var(--font-mono);
	font-size: .65rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--d-ink-3);
}
.cn-menu__close { color: var(--d-ink); }
.cn-menu__close:hover { color: #FFFFFF; background: rgba(234, 244, 241, .08); }

.cn-menu__list {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Counts the links, so each one carries its own number down the side the
	   way the numbered eyebrows do everywhere else on the site. */
	counter-reset: cn-menu-item;
}
.cn-menu__list > li + li { border-top: 1px solid var(--d-line); }
.cn-menu__list a {
	display: flex;
	align-items: baseline;
	gap: var(--sp-3);
	padding: 1rem .15rem;
	font-size: var(--step-2);
	font-weight: 650;
	letter-spacing: -.01em;
	color: var(--d-ink);
	text-decoration: none;
	transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cn-menu__list > li > a::before {
	counter-increment: cn-menu-item;
	content: counter(cn-menu-item, decimal-leading-zero);
	font-family: var(--font-mono);
	font-size: .65rem;
	font-weight: 500;
	letter-spacing: .14em;
	color: var(--brand-lift);
	opacity: .75;
	flex: none;
}
.cn-menu__list a:hover,
.cn-menu__list a:focus-visible { color: #FFFFFF; }
.cn-menu__list a[aria-current='page'],
.cn-menu__list .current-menu-item > a,
.cn-menu__list .current_page_item > a { color: var(--brand-lift); }

.cn-menu__list .sub-menu {
	list-style: none;
	margin: 0 0 .6rem;
	padding: 0 0 0 2.1rem;
}
.cn-menu__list .sub-menu a {
	font-size: var(--step-0);
	font-weight: 600;
	padding: .45rem .15rem;
	color: var(--d-ink-2);
}
.cn-menu__list .sub-menu > li > a::before { content: none; }

/* Opening: the dim settles first and the card comes up under it. Closing is
   the same in reverse, driven from the script so the dialog is not taken off
   the page before anyone has seen it go. */
.cn-menu[open] { animation: cn-menu-in var(--dur) var(--ease); }
.cn-menu[open]::backdrop { animation: cn-menu-fade .26s var(--ease); }
.cn-menu[open] .cn-menu__panel { animation: cn-menu-rise .32s var(--ease); }
.cn-menu.is-closing { animation: cn-menu-fade .18s var(--ease) reverse; }
.cn-menu.is-closing::backdrop { animation: cn-menu-fade .18s var(--ease) reverse; }

@keyframes cn-menu-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes cn-menu-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cn-menu-rise {
	from { opacity: 0; transform: translateY(-10px) scale(.985); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.cn-menu[open],
	.cn-menu[open]::backdrop,
	.cn-menu[open] .cn-menu__panel,
	.cn-menu.is-closing,
	.cn-menu.is-closing::backdrop { animation: none; }
}

/* Nothing behind the dialog scrolls while it is open. showModal() already
   stops the page responding to a click, but iOS will still scroll it. */
body.cn-nav-open { overflow: hidden; }

/* Wide screens keep the bar and never build the dialog. */
@media (min-width: 1040px) {
	.cn-menu { display: none; }
}

@media (max-width: 1039px) {
	.cn-burger { display: inline-flex; }

	/* The links live in the dialog at this width. The bar keeps its markup so
	   that widening the window needs no script to put it back. */
	.cn-nav { display: none; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.cn-hero {
	/* The hero line. It used to share --step-6 with every section heading,
	   which left the biggest type on the page only 1.24x the second biggest,
	   so nothing read as the opening statement. It follows the window's height
	   as well as its width, because on a laptop that is what runs out first:
	   sized by width alone it took the whole window and left the words and
	   the buttons below the fold. */
	--hero-h1: clamp(2.61rem, min(1.76rem + 4.18vw, 10.2vh), 5.22rem);
	--hero-gap: clamp(.7rem, 2.1vh, 1.25rem);
	padding-top: calc(var(--header-h) + clamp(2.5rem, 1.4rem + 4vw, 5rem));
	padding-bottom: var(--section-y);
	background: #04100D;
}
/* Wide enough for the mark beside the words. The space follows the window's
   height, so it all lands in the window on a laptop. The hero is only as tall as
   what is in it: stretched to fill the window, it left a void of 280px between
   the buttons and the next section, and this band and the next are both dark, so
   nothing broke that void up. */
@media (min-width: 1100px) {
	.cn-hero {
		padding-top: calc(var(--header-h) + clamp(2rem, 8vh, 5rem));
		padding-bottom: clamp(2rem, 6vh, 3.5rem);
	}
}

/* The banner sits behind everything, with a scrim weighted to the left so
   the headline keeps its contrast over the busiest part of the artwork. */
.cn-hero__media,
.cn-pagehero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}
.cn-hero__media img,
.cn-pagehero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center right;
}
.cn-hero__media::after,
.cn-pagehero__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(96deg, rgba(4, 16, 13, .97) 0%, rgba(4, 16, 13, .95) 46%, rgba(4, 16, 13, .84) 72%, rgba(4, 16, 13, .5) 100%),
		linear-gradient(to top, rgba(4, 16, 13, .82) 0%, rgba(4, 16, 13, 0) 38%);
}
@media (max-width: 899px) {
	/* On a phone the text runs the full width, so the scrim has to as well. */
	.cn-hero__media::after,
	.cn-pagehero__media::after {
		background: linear-gradient(180deg, rgba(4, 16, 13, .94) 0%, rgba(4, 16, 13, .97) 100%);
	}
}

.cn-hero__inner {
	display: grid;
	gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
	align-items: center;
}
/* The headline keeps the bulk of the width; the mark takes what is left,
   which was empty. Below 1100px the mark is hidden and the text runs full
   width, so the headline never gets squeezed. */
@media (min-width: 1100px) {
	.cn-hero__inner {
		grid-template-columns: minmax(0, 1.3fr) minmax(0, .52fr);
		align-items: start;
	}
	.cn-hero .cn-eyebrow { margin-bottom: var(--hero-gap); }
}

/* A measure, so the headline breaks into even lines instead of leaving a
   single orphaned word on the first one. */
.cn-hero h1 {
	margin-bottom: var(--hero-gap);
	color: #FFFFFF;
	max-width: 17ch;
	font-size: var(--hero-h1);
	line-height: 1.02;
	letter-spacing: -.045em;
}
/* Solid first, so a browser without background-clip:text still shows the
   word. Both gradient stops clear 8.6:1 on the hero background. */
.cn-hero__rotator {
	color: var(--brand-lift);
	white-space: nowrap;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.cn-hero__rotator {
		background: linear-gradient(100deg, #4FC3AB 0%, #8BE3CE 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
	}
}
.cn-hero__caret {
	display: inline-block;
	width: 3px;
	height: .86em;
	margin-left: .08em;
	vertical-align: -.06em;
	background: var(--brand-lift);
	animation: cn-blink 1.05s steps(1) infinite;
}
@keyframes cn-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

.cn-hero__lede {
	max-width: 46ch;
	margin-bottom: var(--sp-6);
	font-size: var(--step-1);
	color: #D3E6E1;
}
.cn-hero__kicker { font-size: var(--step-1); font-weight: 650; color: #FFFFFF; margin-bottom: var(--sp-4); }

/* Beside the mark, the words and the space between them follow the window's
   height too, so all of it lands in the window on a laptop and still breathes
   on a monitor. */
@media (min-width: 1100px) {
	.cn-hero h1 { margin-bottom: calc(var(--hero-gap) * 1.25); }
	.cn-hero__kicker {
		margin-bottom: calc(var(--hero-gap) * .75);
		font-size: clamp(1.06rem, 2.9vh, 1.28rem);
		line-height: 1.4;
	}
	.cn-hero__lede {
		max-width: 60ch;
		margin-bottom: calc(var(--hero-gap) * 1.6);
		font-size: clamp(1.06rem, 2.9vh, 1.28rem);
		line-height: 1.6;
	}
}

/* --------------------------------------------------------------------------
   7b. The hero's 3D element
   --------------------------------------------------------------------------
   The canvas is an enhancement: until hero3d.js reports ready the panel is
   simply empty space, and on a narrow screen it is not rendered at all.
   -------------------------------------------------------------------------- */
.cn-hero3d {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 34rem;
	opacity: 0;
	transition: opacity .9s var(--ease) .15s;
}
.cn-hero3d.is-ready { opacity: 1; }
.cn-hero3d canvas { width: 100% !important; height: 100% !important; display: block; }

/* A soft bloom behind the cluster so it sits in the band rather than on it. */
.cn-hero3d::before {
	content: '';
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(79, 195, 171, .22) 0%, rgba(79, 195, 171, 0) 68%);
	pointer-events: none;
}

@media (max-width: 999px) {
	.cn-hero3d { max-height: 24rem; }
}

/* The product panel: a real screenshot in a browser frame. */
.cn-shot {
	position: relative;
	border-radius: var(--radius-lg);
	background: var(--d-700);
	border: 1px solid var(--d-line);
	box-shadow: var(--shadow-dark);
	overflow: hidden;
}
.cn-shot__bar {
	display: flex;
	align-items: center;
	gap: .4rem;
	padding: .7rem .9rem;
	border-bottom: 1px solid var(--d-line);
	background: rgba(255, 255, 255, .03);
}
.cn-shot__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(234, 244, 241, .22); flex: none; }
.cn-shot__dot:first-child { background: rgba(79, 195, 171, .8); }
.cn-shot__url {
	margin-left: .5rem;
	font-family: var(--font-mono);
	font-size: .68rem;
	letter-spacing: .06em;
	color: var(--d-ink-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.cn-shot img { width: 100%; display: block; }
.cn-shot__cap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	padding: .85rem 1rem;
	border-top: 1px solid var(--d-line);
	font-size: var(--step--1);
	color: var(--d-ink-2);
}

/* --------------------------------------------------------------------------
   8. Pillars strip (dark band under the hero)
   -------------------------------------------------------------------------- */
.cn-pillars { display: grid; gap: var(--sp-6); align-items: start; }
@media (min-width: 900px) { .cn-pillars { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

.cn-pillar-list { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .cn-pillar-list { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 620px) { .cn-pillar-list--plain { grid-template-columns: repeat(2, 1fr); } }
.cn-pillar-list--plain .cn-pillar h3 { font-size: var(--step-2); margin: 0; }

.cn-pillar { padding-top: var(--sp-4); border-top: 2px solid var(--brand); }
.cn-pillar h3 {
	font-size: var(--step-1);
	margin-bottom: var(--sp-2);
	color: #FFFFFF;
}
.cn-pillar p { font-size: var(--step--1); color: var(--d-ink-2); margin: 0; }

/* --------------------------------------------------------------------------
   9. Cards and tiles
   -------------------------------------------------------------------------- */
/* One card across the site: this dark one, on any section and in either theme.
   Panels and project cards used to be pale, white or grey, each a look of its
   own. These are the variables a dark band sets, so whatever is inside them
   follows without needing a rule of its own. Body copy runs lighter than on a
   plain dark band because it sits over the terrain. */
.cn-tile,
.cn-panel,
.cn-project {
	background: var(--d-800);
	color: var(--d-ink);
	border: 1px solid var(--d-line);
	border-radius: var(--radius-lg);
	--ink: var(--d-ink);
	--ink-2: #C7DED8;
	--ink-3: var(--d-ink-3);
	--line: var(--d-line);
	--line-strong: rgba(140, 220, 203, .3);
	--brand-ink: var(--brand-lift);
	--brand-strong: #7FE0C8;
	--bg-raise: var(--d-700);
	--bg-sub: var(--d-800);
	--brand-soft: rgba(79, 195, 171, .12);
	--brand-softer: rgba(79, 195, 171, .06);
}
.cn-tile h3,
.cn-found h3,
.cn-panel h2,
.cn-panel h3,
.cn-project h3 { color: #FFFFFF; }

.cn-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--sp-6);
	overflow: hidden;
	transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.cn-tile::before {
	content: '';
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--brand-grad);
	opacity: 0;
	transition: opacity var(--dur) var(--ease);
}
.cn-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-dark); border-color: rgba(79, 195, 171, .45); }
.cn-tile:hover::before { opacity: 1; }
.cn-tile h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
/* The margin is the minimum gap above the footer link; a tile that ends on
   the paragraph drops it again. */
.cn-tile p { color: var(--d-ink-2); margin-bottom: var(--sp-5); font-size: var(--step--1); line-height: 1.6; }
.cn-tile p:last-child { margin-bottom: 0; }
/* margin-top:auto lines the links up along the bottom of a row whose tiles
   carry different amounts of text; the column gap keeps a minimum space
   above it when a tile is full. */
.cn-tile__foot { margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--d-line); }
.cn-tile__foot .cn-link { color: var(--brand-lift); }

.cn-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin-bottom: var(--sp-5);
	border-radius: 14px;
	background: var(--brand-grad);
	color: #FFFFFF;
	flex: none;
	box-shadow: 0 10px 24px -12px rgba(28, 111, 96, .9);
}
.cn-chip svg { width: 24px; height: 24px; }

/* Service tiles: the first two run wide. Flex, because the number of
   services is set in the admin and a row that does not divide evenly should
   stretch rather than leave a hole. */
.cn-tiles { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.cn-tiles > * { flex: 1 1 100%; }
@media (min-width: 720px) { .cn-tiles > * { flex: 1 1 calc(50% - var(--sp-5)); min-width: 15rem; } }
@media (min-width: 1040px) {
	.cn-tiles > * { flex: 1 1 calc(33.333% - var(--sp-5)); }
	.cn-tiles > *:nth-child(1), .cn-tiles > *:nth-child(2) { flex: 1 1 calc(50% - var(--sp-5)); }
}

/* --------------------------------------------------------------------------
   11. Projects
   -------------------------------------------------------------------------- */
.cn-projects { display: grid; gap: var(--sp-6); }
@media (min-width: 860px) { .cn-projects { grid-template-columns: repeat(2, 1fr); } }

.cn-project {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cn-project:hover { transform: translateY(-5px); box-shadow: var(--shadow-dark); border-color: rgba(79, 195, 171, .45); }
/* The whole picture shows, whatever its shape: wide, square or tall. It is fitted inside
   the frame, never cut to it. The frame is 2:1 because that is the shape of a browser
   screenshot, so those fill it exactly; any other shape sits centred on the darker
   backing, which keeps the cards in a row the same height. */
.cn-project__shot {
	position: relative;
	aspect-ratio: 2 / 1;
	background: rgba(2, 12, 10, .5);
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}
.cn-project__shot img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
/* The same on a project's own page: the picture at its own shape, centred, and never taller
   than the screen, so a tall phone screenshot does not run down the page. */
.cn-project-hero {
	display: flex;
	justify-content: center;
	margin: 0 0 var(--sp-6);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-sub);
}
.cn-project-hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(80vh, 760px); object-fit: contain; }
.cn-project__body { display: flex; flex-direction: column; flex: 1; padding: var(--sp-5) var(--sp-6) var(--sp-6); }
.cn-project__body h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.cn-project__body p { color: var(--ink-2); font-size: var(--step-0); }
.cn-project__foot { margin-top: auto; padding-top: var(--sp-5); }

.cn-tag {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .24rem .65rem;
	border: 1px solid var(--line-strong);
	border-radius: 100px;
	font-family: var(--font-mono);
	font-size: .68rem;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.cn-tag--brand { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-softer); }
/* On a dark band the muted tone is too close to the surface. */
.cn-band .cn-tag, .cn-shot .cn-tag { color: var(--d-ink-2); border-color: rgba(140, 220, 203, .32); }

/* --------------------------------------------------------------------------
   12. Process
   -------------------------------------------------------------------------- */
.cn-steps { display: grid; gap: var(--sp-6); counter-reset: cn-step; }
@media (min-width: 640px)  { .cn-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cn-steps { grid-template-columns: repeat(4, 1fr); } }

.cn-step { position: relative; padding-top: var(--sp-5); border-top: 2px solid var(--line); counter-increment: cn-step; }
.cn-step::before {
	content: counter(cn-step, decimal-leading-zero);
	display: block;
	margin-bottom: var(--sp-3);
	font-family: var(--font-mono);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--brand-ink);
}
.cn-step::after { content: ''; position: absolute; top: -2px; left: 0; width: 38px; height: 2px; background: var(--brand); }
.cn-step h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.cn-step p { color: var(--ink-2); font-size: var(--step--1); margin: 0; }

/* --------------------------------------------------------------------------
   13. Split / editorial
   -------------------------------------------------------------------------- */
.cn-split { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); align-items: center; }
@media (min-width: 940px) {
	.cn-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cn-split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
}

.cn-facts { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
.cn-facts li { display: grid; grid-template-columns: 22px 1fr; gap: var(--sp-3); margin: 0; color: var(--ink-2); }
.cn-facts svg { width: 20px; height: 20px; color: var(--brand-ink); margin-top: .25em; }
.cn-facts strong { color: var(--ink); font-weight: 650; }

.cn-panel { padding: var(--sp-6); }
.cn-band .cn-panel { background: var(--d-700); }

/* With nothing beside it the panel runs the full width, as one row. The margins
   here beat the inline ones that space it out as a column. */
.cn-panel--bar {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-4) var(--sp-7);
}
.cn-panel--bar > * { margin: 0 !important; }
.cn-panel--bar .cn-contactlist { display: flex; flex-wrap: wrap; gap: var(--sp-5) var(--sp-7); }
.cn-panel--bar > :last-child { margin-left: auto !important; }
@media (max-width: 599px) {
	.cn-panel--bar > :last-child { margin-left: 0 !important; }
}

/* --------------------------------------------------------------------------
   14. Full-bleed statement band
   -------------------------------------------------------------------------- */
.cn-statement {
	position: relative;
	padding-block: var(--section-y);
	overflow: hidden;
	background: var(--d-900);
	color: var(--d-ink);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--line: var(--d-line);
}
.cn-statement__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.cn-statement__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.72);
	transform: scale(1.14);
	will-change: transform;
}
.cn-statement__media::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(100deg, rgba(4, 16, 13, .95) 0%, rgba(4, 16, 13, .82) 42%, rgba(4, 16, 13, .55) 100%),
		radial-gradient(90% 120% at 90% 10%, rgba(46, 144, 127, .35) 0%, rgba(46, 144, 127, 0) 60%);
}
.cn-statement__inner { position: relative; z-index: 2; max-width: 62ch; }
.cn-statement h2 { color: #FFFFFF; font-size: var(--step-4); }
.cn-statement p:not(.cn-eyebrow) { color: var(--d-ink-2); font-size: var(--step-1); }

/* --------------------------------------------------------------------------
   15. Page hero (inner pages)
   -------------------------------------------------------------------------- */
.cn-pagehero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(2rem, 1.4rem + 2.6vw, 3.5rem));
	padding-bottom: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
	overflow: hidden;
	background: #04100D;
	color: var(--d-ink);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--ink-3: var(--d-ink-3);
	--line: var(--d-line);
	--brand-ink: var(--brand-lift);
}
.cn-pagehero__inner { position: relative; z-index: 2; max-width: 64ch; }
.cn-pagehero h1 { font-size: var(--step-5); margin-bottom: var(--sp-4); color: #FFFFFF; }
.cn-pagehero h1:last-child { margin-bottom: 0; }
.cn-pagehero__lede { font-size: var(--step-1); color: #D3E6E1; margin: 0; max-width: 46ch; }

.cn-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	margin: 0 0 var(--sp-4);
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--d-ink-3);
}
.cn-crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .45rem; }
.cn-crumbs li + li::before { content: '/'; opacity: .5; }
.cn-crumbs a { color: inherit; text-decoration: none; }
.cn-crumbs a:hover { color: var(--brand-lift); }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.cn-form { display: grid; gap: var(--sp-5); }
.cn-form__row { display: grid; gap: var(--sp-5); }
@media (min-width: 620px) { .cn-form__row--2 { grid-template-columns: repeat(2, 1fr); } }

.cn-field { display: grid; gap: .45rem; }
.cn-field > label { font-size: var(--step--1); font-weight: 650; color: var(--ink); }
.cn-field__req { color: var(--brand-ink); }
.cn-field__hint { font-size: var(--step--1); color: var(--ink-3); }

.cn-input, .cn-textarea, .cn-select {
	width: 100%;
	padding: .85rem 1rem;
	background: var(--bg);
	color: var(--ink);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	font-size: var(--step-0);
	transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.cn-textarea { resize: vertical; min-height: 9rem; line-height: 1.6; }
.cn-input::placeholder, .cn-textarea::placeholder { color: var(--ink-3); }
.cn-input:focus, .cn-textarea:focus, .cn-select:focus {
	outline: none;
	border-color: var(--brand);
	box-shadow: 0 0 0 3px var(--brand-soft);
}
.cn-input[aria-invalid='true'], .cn-textarea[aria-invalid='true'] { border-color: #C23B3B; }

.cn-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cn-formstatus {
	display: none;
	gap: .7rem;
	padding: .9rem 1.1rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font-size: var(--step--1);
	line-height: 1.5;
}
.cn-formstatus.is-shown { display: flex; }
.cn-formstatus svg { width: 18px; height: 18px; flex: none; margin-top: .15em; }
.cn-formstatus--ok { border-color: var(--brand); background: var(--brand-softer); color: var(--ink); }
.cn-formstatus--ok svg { color: var(--brand-ink); }
.cn-formstatus--err { border-color: #C23B3B; background: rgba(194, 59, 59, .06); color: var(--ink); }
.cn-formstatus--err svg { color: #C23B3B; }
html[data-theme='dark'] .cn-formstatus--err { border-color: #F08A8A; background: rgba(240, 138, 138, .08); }
html[data-theme='dark'] .cn-formstatus--err svg { color: #F08A8A; }
.cn-formstatus--busy { border-color: var(--line-strong); color: var(--ink-2); }
.cn-btn[aria-busy='true'] { opacity: .65; pointer-events: none; }

.cn-contactlist { display: grid; gap: var(--sp-5); margin: 0; padding: 0; }
.cn-contactlist > div { display: grid; grid-template-columns: 44px 1fr; gap: var(--sp-4); margin: 0; }
.cn-contactlist__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--brand-grad);
	color: #FFFFFF;
}
.cn-contactlist__ico svg { width: 20px; height: 20px; }
.cn-contactlist dt {
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
	margin-bottom: .15rem;
}
.cn-contactlist dd { margin: 0; font-weight: 600; }
/* A bare link in a definition list is only as tall as its text, which
   left a 20px tap target on a phone. */
.cn-contactlist a { display: inline-block; padding-block: .35rem; color: var(--ink); text-decoration: none; }
.cn-contactlist a:hover { color: var(--brand-ink); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */
.cn-cta {
	position: relative;
	padding-block: var(--section-y);
	overflow: hidden;
	background:
		radial-gradient(100% 140% at 85% 0%, rgba(46, 144, 127, .36) 0%, rgba(46, 144, 127, 0) 62%),
		linear-gradient(160deg, #0A241D 0%, #05120F 100%);
	color: var(--d-ink);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--line: var(--d-line);
	--brand-ink: var(--brand-lift);
}
.cn-cta__inner { position: relative; z-index: 2; display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 880px) { .cn-cta__inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cn-cta h2 { color: #FFFFFF; margin-bottom: 0; font-size: var(--step-4); }
.cn-cta .cn-btn--ghost { color: var(--d-ink); border-color: rgba(234, 244, 241, .3); }
.cn-cta .cn-btn--ghost:hover { border-color: var(--brand-lift); color: var(--brand-lift); background: rgba(79, 195, 171, .1); }
.cn-cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* --------------------------------------------------------------------------
   18. Footer — always dark, in both themes
   -------------------------------------------------------------------------- */
.cn-footer {
	position: relative;
	overflow: hidden;
	background: var(--d-900);
	color: var(--d-ink-2);
	border-top: 1px solid var(--d-line);
	padding-block: var(--section-y) var(--sp-6);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--ink-3: var(--d-ink-3);
	--line: var(--d-line);
	--brand-ink: var(--brand-lift);
}
.cn-footer > * { position: relative; z-index: 2; }
.cn-footer__top { display: grid; gap: var(--sp-7); }
@media (min-width: 820px) { .cn-footer__top { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); } }

.cn-footer h2 {
	margin-bottom: var(--sp-4);
	font-family: var(--font-mono);
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--brand-lift);
}
/* Also used for link lists outside the footer, so it follows the local
   palette: inside .cn-footer --ink-2 is already the dark-band tone. */
.cn-footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.cn-footer__list li { margin: 0; }
.cn-footer__list a {
	display: inline-block;
	padding-block: .45rem;
	color: var(--ink-2);
	text-decoration: none;
	font-size: var(--step--1);
}
.cn-footer__list a:hover { color: var(--brand-ink); }
.cn-footer .cn-footer__list a:hover { color: #FFFFFF; }

.cn-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	margin-top: var(--sp-7);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--d-line);
	font-size: var(--step--1);
	color: var(--d-ink-3);
}
.cn-social { display: flex; gap: .45rem; }
.cn-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--d-line);
	border-radius: var(--radius);
	color: var(--d-ink-2);
}
.cn-social a:hover { color: #FFFFFF; border-color: var(--brand-lift); background: rgba(79, 195, 171, .1); }
.cn-social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   19. Editor content
   -------------------------------------------------------------------------- */
.cn-prose { max-width: 70ch; }
.cn-prose > * + * { margin-top: var(--sp-5); }
.cn-prose > :last-child { margin-bottom: 0; }
.cn-prose h2 { font-size: var(--step-3); margin-top: var(--sp-7); }
.cn-prose h3 { font-size: var(--step-2); margin-top: var(--sp-7); }
.cn-prose h2:first-child, .cn-prose h3:first-child { margin-top: 0; }
.cn-prose img, .cn-prose figure { border-radius: var(--radius-lg); }
.cn-prose figcaption { margin-top: var(--sp-2); font-size: var(--step--1); color: var(--ink-3); }
.cn-prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.cn-prose th, .cn-prose td { padding: .65rem .8rem; border: 1px solid var(--line); text-align: left; }
.cn-prose th { background: var(--bg-sub); font-weight: 650; }
.cn-prose .alignleft { float: left; margin: 0 var(--sp-5) var(--sp-4) 0; }
.cn-prose .alignright { float: right; margin: 0 0 var(--sp-4) var(--sp-5); }
.cn-prose .aligncenter { margin-inline: auto; }
.wp-caption { max-width: 100%; }

.cn-list { display: grid; gap: var(--sp-5); }
.cn-listitem { padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line); }
.cn-listitem:last-child { border-bottom: 0; padding-bottom: 0; }
.cn-listitem p:last-child { margin-bottom: 0; }
.cn-listitem p:empty { display: none; }
.cn-listitem h2 { font-size: var(--step-2); margin-bottom: var(--sp-2); }
.cn-listitem h2 a { color: var(--ink); text-decoration: none; }
.cn-listitem h2 a:hover { color: var(--brand-ink); }
.cn-listitem__meta {
	margin-bottom: var(--sp-2);
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
}
.cn-listitem p { color: var(--ink-2); }

.cn-pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: var(--sp-7); }
.cn-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 .6rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--ink-2);
	text-decoration: none;
	font-size: var(--step--1);
}
.cn-pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand-ink); }
.cn-pagination .page-numbers.current { background: var(--brand-grad); border-color: transparent; color: #FFFFFF; }

.cn-searchform { display: flex; gap: .5rem; max-width: 460px; }
.cn-searchform .cn-input { flex: 1; }

.cn-empty {
	padding: var(--sp-7);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius-lg);
	text-align: center;
	color: var(--ink-2);
}
.cn-empty svg { width: 32px; height: 32px; margin: 0 auto var(--sp-4); color: var(--brand); }

/* --------------------------------------------------------------------------
   20. Utilities
   -------------------------------------------------------------------------- */
.cn-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.cn-center { text-align: center; }
.cn-mt-5 { margin-top: var(--sp-5); }
.cn-mt-6 { margin-top: var(--sp-6); }
.cn-mt-7 { margin-top: var(--sp-7); }
.cn-muted { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   21. Motion: how things arrive
   --------------------------------------------------------------------------
   theme.js (initReveal) adds .is-in to each .cn-reveal as it comes up into
   the window, and what happens then depends on what the block is.

   A card (.cn-tile, .cn-found, .cn-project, .cn-panel) stands up into place:
   it rises, tips upright from leaning back and grows to its full size; its
   icon turns in, and its words follow a beat behind.

   A cue (.cn-cue: the section heads, the pillars, the steps, the statement,
   the closing band) stays exactly where it is and sets off what is inside
   it. An eyebrow's rule draws out and its words slide in; a heading's words
   rise one after another, each from behind its own mask (cn_heading); a
   pillar's or a step's top rule rules itself across; what follows the
   heading rises after it.

   Anything else fades up from 44px lower.

   The heroes do the same at page load, from the first paint, with no script.

   How it is built, and why:
   - Every hidden state is screen-only, inside prefers-reduced-motion:
     no-preference, under html.cn-js, and only while the block is
     :not(.is-in). So the arrived state is simply each element's own style
     (nothing has to put back an eyebrow number's .6 opacity), nothing is held
     back for anyone who asked for less movement or for a printout, and
     header.php takes html.cn-js away again if theme.js has not started within
     five seconds.
   - Cards move by the individual translate, rotate and scale properties and
     never touch transform, which is their hover lift. The reveal this
     replaces set transform on .is-in, out-ranked .cn-tile:hover and its
     siblings, and switched the lift off on every card it revealed.
   - Nothing waiting to arrive is in a 3D transform, and everything comes to
     rest at none, so the graphics card holds a layer for a thing only while
     it is actually moving. (148 layers at load, 92 drawing, with 3D hidden
     states; 110 and 58 without: the same 110 as the page before any of this.)
   - Only a heading's words are promised their layers a frame early
     (.is-armed). Promising the cards' too made the browser draw five large
     layers in one frame as the service tiles arrived; left alone it draws
     each as its own animation starts, 120ms apart.
   - Measured before this: blocks rose 20px over about half a second, starting
     88% of the way down the window, while the page itself was moving about
     700px a second. The scroll swallowed the movement whole, which is why the
     sections seemed simply to be there.
   -------------------------------------------------------------------------- */
:root {
	--arrive: cubic-bezier(.33, 1, .68, 1);
	--arrive-dur: 1.3s;
	--word-step: 66ms;
}

/* A heading's words (cn_heading). Each word is an inline-block clipped to a
   little more than its own glyphs, and its inside rises into that window.
   A clip-path rather than overflow: hidden, because an inline-block that hides
   its overflow takes its bottom edge as its baseline, which would lift every
   word off the line and change the heading's height. */
.cn-w {
	display: inline-block;
	clip-path: inset(-.22em -.14em -.34em -.14em);
}
.cn-w > span { display: inline-block; }

/* A paragraph that lights up as it is scrolled to (cn_fill, initFill). --p runs
   from 0 to 1 as the paragraph rises through the window, and each word comes
   up from dim to full across three words' worth of it, in reading order. With
   no script, or with reduced motion, --p is never set and every word is simply
   at full strength. */
.cn-fill .cn-fw {
	opacity: calc(.24 + .76 * clamp(0, (var(--p, 1) * (var(--n, 1) + 3) - var(--i, 0)) / 3, 1));
}

/* The pillars' and the steps' top rules are drawn as backgrounds rather than
   borders, so they can rule themselves across. The border stays, transparent,
   so every box keeps exactly the size it had. */
.cn-pillar {
	border-top-color: transparent;
	background: linear-gradient(var(--brand), var(--brand)) 0 0 / 100% 2px no-repeat border-box;
}
.cn-step {
	border-top-color: transparent;
	background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat border-box;
}

@media screen and (prefers-reduced-motion: no-preference) {

	/* Depth for the cards to stand up in. On the containers, because a
	   perspective reaches only an element's own children. */
	.cn-tiles,
	.cn-foundation__pair,
	.cn-projects,
	.cn-grid,
	.cn-split { perspective: 1800px; }

	/* ---- anything else: a fade and a rise ---- */
	html.cn-js .cn-reveal:not(.cn-cue, .cn-tile, .cn-found, .cn-project, .cn-panel) {
		transition:
			opacity var(--arrive-dur) var(--arrive) var(--cn-delay, 0ms),
			transform var(--arrive-dur) var(--arrive) var(--cn-delay, 0ms);
	}
	/* Hidden states are 2D on purpose. A 3D transform (translate3d, a tilt)
	   makes its element a layer of its own on the graphics card from the
	   moment the page loads, whether it moves or not: this page held about
	   forty extra while every word and block waited to arrive. A 2D one costs
	   nothing until its transition actually runs. */
	html.cn-js .cn-reveal:not(.is-in, .cn-cue, .cn-tile, .cn-found, .cn-project, .cn-panel) {
		opacity: 0;
		transform: translateY(44px);
	}
	/* A block that also follows the scroll (data-cn-par) has its transform
	   written on every frame by the parallax; it only fades. */
	html.cn-js .cn-reveal[data-cn-par]:not(.is-in) { transform: none; }

	/* ---- a card stands up into place ----
	   An animation that runs on arrival rather than a transition from a held
	   state, so the tilt (3D) exists only while it plays. Before arrival a
	   card is simply transparent. Only hover's own properties transition. */
	html.cn-js :is(.cn-tile, .cn-found, .cn-project, .cn-panel).cn-reveal {
		transform-origin: 50% 100%;
		transition:
			transform var(--dur) var(--ease),
			box-shadow var(--dur) var(--ease),
			border-color var(--dur) var(--ease);
	}
	html.cn-js :is(.cn-tile, .cn-found, .cn-project, .cn-panel).cn-reveal:not(.is-in) { opacity: 0; }
	html.cn-js :is(.cn-tile, .cn-found, .cn-project, .cn-panel).cn-reveal.is-in {
		animation: cn-stand 1.55s var(--arrive) var(--cn-delay, 0ms) backwards;
	}

	/* its icon turns in */
	html.cn-js :is(.cn-tile, .cn-found).cn-reveal > :is(.cn-chip, .cn-found__icon) {
		transition:
			opacity .5s ease calc(var(--cn-delay, 0ms) + .26s),
			scale .95s cubic-bezier(.3, 1.35, .45, 1) calc(var(--cn-delay, 0ms) + .26s),
			rotate .95s var(--arrive) calc(var(--cn-delay, 0ms) + .26s);
	}
	html.cn-js :is(.cn-tile, .cn-found).cn-reveal:not(.is-in) > :is(.cn-chip, .cn-found__icon) {
		opacity: 0;
		scale: .35;
		rotate: -30deg;
	}

	/* its words follow, a beat behind */
	html.cn-js :is(.cn-tile, .cn-found, .cn-project, .cn-panel).cn-reveal > :is(.cn-eyebrow, h2, h3, p, .cn-tile__foot, .cn-project__body) {
		transition:
			opacity .8s ease calc(var(--cn-delay, 0ms) + var(--beat, .36s)),
			translate 1.1s var(--arrive) calc(var(--cn-delay, 0ms) + var(--beat, .36s));
	}
	html.cn-js :is(.cn-tile, .cn-found, .cn-project, .cn-panel).cn-reveal:not(.is-in) > :is(.cn-eyebrow, h2, h3, p, .cn-tile__foot, .cn-project__body) {
		opacity: 0;
		translate: 0 18px;
	}
	html.cn-js .cn-reveal > .cn-eyebrow { --beat: .3s; }
	html.cn-js .cn-reveal > p:not(.cn-eyebrow) { --beat: .44s; }
	html.cn-js .cn-reveal > :is(.cn-tile__foot, .cn-project__body) { --beat: .52s; }

	/* a panel's list comes in a line at a time */
	html.cn-js .cn-panel.cn-reveal .cn-facts > li {
		transition:
			opacity .7s ease calc(var(--cn-delay, 0ms) + .4s + var(--li, 0) * 90ms),
			translate 1s var(--arrive) calc(var(--cn-delay, 0ms) + .4s + var(--li, 0) * 90ms);
	}
	html.cn-js .cn-panel.cn-reveal:not(.is-in) .cn-facts > li { opacity: 0; translate: -16px 0; }
	.cn-facts > li:nth-child(2) { --li: 1; }
	.cn-facts > li:nth-child(3) { --li: 2; }
	.cn-facts > li:nth-child(4) { --li: 3; }
	.cn-facts > li:nth-child(5) { --li: 4; }
	.cn-facts > li:nth-child(6) { --li: 5; }

	/* a project's picture settles inside its frame */
	html.cn-js .cn-project.cn-reveal .cn-project__shot img { transition: scale 1.9s var(--arrive) var(--cn-delay, 0ms); }
	html.cn-js .cn-project.cn-reveal:not(.is-in) .cn-project__shot img { scale: 1.12; }
	html.cn-js .cn-project-hero.cn-reveal img { transition: scale 1.9s var(--arrive) var(--cn-delay, 0ms); }
	html.cn-js .cn-project-hero.cn-reveal:not(.is-in) img { scale: 1.06; }

	/* ---- an eyebrow: its rule draws out, its words slide in ---- */
	html.cn-js .cn-reveal .cn-eyebrow::before {
		transform-origin: 0 50%;
		transition: transform .95s var(--arrive) calc(var(--cn-delay, 0ms) + .04s);
	}
	html.cn-js .cn-reveal:not(.is-in) .cn-eyebrow::before { transform: scaleX(0); }
	html.cn-js .cn-reveal .cn-eyebrow > span {
		transition:
			opacity .7s ease calc(var(--cn-delay, 0ms) + .16s),
			translate 1s var(--arrive) calc(var(--cn-delay, 0ms) + .16s);
	}
	html.cn-js .cn-reveal:not(.is-in) .cn-eyebrow > span { opacity: 0; translate: -.8em 0; }

	/* ---- a heading's words rise, one after another ---- */
	html.cn-js .cn-reveal .cn-w > span {
		transition: transform var(--arrive-dur) var(--arrive) calc(var(--cn-delay, 0ms) + .08s + var(--i, 0) * var(--word-step));
	}
	html.cn-js .cn-reveal:not(.is-in) .cn-w > span { transform: translateY(1.6em); }

	/* ---- what follows a heading rises after it ---- */
	html.cn-js .cn-cue > :is(p:not(.cn-eyebrow), .cn-actions) {
		transition:
			opacity .9s ease calc(var(--cn-delay, 0ms) + .4s),
			translate 1.15s var(--arrive) calc(var(--cn-delay, 0ms) + .4s);
	}
	html.cn-js .cn-cue:not(.is-in) > :is(p:not(.cn-eyebrow), .cn-actions) { opacity: 0; translate: 0 26px; }

	/* ---- a pillar: its rule rules across, then its word rises ---- */
	html.cn-js .cn-pillar.cn-reveal { transition: background-size 1.25s var(--arrive) var(--cn-delay, 0ms); }
	html.cn-js .cn-pillar.cn-reveal:not(.is-in) { background-size: 0% 2px; }
	html.cn-js .cn-pillar.cn-reveal .cn-w > span {
		transition-delay: calc(var(--cn-delay, 0ms) + .24s + var(--i, 0) * var(--word-step));
	}

	/* ---- a step: its rule, then its brand mark, its number and its words ---- */
	html.cn-js .cn-step.cn-reveal { transition: background-size 1.35s var(--arrive) var(--cn-delay, 0ms); }
	html.cn-js .cn-step.cn-reveal:not(.is-in) { background-size: 0% 2px; }
	html.cn-js .cn-step.cn-reveal::after {
		transform-origin: 0 50%;
		transition: transform .8s var(--arrive) calc(var(--cn-delay, 0ms) + .3s);
	}
	html.cn-js .cn-step.cn-reveal:not(.is-in)::after { transform: scaleX(0); }
	html.cn-js .cn-step.cn-reveal::before {
		transition:
			opacity .6s ease calc(var(--cn-delay, 0ms) + .2s),
			translate 1s var(--arrive) calc(var(--cn-delay, 0ms) + .2s);
	}
	html.cn-js .cn-step.cn-reveal:not(.is-in)::before { opacity: 0; translate: 0 10px; }
	html.cn-js .cn-step.cn-reveal > :is(h3, p) {
		transition:
			opacity .8s ease calc(var(--cn-delay, 0ms) + var(--beat, .3s)),
			translate 1.1s var(--arrive) calc(var(--cn-delay, 0ms) + var(--beat, .3s));
	}
	html.cn-js .cn-step.cn-reveal:not(.is-in) > :is(h3, p) { opacity: 0; translate: 0 18px; }
	html.cn-js .cn-step.cn-reveal > h3 { --beat: .3s; }
	html.cn-js .cn-step.cn-reveal > p { --beat: .4s; }

	/* ---- the statement's photograph lights up and settles ---- */
	html.cn-js .cn-statement__media.cn-reveal { transition: opacity 1.8s ease var(--cn-delay, 0ms); }
	html.cn-js .cn-statement__media.cn-reveal:not(.is-in) { opacity: 0; }
	html.cn-js .cn-statement__media.cn-reveal img { transition: scale 2.6s var(--arrive) var(--cn-delay, 0ms); }
	html.cn-js .cn-statement__media.cn-reveal:not(.is-in) img { scale: 1.12; }

	/* A heading's words, promised their layers a frame before they rise and
	   given back after (theme.js). Small, so promising them together is
	   cheap; the cards are left to the browser (see the head of this section). */
	html.cn-js .cn-reveal.is-armed .cn-w > span { will-change: transform; }

	/* ---- the heroes, at page load ---- */
	html.cn-js :is(.cn-hero, .cn-pagehero) .cn-w > span {
		animation: cn-word-up 1.4s var(--arrive) calc(.15s + var(--i, 0) * 72ms) backwards;
	}
	html.cn-js .cn-hero .cn-eyebrow::before {
		transform-origin: 0 50%;
		animation: cn-draw 1.1s var(--arrive) .02s backwards;
	}
	html.cn-js .cn-hero .cn-eyebrow > span,
	html.cn-js .cn-pagehero .cn-crumbs { animation: cn-slide 1s var(--arrive) .18s backwards; }
	html.cn-js .cn-hero__kicker { animation: cn-up 1.15s var(--arrive) .64s backwards; }
	html.cn-js :is(.cn-hero__lede, .cn-pagehero__lede) { animation: cn-up 1.15s var(--arrive) .76s backwards; }
	html.cn-js .cn-hero .cn-actions { animation: cn-up 1.15s var(--arrive) .9s backwards; }
	/* The banner settles as the words come in. Scale only: fading it from
	   nothing would hold back the moment it first counts as painted. */
	html.cn-js :is(.cn-hero__media, .cn-pagehero__media) img { animation: cn-settle 3s var(--arrive) backwards; }
}

@keyframes cn-word-up { from { transform: translateY(1.6em); } to { transform: none; } }
@keyframes cn-draw    { from { transform: scaleX(0); } to { transform: none; } }
@keyframes cn-slide   { from { opacity: 0; translate: -.8em 0; } to { opacity: 1; translate: 0 0; } }
@keyframes cn-up      { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }
@keyframes cn-stand {
	from { opacity: 0; translate: 0 72px; rotate: x 15deg; scale: .955; }
	62%  { opacity: 1; }
	to   { opacity: 1; translate: 0 0; rotate: x 0deg; scale: 1; }
}
@keyframes cn-settle  { from { scale: 1.08; } to { scale: 1; } }

@media print {
	.cn-fill .cn-fw { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
	.cn-hero__caret { animation: none; opacity: 1; }
}

/* --------------------------------------------------------------------------
   22. Admin bar + print
   -------------------------------------------------------------------------- */
.admin-bar .cn-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .cn-header { top: 46px; } }
/* The admin bar pushes the header down, so the menu card has to start lower
   too. It is the card that moves, not the dialog: the dialog fills the window
   and the admin bar is painted over it. */
@media (max-width: 1039px) {
	.admin-bar .cn-menu__panel {
		inset-block-start: calc(var(--header-h) + 46px + var(--sp-3));
		max-height: calc(100% - var(--header-h) - 46px - var(--sp-6));
	}
}
@media (min-width: 783px) and (max-width: 1039px) {
	.admin-bar .cn-menu__panel {
		inset-block-start: calc(var(--header-h) + 32px + var(--sp-3));
		max-height: calc(100% - var(--header-h) - 32px - var(--sp-6));
	}
}

@media print {
	.cn-header, .cn-footer, .cn-cta, .cn-skip, .cn-iconbtn { display: none !important; }
	body { background: #fff; color: #000; }
	a::after { content: ' (' attr(href) ')'; font-size: .8em; }
}

/* --------------------------------------------------------------------------
   23. The architecture band
   --------------------------------------------------------------------------
   Text on the left, the WebGL cluster on the right. The cluster is an
   enhancement, so when it is absent the text simply takes the full width.
   -------------------------------------------------------------------------- */
.cn-hero__inner--solo { grid-template-columns: minmax(0, 52rem); justify-content: start; }

.cn-arch__inner { display: grid; gap: clamp(2.5rem, 1rem + 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) {
	.cn-arch__inner:has(.cn-hero3d) { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

.cn-layers { display: grid; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.cn-layers li {
	display: grid;
	grid-template-columns: 4.4rem 1fr;
	gap: var(--sp-4);
	margin: 0;
	padding-top: var(--sp-4);
	border-top: 1px solid var(--d-line);
}
.cn-layers li { transition: border-color .6s ease, opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); outline: 0; }
.cn-layers.is-linked li { opacity: .5; }
.cn-layers.is-linked li.is-on { opacity: 1; border-top-color: var(--brand); transform: translateX(.6rem); }
.cn-layers li:focus-visible { outline: 2px solid var(--brand-lift); outline-offset: 6px; }
.cn-layers__n {
	min-width: 3.4rem;
	text-transform: uppercase;
	font-family: var(--font-mono);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--brand-lift);
	padding-top: .15em;
}
.cn-layers h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); color: #FFFFFF; }
.cn-layers p { font-size: var(--step--1); color: var(--d-ink-2); margin: 0; line-height: 1.6; }

/* --------------------------------------------------------------------------
   24. The wireframe terrain behind the cards
   --------------------------------------------------------------------------
   Drawn by assets/js/mesh.js. It is purely decorative, sits under the
   content and never takes pointer events, so a card without JavaScript is
   exactly the card it was before.
   -------------------------------------------------------------------------- */
.cn-mesh {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: .5;
	transition: opacity var(--dur) var(--ease);
}
/* No opacity change on hover. The strands already brighten inside the
   canvas, and lifting the whole layer as well pushed the body copy on the
   wide service tiles under 4.5:1. */

/* The content has to sit above the canvas. */
.cn-tile > *:not(.cn-mesh),
.cn-panel > *:not(.cn-mesh),
.cn-project > *:not(.cn-mesh),
.cn-found > *:not(.cn-mesh) { position: relative; z-index: 1; }

/* Dark mode lifted every surface so the bands would read as separate
   surfaces, and that lifted the base the terrain composites over with it. The
   brightest strands were landing on card body copy at about 4.4:1 on some
   frames, passing or failing depending on where the animation happened to be.
   The layer is quieter here so the peaks come back down. */
html[data-theme='dark'] .cn-mesh { opacity: .34; }

/* The panels are quieter: they carry a lot of small text. */
.cn-panel { position: relative; overflow: hidden; }
.cn-panel > .cn-mesh { opacity: .3; }
html[data-theme='dark'] .cn-panel > .cn-mesh { opacity: .22; }

/* A project card is mostly screenshot, so the terrain only shows in the body. */
.cn-project > .cn-mesh { opacity: .32; }

@media (prefers-reduced-motion: reduce) {
	.cn-mesh { opacity: .4; }
}

/* The cluster can be dragged, so it needs to look like it can. */
.cn-hero3d__wrap { position: relative; }
.cn-hero3d.is-interactive canvas { cursor: grab; }
.cn-hero3d__hint {
	margin: 0;
	text-align: center;
	font-family: var(--font-mono);
	font-size: .72rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--d-ink-3);
	opacity: .85;
}
.cn-hero3d__hint::before {
	content: '';
	display: inline-block;
	width: 20px;
	height: 1px;
	margin-right: .6rem;
	vertical-align: .32em;
	background: var(--brand-lift);
}
@media (prefers-reduced-motion: reduce) { .cn-hero3d__hint { display: none; } }

/* --------------------------------------------------------------------------
   The terrain has to stay out of the way of the words
   --------------------------------------------------------------------------
   Masked so it is faint where the text begins and full strength out in the
   empty part of the card. Measured: without this the body copy on the wide
   service tiles drops to 2.5:1 against the brightest strand.
   -------------------------------------------------------------------------- */
.cn-mesh {
	/* The terrain is anchored to the bottom of the card, so it fades out
	   upwards and leaves the heading on clear ground. */
	   It stops entirely before the card's link, which sits at about 84%
	   down. The tile background is dark enough that even a single bright
	   line at 12% alpha took that link from 8.3:1 to 3.8:1, so the band
	   has to end rather than just fade. */
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .18) 20%, rgba(0, 0, 0, .85) 40%, #000 56%, rgba(0, 0, 0, .78) 74%, rgba(0, 0, 0, .3) 88%, rgba(0, 0, 0, .12) 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .18) 20%, rgba(0, 0, 0, .85) 40%, #000 56%, rgba(0, 0, 0, .78) 74%, rgba(0, 0, 0, .3) 88%, rgba(0, 0, 0, .12) 100%);
}

/* Body copy on a tile sits over the busiest part, so it runs lighter than
   the muted tone used on plain surfaces. */
.cn-tile p { color: #C7DED8; max-width: 62ch; }

/* Nothing should set a line longer than is comfortable to read, however
   wide the container happens to be. */
.cn-section > .cn-wrap > p,
.cn-layers p,
.cn-step p { max-width: 66ch; }

/* --------------------------------------------------------------------------
   25. Scroll-linked movement
   --------------------------------------------------------------------------
   The parallax layers are spans wrapping the image, so the transform sits on
   its own element and never fights the image's own object-fit.
   -------------------------------------------------------------------------- */
[data-cn-par] {
	display: block;
	will-change: transform;
}
.cn-hero__media [data-cn-par],
.cn-pagehero__media [data-cn-par],
.cn-statement__media [data-cn-par] {
	position: absolute;
	inset: 0;
}
.cn-hero__media [data-cn-par] img,
.cn-pagehero__media [data-cn-par] img,
.cn-statement__media [data-cn-par] img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
	[data-cn-par] { transform: none !important; opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   26. The overlap
   --------------------------------------------------------------------------
   The mid-page photograph band is pinned and everything after it is one
   block that scrolls up over it. That block carries its own background, a
   lifted top edge and a shadow, so the join reads as one surface sliding
   across another rather than two sections meeting.

   It sits here rather than on the hero: pinning the first thing a visitor
   sees made the page feel like it was resisting them before they had read
   anything.
   -------------------------------------------------------------------------- */
.cn-statement {
	position: sticky;
	top: 0;
	z-index: 0;
}

.cn-overlap {
	position: relative;
	z-index: 1;
	background: var(--bg);
	border-radius: 30px 30px 0 0;
	box-shadow: 0 -34px 70px -28px rgba(0, 0, 0, .65);
}

/* The first band inside the block has to carry the same rounded top, or its
   own colour squares off the corners again. */
.cn-overlap > :first-child {
	border-radius: 30px 30px 0 0;
	overflow: hidden;
}

/* A hairline along the leading edge, so the overlap is legible even where
   the two surfaces are close in tone. */
.cn-overlap::before {
	content: '';
	position: absolute;
	top: 0;
	left: 10%;
	right: 10%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(140, 220, 203, .5), transparent);
	border-radius: 1px;
	pointer-events: none;
	z-index: 3;
}

@media (max-width: 599px) {
	.cn-overlap,
	.cn-overlap > :first-child { border-radius: 20px 20px 0 0; }
}

/* A pinned band would trap a keyboard user behind the overlapping block on
   a short screen, so it is released when there is not room for it. */
@media (max-height: 620px) {
	.cn-statement { position: relative; }
}


/* --------------------------------------------------------------------------
   27. Who we are

   The origin story on one side, the vision and the mission as a pair on the
   other. The company's own wording, carried over from the previous site.
   -------------------------------------------------------------------------- */
/* The story sits above the pair rather than beside it. Stacked, the left
   column ran out several hundred pixels before the cards did and left a hole
   under it, and six text blocks in one view read as a wall. */
.cn-foundation { display: grid; gap: var(--sp-5); align-items: start; }

@media (min-width: 860px) {
	.cn-foundation {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
		gap: clamp(2rem, 1rem + 3vw, 4rem);
		align-items: center;
	}
}

.cn-foundation p { color: var(--ink-2); }

/* The opening line is the company's own and carries the section on its own. */
.cn-foundation__lead {
	margin: 0;
	font-size: var(--step-3);
	font-weight: 620;
	line-height: 1.25;
	letter-spacing: -.025em;
	color: var(--ink) !important;
	padding-left: var(--sp-5);
	border-left: 3px solid var(--brand);
}

/* Side by side, so the pair reads as one statement rather than a tall stack. */
.cn-foundation__pair {
	display: grid;
	gap: var(--sp-5);
	margin-top: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
}
@media (min-width: 760px) {
	.cn-foundation__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Straight under a section heading, it keeps the gap every other heading has. */
.cn-shead + .cn-foundation__pair { margin-top: 0; }

/* The vision and the mission are a matched pair: same treatment, flush rather
   than staggered. They were plain bordered boxes and read as filler, so they
   now carry the icon language used everywhere else on the site and a brand
   edge that ties them to it. */
.cn-found {
	position: relative;
	overflow: hidden;
	padding: var(--sp-6);
	padding-top: calc(var(--sp-6) + 4px);
	/* The same dark surface as the service tiles, in both themes. On a white
	   card the terrain wireframe crossed dark body copy and read as mess;
	   light strands on a dark ground sit behind the text instead of fighting
	   it. The terrain reads the card's own background to pick its treatment,
	   so it follows this automatically. */
	background: var(--d-800);
	color: var(--d-ink);
	--ink: var(--d-ink);
	--ink-2: var(--d-ink-2);
	--ink-3: var(--d-ink-3);
	--line: var(--d-line);
	--line-strong: rgba(140, 220, 203, .3);
	--brand-ink: var(--brand-lift);
	border: 1px solid var(--d-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
	transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cn-found::before {
	content: '';
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 4px;
	background: var(--brand-grad);
}
.cn-found:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.cn-found__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.9rem;
	height: 2.9rem;
	margin-bottom: var(--sp-5);
	border-radius: var(--radius);
	background: var(--brand-grad);
	color: #FFFFFF;
}
.cn-found__icon svg { width: 20px; height: 20px; }

.cn-found .cn-eyebrow { margin-bottom: var(--sp-2); }
.cn-found h3 {
	margin-bottom: var(--sp-3);
	font-size: var(--step-3);
	letter-spacing: -.025em;
}
.cn-found p:not(.cn-eyebrow) {
	margin: 0;
	color: var(--ink-2);
	font-size: var(--step-1);
	line-height: 1.52;
}

@media (prefers-reduced-motion: reduce) {
	.cn-found:hover { transform: none; }
}



/* --------------------------------------------------------------------------
   29. The hero mark and the fireflies

   Both are decoration and both are additive: the hero reads correctly with
   neither of them, and neither is ever announced.

   The mark (cn_hero_mark) draws itself in the way a pen would: two fine lines
   trace the ribbon's edges, the teal follows half a second behind them, and
   as the last of it lands the sparkle opens with a flash. Then it floats, and
   the sparkle catches the light now and then.

   The finished mark is the resting state. The drawing only exists under
   .is-drawing, which initHeroMark (theme.js) adds once the page has loaded
   and the mark is on screen, so nobody misses the start of it. Under reduced
   motion, or without scripts, the mark is simply there.

   (Testing this: a clipped screenshot must use captureBeyondViewport: false.
   By default the page is laid out again at the clip's size, which falls under
   the 1100px rule, so the mark vanishes from the photograph, though not from
   the page.)
   -------------------------------------------------------------------------- */
.cn-hero__mark { display: none; }

/* Level with the headline, whatever size the window makes the two of them: the
   eyebrow's line and gap, then half the headline's three lines, less half the
   mark. A percentage margin is a share of the column's width, and the mark is
   the column's width and .618 of that tall, so half of it is 30.9%.

   Across, it keeps to the clear part of the banner. The hexagons in the artwork
   start about 84.5% of the way over, and the column runs on past them on anything
   under about 1650px wide, so there it moves left until its edge clears them,
   though never to within 1.5rem of the headline (whose widest line is 8.97 of its
   own font size, and the column beside it 2.5 of this one). */
@media (min-width: 1100px) {
	.cn-hero__mark {
		--clear-art: calc(min(50vw, var(--wrap) / 2) - 34.5vw - var(--gutter));
		--clear-words: calc(250% + 4.5rem - var(--hero-h1) * 8.97 - 1.5rem);
		display: block;
		position: relative;
		left: calc(max(0px, min(var(--clear-art), var(--clear-words))) * -1);
		margin-top: calc(1.3rem + var(--hero-gap) + var(--hero-h1) * 1.53 - 30.9%);
	}
}
.cn-hero__mark svg { display: block; width: 100%; height: auto; overflow: visible; }

/* No masks and no filters anywhere in here. Each is repainted on every frame the
   drawing changes, and the browser has to compile shaders of its own for them,
   which held up whole frames, at their worst just as the sparkle opened. The
   edge lines are a light stroke with a dark one over it, and the pen's glow is
   three strokes, each wider and fainter. */
.cn-mark__line { stroke: #D5FFF5; opacity: 0; }
.cn-mark__hollow { stroke: #04100D; opacity: 0; }
.cn-mark__pen { stroke: #F4FFFC; opacity: 0; }
.cn-mark__pen--near { stroke: #7FFFD4; stroke-opacity: .34; }
.cn-mark__pen--far { stroke: #4FC3AB; stroke-opacity: .14; }
.cn-mark__rays { fill: #FFFFFF; }
.cn-mark__glint { opacity: .45; }

@media (prefers-reduced-motion: no-preference) {
	/* Nothing shows until the drawing starts. */
	html.cn-js .cn-hero__mark:not(.is-drawing) .cn-mark { visibility: hidden; }

	/* The pen. 1510 is the ribbon's length (1509.5). */
	.is-drawing .cn-mark__line,
	.is-drawing .cn-mark__hollow {
		stroke-dasharray: 1510;
		animation:
			cn-mark-draw 2.6s cubic-bezier(.45, .05, .3, 1) .1s both,
			cn-mark-lines-out 1s ease 2.7s both;
	}
	.is-drawing .cn-mark__pen {
		stroke-dasharray: 0 1510;
		animation:
			cn-mark-pen 2.6s cubic-bezier(.45, .05, .3, 1) .1s both,
			cn-mark-pen-light 2.6s linear .1s both;
	}
	/* The teal, half a second behind the lines. */
	.is-drawing .cn-mark__body {
		stroke-dasharray: 1510;
		animation: cn-mark-draw 2.6s cubic-bezier(.45, .05, .3, 1) .65s both;
	}
	.is-drawing .cn-mark__tip { animation: cn-mark-tip .3s linear .7s both; }
	.is-drawing .cn-mark__notch { animation: cn-mark-tip .2s linear 1.5s both; }
	/* The sparkle, as the last of the teal lands. */
	.is-drawing .cn-mark__spark {
		transform-origin: 0 0;
		animation:
			cn-mark-spark 1.1s cubic-bezier(.2, .9, .3, 1.2) 2.85s both,
			cn-mark-twinkle 8s ease-in-out 6s infinite;
	}
	.is-drawing .cn-mark__glint {
		transform-origin: 0 0;
		animation: cn-mark-flash 1.6s ease-out 2.9s both;
	}
	/* On the svg as a whole, which the graphics card can move as it is; moving
	   anything inside it would repaint the mark on every frame, for good. */
	.is-drawing .cn-mark { animation: cn-mark-float 10s ease-in-out 4.2s infinite; }

	/* Scrolled away: everything waits, and carries on from there. */
	.cn-hero__mark.is-away * { animation-play-state: paused; }
}

@keyframes cn-mark-draw { from { stroke-dashoffset: 1510; } to { stroke-dashoffset: 0; } }
@keyframes cn-mark-pen { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1510; } }
@keyframes cn-mark-pen-light { 0% { opacity: 0; } 4% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes cn-mark-lines-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cn-mark-tip { from { opacity: 0; } to { opacity: 1; } }
@keyframes cn-mark-spark {
	from { transform: scale(0) rotate(-70deg); opacity: 0; }
	45%  { opacity: 1; }
	to   { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes cn-mark-flash {
	0%   { transform: scale(.2); opacity: 0; }
	22%  { transform: scale(1.9); opacity: 1; }
	100% { transform: scale(1); opacity: .45; }
}
@keyframes cn-mark-twinkle {
	0%, 86%, 100% { transform: scale(1) rotate(0deg); }
	92%           { transform: scale(1.16) rotate(9deg); }
}
@keyframes cn-mark-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.8%); } }

/* The fireflies sit above the banner and its scrim but below the text. */
.cn-fireflies {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.1s var(--ease);
}
.cn-fireflies.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
	.cn-fireflies { display: none; }
}


/* --------------------------------------------------------------------------
   30. The sky behind About

   The whole section is a night sky, in both themes: the Sun and its nine
   planets drawn across the full width by assets/js/space.js, with the story
   above them and the vision and mission below.

   Three layers, bottom up:
     .cn-space__sky     the deep-space ground, two starfield tiles and the
                        WebGL canvas
     .cn-space__still   a picture of the same scene, in the open space
                        between the story and the cards
     the content

   The still is what phones, reduced motion and modest devices see. Where the
   live scene runs it fades in over the top, and the still and the CSS stars
   fade out under it, so there is never a double set of planets.

   The live canvas sits in .cn-space__view, pinned to the window while the
   section passes, and on a desktop the stage is a window tall so the Earth
   gets the whole screen between the words and the cards. space.js adds
   .is-flat wherever the live scene will not run, which puts the stage back
   to the height the stills are made for.
   -------------------------------------------------------------------------- */
.cn-space {
	background: #020806;
	isolation: isolate;
	/* The band rule clips with overflow: hidden, which would make the section
	   its own scroller and stop the view below from pinning. clip crops the
	   same way without that. */
	overflow: clip;
}

/* The band rule lifts every direct child above its texture; the sky has to
   stay underneath everything. The middle band is one flat colour on purpose:
   the still picture is rendered on exactly that colour, so its edges melt
   into the section rather than showing as a box. */
.cn-space > .cn-space__sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(38% 30% at 10% 14%, rgba(78, 66, 150, .16), transparent 70%),
		radial-gradient(42% 34% at 92% 88%, rgba(38, 96, 132, .16), transparent 70%),
		linear-gradient(180deg, #041210 0%, #020806 30%, #020806 72%, #03100D 100%);
}

.cn-space__sky::before,
.cn-space__sky::after {
	content: '';
	position: absolute;
	inset: 0;
	background-repeat: repeat;
	transition: opacity 1.2s var(--ease);
}
.cn-space__sky::before {
	background-image: url('../img/space-stars-a.svg');
	background-size: 560px 560px;
}
.cn-space__sky::after {
	background-image: url('../img/space-stars-b.svg');
	background-size: 880px 880px;
	background-position: 180px 120px;
	animation: cn-twinkle 5.5s ease-in-out infinite alternate;
}
@keyframes cn-twinkle { from { opacity: .35; } to { opacity: 1; } }

/* One window of sky, held in place while the section scrolls past, so the
   film always plays to the whole screen and is drawn at window size rather
   than at the size of the section. */
.cn-space__view {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow: hidden;
}
.cn-space.is-flat .cn-space__view { display: none; }

.cn-space__canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1.2s var(--ease);
}

/* The open space the Sun sits in, between the story and the cards. It runs
   the full width of the window, not just the content column. The still is
   taller than the box and fades out behind the words and the cards, so it
   sits below them in the stack. */
.cn-space__stage {
	position: relative;
	z-index: -1;
	height: clamp(16rem, 25vw, 30rem);
	margin: clamp(1.5rem, 1rem + 2vw, 3rem) calc(50% - 50vw) 0;
	pointer-events: none;
}
/* Where the live scene runs (the same width and motion gate as space.js):
   room for the camera to fly in while the words scroll away, a moment on
   the Earth with nothing over it, and the pull back as the cards rise. About
   two windows from the stage's top to the cards, less the words above it. */
@media (min-width: 1000px) and (prefers-reduced-motion: no-preference) {
	.cn-space:not(.is-flat) .cn-space__stage { height: max(30rem, calc(205vh - 28rem)); }
}
/* Each still is a box the shape of its picture, centred on the stage, so the
   beacon can be placed on it in percentages. */
.cn-space__still {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	aspect-ratio: 3 / 1;
	transform: translateY(-50%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
	transition: opacity 1.2s var(--ease);
}
.cn-space__still img {
	display: block;
	width: 100%;
	max-width: none;
	height: 100%;
}
.cn-space__still--earth { opacity: 0; }
.cn-space__still--earth .cn-fiji {
	left: var(--fx);
	top: var(--fy);
	opacity: 1;
}

/* No live scene: the stills tell the same story. space.js sets --cn-focus
   from the stage's place on the screen, with the live scene's own curve:
   the whole system crossfades into the Earth, which settles in from a
   little smaller, and back again on the way out. */
.cn-space.is-story .cn-space__still { transition: none; }
.cn-space.is-story .cn-space__still--sys { opacity: calc(1 - var(--cn-focus, 0)); }
.cn-space.is-story .cn-space__still--earth {
	opacity: var(--cn-focus, 0);
	transform: translateY(-50%) scale(calc(.9 + .1 * var(--cn-focus, 0)));
}

/* Live: the canvas takes over and everything it replaces steps aside. */
.cn-space.is-live .cn-space__canvas { opacity: 1; }
.cn-space.is-live .cn-space__sky::before,
.cn-space.is-live .cn-space__sky::after,
.cn-space.is-live .cn-space__still { opacity: 0; animation: none; }

/* The words sit over open sky and a planet can pass behind them, so they
   carry a soft dark haze of their own. */
.cn-space .cn-shead,
.cn-space .cn-foundation {
	text-shadow: 0 0 18px rgba(2, 8, 6, .9), 0 1px 3px rgba(2, 8, 6, .7);
}

/* The vision and mission cards let a little of the sky through. */
.cn-space .cn-found { background: rgba(8, 26, 22, .84); }
html[data-theme='dark'] .cn-space .cn-found { background: rgba(17, 42, 34, .86); }

/* The beacon on Fiji (cn_fiji_beacon): the halo, double ping and white dot
   of the Pre-COP31 globe, in this site's teal. The live scene moves it with
   Fiji as the Earth turns and sets its opacity; it is a zero-size point, and
   everything else hangs off it. */
.cn-fiji {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 1;
	width: 0;
	height: 0;
	opacity: 0;
	pointer-events: none;
	will-change: transform, opacity;
}
.cn-fiji__halo,
.cn-fiji__ring,
.cn-fiji__dot {
	position: absolute;
	border-radius: 50%;
}
.cn-fiji__halo {
	left: -28px;
	top: -28px;
	width: 56px;
	height: 56px;
	background: radial-gradient(circle, rgba(127, 255, 212, .7) 0%, rgba(79, 195, 171, .28) 42%, rgba(79, 195, 171, 0) 70%);
	animation: cn-fiji-breathe 4.6s ease-in-out infinite;
}
.cn-fiji__ring {
	left: -8px;
	top: -8px;
	width: 16px;
	height: 16px;
	border: 1.5px solid #7FFFD4;
	opacity: 0;
	animation: cn-fiji-ping 3.2s cubic-bezier(.2, .6, .3, 1) infinite;
}
.cn-fiji__ring--late { animation-delay: 1.6s; }
.cn-fiji__dot {
	left: -4px;
	top: -4px;
	width: 8px;
	height: 8px;
	background: #FFFFFF;
	box-shadow: 0 0 12px 3px rgba(127, 255, 212, .85);
}
/* A leader line up and to the right, to a label clear of the planet's face. */
.cn-fiji__line {
	position: absolute;
	left: 6px;
	top: -1px;
	width: 58px;
	height: 1px;
	background: linear-gradient(90deg, rgba(127, 255, 212, .9), rgba(127, 255, 212, .35));
	transform: rotate(-34deg);
	transform-origin: 0 50%;
}
.cn-fiji__tag {
	position: absolute;
	left: 54px;
	bottom: 30px;
	display: grid;
	gap: .1rem;
	padding: .5rem .75rem;
	white-space: nowrap;
	font-family: var(--font-mono);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--d-ink-2);
	background: rgba(2, 12, 10, .62);
	border: 1px solid rgba(127, 255, 212, .32);
	border-radius: var(--radius);
}
.cn-fiji__tag strong {
	font-family: var(--font-sans);
	font-size: .95rem;
	font-weight: 650;
	letter-spacing: -.01em;
	text-transform: none;
	color: #FFFFFF;
}
@keyframes cn-fiji-breathe {
	0%, 100% { transform: scale(.86); opacity: .75; }
	50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes cn-fiji-ping {
	0%   { transform: scale(.35); opacity: .95; }
	70%  { opacity: .35; }
	100% { transform: scale(3.6); opacity: 0; }
}
/* The live beacon does not pulse while it is out of sight. */
.cn-space__sky .cn-fiji:not(.is-on) .cn-fiji__halo,
.cn-space__sky .cn-fiji:not(.is-on) .cn-fiji__ring { animation-play-state: paused; }

@media (max-width: 759px) {
	.cn-space__stage { height: min(100vw, 28rem); }
	.cn-space__still { aspect-ratio: 1 / 1; }
	.cn-space__still--earth .cn-fiji { left: var(--fx-m); top: var(--fy-m); }
	/* No room to the right on a phone: the label goes straight up instead,
	   centred over the beacon. */
	.cn-fiji__line {
		left: 0;
		top: -10px;
		width: 38px;
		transform: rotate(-90deg);
	}
	.cn-fiji__tag {
		left: 0;
		bottom: 50px;
		transform: translateX(-50%);
		text-align: center;
	}
}

/* Reduced motion: no crossfade, just the Earth with Fiji marked. */
@media (prefers-reduced-motion: reduce) {
	.cn-space__sky::after { animation: none; opacity: .8; }
	.cn-space__still--sys { opacity: 0; }
	.cn-space__still--earth { opacity: 1; }
	.cn-fiji__halo { animation: none; opacity: 1; }
	.cn-fiji__ring { animation: none; opacity: .5; transform: scale(1.6); }
}


/* --------------------------------------------------------------------------
   31. Stars and depth

   The stars are drawn by assets/js/stars.js on a canvas put first inside
   every dark band, above the band's grid and glow and below its content.
   Depth is theme.js: every section's body floats a little nearer than its
   band (data-cn-depth, set by the script), and a band's grid and glow sit a
   little further back (data-cn-par, set in the templates).
   -------------------------------------------------------------------------- */
.cn-stars {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	transition: opacity 1.4s var(--ease);
}
.cn-stars.is-on { opacity: 1; }
/* The band and footer rules lift every direct child above the texture; the
   stars stay between the texture and the words. */
.cn-band > .cn-stars,
.cn-footer > .cn-stars { z-index: 1; }

/* A grid that moves has to be taller than its band, or its top edge shows as
   the band slides over it. The fade starts where the band's top used to be. */
.cn-band__grid[data-cn-par] {
	inset: -140px 0;
	mask-image: radial-gradient(120% 100% at 50% 140px, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(120% 100% at 50% 140px, #000 0%, transparent 72%);
}

/* Moved by transform only, on its own layer, so the words inside are
   rasterised once and slid rather than painted again on every frame. */
[data-cn-depth] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
	[data-cn-depth] { transform: none !important; }
	.cn-stars { transition: none; }
}
