/*
 * HELAB design tokens
 *
 * Brand blue sampled from the logotype: #004a87 (sits at --brand-700).
 * Scales generated in OKLCH so the steps are perceptually even, then
 * contrast-checked against white and against --deep.
 */

:root {
	/* --- Brand ---------------------------------------------------------- */
	--brand-50:  #f2f6fb;
	--brand-100: #e2ecf7;
	--brand-200: #c5daf2;
	--brand-300: #9fc1e8;
	--brand-400: #71a2d8;
	--brand-500: #4985c5;
	--brand-600: #296aab;  /* 5.61:1 on white - links */
	--brand-700: #004a87;  /* 9.02:1 on white - the logotype blue */
	--brand-800: #00396b;
	--brand-900: #00274b;
	--brand-950: #01162f;

	/* --- Neutrals (cool, carries a trace of the brand hue) --------------- */
	--neutral-0:   #ffffff;
	--neutral-50:  #f8fafc;
	--neutral-100: #f0f3f6;
	--neutral-200: #e3e6ea;  /* hairlines */
	--neutral-300: #d1d5d9;
	--neutral-400: #9fa3a8;
	--neutral-500: #7b7f85;
	--neutral-600: #5e6267;  /* 6.14:1 - secondary text */
	--neutral-700: #464a4f;
	--neutral-800: #303438;
	--neutral-900: #1f2125;  /* body text */
	--neutral-950: #0f1115;

	/* --- Signal --------------------------------------------------------- */
	/* Amber, the colour of an indicator lamp on a control cabinet.
	   Used on dark ground and for small marks only - under 5% of the page. */
	--signal:        #f5b75b;  /* 9.86:1 on --deep */
	--signal-500:    #e99b2a;
	--signal-ink:    #a96000;  /* 4.82:1 on white, for the rare amber on light */

	/* The steel the cog rings have always been drawn in. */
	--steel:         #9bafc4;

	/* --- Semantic ------------------------------------------------------- */
	--deep:      #081423;  /* dark sections and the hero scrim */
	--deep-soft: #0f2136;
	--ink:       var(--neutral-900);
	--ink-muted: var(--neutral-600);
	--paper:     var(--neutral-0);
	--paper-sunk:var(--neutral-50);
	--hairline:  var(--neutral-200);
	--hairline-strong: var(--neutral-300);
	--on-deep:       #ffffff;
	--on-deep-muted: #b9c6d4;  /* 8.4:1 on --deep */

	/* --- Type ----------------------------------------------------------- */
	--font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont,
	             "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--step--2: clamp(0.78rem, 0.76rem + 0.10vw, 0.83rem);
	--step--1: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
	--step-0:  clamp(1.0625rem, 1.03rem + 0.20vw, 1.125rem);
	--step-1:  clamp(1.25rem, 1.18rem + 0.35vw, 1.4rem);
	--step-2:  clamp(1.4375rem, 1.30rem + 0.70vw, 1.8rem);
	--step-3:  clamp(1.75rem, 1.40rem + 1.60vw, 2.5rem);
	--step-4:  clamp(2.125rem, 1.60rem + 2.60vw, 3.5rem);
	--step-5:  clamp(2.75rem, 1.90rem + 4.20vw, 5rem);

	--lh-tight: 1.06;
	--lh-head:  1.14;
	--lh-body:  1.62;
	--track-display: -0.022em;
	--track-head:    -0.015em;

	/* --- Space (8pt) ---------------------------------------------------- */
	--space-1:  0.5rem;
	--space-2:  1rem;
	--space-3:  1.5rem;
	--space-4:  2rem;
	--space-5:  2.5rem;
	--space-6:  3rem;
	--space-8:  4rem;
	--space-10: 5rem;
	--space-12: 6rem;
	--space-16: 8rem;

	/* --section-y is the rhythm BETWEEN two sections. Each section carries
	   half of it, so two adjacent ones add up to exactly one unit instead
	   of two. */
	--section-y: clamp(5rem, 9vw, 10rem);
	--section-pad: calc(var(--section-y) / 2);
	--section-pad-tight: clamp(1.75rem, 3vw, 2.75rem);
	--container: 1360px;
	--gutter: clamp(20px, 5vw, 64px);
	--prose: 68ch;

	/* --- Shape and motion ----------------------------------------------- */
	--radius-card: 16px;
	--radius-ui:   10px;
	--radius-pill: 999px;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dur-fast: 200ms;
	--dur-base: 300ms;
	--dur-slow: 500ms;

	--header-h: 96px;
	--header-h-scrolled: 68px;
	--z-header: 500;
	--z-drawer: 600;
}

@media (prefers-reduced-motion: reduce) {
	:root {
		--dur-fast: 1ms;
		--dur-base: 1ms;
		--dur-slow: 1ms;
	}
}

/*
 * HELAB base layer
 *
 * Sits on top of Enfold. Everything here is either a typographic reset of
 * Avia's 2014 defaults, or one of the three shared components the brief
 * asks for: buttons, cards, links.
 */

/* --- Font ------------------------------------------------------------- */

@font-face {
	font-family: "Inter var";
	src: url("../fonts/inter-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
	               U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122,
	               U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Document --------------------------------------------------------- */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

body,
body.helvetica-neue-websave,
body.helvetica_neue {
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: var(--lh-body);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-synthesis-weight: none;
}

/* Avia hard-codes the body font onto a long list of selectors. */
#top,
#top div,
#top p,
#top span,
#top li,
#top a,
#top input,
#top select,
#top textarea,
#top button,
#top .avia_textblock,
#top .main_color,
#top .alternate_color,
#top .primary_color {
	font-family: var(--font-sans);
}

/* No horizontal scroll at any width. */
html, body { overflow-x: clip; }

/* --- Headings --------------------------------------------------------- */

#top h1, #top h2, #top h3, #top h4, #top h5, #top h6,
#top .av-special-heading-tag {
	font-family: var(--font-sans);
	font-weight: 600;
	color: var(--ink);
	letter-spacing: var(--track-head);
	line-height: var(--lh-head);
	text-wrap: balance;
	margin: 0 0 var(--space-2);
	text-transform: none;
}

#top h1 { font-size: var(--step-4); letter-spacing: var(--track-display); line-height: var(--lh-tight); }
#top h2 { font-size: var(--step-3); }
#top h3 { font-size: var(--step-2); }
#top h4 { font-size: var(--step-1); }
#top h5 { font-size: var(--step-0); }
#top h6 { font-size: var(--step--1); }

#top p {
	margin: 0 0 var(--space-2);
	text-wrap: pretty;
}

#top p:last-child { margin-bottom: 0; }

/* Ingress: the one paragraph directly after an h1 or h2 in a lead block. */
.helab-lead {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink-muted);
	text-wrap: pretty;
	max-width: 56ch;
}

/* Comfortable measure for running text. */
#top .avia_textblock,
#top .entry-content-wrapper p {
	max-width: var(--prose);
}

#top .avia_textblock.helab-full,
#top .helab-section .avia_textblock {
	max-width: none;
}

/* --- Headings in running content --------------------------------------- */
/*
 * The builder puts every heading in a text block of its own with no margin,
 * so a subheading sat flush against the paragraph it was meant to break up.
 */

#top .entry-content-wrapper > .av_textblock_section:not(:first-child):has(> .avia_textblock > :is(h1, h2, h3, h4, h5, h6):first-child) {
	margin-top: var(--space-5);
}

/* And the same where a heading follows copy inside one block. */
#top .avia_textblock :is(h2, h3, h4, h5, h6):not(:first-child) {
	margin-top: var(--space-5);
}

/* --- Numerals --------------------------------------------------------- */

.helab-tnum,
#top .helab-stat-value,
#top .helab-step-index,
#top a[href^="tel:"] {
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

/* --- Layout ----------------------------------------------------------- */

#top .helab-container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

#top .helab-section {
	padding-block: var(--section-pad);
}

#top .helab-section--sunk { background: var(--paper-sunk); }
#top .helab-section--tight { padding-block: var(--section-pad-tight); }

/* Anchor targets clear the sticky header. */
#top [id] { scroll-margin-top: calc(var(--header-height, var(--header-h-scrolled)) + var(--space-3)); }

/* --- Links ------------------------------------------------------------ */

#top a {
	color: var(--brand-600);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	transition: color var(--dur-fast) var(--ease);
}

#top a:hover { color: var(--brand-700); }

/* Text link with an arrow - the third button variant. */
#top .helab-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	font-weight: 600;
	color: var(--brand-700);
	text-decoration: none;
	line-height: 1.3;
}

#top .helab-link:hover { color: var(--brand-800); }
#top .helab-link:hover .helab-arrow { transform: translateX(4px); }

.helab-arrow {
	flex: none;
	width: 1em;
	height: 1em;
	transition: transform var(--dur-base) var(--ease);
}

/* --- Focus ------------------------------------------------------------ */

#top :focus { outline: none; }

#top a:focus-visible,
#top button:focus-visible,
#top input:focus-visible,
#top select:focus-visible,
#top textarea:focus-visible,
#top [tabindex]:focus-visible,
#top summary:focus-visible {
	outline: 2px solid var(--brand-700);
	outline-offset: 2px;
	border-radius: 4px;
}

.helab-on-deep :focus-visible,
#top .helab-on-deep a:focus-visible,
#top .helab-on-deep button:focus-visible,
#top .helab-on-deep input:focus-visible,
#top .helab-on-deep textarea:focus-visible {
	outline-color: var(--signal);
}

/* Skip link. */
#top .helab-skip {
	position: absolute;
	left: var(--space-2);
	top: var(--space-2);
	z-index: 9999;
	padding: 0.75rem 1.25rem;
	background: var(--paper);
	color: var(--brand-700);
	font-weight: 600;
	border-radius: var(--radius-ui);
	box-shadow: 0 8px 24px rgb(8 20 35 / 0.18);
	transform: translateY(-160%);
	transition: transform var(--dur-fast) var(--ease);
}

#top .helab-skip:focus { transform: translateY(0); }

.helab-visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --- Buttons ---------------------------------------------------------- */
/* Exactly three variants. Enfold's own .avia-button is remapped onto them. */

#top .helab-btn,
#top .avia-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border: 1px solid transparent;
	border-radius: var(--radius-ui);
	font-family: var(--font-sans);
	font-size: var(--step-0);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	background: var(--brand-700);
	color: #fff;
	box-shadow: none;
	text-shadow: none;
	transition: background-color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease),
	            color var(--dur-fast) var(--ease);
}

#top .helab-btn:hover,
#top .avia-button:hover { background: var(--brand-800); color: #fff; }

#top .helab-btn--secondary,
#top .avia-button.avia-color-light,
#top .avia-button.avia-color-theme-color-subtle {
	background: transparent;
	color: var(--brand-700);
	border-color: var(--hairline-strong);
}

#top .helab-btn--secondary:hover,
#top .avia-button.avia-color-light:hover,
#top .avia-button.avia-color-theme-color-subtle:hover {
	background: var(--brand-50);
	border-color: var(--brand-700);
	color: var(--brand-800);
}

/* On dark ground the secondary flips to a light outline. */
#top .helab-on-deep .helab-btn--secondary,
#top .helab-on-deep .avia-button.avia-color-light {
	color: #fff;
	border-color: rgb(255 255 255 / 0.35);
	background: transparent;
}

#top .helab-on-deep .helab-btn--secondary:hover,
#top .helab-on-deep .avia-button.avia-color-light:hover {
	background: rgb(255 255 255 / 0.10);
	border-color: #fff;
	color: #fff;
}

#top .helab-btn--ghost {
	background: transparent;
	color: var(--brand-700);
	border-color: transparent;
	padding-inline: 0.5rem;
}

#top .helab-btn--ghost:hover { background: var(--brand-50); color: var(--brand-800); }

#top .helab-btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

/* --- Card ------------------------------------------------------------- */
/* One card component. Equal heights come from the grid, never fixed px. */

#top .helab-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
	gap: var(--space-4);
	align-items: stretch;
}

#top .helab-card {
	container-type: inline-size;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	overflow: hidden;
	transition: border-color var(--dur-base) var(--ease),
	            transform var(--dur-base) var(--ease);
}

#top .helab-card:hover { border-color: var(--hairline-strong); }
#top .helab-card:has(a:hover) { transform: translateY(-2px); }
#top .helab-card:has(a:focus-visible) { border-color: var(--brand-700); }

#top .helab-card-media {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--neutral-100);
}

#top .helab-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--dur-slow) var(--ease);
}

#top .helab-card:has(a:hover) .helab-card-media img { transform: scale(1.03); }

#top .helab-card-body {
	display: flex;
	flex-direction: column;
	gap: var(--space-1);
	padding: clamp(1.25rem, 2.5cqi + 1rem, 2rem);
	flex: 1;
}

#top .helab-card-body h3 { font-size: var(--step-2); margin: 0; }
#top .helab-card-body p { color: var(--ink-muted); margin: 0; }
#top .helab-card-body .helab-link { margin-top: auto; padding-top: var(--space-2); }

/* The whole card is clickable; the link keeps the accessible name. */
#top .helab-card-link::after {
	content: "";
	position: absolute;
	inset: 0;
}

#top .helab-card { position: relative; }

/* --- Hairline rule ---------------------------------------------------- */

#top .helab-rule {
	border: 0;
	border-top: 1px solid var(--hairline);
	margin: 0;
}

/* --- Social icons ----------------------------------------------------- */

#top .helab-social,
#top .av-social-link,
#top .avia-icon-list .iconlist_icon {
	color: var(--neutral-600);
}

#top .helab-social {
	display: inline-flex;
	gap: var(--space-2);
	align-items: center;
}

#top .helab-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--neutral-600);
	border-radius: var(--radius-ui);
	transition: color var(--dur-fast) var(--ease),
	            background-color var(--dur-fast) var(--ease);
}

#top .helab-social a:hover { color: var(--brand-700); background: var(--brand-50); }
#top .helab-social svg { width: 24px; height: 24px; fill: currentColor; }

/* Avia's entypo social icons inherit the same treatment. */
#top .av_font_icon a,
#top .av-share-link a { color: var(--neutral-600) !important; }
#top .av_font_icon a:hover { color: var(--brand-700) !important; }

/* --- Scroll to top ---------------------------------------------------- */

#top #scroll-top-link {
	width: 44px;
	height: 44px;
	line-height: 44px;
	border-radius: var(--radius-pill);
	background: rgb(255 255 255 / 0.82);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--hairline);
	color: var(--neutral-700);
	box-shadow: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--dur-base) var(--ease),
	            transform var(--dur-base) var(--ease),
	            visibility var(--dur-base);
}

#top #scroll-top-link.avia_pop_class,
#top #scroll-top-link.helab-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

#top #scroll-top-link:hover { color: var(--brand-700); border-color: var(--hairline-strong); }

/* --- Reveal ----------------------------------------------------------- */
/*
 * The single motion mechanic: one fade and 12px rise, once, 60ms apart.
 * Gated on the .helab-js flag, so a page whose script never arrives shows
 * its content rather than a column of invisible sections.
 */

.helab-js .helab-reveal {
	opacity: 0;
	transform: translateY(12px);
}

.helab-reveal.is-in {
	opacity: 1;
	transform: none;
	transition: opacity var(--dur-slow) var(--ease),
	            transform var(--dur-slow) var(--ease);
	transition-delay: var(--reveal-delay, 0ms);
}

@media (prefers-reduced-motion: reduce) {
	.helab-js .helab-reveal { opacity: 1; transform: none; }
	#top *,
	#top *::before,
	#top *::after {
		animation-duration: 1ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 1ms !important;
		scroll-behavior: auto !important;
	}
}

/* --- Avia's grid, on the new measurements ----------------------------- */
/*
 * Enfold centres content in a 1310px container with a fixed 50px gutter.
 * Matching it to the token values lines every Avia section up with the
 * components, at every width.
 */

#top .container_wrap > .container,
#top .avia-section > .container,
#top .av-layout-grid-container > .container {
	max-width: var(--container);
	padding-inline: var(--gutter);
}

/*
 * The intro. Set as two columns - the lead on the left, the detail on the
 * right - rather than one column of text with an empty half beside it.
 */
#top .helab-intro.avia-section,
#top .helab-gears.avia-section { padding-block: var(--section-pad); }

#top .helab-intro .avia_textblock {
	max-width: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(2.5rem, 6vw, 6rem);
	row-gap: var(--space-2);
	align-items: start;
}

#top .helab-intro .avia_textblock > p:first-child {
	grid-column: 1;
	grid-row: 1 / span 3;
	margin: 0;
	font-size: var(--step-2);
	line-height: 1.35;
	letter-spacing: var(--track-head);
	color: var(--ink);
	text-wrap: pretty;
}

#top .helab-intro .avia_textblock > p:nth-child(n + 2) {
	grid-column: 2;
	margin: 0;
	color: var(--ink-muted);
}

@media (max-width: 860px) {
	#top .helab-intro .avia_textblock { grid-template-columns: minmax(0, 1fr); }
	#top .helab-intro .avia_textblock > p:first-child { grid-column: 1; grid-row: auto; }
	#top .helab-intro .avia_textblock > p:nth-child(n + 2) { grid-column: 1; }
}

/* --- Avia decoration we do not want ----------------------------------- */
#top #main .avia-section { background-image: none; }
#top .avia_textblock img.filter-blue { /* the old quote-mark PNG */ display: none; }
#top .avia-builder-el-no-sibling { margin: 0; }

/* --- Full bleed -------------------------------------------------------- */
/*
 * Avia renders page content inside a 1310px .container, so the components
 * that are meant to span the window have to step back out of it. The width
 * of the vertical scrollbar is measured once and subtracted, otherwise
 * 100vw overshoots by exactly that much and the content sits off-centre.
 */

#top .helab-hero,
#top .helab-band,
#top .helab-contact,
#top .helab-section {
	--bleed: calc(100vw - var(--scrollbar-width, 0px));
	width: var(--bleed);
	max-width: var(--bleed);
	margin-inline: calc(50% - var(--bleed) / 2);
}

/* Nested sections stay inside their parent. */
#top .helab-contact .helab-section,
#top .helab-section .helab-section {
	width: auto;
	max-width: none;
	margin-inline: 0;
}

/* Avia's own spacing around the content area fights the section rhythm. */
/*
 * Enfold pads its content column by 50px top and bottom. Between two of the
 * layer's own sections that lands as 100px of nothing on top of the section
 * rhythm, and at the foot of the page it shows as a white strip between the
 * dark contact block and the footer. The sections own their spacing now.
 */
#top #main .template-page.content {
	padding-block: 0;
}

/*
 * The vertical rhythm, stated once for every content column on the site -
 * Avia's sections and the wrappers it uses for anything outside a section
 * alike. Half a unit each, so two adjacent columns add up to exactly one
 * --section-y between them.
 */
#top #main .container_wrap > .container {
	padding-block: var(--section-pad);
}

/*
 * Two columns take none of it.
 *
 * A column holding nothing but Avia's invisible spacers is a background
 * banner; padding there would only stretch the photograph.
 */
#top #main .container_wrap > .container:not(:has(.entry-content-wrapper > :not(.hr))) {
	padding-block: 0;
}

/* And a column whose content already carries its own spacing. */
#top #main .container_wrap > .container:has(.entry-content-wrapper > :is(.helab-hero, .helab-section, .helab-contact, .helab-band, .helab-gears)) {
	padding-block: 0;
}

/* These two put the padding on the section rather than the column. */
#top #main .avia-section.helab-intro > .container,
#top #main .avia-section.helab-gears > .container {
	padding-block: 0;
}

/* Enfold draws a hairline on top of every colour section wrapper. The
   layer's own sections carry their own rules where a rule belongs. */
#top #main .container_wrap,
#top #main .av_default_container_wrap {
	border-top-width: 0;
}

/* And one across the hero, just under the transparent header. */
#top .container_wrap_logo,
#top #header .container_wrap_logo {
	border-bottom-width: 0;
}

/* --- Pages written without the builder --------------------------------- */
/*
 * A page typed straight into the editor has none of Avia's section wrappers,
 * so it inherits no rhythm: the heading landed under the fixed header and the
 * closing paragraph ran into the footer. These give it the same measurements
 * as everything else.
 */

#top.helab-plain-page #main .template-page.content {
	padding-block: var(--section-pad);
}

#top.helab-plain-page #main .template-page.content:has(.helab-band) {
	padding-bottom: 0;
}

/* Avia narrows the column itself to 772px, which is fine for the text but
   leaves a full-bleed band computing its offset from the wrong centre. The
   column goes full width and the measure moves onto the text. */
#top.helab-plain-page .entry-content,
#top.helab-plain-page .entry-content-wrapper {
	max-width: none;
	width: 100%;
}

#top.helab-plain-page .entry-content > *,
#top.helab-plain-page .entry-content-wrapper > * {
	max-width: var(--prose);
}

#top.helab-plain-page .entry-content > h1,
#top.helab-plain-page .entry-content-wrapper > h1 {
	max-width: 22ch;
	margin-bottom: var(--space-4);
}

#top.helab-plain-page .entry-content > h2,
#top.helab-plain-page .entry-content > h3,
#top.helab-plain-page .entry-content > h4,
#top.helab-plain-page .entry-content-wrapper > h2,
#top.helab-plain-page .entry-content-wrapper > h3,
#top.helab-plain-page .entry-content-wrapper > h4 {
	margin-top: var(--space-5);
	max-width: 30ch;
}

#top.helab-plain-page .entry-content > p,
#top.helab-plain-page .entry-content-wrapper > p {
	margin-bottom: var(--space-2);
	color: var(--ink-muted);
}

#top.helab-plain-page .entry-content > p:first-of-type,
#top.helab-plain-page .entry-content-wrapper > p:first-of-type {
	font-size: var(--step-1);
	line-height: 1.5;
	color: var(--ink);
}

/* The band closes the page, so it must not be squeezed by the measure. */
#top.helab-plain-page .entry-content > .helab-band,
#top.helab-plain-page .entry-content-wrapper > .helab-band {
	max-width: none;
	margin-top: var(--section-pad);
}



/*
 * HELAB header
 *
 * Transparent over the hero, then a blurred bar with a hairline underside
 * once a sentinel above the fold leaves the viewport. Height 96 -> 68.
 */

#top #header {
	position: fixed;
	inset-inline: 0;
	top: 0;
	margin: 0;
	z-index: var(--z-header);
	background: transparent;
	border-bottom: 1px solid transparent;
	transition: background-color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease),
	            backdrop-filter var(--dur-fast) var(--ease);
}

/* Enfold paints the header background in a separate element. */
#top #header .header_bg,
#top #header_main .container_wrap,
#top #header_meta { background: transparent; border: 0; box-shadow: none; }

#top #header_meta { display: none; }

#top #header.helab-stuck {
	background: rgb(255 255 255 / 0.94);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	border-bottom-color: var(--hairline);
}

@supports not (backdrop-filter: blur(20px)) {
	#top #header.helab-stuck { background: rgb(255 255 255 / 0.99); }
}

/*
 * Over the hero the navigation is white on a photograph. The hero's own
 * scrim is too light at the top to carry 15px text, so the header brings
 * its own, which fades out and disappears entirely once the bar is solid.
 */
#top #header::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 180px;
	pointer-events: none;
	background: linear-gradient(to bottom, rgb(8 20 35 / 0.62), rgb(8 20 35 / 0.28) 60%, rgb(8 20 35 / 0));
	opacity: 1;
	transition: opacity var(--dur-fast) var(--ease);
}

#top #header.helab-stuck::before { opacity: 0; }

/*
 * Pages without a hero open on white, so the bar is solid from the first
 * pixel - a transparent header there would mean white text on white.
 */
#top:not(.helab-has-hero) #header::before { content: none; }

#top:not(.helab-has-hero) #header {
	background: rgb(255 255 255 / 0.94);
	backdrop-filter: blur(20px) saturate(1.4);
	-webkit-backdrop-filter: blur(20px) saturate(1.4);
	border-bottom-color: var(--hairline);
}

@supports not (backdrop-filter: blur(20px)) {
	#top:not(.helab-has-hero) #header { background: rgb(255 255 255 / 0.99); }
}

/* The bar itself. */
#top #header_main .av-logo-container,
#top #header_main > .container {
	display: flex;
	align-items: center;
	gap: var(--space-4);
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
	height: var(--header-h);
	transition: height var(--dur-fast) var(--ease);
}

#top #header.helab-stuck #header_main .av-logo-container,
#top #header.helab-stuck #header_main > .container { height: var(--header-h-scrolled); }

#top #header_main .inner-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-4);
	width: 100%;
	height: 100%;
}

/* --- Logotype --------------------------------------------------------- */

#top #header .logo {
	position: static;
	display: flex;
	align-items: center;
	height: 100%;
	width: auto;
	max-width: none;
}

#top #header .logo a {
	display: flex;
	align-items: center;
	height: 100%;
	line-height: 1;
}

#top #header .logo img {
	width: auto;
	height: clamp(46px, 4.6vw, 64px);
	max-height: none;
	padding: 0;
	transition: height var(--dur-fast) var(--ease);
}

#top #header.helab-stuck .logo img { height: clamp(40px, 3.8vw, 52px); }

/* Over the hero the logotype is knocked out to white. */
#top.helab-has-hero #header:not(.helab-stuck) .logo img {
	filter: brightness(0) invert(1);
}

/* --- Navigation ------------------------------------------------------- */

#top #header .main_menu {
	position: static;
	display: flex;
	align-items: center;
	height: 100%;
	margin-left: auto;
}

#top #header .av-main-nav-wrap { position: static; }

#top #header .av-main-nav {
	display: flex;
	align-items: center;
	gap: clamp(0.25rem, 1.2vw, 1.25rem);
	height: 100%;
}

#top #header .av-main-nav > li {
	position: relative;
	height: auto;
	line-height: 1.3;
}

#top #header .av-main-nav > li > a {
	position: relative;
	display: flex;
	align-items: center;
	height: auto;
	padding: 0.5rem 0.25rem;
	font-size: var(--step--1);
	font-weight: 500;
	line-height: 1.3;
	color: var(--neutral-800);
	white-space: nowrap;
	text-decoration: none;
	background: transparent;
	border: 0;
	transition: color var(--dur-fast) var(--ease);
}

#top.helab-has-hero #header:not(.helab-stuck) .av-main-nav > li > a { color: #fff; }

#top #header .av-main-nav > li > a .avia-menu-text { display: inline-block; }
#top #header .av-main-nav .avia-menu-fx,
#top #header .av-main-nav .avia-bullet { display: none; }

/* Current page gets an indicator, not just a colour. */
#top #header .av-main-nav > li > a::after {
	content: "";
	position: absolute;
	left: 0.25rem;
	right: 0.25rem;
	bottom: 0;
	height: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--dur-fast) var(--ease);
}

#top #header .av-main-nav > li > a:hover::after { transform: scaleX(1); }

#top #header .av-main-nav > li.current-menu-item > a::after,
#top #header .av-main-nav > li.current_page_item > a::after,
#top #header .av-main-nav > li.current-menu-ancestor > a::after,
#top #header .av-main-nav > li.helab-current > a::after {
	transform: scaleX(1);
	background: var(--brand-700);
}

#top.helab-has-hero #header:not(.helab-stuck) .av-main-nav > li.current-menu-item > a::after,
#top.helab-has-hero #header:not(.helab-stuck) .av-main-nav > li.helab-current > a::after { background: var(--signal); }

/* Dropdowns. */
#top #header .av-main-nav ul.sub-menu {
	left: 0;
	top: 100%;
	min-width: 16rem;
	padding: var(--space-1);
	background: var(--paper);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-card);
	box-shadow: 0 16px 40px rgb(8 20 35 / 0.12);
}

#top #header .av-main-nav ul.sub-menu li { width: auto; }

#top #header .av-main-nav ul.sub-menu a {
	display: block;
	padding: 0.625rem 0.75rem;
	min-height: 0;
	height: auto;
	line-height: 1.35;
	font-size: var(--step--1);
	font-weight: 400;
	color: var(--neutral-800);
	border: 0;
	border-radius: var(--radius-ui);
	background: transparent;
}

#top #header .av-main-nav ul.sub-menu a:hover { background: var(--brand-50); color: var(--brand-700); }

/* --- The nav CTA ------------------------------------------------------ */

#top #header .av-main-nav > li.helab-nav-cta > a,
#top #header .helab-nav-cta > a {
	padding: 0 1.15rem;
	margin-left: 0.5rem;
	min-height: 44px;
	height: 44px;
	border-radius: var(--radius-ui);
	background: var(--brand-700);
	color: #fff;
	font-weight: 600;
	border: 1px solid var(--brand-700);
	transition: background-color var(--dur-fast) var(--ease),
	            border-color var(--dur-fast) var(--ease);
}

/* The underline indicator belongs to the text links, not to the button.
   It has to out-weigh #top #header .av-main-nav > li > a:hover::after. */
#top #header .av-main-nav > li.helab-nav-cta > a::after,
#top #header .av-main-nav > li.helab-nav-cta > a:hover::after,
#top #header .helab-nav-cta > a::after { content: none; display: none; }
#top #header .av-main-nav > li.helab-nav-cta > a:hover,
#top #header .helab-nav-cta > a:hover { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

#top.helab-has-hero #header:not(.helab-stuck) .av-main-nav > li.helab-nav-cta > a,
#top.helab-has-hero #header:not(.helab-stuck) .helab-nav-cta > a {
	background: rgb(255 255 255 / 0.12);
	border-color: rgb(255 255 255 / 0.55);
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

#top.helab-has-hero #header:not(.helab-stuck) .av-main-nav > li.helab-nav-cta > a:hover,
#top.helab-has-hero #header:not(.helab-stuck) .helab-nav-cta > a:hover {
	background: #fff;
	border-color: #fff;
	color: var(--brand-800);
}

/* --- Burger ----------------------------------------------------------- */

#top #header .av-burger-menu-main { display: none !important; }

#top .helab-burger {
	display: none;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin-left: var(--space-1);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: var(--radius-ui);
	color: var(--neutral-900);
	cursor: pointer;
}

#top.helab-has-hero #header:not(.helab-stuck) .helab-burger { color: #fff; }

.helab-burger-box {
	position: relative;
	display: block;
	width: 22px;
	height: 14px;
}

.helab-burger-box span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
	transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.helab-burger-box span:nth-child(1) { top: 0; }
.helab-burger-box span:nth-child(2) { top: 6px; }
.helab-burger-box span:nth-child(3) { top: 12px; }

#top .helab-burger[aria-expanded="true"] .helab-burger-box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#top .helab-burger[aria-expanded="true"] .helab-burger-box span:nth-child(2) { opacity: 0; }
#top .helab-burger[aria-expanded="true"] .helab-burger-box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer ---------------------------------------------------- */

#top .helab-drawer {
	position: fixed;
	inset: 0;
	z-index: var(--z-drawer);
	display: flex;
	flex-direction: column;
	background: var(--deep);
	color: var(--on-deep);
	/* Measured from the bar itself rather than assumed: on a phone Enfold
	   sizes it from its content, so the token was 22px out. */
	padding: calc(var(--header-height, var(--header-h-scrolled)) + var(--space-2)) var(--gutter) var(--space-6);
	overflow-y: auto;
	overscroll-behavior: contain;
	opacity: 0;
	transform: translateY(-12px);
	visibility: hidden;
	transition: opacity var(--dur-base) var(--ease),
	            transform var(--dur-base) var(--ease),
	            visibility var(--dur-base);
}

#top .helab-drawer[data-open="true"] {
	opacity: 1;
	transform: none;
	visibility: visible;
}

#top .helab-drawer ul { list-style: none; margin: 0; padding: 0; }

#top .helab-drawer > nav > ul > li + li { border-top: 1px solid rgb(255 255 255 / 0.12); }

#top .helab-drawer a {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding: 0.5rem 0;
	font-size: var(--step-1);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	letter-spacing: var(--track-head);
}

#top .helab-drawer a:hover { color: var(--signal); }

#top .helab-drawer .sub-menu { padding-left: var(--space-2); padding-bottom: var(--space-2); }

#top .helab-drawer .sub-menu a {
	min-height: 48px;
	font-size: var(--step-0);
	font-weight: 400;
	color: var(--on-deep-muted);
}

#top .helab-drawer-foot {
	margin-top: var(--space-6);
	padding-top: var(--space-4);
	border-top: 1px solid rgb(255 255 255 / 0.12);
	display: grid;
	gap: var(--space-2);
}

#top .helab-drawer-foot .helab-btn { width: 100%; }

#top .helab-drawer-foot a[href^="tel:"] {
	color: var(--on-deep-muted);
	font-size: var(--step-0);
	min-height: 44px;
	font-weight: 400;
}

body.helab-drawer-open { overflow: hidden; }

/*
 * While the drawer is open the header has to stay on top of it, otherwise
 * the burger - which is also the close button - disappears behind the panel.
 */
#top.helab-drawer-open #header {
	z-index: calc(var(--z-drawer) + 1);
	background: transparent;
	border-bottom-color: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

#top.helab-drawer-open #header::before { opacity: 0; }

/*
 * The rule that dresses the bar on a phone re-colours the border from
 * further up the tree than anything scoped to the open drawer can reach
 * (.html_mobile_menu_tablet #top #wrap_all .av_header_transparency). The
 * width, though, is set here - so that is what gets taken away, and the
 * colour never comes into it.
 */
#top.helab-drawer-open #header,
#top.helab-drawer-open #header_main,
#top.helab-drawer-open #header .header_bg,
#top.helab-drawer-open #header .container_wrap {
	border-bottom-width: 0;
	box-shadow: none;
}
#top.helab-drawer-open #header .helab-burger { color: #ffffff; }

/*
 * The drawer carries the menu; the logotype above it only read as a second
 * header. Hidden rather than removed, so the box it occupies stays and the
 * close button does not jump when the drawer opens or closes.
 */
#top.helab-drawer-open #header .logo { visibility: hidden; }

/* --- Breakpoint ------------------------------------------------------- */

@media (max-width: 1024px) {
	/*
	 * Below its own breakpoints Enfold takes the header out of the fixed
	 * position and paints it solid white, from selectors carrying more
	 * weight than anything that can be written without !important.
	 */
	#top #header {
		position: fixed !important;
		top: 0 !important;
	}

	#top.helab-has-hero #header { background-color: transparent !important; }

	#top:not(.helab-has-hero) #header { background-color: rgb(255 255 255 / 0.88) !important; }

	#top #header.helab-stuck { background-color: rgb(255 255 255 / 0.85) !important; }

	/* Same re-colour, same answer: while the bar is transparent over the
	   hero there is no line, and the width is what gets taken away. */
	#top.helab-has-hero #header:not(.helab-stuck) { border-bottom-width: 0; }

	#top.helab-drawer-open #header { background-color: transparent !important; }

	#top #header .header_bg,
	#top #header .av_header_transparency { background-color: transparent !important; opacity: 1; }

	#top #header .av-main-nav > li:not(.helab-burger-item) { display: none; }
	#top #header .av-main-nav { gap: 0; }
	#top #header .main_menu { margin-left: auto; }

	/* Enfold hides every menu item below its own breakpoint, so the burger
	   has to be put back explicitly. */
	#top #header .av-main-nav > li.helab-burger-item { display: inline-flex; }
	#top .helab-burger { display: inline-flex; }

	/* And it pins the logotype to 80px tall and 80% wide with !important,
	   which on a phone leaves no room for anything else in the bar. */
	#top #header .logo {
		height: 100% !important;
		width: auto !important;
		max-width: 62%;
	}

	#top #header .logo img {
		height: clamp(28px, 7vw, 34px) !important;
		width: auto !important;
		max-width: 100%;
	}

	#top #header.helab-stuck .logo img { height: clamp(24px, 6vw, 30px) !important; }

	/* Enfold forces height:auto !important on the bar below 767px, so the
	   height has to come from min-height instead. */
	#top #header_main .av-logo-container,
	#top #header_main > .container {
		height: auto;
		min-height: var(--header-h-scrolled);
	}

	#top #header.helab-stuck #header_main .av-logo-container,
	#top #header.helab-stuck #header_main > .container { min-height: 60px; }

	/*
	 * Enfold pins the menu to the top of the logo box
	 * (.responsive #top #wrap_all .main_menu { position:absolute; top:0 }),
	 * which left the burger sitting 6px below the logotype's centre line.
	 * Three ids to out-weigh it, then centred on the same box the logotype
	 * occupies - so the two stay aligned whatever height the logo takes.
	 */
	#top #wrap_all #header .main_menu {
		position: absolute;
		top: 50%;
		right: 0;
		height: auto;
		transform: translateY(-50%);
	}

	#top #header .av-main-nav-wrap,
	#top #header .av-main-nav {
		position: static;
		display: flex;
		align-items: center;
		height: auto;
		min-height: 0;
	}

	#top #header .av-main-nav > li.helab-burger-item {
		height: auto;
		line-height: 1;
	}

	#top #header .logo img { height: clamp(30px, 8vw, 38px) !important; }
	#top #header.helab-stuck .logo img { height: clamp(26px, 7vw, 32px) !important; }
}

@media (min-width: 1025px) {
	#top #header .av-main-nav > li.helab-burger-item { display: none; }
	#top .helab-drawer { display: none; }
}

/* The header floats over the hero, so only non-hero pages need the offset. */
body:not(.helab-has-hero) #main { padding-top: var(--header-h); }

/*
 * HELAB hero
 *
 * Drone footage over Lysekil harbour behind a scrim, left-aligned headline,
 * two calls to action, and a trust row on a hairline underneath.
 */

#top .helab-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: min(88svh, 900px);
	padding-top: calc(var(--header-h) + var(--space-8));
	padding-bottom: var(--space-6);
	background: var(--deep);
	color: var(--on-deep);
	isolation: isolate;
	overflow: hidden;
}

#top .helab-hero-media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

#top .helab-hero-media img,
#top .helab-hero-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* The poster sits under the video so there is never a flash of empty ground. */
#top .helab-hero-media video {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 600ms var(--ease);
}

#top .helab-hero-media video.is-playing { opacity: 1; }

/*
 * Scrim. Two layers: the vertical one grounds the foot of the image, and
 * a second one runs in from the left, because the headline is left-aligned
 * and the harbour behind it is bright. Measured against the actual photo:
 * the worst pixel under the h1 has to clear 3:1, and under the ingress and
 * the trust row 4.5:1.
 */
#top .helab-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(
			to right,
			rgb(8 20 35 / 0.74),
			rgb(8 20 35 / 0.60) 48%,
			rgb(8 20 35 / 0.22) 76%,
			rgb(8 20 35 / 0)
		),
		linear-gradient(
			to top,
			rgb(8 20 35 / 0.70),
			rgb(8 20 35 / 0.52) 42%,
			rgb(8 20 35 / 0.10) 78%,
			rgb(8 20 35 / 0)
		);
}

#top .helab-hero-inner {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

#top .helab-hero h1 {
	max-width: 14ch;
	margin: 0 0 var(--space-3);
	font-size: var(--step-5);
	font-weight: 600;
	line-height: var(--lh-tight);
	letter-spacing: var(--track-display);
	color: #fff;
	text-wrap: balance;
}

#top .helab-hero-lead {
	max-width: 54ch;
	margin: 0 0 var(--space-4);
	font-size: var(--step-1);
	line-height: 1.5;
	color: #e8eef5;
	text-wrap: pretty;
}

#top .helab-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
}

#top .helab-hero .helab-btn { background: var(--brand-700); border-color: var(--brand-700); }
#top .helab-hero .helab-btn:hover { background: var(--brand-600); border-color: var(--brand-600); }

#top .helab-hero .helab-btn--secondary {
	background: rgb(255 255 255 / 0.10);
	border-color: rgb(255 255 255 / 0.45);
	color: #fff;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

#top .helab-hero .helab-btn--secondary:hover { background: #fff; border-color: #fff; color: var(--brand-800); }

/* --- Trust row -------------------------------------------------------- */
/* Items are separated by a hairline, the way a cabinet divides its fields. */

#top .helab-trust {
	margin-top: var(--space-6);
	padding-top: var(--space-3);
	border-top: 1px solid rgb(255 255 255 / 0.22);
}

#top .helab-trust ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

#top .helab-trust li {
	padding: 0.25rem clamp(0.85rem, 2.4vw, 1.75rem);
	font-size: var(--step--1);
	line-height: 1.4;
	color: #dde6ef;
	border-left: 1px solid rgb(255 255 255 / 0.22);
}

#top .helab-trust li:first-child { padding-left: 0; border-left: 0; }

@media (max-width: 640px) {
	#top .helab-trust li {
		flex: 1 1 100%;
		padding: 0.35rem 0;
		border-left: 0;
	}
	#top .helab-trust li + li { border-top: 1px solid rgb(255 255 255 / 0.14); }
}

/* Save-Data and reduced motion never get the video. */
@media (prefers-reduced-motion: reduce) {
	#top .helab-hero-media video { display: none; }
}

/* Wide screens: stop the subpage hero band from swallowing the photo.
   The band is a fixed 350px while a full-bleed background scales with the
   viewport, so past ~1900px only a quarter of the image height is left and
   the subject gets clipped. Capping the background at 1900px freezes the
   crop at what a 1900px screen sees and leaves the page white beside it. */
@media (min-width: 1901px) {
	#top.page-id-476 #main .avia-section.avia-builder-el-0 {
		background-color: #fff;
		background-size: 1900px auto !important;
		background-repeat: no-repeat !important;
	}
}

/*
 * HELAB sections
 *
 * The process row, the stat row, the dark contact block and the phone band.
 */

/* --- Section heading -------------------------------------------------- */

#top .helab-section-head {
	display: grid;
	gap: var(--space-2);
	max-width: 62ch;
	margin-bottom: var(--space-6);
}

#top .helab-section-head h2 { margin: 0; }
#top .helab-section-head p { margin: 0; color: var(--ink-muted); font-size: var(--step-1); line-height: 1.5; }

/* --- Process ---------------------------------------------------------- */
/* Ten steps, in order, from feasibility study to service. */

#top .helab-process-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(16.5rem, 20rem);
	gap: var(--space-3);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	padding-bottom: var(--space-3);
	margin-inline: calc(var(--gutter) * -1);
	padding-inline: var(--gutter);
	scrollbar-width: thin;
	scrollbar-color: var(--hairline-strong) transparent;
}

#top .helab-process-track::-webkit-scrollbar { height: 6px; }
#top .helab-process-track::-webkit-scrollbar-thumb {
	background: var(--hairline-strong);
	border-radius: var(--radius-pill);
}

#top .helab-step {
	position: relative;
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	gap: var(--space-2);
	text-decoration: none;
	color: inherit;
}

/* The run of numbers reads as a sequence, so each one carries a rule out
   to the edge of its step - the tick marks on a wiring diagram. */
#top .helab-step-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

#top .helab-step-index {
	flex: none;
	font-size: var(--step--1);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--brand-700);
	letter-spacing: 0.02em;
}

#top .helab-step-head::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--hairline-strong);
}

#top .helab-step-media {
	position: relative;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--radius-card);
	background: var(--neutral-100);
}

#top .helab-step-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform var(--dur-slow) var(--ease);
}

#top .helab-step h3 {
	margin: 0;
	font-size: var(--step-1);
}

#top .helab-step p {
	margin: 0;
	font-size: var(--step--1);
	line-height: 1.55;
	color: var(--ink-muted);
	text-wrap: pretty;
}

#top .helab-step .helab-link { margin-top: auto; padding-top: var(--space-1); font-size: var(--step--1); }

#top .helab-step:hover .helab-step-media img { transform: scale(1.03); }
#top .helab-step:hover { transform: translateY(-2px); }
#top .helab-step:hover .helab-arrow { transform: translateX(4px); }
#top .helab-step { transition: transform var(--dur-base) var(--ease); }

#top .helab-step:focus-visible {
	outline: 2px solid var(--brand-700);
	outline-offset: 6px;
	border-radius: var(--radius-card);
}

#top .helab-process-hint {
	margin-top: var(--space-2);
	font-size: var(--step--1);
	color: var(--ink-muted);
}

@media (max-width: 860px) {
	#top .helab-process-track {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: 1fr;
		overflow-x: visible;
		scroll-snap-type: none;
		margin-inline: 0;
		padding-inline: 0;
		gap: var(--space-5);
	}
	#top .helab-process-hint { display: none; }
}

/* --- Stat row --------------------------------------------------------- */

#top .helab-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
	gap: var(--space-4);
	border-top: 1px solid var(--hairline);
	padding-top: var(--space-5);
}

#top .helab-stat { display: grid; gap: 0.35rem; align-content: start; }

#top .helab-stat-value {
	font-size: var(--step-4);
	font-weight: 600;
	line-height: 1;
	letter-spacing: var(--track-display);
	color: var(--brand-700);
	font-variant-numeric: tabular-nums;
}

#top .helab-stat-label {
	font-size: var(--step--1);
	line-height: 1.45;
	color: var(--ink-muted);
	max-width: 22ch;
}

#top .helab-on-deep .helab-stats { border-top-color: rgb(255 255 255 / 0.18); }
#top .helab-on-deep .helab-stat-value { color: var(--signal); }
#top .helab-on-deep .helab-stat-label { color: var(--on-deep-muted); }

/* --- Logotype row ----------------------------------------------------- */

#top .helab-logos {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(1.5rem, 5vw, 4rem);
}

#top .helab-logos img {
	height: clamp(24px, 3.4vw, 36px);
	width: auto;
	filter: grayscale(1);
	opacity: 0.62;
	transition: opacity var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

#top .helab-logos a:hover img { opacity: 1; filter: grayscale(0); }

/* --- Phone band ------------------------------------------------------- */

#top .helab-band {
	background: var(--brand-700);
	color: #fff;
	padding-block: clamp(2.5rem, 5vw, 4rem);
}

#top .helab-band-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: var(--space-5);
	align-items: start;
}

#top .helab-band h2 {
	color: #fff;
	font-size: var(--step-2);
	margin: 0 0 var(--space-3);
	max-width: 24ch;
}

#top .helab-office { display: grid; gap: 0.35rem; }

#top .helab-office-name {
	font-size: var(--step--1);
	color: #cfe0f0;
	margin: 0;
}

#top .helab-office a[href^="tel:"] {
	font-size: var(--step-2);
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	letter-spacing: var(--track-head);
	font-variant-numeric: tabular-nums;
	width: max-content;
}

#top .helab-office a[href^="tel:"]:hover { color: var(--signal); }

#top .helab-office address {
	font-style: normal;
	font-size: var(--step--1);
	line-height: 1.5;
	color: #cfe0f0;
	margin: 0;
}

#top .helab-office address a { color: #cfe0f0; }
#top .helab-office address a:hover { color: #fff; }

/* --- Dark contact section -------------------------------------------- */

#top .helab-contact {
	background: var(--deep);
	color: var(--on-deep);
	padding-block: var(--section-pad);
}

#top .helab-contact h2 { color: #fff; }
#top .helab-contact p { color: var(--on-deep-muted); }

#top .helab-contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2.5rem, 6vw, 5rem);
	align-items: start;
}

/* The office column is much shorter than the form, so it must not stretch
   and leave several hundred pixels of empty dark ground under itself. */
#top .helab-contact-grid > * { align-self: start; }

@media (max-width: 860px) {
	#top .helab-contact-grid { grid-template-columns: 1fr; }
}

#top .helab-form { display: grid; gap: var(--space-3); }

#top .helab-field { display: grid; gap: 0.4rem; }

#top .helab-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: var(--space-3);
}

#top .helab-form label {
	font-size: var(--step--1);
	font-weight: 500;
	color: #dbe5ef;
}

/* Enfold styles fields per colour section at #top .main_color input[...],
   which outweighs a single class, so the dark form matches that weight. */
#top .helab-contact .helab-form input,
#top .helab-contact .helab-form textarea,
#top .helab-form input[type],
#top .helab-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: var(--font-sans);
	font-size: var(--step-0);
	line-height: 1.45;
	color: #fff;
	background: rgb(255 255 255 / 0.04);
	border: 1px solid rgb(255 255 255 / 0.38);
	border-radius: var(--radius-ui);
	transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

#top .helab-contact .helab-form input::placeholder,
#top .helab-contact .helab-form textarea::placeholder { color: #93a7bb; opacity: 1; }

#top .helab-contact .helab-form input:hover,
#top .helab-contact .helab-form textarea:hover { border-color: rgb(255 255 255 / 0.6); }

#top .helab-contact .helab-form input:focus,
#top .helab-contact .helab-form textarea:focus {
	background-color: rgb(255 255 255 / 0.10);
	border-color: var(--signal);
	color: #ffffff;
	outline: 2px solid var(--signal);
	outline-offset: 2px;
}

#top .helab-form textarea { min-height: 8rem; resize: vertical; }

#top .helab-form .helab-btn { justify-self: start; }

#top .helab-form-note { font-size: var(--step--1); color: #8ea3b8; }

#top .helab-form-status[data-state="error"] { color: var(--signal); }
#top .helab-form-status[data-state="ok"] { color: #8fd3a5; }

#top .helab-offices {
	display: grid;
	gap: var(--space-4);
}

#top .helab-offices .helab-office-card {
	display: grid;
	gap: 0.5rem;
	padding-top: var(--space-3);
	border-top: 1px solid rgb(255 255 255 / 0.18);
}

/* The first card needs no rule above it - the one between the two offices
   is what does the dividing. */
#top .helab-offices .helab-office-card:first-child {
	padding-top: 0;
	border-top: 0;
}

#top .helab-offices h3 { color: #fff; font-size: var(--step-1); margin: 0; }

#top .helab-offices address {
	font-style: normal;
	line-height: 1.55;
	color: var(--on-deep-muted);
	font-size: var(--step-0);
}

#top .helab-offices a { color: #fff; text-decoration: none; }
#top .helab-offices a:hover { color: var(--signal); }
#top .helab-offices a[href^="tel:"] { font-variant-numeric: tabular-nums; font-weight: 600; }

#top .helab-offices .helab-link { color: var(--signal); }
#top .helab-offices .helab-link:hover { color: #fff; }

/* --- Reference cards -------------------------------------------------- */

#top .helab-case-figure { margin: 0; }

#top .helab-quote {
	display: grid;
	gap: var(--space-3);
	max-width: 46rem;
	margin: 0;
}

#top .helab-quote blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--step-2);
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: var(--track-head);
	color: var(--ink);
	text-wrap: pretty;
}

#top .helab-quote figcaption {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--step--1);
	color: var(--ink-muted);
}

#top .helab-quote figcaption img {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-pill);
	object-fit: cover;
}

/* --- Footer ----------------------------------------------------------- */

#top .helab-footer-meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: start;
	gap: var(--space-4);
	width: 100%;
	/* Already inside Enfold's .container, which supplies the gutter; adding
	   it again here indented the block past the rule above it. */
	padding: var(--space-5) 0 0;
	border-top: 1px solid var(--hairline);
	text-align: left;
}

#top .helab-footer-offices {
	display: contents;
}

@media (max-width: 860px) {
	#top .helab-footer-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	#top .helab-footer-meta { grid-template-columns: minmax(0, 1fr); }
}

#top .helab-footer-office-name {
	margin: 0 0 0.25rem;
	font-size: var(--step--1);
	font-weight: 600;
	color: var(--ink);
}

#top .helab-footer-meta address {
	font-style: normal;
	font-size: var(--step--1);
	line-height: 1.6;
	color: var(--ink-muted);
	margin: 0;
}

#top .helab-footer-meta address a[href^="tel:"] { font-variant-numeric: tabular-nums; }

#top .helab-footer-aside {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
}

/* The credit-rating mark is a raster badge next to three vector icons, so it
   sits on its own line at its own weight rather than in the icon row. */
#top .helab-footer-badges {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-top: var(--space-3);
	padding-top: var(--space-3);
	border-top: 1px solid rgb(255 255 255 / 0.14);
	font-size: var(--step--2);
	color: #cfe0f0;
}

#top .helab-footer-badge {
	width: 44px;
	height: 22px;
	filter: brightness(0) invert(1);
	opacity: 0.85;
}

#top .helab-footer-logo { height: 34px; width: auto; }

/* The footer widget area held the same block twice, for desktop and mobile. */
#top #footer .f01,
#top #footer .aaa { display: none; }

/* --- Footer on the brand blue ----------------------------------------- */
/*
 * Enfold paints the footer in the brand blue, where the site's default
 * link and muted-text colours drop to about 1.5:1. Everything inside gets
 * the light end of the scale instead.
 */

#top #footer .helab-footer-meta { border-top-color: rgb(255 255 255 / 0.22); }

#top #footer .helab-footer-office-name { color: #ffffff; }

#top #footer .helab-footer-meta address,
#top #footer .helab-footer-meta p { color: #cfe0f0; }   /* 6.37:1 */

#top #footer .helab-footer-meta a { color: #ffffff; }   /* 8.58:1 */
#top #footer .helab-footer-meta a:hover { color: var(--signal); }

#top #footer .helab-social a { color: #e8f0f8; }
#top #footer .helab-social a:hover { color: #ffffff; background: rgb(255 255 255 / 0.14); }

#top #footer .helab-footer-badge { filter: brightness(0) invert(1); opacity: 0.9; }

#top #footer .widget_nav_menu a,
#top #footer .menu a { color: #cfe0f0; }

#top #footer .widget_nav_menu a:hover,
#top #footer .menu a:hover { color: #ffffff; }

#top #footer .helab-footer-meta :focus-visible,
#top #footer a:focus-visible { outline-color: #ffffff; }

/* --- Form controls ---------------------------------------------------- */
/* Enfold paints inputs with a light gradient, which on the dark contact
   block leaves white text on a white field. */

#top .helab-contact .helab-form input,
#top .helab-contact .helab-form textarea,
#top .helab-form input[type],
#top .helab-form textarea {
	background-image: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

#top .helab-form input:-webkit-autofill,
#top .helab-form textarea:-webkit-autofill {
	-webkit-text-fill-color: #ffffff;
	box-shadow: 0 0 0 1000px var(--deep-soft) inset;
}

/* --- Toggles ---------------------------------------------------------- */
/*
 * The toggle headers carry an inline brand-blue background from the builder
 * but inherit the site's grey body colour, which lands at 1.6:1. On that
 * background the label and the icon are white.
 */

#top .single_toggle .toggler.hasCustomColor,
#top .single_toggle .toggler.hasCustomColor.av-inherit-font-color {
	color: #ffffff;
	font-weight: 600;
	letter-spacing: var(--track-head);
	border-radius: var(--radius-ui);
}

#top .single_toggle .toggler.hasCustomColor:hover { color: var(--signal); }

#top .single_toggle .toggler:focus-visible {
	outline: 2px solid var(--brand-700);
	outline-offset: 2px;
}

#top .single_toggle .toggle_content {
	border-radius: 0 0 var(--radius-ui) var(--radius-ui);
	border-color: var(--hairline);
}

/*
 * Enfold sizes the closed header and the open panel from different boxes, so
 * the panel hung 37px past the row above it. One width for all three.
 */
#top .togglecontainer .single_toggle,
#top .togglecontainer .toggle_wrap,
#top .togglecontainer .toggler,
#top .togglecontainer .toggle_content {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin-inline: 0;
}

/* The open/close mark is absolutely positioned at left:10px, so the label
   has to start clear of it. */
#top .togglecontainer .toggler {
	padding: 0.85rem 1.25rem 0.85rem 3rem;
	font-size: var(--step-1);
	line-height: 1.35;
}

#top .togglecontainer .toggle_icon { left: 1.25rem; }


/* --- The cogs ---------------------------------------------------------- */
/*
 * The client's own cog. Rather than redraw it, the frame is lifted straight
 * out of their artwork: cc1.png from the live site with the photograph
 * punched out of the middle, so the silhouette, the twelve teeth and the
 * inner shadow are pixel for pixel what they have always had. The current
 * photography then sits in the hole instead of being baked in, which is the
 * one thing the original could not do.
 *
 * The frame is 400x412 and the hole is centred at 199,208 with a radius of
 * 137 - hence the percentages below.
 *
 * Their artwork comes in two phases, half a tooth apart, so that neighbouring
 * cogs look as though they could engage. Both are lifted the same way - cc1
 * for one, cc2 for the other - rather than rotating one frame, which would
 * have carried its baked inner shadow round with it.
 */

#top .helab-gears {
	--gear-max: 200px;
	--gear-photo: 68%;
	--gear-frame: url("gear-frame.png");
	--gear-cx: 49.75%;
	--gear-cy: 50.49%;
}

#top .helab-gears .entry-content-wrapper {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, var(--gear-max)));
	justify-content: start;
	align-items: start;
	column-gap: clamp(1rem, 2.5vw, 2.5rem);
	row-gap: clamp(2rem, 4vw, 3.25rem);
}

/* Enfold's clearfix pseudo-elements would otherwise take a grid track of
   their own at each end, and the row gap with them. */
#top .helab-gears .entry-content-wrapper::before,
#top .helab-gears .entry-content-wrapper::after { content: none; }

@media (max-width: 640px) {
	#top .helab-gears .entry-content-wrapper {
		grid-template-columns: repeat(2, minmax(0, var(--gear-max)));
	}
}

#top .helab-gears .entry-content-wrapper > .av_textblock_section {
	grid-column: 1 / -1;
	justify-self: stretch;
	margin-bottom: clamp(1rem, 2vw, 2rem);
}

/* Avia's invisible spacer divs have nothing left to space. */
#top .helab-gears .entry-content-wrapper > .hr,
#top .helab-gears .helab-gear > .hr { display: none; }

#top .helab-gears .helab-gear {
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
}

/* --- One cog ----------------------------------------------------------- */

#top .helab-gears .helab-popup-card { width: 100%; }

#top .helab-gears .helab-popup-card-trigger {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 400 / 412;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--gear-frame) center center / 100% 100% no-repeat;
	cursor: pointer;
}

/* Every other cog takes the other phase. Its hole sits two pixels off the
   first one's, so the photo centre moves with it. */
#top .helab-gears .helab-gear--2 .helab-popup-card-trigger,
#top .helab-gears .helab-gear--4 .helab-popup-card-trigger,
#top .helab-gears .helab-gear--6 .helab-popup-card-trigger,
#top .helab-gears .helab-gear--8 .helab-popup-card-trigger,
#top .helab-gears .helab-gear--10 .helab-popup-card-trigger {
	--gear-frame: url("gear-frame-b.png");
	--gear-cx: 50.25%;
	--gear-cy: 50%;
}

#top .helab-gears .helab-popup-card-trigger img {
	position: absolute;
	top: var(--gear-cy);
	left: var(--gear-cx);
	width: var(--gear-photo);
	height: auto;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	display: block;
	object-fit: cover;
	object-position: center 35%;
	border-radius: 50%;
	background: var(--neutral-100);
	transition: transform var(--dur-slow) var(--ease);
}

#top .helab-gears .helab-popup-card-trigger:hover img {
	transform: translate(-50%, -50%) scale(1.04);
}

#top .helab-gears .helab-popup-card-trigger:focus-visible {
	outline: 2px solid var(--brand-700);
	outline-offset: 4px;
	border-radius: 50%;
}

/* --- Cog label --------------------------------------------------------- */
/* Above the cog, as on the client's own site. */

#top .helab-gears .helab-gear > .av_textblock_section {
	order: -1;
	width: 100%;
}

#top .helab-gears .helab-gear h3 {
	margin: 0 0 var(--space-1);
	font-size: var(--step-0);
	line-height: 1.3;
	text-align: center;
	letter-spacing: 0;
	color: var(--brand-700);
	overflow-wrap: break-word;
	/* The label sits above the cog, so a title that wraps would push its
	   own cog out of line with the rest of the row. Two lines are kept
	   free for all of them. */
	min-height: 2.6em;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

@supports (min-height: 2lh) {
	#top .helab-gears .helab-gear h3 { min-height: 2lh; }
}

#top .helab-gears .helab-gear .avia_textblock,
#top .helab-gears .helab-gear .av_textblock_section {
	max-width: none;
	width: 100%;
	min-width: 0;
}

/* The popover carries the detail, so the inline copy stays hidden. */
#top .helab-gears .helab-popup-card-content { display: none; }

@media (prefers-reduced-motion: reduce) {
	#top .helab-gears .helab-popup-card-trigger img { transition: none; }
}

/* --- Footer rhythm ----------------------------------------------------- */
/*
 * Enfold ships the footer at 15px/30px while the rest of the page breathes
 * in three figures, so it read as an afterthought stuck to the bottom.
 */

#top #footer {
	/* One step down from the phone band, so the two blues read as two
	   blocks where they meet instead of one long field of colour. */
	background-color: var(--brand-800);
	padding-block: clamp(3rem, 5vw, 4.5rem) clamp(2.25rem, 4vw, 3.5rem);
	border-top: 0;
}

#top #footer .container {
	max-width: var(--container);
	padding-inline: var(--gutter);
}

/* The widget column centred its contents against a left-aligned page. */
#top #footer .widget,
#top #footer .widget_nav_menu,
#top #footer .menu {
	text-align: left;
	margin: 0;
}

#top #footer .menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-1) var(--space-4);
	padding: 0;
	list-style: none;
}

#top #footer .menu li { margin: 0; padding: 0; border: 0; }

#top #footer .menu a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	font-size: var(--step--1);
	text-decoration: none;
}

#top #footer .helab-footer-logo { height: 40px; width: auto; }

#top #footer .widget .seperator,
#top #footer .separator,
#top #footer hr { display: none; }

/* --- Avia post grid ---------------------------------------------------- */
/*
 * The reference cards take whatever height their source file happens to
 * have, so a row mixing a 495x400 crop with a 420x278 original came out
 * 53px short in one column. One ratio, cropped to fill.
 */

#top .avia-content-slider .slide-image {
	display: block;
	aspect-ratio: 495 / 400;
	overflow: hidden;
	background: var(--neutral-100);
}

#top .avia-content-slider .slide-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

#top .avia-content-slider .slide-entry-title {
	font-size: var(--step-1);
	margin-block: var(--space-2) var(--space-1);
}

#top .avia-content-slider .slide-entry-excerpt {
	font-size: var(--step--1);
	color: var(--ink-muted);
	line-height: 1.55;
}

