/*
Theme Name: Clancy Solutions
Theme URI: https://clancysolutions.co.uk
Author: Clancy Solutions
Description: Theme for Clancy Solutions: cloud, DevOps, Infrastructure as Code and Sovereign AI consultancy.
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: clancy
*/

/* ==========================================================================
   Tokens — "Dark precision"
   ========================================================================== */
:root {
	--bg: #0a0d14;
	--bg-2: #0e131d;
	--panel: #121826;
	--panel-2: #161d2d;
	--line: #1d2534;
	--line-2: #2a3448;
	--white: #f4f7fb;
	--text: #c3cbd8;
	--muted: #8a94a7;
	--accent: #4f8cff;
	--accent-2: #8bb4ff;
	--ok: #34d399;
	--err: #f87171;

	/* aliases used by inline template styles */
	--paper-2: var(--bg-2);
	--ink: var(--white);

	--sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, monospace;

	--wrap: 1200px;
	--gutter: clamp(20px, 5vw, 40px);
	--radius: 6px;
	--header-h: 68px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
strong { font-weight: 600; color: var(--white); }
::selection { background: var(--accent); color: #fff; }

h1, h2, h3, h4 { color: var(--white); margin: 0 0 .55em; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.3rem, 7vw, 4.4rem); letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 4.2vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: 1.14rem; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 1rem; letter-spacing: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); padding-inline: var(--gutter); margin-inline: auto; }
.label {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: .74rem; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--accent-2); margin-bottom: 18px;
}
.label::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.22rem); line-height: 1.6; color: var(--muted); max-width: 44em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: var(--white); color: var(--bg); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 13px 22px;
	font: 600 .95rem/1 var(--sans);
	text-decoration: none;
	border: 1px solid var(--accent);
	background: var(--accent); color: #fff;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: #3b7bf5; border-color: #3b7bf5; color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--white); }
.btn-line:hover { background: var(--panel); border-color: var(--muted); color: var(--white); }
.arrow-link { font-weight: 600; text-decoration: none; color: var(--white); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.arrow-link::after { content: " →"; color: var(--accent-2); }
.arrow-link:hover { border-color: var(--accent); color: var(--white); }

/* ==========================================================================
   Header + mobile navigation
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(10, 13, 20, .84); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name { font-size: .84rem; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--white); }
.brand-name span { font-weight: 400; color: var(--muted); }
.nav { display: none; }
.nav-toggle {
	display: inline-flex; align-items: center; gap: 10px;
	min-height: 44px; padding: 0 14px;
	background: transparent; border: 1px solid var(--line-2); border-radius: var(--radius);
	color: var(--white); font: 600 .82rem var(--sans); cursor: pointer;
}
.nav-toggle i { position: relative; width: 16px; height: 2px; background: currentColor; transition: background .2s; }
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform .2s; }
.nav-toggle i::before { top: -5px; }
.nav-toggle i::after { top: 5px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
	.nav.open {
		display: flex; flex-direction: column;
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
		background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto;
	}
	.nav.open a { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--white); text-decoration: none; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
	.nav.open a[aria-current="page"] { color: var(--accent-2); }
	.nav.open a.btn { margin-top: 26px; font-size: 1rem; border-bottom: 1px solid var(--accent); }
	body.nav-open { overflow: hidden; }
	/* backdrop-filter creates a containing block for fixed children, so drop it while the menu is open */
	body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
}
@media (min-width: 900px) {
	.nav { display: flex; align-items: center; gap: 30px; }
	.nav a { color: var(--muted); text-decoration: none; font-size: .93rem; font-weight: 500; padding: 6px 0; position: relative; }
	.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
	.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); }
	.nav a.btn { min-height: 40px; padding: 10px 18px; color: #fff; }
	.nav a.btn::after { display: none; }
	.nav-toggle { display: none; }
}
@media (max-width: 340px) { .brand-name span { display: none; } }
@media (max-width: 400px) { .brand-name { font-size: .78rem; letter-spacing: .13em; } .brand { gap: 10px; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(64px, 10vw, 120px) 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section.tight { padding: clamp(40px, 6vw, 56px) 0; }
.section.alt, .on-dark { background: var(--bg-2); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 60px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
@media (min-width: 900px) { .section-head { grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: end; } }

.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image: linear-gradient(rgba(139,180,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(139,180,255,.06) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
	pointer-events: none;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero h1 { max-width: 14ch; margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero .lede { margin-bottom: 32px; }
.hero-actions { display: grid; gap: 12px; }
.hero-actions .btn { width: 100%; }
@media (min-width: 560px) { .hero-actions { display: flex; flex-wrap: wrap; } .hero-actions .btn { width: auto; } }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; } }

.est {
	display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap;
	font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 26px;
}
.est b { color: var(--white); font-weight: 500; }
.est .sep { width: 1px; height: 12px; background: var(--line-2); }
.est .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52,211,153,.15); }

.metrics { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 80px); }
.metrics div { padding: 22px 16px 0 0; }
.metrics div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
.metrics div:nth-child(n+3) { margin-top: 22px; border-top: 1px solid var(--line); }
.metrics b { display: block; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--white); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.metrics b small { font-size: .5em; color: var(--accent-2); margin-left: 2px; font-weight: 500; }
.metrics span { font-size: .86rem; color: var(--muted); display: block; max-width: 24ch; }
@media (min-width: 900px) {
	.metrics { grid-template-columns: repeat(4, 1fr); }
	.metrics div { padding: 26px 24px 0; border-left: 1px solid var(--line); }
	.metrics div:first-child { padding-left: 0; border-left: 0; }
	.metrics div:nth-child(n+3) { margin-top: 0; border-top: 0; }
	.metrics div:nth-child(even) { padding-left: 24px; }
}

.page-hero { padding: clamp(52px, 9vw, 110px) 0 clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 17ch; }
.page-hero .lede { margin-top: 8px; }
.breadcrumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }

/* ==========================================================================
   Illustrations
   ========================================================================== */
.illus { width: 100%; height: auto; }
.illus .ln { stroke: var(--line-2); fill: none; }
.illus .ln-acc { stroke: var(--accent); fill: none; }
.illus .node { fill: var(--panel); stroke: var(--line-2); }
.illus .node-acc { fill: #121c33; stroke: var(--accent); }
.illus .t { fill: var(--muted); font: 500 10px var(--mono); letter-spacing: .06em; }
.illus .t-w { fill: var(--white); font: 600 12px var(--sans); }
.illus .t-acc { fill: var(--accent-2); font: 500 10px var(--mono); letter-spacing: .06em; }
.illus .t-ok { fill: var(--ok); font: 500 10px var(--mono); letter-spacing: .06em; }
.illus .flow { stroke-dasharray: 3 7; animation: flow 1.4s linear infinite; }
.illus .pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
.illus-frame { border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-radius: 12px; padding: clamp(12px, 3vw, 24px); }
.illus-caption { display: flex; justify-content: space-between; gap: 8px 14px; margin-top: 12px; font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .04em; flex-wrap: wrap; }
.illus-caption .live { color: var(--ok); }

/* ==========================================================================
   Logo walls
   ========================================================================== */
.clients-strip { padding: clamp(36px, 6vw, 52px) 0; border-bottom: 1px solid var(--line); }
.clients-strip .label { margin-bottom: 24px; }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 640px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }
.logo-cell { display: flex; align-items: center; justify-content: center; min-height: 86px; padding: 16px; background: var(--bg); transition: background .2s; }
.logo-cell:hover { background: var(--panel); }
.logo-cell img { height: 28px; width: auto; max-width: 120px; object-fit: contain; filter: brightness(0) invert(1); opacity: .55; transition: opacity .2s; }
.logo-cell:hover img { opacity: 1; }
.logo-cell img[alt="Centrica"], .logo-cell img[alt="Superdry"] { height: 20px; width: 118px; }
.logo-cell img[alt="Hive"] { height: 46px; }
.logo-cell img[alt="BBC"] { height: 42px; }
.wordmark { font-weight: 650; font-size: 1rem; letter-spacing: -0.01em; color: #a9b2c3; text-align: center; line-height: 1.15; transition: color .2s; }
.wordmark small { display: block; font-family: var(--mono); font-weight: 400; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 5px; color: var(--muted); }
.logo-cell:hover .wordmark { color: var(--white); }
.wordmark.has-icon { display: inline-flex; align-items: center; gap: 10px; }
.wordmark.has-icon svg { width: 24px; height: 24px; flex: none; }
.sector-logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 26px; }
.sector-logos .logo-cell { min-height: 78px; padding: 10px; }
.sector-logos:has(> .logo-cell:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }

.tech-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 640px) { .tech-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(6, 1fr); } }
.tech-grid li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 6px 18px; background: var(--bg); color: #9aa5b8; transition: background .2s; text-align: center; }
.tech-grid li svg { width: 30px; height: 30px; transition: color .2s, transform .2s; }
.tech-grid li span { font-size: .72rem; font-family: var(--mono); color: var(--muted); line-height: 1.25; }
.tech-grid li:hover { background: var(--panel); }
.tech-grid li:hover svg { color: var(--brand, var(--white)); transform: translateY(-2px); }
.tech-grid li:hover span { color: var(--white); }

.clouds { display: grid; gap: 16px; }
@media (min-width: 700px) { .clouds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .clouds { grid-template-columns: repeat(4, 1fr); } }
.cloud { position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow: hidden; transition: border-color .2s, transform .2s; }
.cloud:hover { border-color: var(--brand); transform: translateY(-3px); }
.cloud::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--brand); }
.cloud-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.cloud-head svg { width: 40px; height: 40px; color: var(--brand); flex: none; }
.cloud-head h3 { margin: 0; font-size: 1.14rem; }
.cloud-head small { display: block; font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 400; margin-top: 3px; }
.cloud p { color: var(--muted); font-size: .95rem; }
.cloud .tags { margin-top: 18px; }

/* ==========================================================================
   Service rows
   ========================================================================== */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 44px 1fr 24px; gap: 8px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; align-items: start; transition: background .2s, padding .2s; }
a.row:hover { background: var(--bg-2); }
a.row:hover .row-go { color: var(--accent-2); transform: translateX(4px); }
.row-num { font-family: var(--mono); font-size: .8rem; color: var(--accent-2); padding-top: 5px; }
.row h3 { font-size: clamp(1.18rem, 2.6vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.row p { margin: 0; color: var(--muted); grid-column: 2 / 3; font-size: .96rem; }
.row-go { font-size: 1.3rem; color: var(--muted); transition: transform .2s, color .2s; grid-row: 1; grid-column: 3; }
@media (min-width: 900px) {
	.row { grid-template-columns: 70px 1.05fr 1.5fr 40px; gap: 32px; padding: 30px 12px 30px 0; }
	a.row:hover { padding-left: 12px; }
	.row p { grid-column: auto; }
	.row-go { grid-row: auto; grid-column: auto; }
}

/* ==========================================================================
   Grids & cards
   ========================================================================== */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 28px; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; } .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) {
	.split { grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 96px); }
	.split.wide-left { grid-template-columns: 1.3fr 1fr; }
	.split.center { align-items: center; }
	.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
}

.feature { border-top: 1px solid var(--line-2); padding-top: 22px; position: relative; }
.feature::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: var(--accent); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature .num { font-family: var(--mono); font-size: .74rem; color: var(--accent-2); display: block; margin-bottom: 14px; letter-spacing: .04em; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 4vw, 34px); }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 14px; }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 20px; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags li { font-family: var(--mono); font-size: .72rem; padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--text); background: rgba(255,255,255,.02); }

.statement { font-size: clamp(1.4rem, 3.4vw, 2.25rem); line-height: 1.3; color: var(--white); margin: 0; letter-spacing: -0.025em; font-weight: 500; }
.statement em { font-style: normal; color: var(--accent-2); }

/* Company record card */
.record { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.record-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.record-head .status { color: var(--ok); display: inline-flex; align-items: center; gap: 8px; }
.record-head .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.record .details-list { padding: 6px 20px 10px; }
.record-foot { padding: 14px 20px; border-top: 1px solid var(--line); font-size: .86rem; }

/* ==========================================================================
   Service detail
   ========================================================================== */
.service-detail { padding: clamp(56px, 9vw, 90px) 0; border-bottom: 1px solid var(--line); }
.service-detail h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.service-detail .svc-tech { margin-top: 22px; }
.kv { display: grid; gap: 28px; margin-top: 30px; }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); font-weight: 500; margin-bottom: 10px; }
.kv ul { padding: 0; list-style: none; margin: 0; }
.kv li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.toc { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.toc a { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--white); font-weight: 500; }
.toc a span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.toc a:hover { color: var(--accent-2); }
.icon-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.icon-row li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-family: var(--mono); font-size: .74rem; color: var(--text); }
.icon-row li svg { width: 16px; height: 16px; color: var(--brand, var(--white)); }

/* ==========================================================================
   Architecture diagram (HTML version)
   ========================================================================== */
.diagram { border: 1px solid var(--line); border-radius: 12px; padding: clamp(14px, 3vw, 26px); font-size: .88rem; background: var(--bg); }
.diagram-boundary { border: 1px dashed var(--line-2); border-radius: 8px; padding: 26px 12px 12px; position: relative; }
.diagram-boundary > .tagline { position: absolute; top: -9px; left: 14px; background: var(--bg); padding: 0 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--ok); text-transform: uppercase; }
.layer { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; color: var(--white); background: var(--panel); font-weight: 500; }
.layer:last-child { margin-bottom: 0; }
.layer span { font-family: var(--mono); font-size: .72rem; color: var(--muted); font-weight: 400; }
.layer.key { border-color: var(--accent); background: rgba(79,140,255,.08); }
@media (min-width: 480px) { .layer { grid-template-columns: 1fr auto; align-items: center; } .layer span { text-align: right; } }
.diagram-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; }
.compare { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .94rem; background: var(--bg); }
.compare th, .compare td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-2); }
.compare tbody th { font-weight: 600; color: var(--white); width: 28%; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare td.yes { color: var(--ok); }
.scroll-hint { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: 10px; }
@media (min-width: 760px) { .scroll-hint { display: none; } }

/* ==========================================================================
   Experience
   ========================================================================== */
.sector { padding: clamp(56px, 8vw, 80px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sector .split { grid-template-columns: .9fr 1.3fr; } }

/* ==========================================================================
   Timeline / leadership
   ========================================================================== */
.timeline { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.timeline .era { font-family: var(--mono); font-size: .74rem; color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .timeline li { grid-template-columns: 160px 1fr; gap: 32px; } .timeline .era { padding-top: 4px; } }

.leader { display: grid; gap: 24px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 34px); }
@media (min-width: 700px) { .leader { grid-template-columns: 160px 1fr; gap: 34px; } }
.leader-photo { width: 120px; height: 120px; border-radius: 10px; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--line-2); }
@media (min-width: 700px) { .leader-photo { width: 160px; height: 160px; } }
.leader-initials { width: 96px; height: 96px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--bg); color: var(--white); font-size: 1.8rem; font-weight: 600; }
.leader h3 { font-size: 1.3rem; margin-bottom: 4px; }
.leader .role { font-family: var(--mono); font-size: .74rem; color: var(--accent-2); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.leader p { color: var(--muted); margin-bottom: 0; }
.leader p + p { margin-top: 12px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 600; font-size: 1.02rem; color: var(--white); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 1.4rem; font-weight: 300; color: var(--accent-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 24px; margin-bottom: 22px; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta { padding: clamp(64px, 9vw, 110px) 0; border-top: 1px solid var(--line); }
.cta .wrap { display: grid; gap: 28px; align-items: end; }
.cta h2 { margin: 0; max-width: 20ch; }
.cta p { margin: 16px 0 0; }
.cta .btn { width: 100%; }
@media (min-width: 760px) { .cta .wrap { grid-template-columns: 1.4fr auto; gap: 40px; } .cta .btn { width: auto; } }

/* ==========================================================================
   Contact form
   ========================================================================== */
.form { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 4vw, 40px); }
.form-row { display: grid; gap: 0 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 13px 14px;
	font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
	color: var(--white); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius);
	transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #5f6a7d; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.22); }
.field textarea { min-height: 170px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 24px; }
.consent input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.form .btn { width: 100%; }
@media (min-width: 640px) { .form .btn { width: auto; } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; margin-bottom: 22px; font-weight: 500; border-left: 3px solid; border-radius: 4px; }
.notice.ok { background: rgba(52,211,153,.1); border-color: var(--ok); color: #a7f3d0; }
.notice.err { background: rgba(248,113,113,.1); border-color: var(--err); color: #fecaca; }
.details-list { margin: 0; }
.details-list div { padding: 13px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.details-list dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
@media (min-width: 640px) { .details-list div { grid-template-columns: 170px 1fr; gap: 16px; } .details-list dt { padding-top: 3px; } }

/* ==========================================================================
   Prose
   ========================================================================== */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #07090e; color: var(--muted); padding: clamp(56px, 8vw, 80px) 0 calc(30px + env(safe-area-inset-bottom)); font-size: .93rem; border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; } }
.site-footer h4 { color: var(--white); font-size: .72rem; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-legal { display: flex; flex-direction: column; gap: 10px; padding-top: 26px; font-size: .8rem; color: #6b7588; }
@media (min-width: 900px) { .footer-legal { flex-direction: row; flex-wrap: wrap; justify-content: space-between; gap: 14px; } }
.footer-cert { display: inline-flex; align-items: center; gap: 8px; }
.footer-cert img { display: inline-block; opacity: .85; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Delivery pipeline (vertical on mobile, horizontal track on desktop)
   ========================================================================== */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; counter-reset: none; }
.pipeline li { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0 0 28px; }
.pipeline li::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 2px; background: linear-gradient(var(--accent), var(--line-2)); }
.pipeline li:last-child { padding-bottom: 0; }
.pipeline li:last-child::before { display: none; }
.pl-ico { grid-row: span 3; width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--brand); position: relative; z-index: 1; }
.pl-ico svg { width: 22px; height: 22px; }
.pl-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); padding-top: 2px; }
.pipeline h3 { margin: 4px 0 6px; font-size: 1.06rem; }
.pipeline p { margin: 0; color: var(--muted); font-size: .93rem; }
@media (min-width: 1000px) {
	.pipeline { grid-template-columns: repeat(6, 1fr); gap: 18px; }
	.pipeline li { display: block; padding: 0; }
	.pipeline li::before { left: 56px; right: -18px; top: 23px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 24px 2px; animation: track 1.2s linear infinite; }
	.pl-ico { margin-bottom: 18px; }
}
@keyframes track { to { background-position: 24px 0; } }

/* Pillars */
.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--bg); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: inherit; transition: background .2s; }
.pillar:hover { background: var(--panel); }
.pillar .p-ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--accent-2); }
.pillar .p-ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.35rem; margin: 6px 0 0; }
.pillar p { color: var(--muted); margin: 0; font-size: .96rem; }
.pillar ul { list-style: none; padding: 0; margin: 6px 0 0; font-family: var(--mono); font-size: .76rem; color: var(--text); display: grid; gap: 6px; }
.pillar li::before { content: "› "; color: var(--accent-2); }
.pillar .go { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--white); font-size: .92rem; }
.pillar .go::after { content: " →"; color: var(--accent-2); }

/* Security controls grid */
.controls { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
@media (min-width: 640px) { .controls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .controls { grid-template-columns: repeat(4, 1fr); } }
.control { background: var(--bg); padding: 22px; }
.control .c-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.control .c-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.control h3 { font-size: 1rem; margin-bottom: 6px; }
.control p { color: var(--muted); font-size: .9rem; margin: 0; }

/* Hybrid Kubernetes fleet */
.fleet-hub { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.fleet-core { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(79,140,255,.12), transparent 70%); }
.fleet-core svg { width: 40px; height: 40px; color: #4f86f0; flex: none; }
.fleet-core strong { display: block; font-size: 1.05rem; }
.fleet-core span { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.fleet { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
@media (min-width: 760px) { .fleet { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .fleet { grid-template-columns: repeat(6, 1fr); } }
.fleet li { background: var(--bg); padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; transition: background .2s; }
.fleet li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 10px; background: var(--accent); opacity: .6; }
.fleet li:hover { background: var(--panel); }
.fleet li svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 6px; }
.fleet li b { color: var(--white); font-weight: 600; font-size: .95rem; }
.fleet li span { font-family: var(--mono); font-size: .7rem; color: var(--muted); line-height: 1.4; }
