/* ==========================================================================
   KervilTech — main stylesheet
   VOICE   Institutional, exact, quiet confidence. Few words, fine lines.
   IDEA    The site behaves like an engineering drawing set: sheets, title
           blocks, dimension lines, a calibration point in signal red.
   PICTURE A live section drawing of a centrifugal pump; laminar flow lines
           moving behind every dark band.
   COLOUR  Deep ink navy, steel greys, cool concrete white, one red needle.
   TYPE    Archivo variable — expanded widths for display, normal for text;
           IBM Plex Mono only where an instrument would print a value.
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
	font-weight: 100 450;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
	font-weight: 451 550;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Plex Sans Arabic";
	src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
	font-weight: 551 900;
	font-display: swap;
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Plex Mono";
	src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "Plex Mono";
	src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-display: swap;
}

:root {
	--ink: #0b1b2e;
	--ink-2: #0f2339;
	--ink-3: #173250;
	--ink-deep: #07121f;
	--steel: #5f6f82;
	--steel-2: #93a1b3;
	--steel-3: #c3ccd6;
	--paper: #eceeed;
	--white: #f8f9f8;
	--bone: #f2f1ec;
	--signal: #e2432a;
	--signal-d: #c4341e;
	--line-d: rgba(242, 241, 236, .12);
	--line-d2: rgba(242, 241, 236, .22);
	--line-l: rgba(11, 27, 46, .12);
	--line-l2: rgba(11, 27, 46, .24);

	--f: "Archivo", "Plex Sans Arabic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--mono: "Plex Mono", "Plex Sans Arabic", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	/* Reading direction helpers (flipped for Arabic) */
	--dir: 1;
	--o-s: left;
	--o-e: right;

	--wrap: 1320px;
	--gut: clamp(20px, 4.5vw, 64px);
	--hd: 76px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);

	/* Theme tokens — light (default) */
	--bg: #f8f9f8;
	--bg-2: #eceeed;
	--card: #ffffff;
	--fg: #0b1b2e;
	--muted: #5f6f82;
	--rule: rgba(11, 27, 46, .12);
	--rule-2: rgba(11, 27, 46, .24);
	--ghost: rgba(11, 27, 46, .16);
	--glass: rgba(248, 249, 248, .86);
	color-scheme: light;
}

/* Theme tokens — dark. Same drawing set, at night: content sheets turn to
   deep blue-grey, the ink bands drop one step deeper so they still read as plates. */
:root[data-theme="dark"] {
	--ink: #08121f;
	--ink-2: #0a1727;
	--ink-deep: #050b14;
	--bg: #0f1c2d;
	--bg-2: #132338;
	--card: #172a42;
	--fg: #e9ecee;
	--muted: #9aa8b9;
	--rule: rgba(233, 236, 238, .11);
	--rule-2: rgba(233, 236, 238, .22);
	--ghost: rgba(233, 236, 238, .16);
	--glass: rgba(15, 28, 45, .86);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme]) {
		--ink: #08121f; --ink-2: #0a1727; --ink-deep: #050b14;
		--bg: #0f1c2d; --bg-2: #132338; --card: #172a42; --fg: #e9ecee; --muted: #9aa8b9;
		--rule: rgba(233, 236, 238, .11); --rule-2: rgba(233, 236, 238, .22);
		--ghost: rgba(233, 236, 238, .16); --glass: rgba(15, 28, 45, .86);
		color-scheme: dark;
	}
}
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
	transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease) !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 24px); }
body {
	margin: 0;
	font-family: var(--f);
	font-size: 17px;
	line-height: 1.6;
	font-weight: 400;
	font-stretch: 100%;
	color: var(--fg);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
	font-variant-numeric: lining-nums;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--signal); color: #fff; padding: 10px 16px; transition: top .2s; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.wrap--text { max-width: calc(880px + var(--gut) * 2); }

/* ---------- Type ---------- */
.h2 {
	font-size: clamp(2rem, 3.3vw, 3.15rem);
	line-height: 1.06;
	font-weight: 600;
	font-stretch: 112%;
	letter-spacing: -.018em;
	text-wrap: balance;
}
.h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; font-weight: 600; font-stretch: 110%; letter-spacing: -.01em; }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; }
.label { display: block; font-size: 13px; line-height: 1.3; font-weight: 500; color: var(--muted); letter-spacing: .01em; }
.band--ink .label { color: var(--steel-2); }

/* The calibration square from the logo, reused as the site's marker. */
.kicker {
	display: inline-flex; align-items: center; gap: 12px;
	font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 28px;
}
.kicker::before { content: ""; width: 7px; height: 7px; background: var(--signal); }

/* ---------- Buttons & links ---------- */
.btn {
	--b: currentColor;
	position: relative; display: inline-flex; align-items: center; gap: 14px;
	height: 54px; padding: 0 26px;
	font-size: 15px; font-weight: 560; font-stretch: 108%; letter-spacing: .005em;
	border: 1px solid var(--b); overflow: hidden; isolation: isolate;
	transition: color .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.btn::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	transform: scaleX(0); transform-origin: var(--o-e); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: scaleX(1); transform-origin: var(--o-s); }
.btn__arrow { width: 22px; height: 22px; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(calc(var(--dir) * 5px)) scaleX(var(--dir)); }
.btn--signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn--signal::after { background: var(--signal-d); }
.btn--ghost { color: var(--bone); border-color: var(--line-d2); }
.btn--ghost::after { background: var(--bone); }
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }

.link {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 560; font-stretch: 106%; font-size: 15px; color: var(--fg);
	padding: 6px 0; border-bottom: 1px solid var(--rule-2);
	transition: border-color .3s, gap .4s var(--ease);
}
.link__arrow { width: 20px; height: 20px; color: var(--signal); transition: transform .4s var(--ease); }
.link:hover { border-color: var(--signal); }
.link:hover .link__arrow { transform: translateX(calc(var(--dir) * 4px)) scaleX(var(--dir)); }
.link--light { color: var(--bone); border-color: var(--line-d2); }

/* ---------- Header ---------- */
.hd {
	position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hd);
	color: var(--bone);
	transition: background-color .4s var(--ease), backdrop-filter .4s, border-color .4s;
	border-bottom: 1px solid transparent;
}
.hd.is-scrolled, .hd.is-open {
	background: rgba(9, 22, 38, .92);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	border-color: var(--line-d);
}
.hd.is-hidden { transform: translateY(-100%); }
.hd { transition: transform .45s var(--ease), background-color .4s var(--ease), border-color .4s; }
.hd__in { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: block; flex: none; }
.brand img, .custom-logo { height: 26px; width: auto; }
.nav { margin-inline-start: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
	position: relative; display: block; padding: 10px 14px;
	font-size: 15px; font-weight: 480; color: rgba(242, 241, 236, .78); transition: color .25s;
}
.nav__list a::after {
	content: ""; position: absolute; inset-inline-start: 14px; inset-inline-end: 14px; bottom: 4px; height: 1px; background: var(--signal);
	transform: scaleX(0); transform-origin: var(--o-e); transition: transform .45s var(--ease);
}
.nav__list a:hover, .nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--bone); }
.nav__list a:hover::after, .nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: var(--o-s); }
.hd__cta { height: 44px; padding: 0 20px; font-size: 14px; }
.hd__gauge { position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: -1px; height: 1px; }
.hd__gauge i { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: var(--o-s); transform: scaleX(0); }

.burger { display: none; width: 44px; height: 44px; margin-inline-start: auto; align-items: center; justify-content: center; }
.burger__lines { position: relative; width: 24px; height: 10px; }
.burger__lines i { position: absolute; inset-inline-start: 0; inset-inline-end: 0; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger__lines i:first-child { top: 0; }
.burger__lines i:last-child { top: 8.5px; }
.hd.is-open .burger__lines i:first-child { top: 4.25px; transform: rotate(45deg); }
.hd.is-open .burger__lines i:last-child { top: 4.25px; transform: rotate(-45deg); }

.drawer {
	position: fixed; inset: var(--hd) 0 0; z-index: 49; background: var(--ink);
	color: var(--bone); overflow: auto;
	clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-io);
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer__in { padding-block: 32px 48px; display: flex; flex-direction: column; min-height: 100%; }
.drawer__list a {
	display: block; padding: 14px 0; border-bottom: 1px solid var(--line-d);
	font-size: clamp(1.8rem, 7vw, 2.6rem); font-weight: 520; font-stretch: 115%; letter-spacing: -.01em;
}
.drawer__foot { margin-top: auto; padding-top: 40px; display: grid; gap: 14px; justify-items: start; }
.drawer__meta { color: var(--steel-2); }
body.no-scroll { overflow: hidden; }

/* ---------- Bands ---------- */
.band { position: relative; padding-block: clamp(80px, 10vw, 152px); }
.band--paper { background: var(--bg-2); }
.band--ink { background: var(--ink); color: var(--bone); overflow: hidden; }
.band--ink > .wrap { position: relative; z-index: 1; }

.head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.head__lead { color: var(--muted); font-size: 1.06rem; max-width: 52ch; }
.head--light .head__lead, .band--ink .head__lead { color: var(--steel-2); }
.head--row { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; }

/* ---------- Flow canvas (laminar streamlines) ---------- */
.flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; display: flex; flex-direction: column;
	background:
		radial-gradient(70% 60% at 78% 38%, rgba(32, 72, 116, .55), transparent 70%),
		radial-gradient(50% 50% at 0% 100%, rgba(23, 50, 80, .7), transparent 70%),
		var(--ink);
	color: var(--bone); overflow: hidden; isolation: isolate;
}
.hero__grid, .phero__grid {
	position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image:
		linear-gradient(var(--line-d) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
	background-size: 80px 80px;
	background-position: center center;
	opacity: .35;
	-webkit-mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%);
	mask-image: radial-gradient(80% 70% at 70% 45%, #000 20%, transparent 75%);
}
.hero .flow { z-index: -1; }
.hero__in {
	flex: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
	gap: clamp(24px, 4vw, 72px); align-items: center;
	padding-top: calc(var(--hd) + clamp(32px, 5vw, 72px)); padding-bottom: 40px;
}
.hero__title {
	font-size: clamp(2.7rem, 5.7vw, 5.6rem);
	line-height: 1.0; font-weight: 580; font-stretch: 116%; letter-spacing: -.028em;
	text-wrap: balance; max-width: 13ch;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.hero__title.in .w > span, html:not(.js) .hero__title .w > span { transform: none; }
.hero__title .w:last-child > span::after { content: ""; display: inline-block; width: .16em; height: .16em; margin-inline-start: .06em; background: var(--signal); }
.hero__sub { margin-top: 28px; max-width: 40ch; font-size: clamp(1.08rem, 1.4vw, 1.3rem); color: var(--steel-3); line-height: 1.5; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__fig { position: relative; justify-self: end; width: 100%; max-width: 620px; }

.hero__rail {
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding-block: 26px 30px; border-top: 1px solid var(--line-d); position: relative;
}
.lineage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; }
.lineage__k { font-size: 14px; color: var(--steel-2); }
.lineage__v { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.lineage__v span { font-size: 1.05rem; font-weight: 600; font-stretch: 125%; letter-spacing: .02em; color: var(--bone); opacity: .82; }
.lineage__v span + span::before { content: "/"; margin-inline-end: 22px; color: var(--steel); font-weight: 300; }
.scrollcue { width: 26px; height: 42px; border: 1px solid var(--line-d2); border-radius: 13px; position: relative; flex: none; }
.scrollcue i { position: absolute; inset-inline-start: 50%; top: 9px; width: 2px; height: 8px; margin-inline-start: -1px; background: var(--signal); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- Pump schematic ---------- */
.pump { position: relative; color: var(--steel-2); }
.pump__svg { width: 100%; height: auto; max-height: max(360px, calc(100svh - 370px)); overflow: visible; }
.pump__frame { opacity: .5; }
.pump__guides { opacity: .28; }
.pump__draw path { stroke-dasharray: 1; stroke-dashoffset: 1; color: var(--bone); }
.pump.in .pump__draw path { animation: draw 2.4s var(--ease-io) forwards; }
.pump.in .pump__draw path:nth-child(2) { animation-delay: .35s; }
.pump.in .pump__draw path:nth-child(3) { animation-delay: .6s; opacity: .5; }
.pump.in .pump__draw path:nth-child(4) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pump__bolts { color: var(--bone); }
.pump__ticks { opacity: .35; }
.pump__imp {
	color: var(--bone); transform-box: view-box; transform-origin: 300px 318px;
	animation: spin 7s linear infinite;
}
.pump__hub { fill: var(--signal); }
.pump__glow { animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .5; } to { opacity: 1; } }
.pump__particles { fill: var(--signal); }
.pump__dims { opacity: .6; }
.pump__label, .pump__balloons text { font-family: var(--mono); font-size: 12px; }
.pump__label { fill: var(--steel-2); }
.pump__balloons circle { fill: var(--ink); stroke: var(--steel-2); stroke-width: 1; }
.pump__balloons text { fill: var(--bone); }
.pump__callouts { opacity: .5; }
@keyframes spin { to { transform: rotate(360deg); } }

.pump__legend {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
	margin-top: 6px; font-family: var(--mono); font-size: 12px; color: var(--steel-2);
}
.pump__legend ol { counter-reset: c; display: grid; grid-template-columns: auto auto; gap: 3px 22px; order: 2; }
.pump__legend li { counter-increment: c; white-space: nowrap; }
.pump__legend li::before { content: counter(c) "  "; color: var(--bone); }
.pump__read {
	display: grid; grid-template-columns: repeat(3, auto); gap: 0; border: 1px solid var(--line-d2);
	background: rgba(7, 18, 31, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pump__read div { padding: 9px 14px; border-inline-start: 1px solid var(--line-d); }
.pump__read div:first-child { border-inline-start: 0; }
.pump__read dt { font-size: 11px; color: var(--steel-2); }
.pump__read dd { white-space: nowrap; color: var(--steel-3); }
.pump__read b { font-weight: 500; color: var(--bone); font-variant-numeric: tabular-nums; }

/* ---------- Mission ---------- */
.mission__text {
	font-size: clamp(1.7rem, 3.3vw, 3.05rem); line-height: 1.18;
	font-weight: 480; font-stretch: 106%; letter-spacing: -.015em; max-width: 30ch; text-wrap: pretty;
}
.mission__text .sw { transition: color .4s; color: var(--ghost); }
.mission__text .sw.lit { color: var(--fg); }
html:not(.js) .mission__text .sw { color: var(--fg); }

.figures { margin-top: clamp(64px, 8vw, 120px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure { position: relative; padding: 22px 24px 0 0; border-top: 1px solid var(--rule-2); }
.figure::before { content: ""; position: absolute; inset-inline-start: 0; top: -6px; width: 1px; height: 11px; background: var(--fg); }
.figure dt { font-size: 14px; color: var(--muted); max-width: 18ch; }
.figure dd {
	margin-top: 18px; font-size: clamp(3rem, 6.2vw, 5.6rem); line-height: .9;
	font-weight: 260; font-stretch: 125%; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.figure sup { font-size: .4em; vertical-align: top; position: relative; top: .1em; color: var(--signal); font-weight: 500; margin-inline-start: .04em; }

/* ---------- Services (home) ---------- */
.svc__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.svc__list { border-bottom: 1px solid var(--rule); }
.svc__item {
	position: relative; width: 100%; text-align: start;
	display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; align-items: center;
	padding: 22px 0; border-top: 1px solid var(--rule);
	color: var(--muted); transition: color .3s;
}
.svc__ic { width: 46px; height: 46px; grid-row: span 2; color: var(--steel-2); transition: color .3s; }
.svc__name { font-size: clamp(1.15rem, 1.5vw, 1.4rem); font-weight: 560; font-stretch: 112%; letter-spacing: -.01em; }
.svc__short {
	grid-column: 2; font-size: 15px; color: var(--muted);
	display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease), opacity .4s, margin .4s; opacity: 0;
}
.svc__short { overflow: hidden; max-height: 0; }
.svc__item.is-on .svc__short, .svc__item:hover .svc__short { max-height: 4em; opacity: 1; margin-top: 4px; }
.svc__item.is-on, .svc__item:hover { color: var(--fg); }
.svc__item.is-on .svc__ic, .svc__item:hover .svc__ic { color: var(--fg); }
.svc__bar { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: var(--o-s); }
.svc__item.is-on .svc__bar { transform: scaleX(1); }
[data-tabs].is-auto .svc__item.is-on .svc__bar { transform: scaleX(0); animation: bar var(--dur, 6s) linear forwards; }
[data-tabs].is-paused .svc__item.is-on .svc__bar { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.svc__stage { position: sticky; top: calc(var(--hd) + 32px); }
.svc__panel[hidden] { display: none; }
.svc__panel.is-on { animation: panelIn .7s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.svc__copy { padding-top: 28px; display: grid; gap: 18px; justify-items: start; }

/* Blueprint panel */
.bp {
	position: relative; aspect-ratio: 4 / 3; background: var(--ink); color: var(--bone); overflow: hidden;
	display: grid; place-items: center;
}
.bp__grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--line-d) 1px, transparent 1px),
		linear-gradient(90deg, var(--line-d) 1px, transparent 1px),
		linear-gradient(rgba(242, 241, 236, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 241, 236, .05) 1px, transparent 1px);
	background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
	background-position: center;
}
.bp::before, .bp::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid var(--steel-2); opacity: .7; }
.bp::before { inset-inline-start: 14px; top: 14px; border-inline-end: 0; border-bottom: 0; }
.bp::after { inset-inline-end: 14px; bottom: 14px; border-inline-start: 0; border-top: 0; }
.bp__icon { position: relative; width: 52%; height: auto; }
.bp__icon * { vector-effect: non-scaling-stroke; }
.bp__icon { stroke-width: 2; }
.bp__ref { position: absolute; inset-inline-end: 44px; top: 18px; font-family: var(--mono); font-size: 12px; color: var(--steel-2); }
.bp__dim { position: absolute; inset-inline-start: 24%; inset-inline-end: 24%; bottom: 9%; height: 10px; border-inline-start: 1px solid var(--steel-2); border-inline-end: 1px solid var(--steel-2); opacity: .6; }
.bp__dim::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 50%; border-top: 1px dashed var(--steel-2); }

/* Ticks list */
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-inline-start: 24px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .68em; width: 7px; height: 7px; background: var(--signal); }

/* ---------- Icon motion ---------- */
.kt-icon [class*="i-"] { transform-box: view-box; }
.kt-icon .i-acc { stroke: var(--signal); }
.kt-icon .i-acc-f { fill: var(--signal); stroke: none; }
.kt-icon .i-lift { transition: transform .6s var(--ease); }
.is-live .i-spin, .is-on .i-spin, :hover > .i-spin, *:hover > .kt-icon .i-spin, .kt-icon:hover .i-spin { animation: spin 2.6s linear infinite; }
.is-live .i-needle, .is-on .i-needle, *:hover > .kt-icon .i-needle { animation: needle 2.8s var(--ease-io) infinite alternate; }
.is-live .i-lift, .is-on .i-lift, *:hover > .kt-icon .i-lift { animation: lift 3s var(--ease-io) infinite alternate; }
.is-live .i-piston, .is-on .i-piston, *:hover > .kt-icon .i-piston { animation: piston .55s var(--ease-io) infinite alternate; }
.is-live .i-drop, .is-on .i-drop, *:hover > .kt-icon .i-drop { animation: drop 1.4s ease-in infinite; }
.is-live .i-digits, .is-on .i-digits, *:hover > .kt-icon .i-digits { animation: blink 1s steps(2) infinite; }
.is-live .i-rock, .is-on .i-rock, *:hover > .kt-icon .i-rock { animation: rock 2.4s var(--ease-io) infinite alternate; }
.is-live .i-hook, .is-on .i-hook, *:hover > .kt-icon .i-hook { animation: hook 2s var(--ease-io) infinite alternate; }
.kt-icon .i-blink { animation: blink 2.4s steps(2) infinite; }
@keyframes needle { from { transform: rotate(-4deg); } to { transform: rotate(98deg); } }
@keyframes lift { from { transform: translateY(8px); } to { transform: translateY(-10px); } }
@keyframes piston { to { transform: translateY(6px); } }
@keyframes drop { 0% { transform: translateY(-2px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }
@keyframes blink { 50% { opacity: .15; } }
@keyframes rock { from { transform: rotate(-9deg); } to { transform: rotate(9deg); } }
@keyframes hook { to { transform: translateY(5px); } }

/* ---------- Industries pipeline ---------- */
.ind .flow { opacity: .7; }
.pipeline { position: relative; }
.pipeline__pipe { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 7px; width: 100%; height: 20px; overflow: visible; }
.pipeline__wall { stroke: var(--line-d2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pipeline__flow { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 6 26; vector-effect: non-scaling-stroke; animation: flowdash 1.6s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -32; } }
.pipeline__nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.node { padding-top: 0; }
.node__dot {
	display: block; width: 34px; height: 34px; border: 1px solid var(--line-d2); border-radius: 50%;
	background: var(--ink); position: relative; margin-bottom: 40px;
}
.node__dot::after { content: ""; position: absolute; inset: 11px; background: var(--bone); border-radius: 50%; transition: background .3s, inset .3s; }
.node:hover .node__dot::after { background: var(--signal); inset: 9px; }
.node__ic { width: 48px; height: 48px; color: var(--bone); margin-bottom: 22px; }
.node__name { font-size: 1.1rem; line-height: 1.25; font-weight: 560; font-stretch: 110%; margin-bottom: 10px; max-width: 16ch; }
.node__line { font-size: 15px; color: var(--steel-2); }
.ind__foot { margin-top: 64px; }

/* ---------- Lineage band ---------- */
.lin { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.lin__fig { display: grid; justify-items: start; }
.lin__num {
	font-size: clamp(7rem, 17vw, 15.5rem); line-height: .82; font-weight: 200; font-stretch: 125%;
	letter-spacing: -.06em; color: var(--fg); font-variant-numeric: tabular-nums;
}
.lin__num > span { color: var(--fg); }
.lin__dim { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.lin__dim em { font-style: normal; }
.lin__dim i { flex: 1; height: 1px; background: var(--muted); position: relative; }
.lin__dim i:first-child::before, .lin__dim i:last-child::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--muted); }
.lin__dim i:first-child::before { inset-inline-start: 0; }
.lin__dim i:last-child::after { inset-inline-end: 0; }
.lin__fig--sm .lin__num { font-size: clamp(5rem, 10vw, 8.5rem); }
.lin__copy { display: grid; gap: 26px; justify-items: start; }
.lin__copy > p { color: var(--muted); max-width: 56ch; font-size: 1.06rem; }
.lin__mv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: 100%; padding-top: 8px; }
.lin__mv > div { border-top: 1px solid var(--rule-2); padding-top: 16px; }
.lin__mv p { margin-top: 10px; font-size: 1.02rem; }

/* ---------- Cards (projects) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.card__link { display: grid; height: 100%; background: var(--card); border: 1px solid var(--rule); transition: border-color .3s; }
.band--paper .card__link { background: var(--card); }
.card__link:hover { border-color: var(--fg); }
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__body { position: relative; padding: 24px 24px 30px; display: grid; gap: 10px; align-content: start; }
.card__meta { font-size: 13px; color: var(--muted); }
.card__title { font-size: 1.25rem; line-height: 1.2; font-weight: 580; font-stretch: 110%; letter-spacing: -.01em; padding-inline-end: 36px; }
.card__ex { color: var(--muted); font-size: 15px; }
.card__go { position: absolute; inset-inline-end: 20px; top: 22px; width: 24px; height: 24px; color: var(--signal); transition: transform .4s var(--ease); }
.card__link:hover .card__go { transform: translateX(calc(var(--dir) * 4px)); }

/* Drawn fallback image */
.schem { position: relative; width: 100%; height: 100%; min-height: 220px; background: var(--ink); color: var(--bone); display: grid; place-items: center; overflow: hidden; }
.schem__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px); background-size: 32px 32px; background-position: center; }
.schem__icon { position: relative; width: 38%; max-width: 220px; }
.schem__icon * { vector-effect: non-scaling-stroke; }
.schem__icon { stroke-width: 1.6; }
.card__link:hover .schem__icon .i-spin { animation: spin 2.6s linear infinite; }
.schem__dim { position: absolute; border-color: var(--steel-2); opacity: .55; }
.schem__dim--h { inset-inline-start: 28%; inset-inline-end: 28%; bottom: 10%; height: 8px; border-inline-start: 1px solid; border-inline-end: 1px solid; }
.schem__dim--h::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 50%; border-top: 1px dashed var(--steel-2); }
.schem__dim--v { inset-inline-end: 10%; top: 24%; bottom: 24%; width: 8px; border-top: 1px solid; border-bottom: 1px solid; }
.schem__dim--v::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 50%; border-inline-start: 1px dashed var(--steel-2); }
.schem__ref { position: absolute; inset-inline-start: 16px; top: 14px; font-family: var(--mono); font-size: 11px; color: var(--steel-2); }

/* ---------- News rows ---------- */
.posts { border-bottom: 1px solid var(--rule-2); }
.post-row__link {
	display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 24px 40px; align-items: start;
	padding: 34px 0; border-top: 1px solid var(--rule-2); position: relative;
}
.post-row__link::before { content: ""; position: absolute; inset-inline-start: 0; top: -1px; height: 1px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: var(--o-s); transition: transform .6s var(--ease); }
.post-row__link:hover::before { transform: scaleX(1); }
.post-row__date { display: grid; }
.post-row__d { font-size: 2.6rem; line-height: 1; font-weight: 260; font-stretch: 125%; letter-spacing: -.04em; }
.post-row__m { font-size: 13px; color: var(--muted); margin-top: 6px; }
.post-row__cat { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.post-row__title { font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.2; font-weight: 560; font-stretch: 110%; letter-spacing: -.01em; max-width: 34ch; }
.post-row__ex { margin-top: 10px; color: var(--muted); max-width: 64ch; }
.post-row__go { width: 28px; height: 28px; color: var(--signal); margin-top: 8px; transition: transform .4s var(--ease); }
.post-row__link:hover .post-row__go { transform: translateX(calc(var(--dir) * 6px)); }

/* ---------- CTA band ---------- */
.cta { position: relative; background: var(--ink-2); color: var(--bone); overflow: hidden; padding-block: clamp(88px, 11vw, 168px); isolation: isolate; }
.cta .flow { z-index: -1; }
.cta__in { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 40px 80px; align-items: end; }
.cta__title { font-size: clamp(2.3rem, 4.6vw, 4.3rem); line-height: 1.02; font-weight: 560; font-stretch: 116%; letter-spacing: -.025em; text-wrap: balance; }
.cta__side { display: grid; gap: 28px; justify-items: start; }
.cta__side p { color: var(--steel-3); }

/* ---------- Footer / title block ---------- */
.ft { position: relative; background: var(--ink-deep); color: var(--steel-3); padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.tb { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.15fr) minmax(0, .85fr); border: 1px solid var(--line-d2); }
.tb__cell { padding: 26px 24px 30px; border-inline-start: 1px solid var(--line-d2); }
.tb__cell:first-child { border-inline-start: 0; }
.tb__label { display: block; font-size: 12px; color: var(--steel-2); margin-bottom: 14px; }
.tb__mark { width: 44px; height: auto; color: var(--bone); margin-bottom: 22px; }
.kt-mark__dot { fill: var(--signal); }
.tb__tag { font-size: 15px; max-width: 36ch; color: var(--steel-2); }
.tb__list { display: grid; gap: 8px; font-size: 15px; }
.tb__list a { color: var(--steel-3); transition: color .2s; }
.tb__list a:hover { color: var(--bone); }
.tb__meta { display: grid; padding: 0; }
.tb__meta > div { padding: 14px 20px; border-top: 1px solid var(--line-d2); display: grid; }
.tb__meta > div:first-child { border-top: 0; }
.tb__meta .tb__label { margin-bottom: 2px; }
.tb__meta span:last-child { font-family: var(--mono); font-size: 13px; color: var(--bone); }
.ft__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px 26px; font-size: 13px; color: var(--steel-2); }
.ft__top:hover { color: var(--bone); }
.ft__word { padding-inline: var(--gut); margin-bottom: -2.2vw; opacity: .07; }
.ft__word img { width: 100%; height: auto; }

/* ---------- Page hero ---------- */
.phero {
	position: relative; overflow: hidden; isolation: isolate; color: var(--bone);
	background: radial-gradient(60% 80% at 85% 20%, rgba(32, 72, 116, .5), transparent 70%), var(--ink);
	padding-top: calc(var(--hd) + clamp(56px, 8vw, 120px));
}
.phero .flow { z-index: -1; }
.phero__grid { -webkit-mask-image: radial-gradient(70% 90% at 85% 30%, #000 10%, transparent 70%); mask-image: radial-gradient(70% 90% at 85% 30%, #000 10%, transparent 70%); }
.phero__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); }
.phero__title { font-size: clamp(2.6rem, 5.2vw, 4.8rem); line-height: 1.02; font-weight: 580; font-stretch: 116%; letter-spacing: -.026em; text-wrap: balance; max-width: 18ch; }
.phero__lead { margin-top: 24px; max-width: 56ch; color: var(--steel-3); font-size: clamp(1.05rem, 1.3vw, 1.22rem); }
.phero__icon { width: clamp(120px, 14vw, 200px); color: var(--bone); opacity: .9; }
.phero__icon .kt-icon { width: 100%; height: auto; stroke-width: 1; }
.sheet { display: flex; justify-content: flex-end; }
.sheet > div { display: grid; padding: 10px 18px; border: 1px solid var(--line-d2); border-bottom: 0; margin-inline-start: -1px; min-width: 96px; }
.sheet dt { font-size: 11px; color: var(--steel-2); }
.sheet dd { font-family: var(--mono); font-size: 13px; color: var(--bone); }
.phero--article { padding-bottom: clamp(56px, 7vw, 96px); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--steel-2); margin-bottom: 26px; }
.article__meta a:hover { color: var(--bone); }
.article__hero { margin-top: -1px; padding-top: 0; }
.article__hero img { width: 100%; max-height: 640px; object-fit: cover; }

/* ---------- Generic layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 112px); align-items: start; }
.split__aside { position: sticky; top: calc(var(--hd) + 40px); }
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1em; }
.prose--lg { font-size: clamp(1.1rem, 1.45vw, 1.32rem); line-height: 1.55; }
.prose--lg p:first-child { font-size: 1.2em; font-weight: 480; font-stretch: 104%; line-height: 1.4; letter-spacing: -.01em; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; font-weight: 600; font-stretch: 112%; letter-spacing: -.015em; margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; font-weight: 600; font-stretch: 108%; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul, .prose ol { padding-inline-start: 1.2em; }
.prose ul { list-style: square; }
.prose ul li::marker { color: var(--signal); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.8em 0; padding-inline-start: 24px; border-inline-start: 2px solid var(--signal); font-size: 1.25em; line-height: 1.4; font-stretch: 104%; }
.prose img, .prose figure { margin-block: 1.8em; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); }
.prose--article { margin-inline: auto; font-size: 1.08rem; }

/* About */
.heritage__line { display: flex; margin-top: clamp(56px, 7vw, 96px); position: relative; }
.heritage__line::before { content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 7px; height: 1px; background: var(--line-d2); }
.heritage__line li { flex: 1; position: relative; padding-top: 34px; }
.heritage__dot { position: absolute; inset-inline-start: 0; top: 0; width: 15px; height: 15px; border: 1px solid var(--steel-2); background: var(--ink); }
.heritage__name { font-size: clamp(1.3rem, 2.4vw, 2.1rem); font-weight: 500; font-stretch: 125%; letter-spacing: -.01em; }
.heritage__line .is-now .heritage__dot { background: var(--signal); border-color: var(--signal); box-shadow: 0 0 0 0 rgba(226, 67, 42, .6); animation: ping 2.4s ease-out infinite; }
.heritage__line .is-now .heritage__name { color: var(--bone); font-weight: 650; }
.heritage__line li:not(.is-now) .heritage__name { color: var(--steel-2); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226, 67, 42, .55); } 100% { box-shadow: 0 0 0 18px rgba(226, 67, 42, 0); } }
.heritage__note { margin-top: 48px; font-size: 13px; color: var(--steel-2); }
.heritage .h2 { max-width: 20ch; }
.heritage .head__lead { margin-top: 22px; }

.spec-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.spec-list li { border-top: 1px solid var(--fg); padding-top: 22px; display: grid; gap: 18px; align-content: start; }
.spec-list__n { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--rule-2); font-family: var(--mono); font-size: 13px; }
.spec-list p { font-size: 1.12rem; line-height: 1.45; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.mv__item { border-top: 1px solid var(--rule-2); padding-top: 24px; }
.mv__text { margin-top: 18px; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.2; font-weight: 480; font-stretch: 108%; letter-spacing: -.015em; }

.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.value { padding: 0 28px 8px; border-inline-start: 1px solid var(--rule-2); }
.value:first-child { padding-inline-start: 0; border-inline-start: 0; }
.value__ic { width: 48px; height: 48px; margin-bottom: 26px; }
.value__name { font-size: 1.2rem; font-weight: 580; font-stretch: 110%; margin-bottom: 10px; }
.value p { color: var(--muted); font-size: 15px; }

/* Services page */
.subnav { position: sticky; top: var(--hd); z-index: 20; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.subnav__in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 18px 16px; font-size: 14px; font-weight: 500; color: var(--muted); position: relative; white-space: nowrap; }
.subnav a::after { content: ""; position: absolute; inset-inline-start: 16px; inset-inline-end: 16px; bottom: -1px; height: 2px; background: var(--signal); transform: scaleX(0); transition: transform .4s var(--ease); }
.subnav a.is-on { color: var(--fg); }
.subnav a.is-on::after { transform: scaleX(1); }
.service__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 104px); align-items: center; }
.service--flip .bp { order: 2; }
.service__copy { display: grid; gap: 24px; justify-items: start; }
.service__short { font-size: 1.15rem; color: var(--muted); }
.bp--lg { aspect-ratio: 5 / 4; }
.spec { display: grid; width: 100%; border-top: 1px solid var(--rule-2); }
.spec > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: 13px; color: var(--muted); padding-top: 2px; }
.spec dd { font-weight: 500; }
.spec--row { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-top: 0; margin-top: 32px; }
.spec--row > div { grid-template-columns: 1fr; gap: 4px; border-top: 1px solid var(--fg); border-bottom: 0; padding: 14px 20px 0 0; }

/* Industries page */
.sectors { display: grid; border-bottom: 1px solid var(--rule-2); }
.sector { display: grid; grid-template-columns: 88px minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 48px; align-items: center; padding: 34px 0; border-top: 1px solid var(--rule-2); }
.sector__ic { width: 64px; height: 64px; }
.sector__ic .kt-icon { width: 100%; height: 100%; }
.sector__name { font-size: clamp(1.4rem, 2.4vw, 2.1rem); line-height: 1.12; font-weight: 560; font-stretch: 114%; letter-spacing: -.015em; }
.sector__line { color: var(--muted); font-size: 1.05rem; }
.matrix { width: 100%; border-collapse: collapse; min-width: 760px; }
.matrix th, .matrix td { padding: 16px 12px; border-bottom: 1px solid var(--rule-2); text-align: center; vertical-align: middle; }
.matrix thead th { font-size: 13px; font-weight: 500; color: var(--muted); vertical-align: bottom; width: 15%; text-align: center; line-height: 1.3; }
.matrix tbody th { text-align: start; font-weight: 560; font-stretch: 108%; white-space: nowrap; padding-inline-start: 0; }
.matrix .dot { display: inline-block; width: 12px; height: 12px; background: var(--signal); }
.matrix .dash { display: inline-block; width: 12px; height: 1px; background: var(--rule-2); vertical-align: middle; }
.matrix tbody tr { transition: background .2s; }
.matrix tbody tr:hover { background: var(--bg-2); }
.scroll { overflow-x: auto; }

/* Careers */
.perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 48px; }
.perks li { border-top: 1px solid var(--fg); padding-top: 18px; }
.perks__name { font-size: 1.15rem; font-weight: 580; font-stretch: 110%; margin-bottom: 8px; }
.perks p { color: var(--muted); font-size: 15px; }
.vacs { border-bottom: 1px solid var(--rule-2); }
.vac__link { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px 40px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule-2); transition: padding .4s var(--ease); }
.vac__link:hover { padding-inline-start: 12px; }
.vac__title { font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 560; font-stretch: 110%; }
.vac__meta { color: var(--muted); font-size: 15px; }
.vac__go { display: inline-flex; align-items: center; gap: 8px; font-weight: 560; font-size: 15px; }
.vac__go .kt-icon { width: 20px; height: 20px; color: var(--signal); }
.apply { display: grid; gap: 22px; justify-items: start; }

.empty { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding: clamp(28px, 4vw, 48px); border: 1px dashed var(--rule-2); background: var(--card); align-items: start; }
.band--paper .empty { background: var(--card); }
.empty__ic { width: 64px; height: 64px; color: var(--fg); }
.empty > div { display: grid; gap: 12px; justify-items: start; max-width: 60ch; }
.empty p { color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.contact__form, .contact__direct { display: grid; gap: 32px; }
.contact__form { background: var(--card); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--rule); }
.direct { display: grid; }
.direct li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule-2); }
.direct li:last-child { border-bottom: 1px solid var(--rule-2); }
.direct .kt-icon { width: 28px; height: 28px; margin-top: 2px; }
.direct a, .direct address, .direct span:not(.label) { font-style: normal; font-size: 1.08rem; font-weight: 500; overflow-wrap: anywhere; }
.direct a:hover { color: var(--signal); }
.direct__note { padding: 18px 20px; border-inline-start: 2px solid var(--signal); background: var(--card); font-size: 15px; color: var(--muted); }

.form { display: grid; gap: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field label span { color: var(--signal); }
.field input, .field textarea, .field select {
	width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: transparent;
	border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; padding: 10px 0 12px;
	transition: border-color .25s; -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 140px; border: 1px solid var(--rule-2); padding: 12px 14px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--fg) 50%), linear-gradient(135deg, var(--fg) 50%, transparent 50%); background-position: calc(100% - 12px) 52%, calc(100% - 7px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 28px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--signal); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { box-shadow: 0 2px 0 0 var(--signal); }
.form__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--muted); max-width: 34ch; }
.form__notice { padding: 14px 18px; font-size: 15px; border-inline-start: 2px solid; }
.form__notice.is-ok { border-color: #2f7d5b; background: rgba(47, 125, 91, .08); }
.form__notice.is-err { border-color: var(--signal); background: rgba(226, 67, 42, .07); }

/* Chips, pager, prev/next */
.chips { display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 40px; padding-bottom: 4px; }
.chips a { flex: none; padding: 9px 16px; border: 1px solid var(--rule-2); font-size: 14px; transition: background .2s, color .2s; }
.chips a:hover, .chips a.is-on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chips--static { flex-wrap: wrap; margin-top: 18px; }
.pager .nav-links { display: flex; gap: 6px; margin-top: 48px; }
.pager .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--rule-2); font-size: 15px; }
.pager .page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 48px; }
.pn__a { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid var(--rule-2); font-weight: 560; font-stretch: 108%; }
.pn__a--next { text-align: end; grid-column: 2; }
.pn__a:hover { border-color: var(--signal); }

.case__media { aspect-ratio: 16 / 8; overflow: hidden; }
.case__media img, .case__media .schem { width: 100%; height: 100%; object-fit: cover; }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.story__step { border-top: 2px solid var(--fg); padding-top: 22px; }
.story__step:nth-child(3) { border-color: var(--signal); }
.story__k { font-size: 1.3rem; font-weight: 600; font-stretch: 112%; margin-bottom: 14px; }
.story__step p { color: var(--muted); }

.admin-hint { max-width: var(--wrap); margin: 24px auto; padding: 10px 14px; border: 1px dashed var(--signal); color: var(--signal-d); font-size: 13px; background: rgba(226, 67, 42, .05); }
.ft .admin-hint { margin: 16px 0 0; color: #ff9a86; }
.wp-block-image img { height: auto; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-inline-start: calc(50% - 50vw); }


/* ==========================================================================
   Header controls — language + colour theme
   ========================================================================== */
.hd__ctl { display: flex; align-items: center; gap: 2px; }
.ctl {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
	height: 44px; min-width: 44px; padding: 0 10px; color: rgba(242, 241, 236, .82);
	border: 1px solid transparent; transition: color .25s, background-color .25s, border-color .25s;
}
.ctl:hover, .ctl[aria-expanded="true"] { color: var(--bone); background: rgba(242, 241, 236, .07); border-color: var(--line-d); }
.ctl__ic { width: 20px; height: 20px; flex: none; overflow: visible; }
.lang { position: relative; }
.lang__code { font-size: 13px; font-weight: 600; font-stretch: 112%; letter-spacing: .04em; min-width: 2ch; text-align: start; }
.lang__menu {
	position: absolute; top: calc(100% + 10px); inset-inline-end: 0; z-index: 60; min-width: 232px; padding: 6px;
	background: rgba(9, 22, 38, .97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
	border: 1px solid var(--line-d2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
	transform-origin: top var(--o-e); animation: menuIn .28s var(--ease) both;
}
.lang__menu[hidden] { display: none; }
.lang__menu::before { content: ""; position: absolute; top: -6px; inset-inline-end: 18px; width: 10px; height: 10px; background: inherit; border-top: 1px solid var(--line-d2); border-inline-start: 1px solid var(--line-d2); transform: rotate(45deg); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.lang__menu a {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px;
	padding: 11px 14px; color: rgba(242, 241, 236, .82); font-size: 15px; transition: background-color .2s, color .2s;
}
.lang__menu a:hover, .lang__menu a:focus-visible { background: rgba(242, 241, 236, .07); color: var(--bone); outline: none; }
.lang__menu a.is-on { color: var(--bone); }
.lang__menu a, .lang__menu .lang__tag { direction: ltr; }
.lang__menu a.is-on::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--signal); }
.lang__tag { font-family: var(--mono); font-size: 11px; color: var(--steel-2); }

/* Sun ↔ moon: the icon shows the mode you will switch to. */
.tgl__sun, .tgl__moon { transform-box: view-box; transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .4s var(--ease); }
.tgl__sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
:root[data-theme="dark"] .tgl__sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .tgl__moon { opacity: 0; transform: rotate(60deg) scale(.6); }
.theme-tgl:hover .tgl__sun { transform: rotate(45deg); }

/* Drawer language list */
.drawer__langs { padding-top: 30px; }
.drawer__label { display: block; font-size: 13px; color: var(--steel-2); margin-bottom: 10px; }
.langlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.langlist a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line-d); color: var(--steel-3); font-size: 16px; }
.langlist a.is-on { color: var(--bone); }
.langlist a.is-on::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--signal); margin-inline-end: 10px; vertical-align: middle; }

/* ==========================================================================
   Dark theme refinements
   ========================================================================== */
:root[data-theme="dark"] .bp, :root[data-theme="dark"] .card__media, :root[data-theme="dark"] .schem { box-shadow: inset 0 0 0 1px var(--rule); }
:root[data-theme="dark"] .card__link:hover { border-color: var(--steel-2); }
:root[data-theme="dark"] .subnav a.is-on { color: var(--fg); }
:root[data-theme="dark"] .form__notice.is-ok { border-color: #3fa37a; background: rgba(63, 163, 122, .12); }
:root[data-theme="dark"] .admin-hint { color: #ff9a86; }
:root[data-theme="dark"] .prose a { text-decoration-color: var(--signal); }
:root[data-theme="dark"] .direct a:hover { color: #ff7a63; }
:root[data-theme="dark"] .field input::placeholder, :root[data-theme="dark"] .field textarea::placeholder { color: var(--muted); }
:root[data-theme="dark"] img:not(.brand img):not(.ft__word img) { filter: brightness(.92); }

/* ==========================================================================
   Right-to-left (Arabic)
   ========================================================================== */
[dir="rtl"] { --dir: -1; --o-s: right; --o-e: left; }
.kt-arrow { transform: scaleX(var(--dir)); }
[dir="rtl"] .pipeline__pipe { transform: scaleX(-1); }
[dir="rtl"] .field select { background-position: 12px 52%, 7px 52%; }
.pump__svg, .pump__read { direction: ltr; }
[dir="rtl"] .pump__legend { direction: rtl; }
[dir="rtl"] .lineage__v, [dir="rtl"] .heritage__line .heritage__name { unicode-bidi: plaintext; }

a[href^="tel:"], a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] address, [dir="rtl"] .tb__contact li { unicode-bidi: plaintext; }
html[lang^="zh"] .hero__title .w:last-child > span::after { margin-inline-start: -.3em; }

/* ==========================================================================
   Script-specific typography (Arabic, Chinese)
   ========================================================================== */
html[lang="ar"] *, html[lang^="zh"] * { letter-spacing: 0 !important; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] .hero__title, html[lang="ar"] .phero__title, html[lang="ar"] .cta__title { line-height: 1.28; }
html[lang="ar"] .h2, html[lang="ar"] .mission__text, html[lang="ar"] .mv__text, html[lang="ar"] .sector__name { line-height: 1.4; }
html[lang="ar"] .hero__title { max-width: 14em; font-size: clamp(2.3rem, 4.6vw, 4.4rem); }
html[lang="ar"] .hero__title .w { padding-bottom: .22em; margin-bottom: -.22em; }
html[lang^="zh"] body { line-height: 1.75; }
html[lang^="zh"] .hero__title { max-width: 9em; font-size: clamp(2.4rem, 5vw, 4.8rem); line-height: 1.16; font-weight: 600; }
html[lang^="zh"] .phero__title, html[lang^="zh"] .cta__title { line-height: 1.2; }
html[lang^="zh"] .h2, html[lang^="zh"] .mission__text { line-height: 1.32; }
html[lang^="zh"] .mission__text { max-width: 22em; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.nav, .hd__cta { display: none; }
	.burger { display: inline-flex; margin-inline-start: 0; }
	.hd__ctl { margin-inline-start: auto; }
	.tb { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tb__brand { grid-column: 1 / -1; border-bottom: 1px solid var(--line-d2); }
	.tb__cell:nth-child(2) { border-inline-start: 0; }
}
@media (max-width: 1020px) {
	.hero__in { grid-template-columns: 1fr; }
	.hero__fig { justify-self: center; max-width: 560px; }
	.hero__title { max-width: 15ch; }
	.svc__grid { grid-template-columns: 1fr; }
	.svc__stage { display: none; }
	.svc__short { max-height: none !important; opacity: 1 !important; margin-top: 4px; }
	.svc__item { color: var(--fg); }
	.svc__item .svc__ic { color: var(--fg); }
	.pipeline__pipe { display: none; }
	.pipeline__nodes { grid-template-columns: 1fr; gap: 0; }
	.pipeline__nodes::before { content: ""; position: absolute; inset-inline-start: 16px; top: 0; bottom: 0; width: 1px; background: repeating-linear-gradient(to bottom, var(--signal) 0 6px, transparent 6px 32px); background-size: 1px 32px; animation: vflow 1.6s linear infinite; }
	@keyframes vflow { to { background-position: 0 32px; } }
	.node { display: grid; grid-template-columns: 34px 48px minmax(0, 1fr); column-gap: 20px; padding-bottom: 34px; position: relative; }
	.node__dot { margin: 0; grid-row: span 2; }
	.node__ic { margin: 0; grid-row: span 2; }
	.node__name { max-width: none; margin-bottom: 4px; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.lin { grid-template-columns: 1fr; }
	.values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.value:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
	.cta__in { grid-template-columns: 1fr; }
	.contact { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; }
	.split__aside { position: static; }
	.spec-list { grid-template-columns: 1fr; }
	.service__in { grid-template-columns: 1fr; }
	.service--flip .bp { order: 0; }
	.perks { grid-template-columns: 1fr; }
	.story { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.head { grid-template-columns: 1fr; }
	.hero__rail { flex-direction: column; align-items: flex-start; }
	.scrollcue { display: none; }
	.lineage__v { gap: 4px 12px; }
	.lineage__v span + span::before { margin-inline-end: 12px; }
	.pump__legend ol { display: none; }
	.pump__read { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pump__read div { padding: 8px 10px; }
	.cards { grid-template-columns: 1fr; }
	.post-row__link { grid-template-columns: 1fr 28px; gap: 10px 16px; padding: 26px 0; }
	.post-row__date { grid-column: 1; display: flex; gap: 10px; align-items: baseline; }
	.post-row__d { font-size: 1.4rem; }
	.post-row__main { grid-column: 1; }
	.post-row__go { grid-column: 2; grid-row: 1 / span 2; }
	.lin__mv, .mv, .form__row { grid-template-columns: 1fr; }
	.values { grid-template-columns: 1fr; }
	.value { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--rule-2); padding-top: 24px; }
	.heritage__line { flex-direction: column; gap: 26px; }
	.heritage__line::before { inset-inline-start: 7px; inset-inline-end: auto; top: 0; bottom: 0; width: 1px; height: auto; }
	.heritage__line li { padding: 0 0 0 40px; }
	.sector { grid-template-columns: 56px minmax(0, 1fr); }
	.sector__ic { width: 48px; height: 48px; }
	.sector__line { grid-column: 2; }
	.phero__in { grid-template-columns: 1fr; }
	.phero__icon { display: none; }
	.sheet > div { min-width: 0; flex: 1; padding: 8px 12px; }
	.tb { grid-template-columns: 1fr 1fr; }
	.tb__cell:nth-child(4) { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line-d2); }
	.tb__meta { grid-column: 1 / -1; border-inline-start: 0; border-top: 1px solid var(--line-d2); grid-template-columns: 1fr 1fr; }
	.tb__meta > div:nth-child(2) { border-top: 0; border-inline-start: 1px solid var(--line-d2); }
	.tb__meta > div:nth-child(4) { border-inline-start: 1px solid var(--line-d2); }
	.vac__link { grid-template-columns: 1fr; }
	.empty { grid-template-columns: 1fr; }
	.pn { grid-template-columns: 1fr; }
	.pn__a--next { grid-column: 1; }
	.spec > div { grid-template-columns: 110px minmax(0, 1fr); }
}
@media (max-width: 420px) {
	.hd__in { gap: 8px; }
	.brand img { height: 21px; }
	.lang__globe { display: none; }
	.ctl { padding: 0 6px; min-width: 40px; }
	.tb { grid-template-columns: 1fr; }
	.tb__cell { border-inline-start: 0 !important; border-top: 1px solid var(--line-d2); }
	.tb__brand { border-top: 0; }
	.hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.pump__draw path { stroke-dashoffset: 0; }
	.js .rv { opacity: 1; transform: none; }
	.hero__title .w > span { transform: none; }
}
