/*
 * ILWEB public site styles (redesign).
 * Loaded only on public pages; admin pages keep style.min.css.
 * Fonts: Golos Text, Unbounded, JetBrains Mono (SIL Open Font License 1.1), self-hosted from fonts/.
 */

/* Golos Text, cyrillic */
@font-face {
	font-family: "Golos Text";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/golos-text-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Golos Text, latin */
@font-face {
	font-family: "Golos Text";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/golos-text-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono, cyrillic */
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono, latin */
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(../fonts/jetbrains-mono-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded, cyrillic */
@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url(../fonts/unbounded-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded, latin */
@font-face {
	font-family: "Unbounded";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url(../fonts/unbounded-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--paper: #F4F6F9;      /* page ground */
	--surface: #FFFFFF;    /* header, panels */
	--ink: #0F1B2D;        /* headings, body text */
	--ink-2: #4B586A;      /* secondary text */
	--line: #DDE3EB;       /* rules, borders */
	--line-strong: #7C8A9D; /* control outlines; 3:1 against every background */
	--blue: #0B5FD0;       /* ILWEB blue, matches the logo */
	--blue-deep: #0947A0;  /* hover, pressed */
	--blue-tint: #E8F0FC;  /* quiet blue fills */
	--navy: #0D1A2E;       /* footer */
	--on-navy: #C9D3E1;
	--navy-line: #22324A;
	--danger: #B42318;

	--font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
	--font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	--step--1: 0.875rem;
	--step-0: 1rem;
	--step-1: 1.125rem;
	--step-2: 1.375rem;
	--step-3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
	--step-4: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);

	--radius: 14px;
	--radius-lg: 20px;
	--wrap: 1200px;
	--gutter: 16px;
	--header-h: 72px;
}

@media (min-width: 720px) {
	:root { --gutter: 32px; }
}

/* ==========================================================================
   Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body.site {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--step-0)/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.site-main { flex: 1 0 auto; }

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

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

:focus-visible {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
	border-radius: 6px;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: var(--gutter); top: -100px; z-index: 50;
	padding: 10px 16px; border-radius: 999px;
	background: var(--ink); color: #FFFFFF;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
	padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: 64px; }

.eyebrow {
	font: 500 0.75rem/1.2 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--blue);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--blue);
	color: #FFFFFF;
	font: 600 var(--step--1)/1 var(--font-body);
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--blue-deep); color: #FFFFFF; }

.btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink);
}
.btn--ghost:hover { background: var(--surface); border-color: var(--ink-2); color: var(--ink); }

.more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: var(--step--1);
	font-weight: 600;
}
.more::after { content: "\2192"; transition: transform .15s ease; }
.more:hover::after { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.btn, .more::after { transition: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--line);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}

.logo img { width: auto; height: 32px; }

.site-nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

.site-nav a {
	padding: 8px 12px;
	border-radius: 999px;
	color: var(--ink-2);
	font-size: 0.95rem;
	font-weight: 500;
}
.site-nav a:hover { background: var(--paper); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue); }

.lang-switch {
	display: flex;
	padding: 3px;
	border: 1px solid var(--line);
	border-radius: 999px;
}

.lang-switch a {
	padding: 7px 10px;
	border-radius: 999px;
	color: var(--ink-2);
	font: 500 0.75rem/1 var(--font-mono);
	letter-spacing: 0.06em;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }

.menu-toggle { display: none; }

@media (max-width: 960px) {
	.site-header__cta { display: none; }
}

@media (max-width: 820px) {
	.site-header__inner { gap: 12px; }

	/* Without JavaScript the menu cannot be toggled, so it wraps under the logo instead */
	html:not(.js) .site-header__inner { flex-wrap: wrap; padding-bottom: 8px; }
	html:not(.js) .site-nav { order: 4; width: 100%; flex-wrap: wrap; margin: 0; }

	.js .menu-toggle {
		display: inline-flex;
		order: 3;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--surface);
		color: var(--ink);
		cursor: pointer;
	}

	/* Three-line icon drawn with one span and its shadows */
	.menu-toggle span,
	.menu-toggle span::before,
	.menu-toggle span::after {
		display: block;
		width: 16px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease;
	}
	.menu-toggle span { position: relative; }
	.menu-toggle span::before,
	.menu-toggle span::after { content: ""; position: absolute; left: 0; }
	.menu-toggle span::before { top: -5px; }
	.menu-toggle span::after { top: 5px; }
	.menu-toggle[aria-expanded="true"] span { background: transparent; }
	.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
	.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

	.lang-switch { margin-left: auto; }

	.js .site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		margin: 0;
		padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 16px max(var(--gutter), env(safe-area-inset-left, 0px));
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 12px 24px -16px rgba(15, 27, 45, .25);
	}
	.js .site-nav.is-open { display: flex; }
	.js .site-nav a { padding: 12px; border-radius: 10px; font-size: 1rem; }
}

/* ==========================================================================
   Page head (simple pages)
   ========================================================================== */

.page-head {
	display: grid;
	gap: 16px;
	justify-items: start;
	padding-block: 56px 24px;
}

/* Keep the text measure narrow without moving the column off the header's left edge */
.page-head > * { max-width: 820px; }

.crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	color: var(--ink-2);
	font-size: var(--step--1);
}
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--blue); }
.crumbs span[aria-hidden] { color: var(--line); }
.crumbs [aria-current] { color: var(--ink); }

.page-head .crumbs + .page-title { margin-top: 4px; }

.page-title {
	font: 700 var(--step-4)/1.12 var(--font-body);
	letter-spacing: -0.015em;
}

.page-lead {
	max-width: 60ch;
	color: var(--ink-2);
	font-size: var(--step-2);
	line-height: 1.5;
}

.page-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
	margin-top: 64px;
	background: var(--navy);
	color: var(--on-navy);
	font-size: 0.95rem;
}

.site-footer .wrap { padding-block: 56px 28px; }

.site-footer__grid {
	display: grid;
	gap: 32px;
	grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
}

.site-footer__brand img { width: auto; height: 30px; }
.site-footer__brand p { margin-top: 16px; max-width: 30ch; font-size: var(--step--1); }

.site-footer h2 {
	margin-bottom: 14px;
	color: #FFFFFF;
	font: 500 0.75rem/1 var(--font-mono);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.site-footer ul {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a { color: var(--on-navy); }
.site-footer a:hover { color: #FFFFFF; }

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--navy-line);
	font-size: 0.8rem;
}

@media (max-width: 900px) {
	.site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
	.site-footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Sections and cards (shared by home and list pages)
   ========================================================================== */

.section--flush-top { padding-top: 0; }

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 12px 24px;
	margin-bottom: 28px;
}

.section-title {
	font: 600 var(--step-3)/1.15 var(--font-display);
	letter-spacing: -0.01em;
}

.cards {
	display: grid;
	gap: 32px 24px;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
	display: grid;
	align-content: start;
	gap: 14px;
	color: var(--ink);
}
.card:hover { color: var(--ink); }

.card__media {
	aspect-ratio: 16 / 10;
	max-width: 100%;
	overflow: hidden;
	border-radius: var(--radius);
	background: var(--blue-tint);
}

.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.card:hover .card__media img { transform: scale(1.03); }

.card h3,
.card__title { font: 600 var(--step-1)/1.35 var(--font-body); }
.card:hover h3,
.card:hover .card__title { color: var(--blue); }

/* Article without images: logo on the tint instead of a broken or empty frame */
.card__media--empty { display: grid; place-items: center; }
.card__media--empty img { width: 42%; height: auto; opacity: .45; }
.card:hover .card__media--empty img { transform: none; }
.card p { color: var(--ink-2); font-size: var(--step--1); }

@media (prefers-reduced-motion: reduce) {
	.card__media img { transition: none; }
	.card:hover .card__media img { transform: none; }
}

/* ==========================================================================
   Home: hero
   ========================================================================== */

/* Dark band with a blue glow; the route graphic on the right echoes deliveries and connected systems */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: 88px;
	background:
		radial-gradient(60% 70% at 78% 40%, rgba(11, 95, 208, .45), transparent 70%),
		radial-gradient(40% 50% at 10% 110%, rgba(77, 156, 255, .18), transparent 70%),
		var(--navy);
	color: #FFFFFF;
}

/* Fine grid texture across the band */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
	pointer-events: none;
}

.hero__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	align-items: center;
	gap: 40px;
}

.hero__text { display: grid; justify-items: start; gap: 22px; }

.hero__title {
	max-width: 14ch;
	font: 600 clamp(2.3rem, 1.2rem + 4vw, 4.2rem)/1.05 var(--font-display);
	letter-spacing: -0.02em;
}

.hero__lead {
	max-width: 44ch;
	color: var(--on-navy);
	font-size: var(--step-2);
	line-height: 1.5;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero__actions .btn { padding: 15px 26px; font-size: var(--step-0); }

.btn--on-dark {
	background: transparent;
	border-color: rgba(255, 255, 255, .35);
	color: #FFFFFF;
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .08); border-color: #FFFFFF; color: #FFFFFF; }

.hero :focus-visible { outline-color: #FFFFFF; }

/* Route graphic */
.hero__art svg { display: block; width: 100%; height: auto; max-width: 520px; margin-left: auto; overflow: visible; }

.hero-route { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1.5; }

.hero-route__light {
	fill: none;
	stroke: #7DB6FF;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 18 282;
	animation: hero-route 5s linear infinite;
	filter: drop-shadow(0 0 4px rgba(125, 182, 255, .9));
}

.hero-node { fill: #FFFFFF; filter: drop-shadow(0 0 6px rgba(125, 182, 255, .8)); }

.hero-hub { fill: var(--blue); stroke: #7DB6FF; stroke-width: 2; filter: drop-shadow(0 0 16px rgba(11, 95, 208, .9)); }

.hero-hub__ring {
	fill: none;
	stroke: rgba(125, 182, 255, .55);
	stroke-width: 1.5;
	transform-origin: 240px 205px;
	animation: hero-ring 3.2s ease-out infinite;
}
.hero-hub__ring--late { animation-delay: 1.6s; }

@keyframes hero-route { to { stroke-dashoffset: -300; } }
@keyframes hero-ring {
	from { transform: scale(.6); opacity: 1; }
	to { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 900px) {
	.hero__inner { grid-template-columns: minmax(0, 1fr); }
	.hero__art { display: none; }
}

@media (max-width: 720px) {
	.hero { padding-block: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.hero-route__light, .hero-hub__ring { animation: none; }
	.hero-hub__ring { opacity: 0; }
}


/* ==========================================================================
   Home: credentials strip
   ========================================================================== */

.creds {
	background: var(--surface);
	border-block: 1px solid var(--line);
}

.creds__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 28px;
	padding-block: 16px;
}

.creds strong { font-size: var(--step--1); font-weight: 600; line-height: 1.4; }

.creds ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.creds li {
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--paper);
	color: var(--ink-2);
	font: 500 0.75rem/1 var(--font-mono);
	letter-spacing: 0.04em;
}

/* ==========================================================================
   Home: products
   ========================================================================== */

.product-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 20px;
}

/* Compact card: a short image band on top, then the name and one line */
.product-card {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
	color: var(--ink);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
	color: var(--ink);
	border-color: var(--line-strong);
	box-shadow: 0 18px 36px -28px rgba(15, 27, 45, .35);
	transform: translateY(-2px);
}

.product-card__media {
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: var(--blue-tint);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__media .product-card__placeholder { width: 30%; height: auto; margin: auto; object-fit: contain; opacity: .45; }

.product-card__text { display: grid; align-content: start; justify-items: start; gap: 8px; padding: 20px 22px 22px; }
.product-card h3 { font: 700 var(--step-1)/1.3 var(--font-body); }
.product-card:hover h3 { color: var(--blue); }
.product-card p {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ink-2);
	font-size: var(--step--1);
	line-height: 1.5;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}
.product-card .more { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) {
	.product-card,
	.product-card__media img { transition: none; }
	.product-card:hover { transform: none; }
	.product-card:hover .product-card__media img { transform: none; }
}

/* Home: counters above the client logos */
.stats-strip {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 56px;
	margin: 0 0 40px;
	padding: 24px 0;
	border-block: 1px solid var(--line);
	list-style: none;
}
.stats-strip li { display: flex; align-items: baseline; gap: 14px; }
.stats-strip strong {
	color: var(--blue);
	font: 600 clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem)/1 var(--font-display);
	font-variant-numeric: tabular-nums;
}
.stats-strip span { color: var(--ink-2); }
/* ==========================================================================
   Call to action band
   ========================================================================== */

.cta {
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: 24px 48px;
	padding: 40px;
	border-radius: 22px;
	background: var(--blue-tint);
}

.cta h2 { font: 600 var(--step-3)/1.15 var(--font-display); }
.cta p { max-width: 48ch; margin-top: 12px; color: var(--ink-2); }

.cta__contacts { display: grid; justify-items: start; gap: 10px; }

.cta__label {
	color: var(--ink-2);
	font: 500 0.72rem/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cta__value { color: var(--ink); font: 600 var(--step-2)/1.3 var(--font-body); }
.cta__value:hover { color: var(--blue); }

.cta .btn { margin-top: 8px; }

@media (max-width: 820px) {
	.cta { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; }
}

/* ==========================================================================
   Article page
   ========================================================================== */

.article-head { padding-bottom: 32px; }

.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

.chip {
	padding: 7px 10px;
	border-radius: 999px;
	background: var(--blue-tint);
	color: var(--blue);
	font: 500 0.75rem/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.article-meta__date {
	color: var(--ink-2);
	font: 500 0.8rem/1 var(--font-mono);
	font-variant-numeric: tabular-nums;
}

.article {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 40px 56px;
}

.article__main { min-width: 0; }

.article__aside {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	display: grid;
	gap: 16px;
}

@media (max-width: 980px) {
	.article { grid-template-columns: minmax(0, 1fr); }
	.article__aside { position: static; }
}

/* Gallery */
.gallery { display: grid; gap: 12px; margin-bottom: 36px; }

.gallery__main {
	aspect-ratio: 16 / 10;
	max-width: 100%;
	overflow: hidden;
	border-radius: 18px;
	background: var(--blue-tint);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; }

.gallery__thumbs button {
	width: 96px;
	aspect-ratio: 16 / 10;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 10px;
	background: var(--blue-tint);
	opacity: .65;
	cursor: pointer;
	transition: opacity .15s ease, border-color .15s ease;
}
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-pressed="true"] { border-color: var(--blue); opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.video {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	margin-bottom: 36px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--ink);
}
.video iframe { width: 100%; height: 100%; border: 0; }

/* Article body. Overrides the inline colours, fonts and justification that
   TinyMCE stored in the content, without touching the database. */
.prose {
	max-width: 68ch;
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.prose [style] {
	color: inherit !important;
	font-family: inherit !important;
	font-size: inherit !important;
	line-height: inherit !important;
	background-color: transparent !important;
}
.prose [style*="justify"] { text-align: left !important; }

.prose > * { margin: 0 0 1.1em; }
.prose > :last-child { margin-bottom: 0; }

.prose h1, .prose h2, .prose h3, .prose h4 {
	margin: 1.8em 0 .6em;
	font: 700 var(--step-2)/1.3 var(--font-body);
}
.prose h3, .prose h4 { font-size: var(--step-1); }
.prose > :first-child { margin-top: 0; }
.prose h1 strong, .prose h2 strong, .prose h3 strong, .prose h4 strong { font-weight: inherit; }

/* Content often uses a "- Heading" paragraph right before a list */
.prose p:has(+ ul), .prose p:has(+ ol) { margin-bottom: .4em; font-weight: 600; }

.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--blue); }

.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose img { border-radius: var(--radius); }

.prose table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
	font-size: var(--step--1);
	line-height: 1.5;
}
.prose th, .prose td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }

/* Aside: inquiry form, call to action, share links */
.inquiry,
.aside-cta {
	display: grid;
	gap: 14px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

.inquiry__title,
.aside-cta h2 { font: 600 var(--step-2)/1.2 var(--font-display); }

.aside-cta p { color: var(--ink-2); font-size: var(--step--1); }
.aside-cta .btn { justify-self: start; }

.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field label span { color: var(--blue); }

.field input,
.field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 1rem; /* 16px keeps iOS from zooming on focus */
}
.field textarea { min-height: 110px; resize: vertical; }

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--blue);
	background: var(--surface);
	box-shadow: 0 0 0 3px var(--blue-tint);
}

.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: 0.8rem; }

.inquiry .btn { justify-self: start; }
.inquiry .btn[disabled] { opacity: .6; cursor: progress; }

.share {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-inline: 4px;
	color: var(--ink-2);
	font-size: var(--step--1);
}

.share a {
	display: inline-grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
}
.share a:hover { border-color: var(--blue); color: var(--blue); }
.share svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Prices, contacts
   ========================================================================== */

/* Tables stored by the CMS carry fixed pixel widths and heights */
.prose table[style],
.prose table[width] { width: auto !important; height: auto !important; }
.prose td[height], .prose tr[height] { height: auto !important; }
.prose td, .prose th { font-variant-numeric: tabular-nums; }
.prose .ui-widget-header td { background: var(--paper); font-weight: 600; }

/* Pricing: plan cards, then what every plan includes, billing and the server license */
.chip--accent { background: var(--blue); color: #FFFFFF; }

.plans {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 0;
	list-style: none;
}

.plan {
	display: grid;
	align-content: start;
	gap: 16px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}
.plan--free { background: var(--blue-tint); border-color: transparent; }

.plan__name { font: 600 var(--step-1)/1.3 var(--font-body); }

.plan__price { display: flex; align-items: baseline; gap: 8px; }
.plan__price strong {
	font: 600 var(--step-4)/1 var(--font-display);
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.plan__price span { color: var(--ink-2); font-size: var(--step--1); }

.plan__features,
.check-list { display: grid; gap: 8px; padding: 0; list-style: none; }

.plan__features li,
.check-list li {
	position: relative;
	padding-left: 26px;
	color: var(--ink-2);
	font-size: var(--step--1);
	line-height: 1.5;
}
.check-list li { color: var(--ink); font-size: var(--step-0); }

.plan__features li::before,
.check-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 12px;
	height: 7px;
	border-left: 2px solid var(--blue);
	border-bottom: 2px solid var(--blue);
	transform: rotate(-45deg);
}

.plans__note { margin-top: 16px; color: var(--ink-2); font-size: var(--step--1); }

.pricing-details { margin-top: 56px; padding-bottom: 64px; }
.pricing-details .article__main { display: grid; gap: 40px; }

.pricing-block { display: grid; gap: 14px; max-width: 68ch; }
.pricing-block h2 { font: 600 var(--step-3)/1.15 var(--font-display); letter-spacing: -0.01em; }
.pricing-block p { color: var(--ink-2); line-height: 1.6; }
.pricing-block .btn { margin-top: 4px; }

@media (max-width: 960px) {
	.plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	.plans { grid-template-columns: minmax(0, 1fr); }
}

/* Contacts */
.notice {
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--blue-tint);
	color: var(--ink);
	font-weight: 500;
}

.contact-card {
	display: grid;
	gap: 20px;
	padding: 28px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}
.contact-card h2 { font: 600 var(--step-2)/1.2 var(--font-display); }

.contact-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 20px 32px;
	margin: 0;
}

.contact-list dt {
	margin-bottom: 4px;
	color: var(--ink-2);
	font: 500 0.72rem/1 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.contact-list dd {
	margin: 0;
	font: 600 var(--step-1)/1.4 var(--font-body);
	overflow-wrap: anywhere;
}
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.map {
	aspect-ratio: 16 / 10;
	max-width: 100%;
	margin-top: 24px;
	overflow: hidden;
	border-radius: 18px;
	background: var(--blue-tint);
}
.map iframe { width: 100%; height: 100%; border: 0; }

.notice--error {
	background: #FDECEA;
	color: var(--danger);
}
.notice--error a { color: inherit; font-weight: 600; text-decoration: underline; }

/* ==========================================================================
   QA fixes
   ========================================================================== */

/* Carousel controls fit a 320px phone with six slides: drop the counter and shorten the dots */
@media (max-width: 480px) {
	.hero__controls { gap: 12px; }
	.counter { display: none; }
	.dots { gap: 6px; }
	.dots button { width: 18px; }
	.dots button[aria-current="true"] { width: 30px; }
}

/* At least 24px tall touch targets for stacked text links (WCAG 2.2, 2.5.8) */
.site-footer li a,
.contact-list a,
.more {
	display: inline-block;
	min-height: 24px;
	padding-block: 3px;
}
.more { display: inline-flex; }

/* ==========================================================================
   Clients
   ========================================================================== */

/* Each group is a full-width band; bands alternate white and grey so groups read as separate blocks */
.client-band {
	padding-block: 56px;
	border-top: 1px solid var(--line);
	scroll-margin-top: var(--header-h);
}
.client-band:nth-of-type(odd) { background: var(--surface); }
.client-band:nth-of-type(odd) .client-card,
.client-band:nth-of-type(odd) .client-logos li { box-shadow: 0 14px 30px -26px rgba(15, 27, 45, .45); }

.client-band__inner { display: grid; gap: 24px; }

/* Group headings stay well below the page title */
.client-band__head { display: flex; align-items: center; gap: 12px; }
.client-band__title { font: 700 var(--step-2)/1.25 var(--font-body); }
.client-band__count {
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--blue-tint);
	color: var(--blue);
	font: 500 0.8rem/1 var(--font-mono);
	font-variant-numeric: tabular-nums;
}

/* Jump links under the page title */
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.jump-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: var(--step--1);
	font-weight: 600;
}
.jump-links a span { color: var(--ink-2); font: 500 0.75rem/1 var(--font-mono); }
.jump-links a:hover { border-color: var(--blue); color: var(--blue); }

@media (max-width: 720px) {
	.client-band { padding-block: 40px; }
}

/* auto-fit stretches the cards to fill the row: 3 cards make a row of 3, 4 cards a row of 4 */
.client-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.client-grid--featured { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.client-card {
	display: grid;
	align-content: start;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}

/* A card with a project page: the name's link stretches over the whole card */
.client-card--page { position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.client-card__page { color: inherit; }
.client-card__page::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.client-card--page:hover { border-color: var(--line-strong); box-shadow: 0 18px 36px -28px rgba(15, 27, 45, .35); }
.client-card--page:hover .client-card__page { color: var(--blue); }
.client-card--page .more { justify-self: start; }

/* Logos come in every shape (wide wordmarks, square badges): fixed height, natural width */
.client-card__logo {
	display: flex;
	align-items: center;
	height: 56px;
	margin-bottom: 4px;
}
.client-card__logo img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.client-card--featured { padding: 28px; }
.client-card--featured .client-card__logo { height: 80px; }
/* Keep long wordmarks (Shipvam) from dwarfing the square badges */
.client-card__logo img { max-width: min(100%, 240px); }

/* Logo linking to the client's website: an arrow shows it leaves the site */
.client-card__logo--link { position: relative; gap: 8px; width: fit-content; max-width: 100%; }
.client-card__logo--link img { transition: opacity .15s ease; }
.client-card__logo--link::after {
	content: "\2197";
	align-self: flex-start;
	color: var(--blue);
	font-size: var(--step--1);
	opacity: 0;
	transition: opacity .15s ease;
}
.client-card__logo--link:hover img { opacity: .8; }
.client-card__logo--link:hover::after,
.client-card__logo--link:focus-visible::after { opacity: 1; }

.client-card__name { font: 600 var(--step-1)/1.3 var(--font-body); }
.client-card p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.55; }

.client-logos { display: grid; gap: 14px; margin-top: 8px; }

.client-logos__label {
	color: var(--ink-2);
	font: 500 0.75rem/1.2 var(--font-mono);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.client-logos ul {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.client-logos li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	font-size: var(--step--1);
	font-weight: 600;
}

.client-logos a { display: contents; color: inherit; }
.client-logos li:has(a):hover { border-color: var(--line-strong); color: var(--blue); }

.client-logos img {
	width: auto;
	height: 40px;
	max-width: 120px;
	object-fit: contain;
}

/* Coming-soon client: same card, quieter, with a badge */
/* Coming soon: a solid card like the rest, marked by an "under construction" stripe and a filled badge */
.client-card--soon { position: relative; overflow: hidden; }
.client-card--soon::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 8px;
	background: repeating-linear-gradient(-45deg, var(--blue) 0 10px, var(--blue-tint) 10px 20px);
}
.client-card--soon .badge { background: var(--blue); color: #FFFFFF; }

.badge {
	display: inline-block;
	margin-left: 6px;
	padding: 4px 8px;
	border-radius: 999px;
	background: var(--blue-tint);
	color: var(--blue);
	font: 500 0.7rem/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: middle;
	white-space: nowrap;
}

/* Light logos (white on transparent) sit on a dark plate */
.client-card__logo--dark {
	align-self: start;
	justify-self: start;
	padding: 12px 16px;
	border-radius: 10px;
	background: var(--navy);
}

/* Home: even wall of client logos */
/* Flex rather than grid, so a partial last row sits centred */
.logo-wall {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.logo-wall li {
	flex: 0 0 calc((100% - 8 * 12px) / 9);
	display: grid;
	place-items: center;
	height: 68px;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.logo-wall li:hover { border-color: var(--line-strong); box-shadow: 0 12px 24px -18px rgba(15, 27, 45, .35); }
.logo-wall li.logo-wall__dark { background: var(--navy); border-color: var(--navy); }

.logo-wall img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 36px;
	object-fit: contain;
}

@media (max-width: 999px) {
	.logo-wall li { flex-basis: calc((100% - 5 * 12px) / 6); }
}

@media (max-width: 719px) {
	.logo-wall { gap: 8px; }
	.logo-wall li { flex-basis: calc((100% - 3 * 8px) / 4); height: 56px; padding: 8px; }
	.logo-wall img { max-height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.logo-wall li { transition: none; }
}

/* Rows of 3 and 4 cards never leave a card alone on a row:
   3 cards sit 3 across from tablet up; 4 cards go 4 across on desktop, 2 + 2 on tablet */
@media (min-width: 720px) {
	.client-grid--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.client-grid--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
	.client-grid--count-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Demo booking card above the inquiry form on products that offer a demo */
.demo-card {
	display: grid;
	gap: 12px;
	padding: 24px;
	border-radius: 18px;
	background:
		radial-gradient(80% 90% at 100% 0%, rgba(11, 95, 208, .55), transparent 70%),
		var(--navy);
	color: #FFFFFF;
}
.demo-card h2 { font: 600 var(--step-2)/1.2 var(--font-display); }
.demo-card p { color: var(--on-navy); font-size: var(--step--1); }
.demo-card .btn { justify-self: start; margin-top: 4px; }
.demo-card :focus-visible { outline-color: #FFFFFF; }

/* ==========================================================================
   About: the company, then the founder on a dark band
   ========================================================================== */

.pillars {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
}

.pillar {
	position: relative;
	display: grid;
	align-content: start;
	gap: 10px;
	height: 100%;
	padding: 24px 24px 56px;
	border-radius: 18px;
	background: var(--blue-tint);
	color: var(--ink);
}
.pillar__index { color: var(--blue); font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; }
.pillar h2 { font: 700 var(--step-1)/1.3 var(--font-body); }
.pillar p { color: var(--ink-2); line-height: 1.55; }
.pillar__more {
	position: absolute;
	left: 24px;
	bottom: 20px;
	color: var(--blue);
	font-size: var(--step-1);
	transition: transform .15s ease;
}
.pillar:hover { color: var(--ink); }
.pillar:hover h2 { color: var(--blue); }
.pillar:hover .pillar__more { transform: translateX(4px); }

.reasons {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 0;
	list-style: none;
}
.reason {
	display: grid;
	align-content: start;
	gap: 10px;
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 18px;
	background: var(--surface);
}
.reason h3 { font: 700 var(--step-1)/1.3 var(--font-body); }
.reason p { color: var(--ink-2); line-height: 1.55; }

/* Founder: dark band like the home hero */
.founder-band {
	padding-block: 72px;
	background:
		radial-gradient(60% 80% at 90% 0%, rgba(11, 95, 208, .45), transparent 70%),
		linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
		linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 40px 40px,
		var(--navy);
	color: #FFFFFF;
}

.founder {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	align-items: center;
	gap: 32px 64px;
}
/* Home page teaser: a small portrait beside the quote, much less height */
.founder-band--compact { padding-block: 44px; }
.founder--compact { grid-template-columns: 168px minmax(0, 1fr); gap: 24px 40px; }
.founder--compact .founder__photo { aspect-ratio: 1; border-radius: var(--radius); }
.founder--compact .founder__photo--empty span { font-size: 3rem; }
.founder--compact .founder__text { gap: 10px; }
.founder--compact .founder__name { font-size: var(--step-3); }
.founder--compact .founder__role { margin-top: -4px; }
.founder--compact .founder__quote { margin: 4px 0; }
.founder--compact .founder__quote p { max-width: 52ch; font-size: var(--step-1); }

.founder__photo {
	overflow: hidden;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius-lg);
	background: var(--navy-line);
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }

/* No portrait yet: the initials */
.founder__photo--empty {
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .12);
	background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 45%, var(--navy) 100%);
}
.founder__photo--empty span {
	color: #FFFFFF;
	font: 600 clamp(4rem, 3rem + 5vw, 7rem)/1 var(--font-display);
	letter-spacing: -0.03em;
}

.founder__text { display: grid; justify-items: start; gap: 14px; }
.founder__text .eyebrow { color: #8DB8F5; }
.founder__name { font: 600 var(--step-4)/1.1 var(--font-display); letter-spacing: -0.015em; }
.founder__role { margin-top: -6px; color: #FFFFFF; font-weight: 600; }
.founder__text > p { max-width: 60ch; color: var(--on-navy); line-height: 1.6; }

.founder__quote {
	margin: 6px 0;
	padding-left: 20px;
	border-left: 3px solid var(--blue);
}
.founder__quote p {
	max-width: 36ch;
	color: #FFFFFF;
	font: 500 var(--step-2)/1.4 var(--font-body);
	font-style: italic;
}

.founder__stats { display: flex; flex-wrap: wrap; gap: 16px 40px; padding: 4px 0 8px; list-style: none; }
.founder__stats li { display: grid; gap: 4px; }
.founder__stats strong { font: 600 var(--step-3)/1 var(--font-display); }
.founder__stats span { color: var(--on-navy); font-size: var(--step--1); }

@media (max-width: 900px) {
	.founder { grid-template-columns: minmax(0, 1fr); }
	.founder__photo { max-width: 300px; }
	.pillars,
	.reasons { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.founder-band { padding-block: 48px; }
	.founder__photo { max-width: 200px; }
}

/* The home teaser keeps the portrait small and beside the name on every screen */
@media (max-width: 900px) {
	.founder--compact { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
	.founder--compact .founder__photo { max-width: none; }
}

@media (max-width: 560px) {
	.founder-band--compact { padding-block: 36px; }
	.founder--compact { grid-template-columns: 88px minmax(0, 1fr); gap: 16px 18px; }
	.founder--compact .founder__photo--empty span { font-size: 1.75rem; }
	.founder--compact .founder__name { font-size: var(--step-2); }
	.founder--compact .founder__quote p { font-size: var(--step-0); }
}

@media (prefers-reduced-motion: reduce) {
	.pillar__more { transition: none; }
}
