/* =========================================================
   Elite Protection Consultancy
   Matte graphite ground, bone type, one cold accent.
   ========================================================= */

:root {
	--ink: #0a0a0a;
	--matt: #121213;
	--matt-2: #19191b;
	--matt-3: #212124;
	--bone: #e9e5dd;
	--bone-2: #cfcac0;
	--ash: #8f8e8a;
	--ash-2: #5f5e5b;
	--ice: #a8c7dc;
	--ice-2: #6f97b0;
	--ice-glow: rgba(168, 199, 220, 0.16);
	--line: rgba(233, 229, 221, 0.1);
	--line-2: rgba(233, 229, 221, 0.22);
	--danger: #d98b7a;
	--font-display: "Michroma", "Eurostile", "Bank Gothic", "Arial Black", sans-serif;
	--font-body: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--wrap: 1320px;
	--gutter: clamp(20px, 5vw, 80px);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--ease-2: cubic-bezier(0.65, 0, 0.35, 1);
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--matt);
	color: var(--bone);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.is-leaving .epc-main,
body.is-leaving .epc-footer { opacity: 0; transition: opacity 0.35s var(--ease-2); }
.epc-main, .epc-footer { transition: opacity 0.5s var(--ease); }

::selection { background: var(--ice); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- Type ---------- */

h1, h2, h3, h4 { margin: 0; font-weight: 400; }

h1 {
	font-family: var(--font-display);
	font-size: clamp(1.9rem, 4.3vw, 3.9rem);
	line-height: 1.1;
	letter-spacing: -0.005em;
	text-wrap: balance;
	max-width: 16ch;
}

h2 {
	font-family: var(--font-display);
	font-size: clamp(1.3rem, 2.5vw, 2.1rem);
	line-height: 1.18;
	text-wrap: balance;
	max-width: 22ch;
}

h3 {
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 1.2rem;
	line-height: 1.3;
}

.epc-lede {
	font-size: clamp(1.05rem, 1.4vw, 1.25rem);
	line-height: 1.55;
	color: var(--bone-2);
	max-width: 54ch;
}

.epc-muted { color: var(--ash); }

.epc-prose { max-width: 72ch; }
.epc-prose h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.35rem; max-width: none; margin: 2.6em 0 0.8em; }
.epc-prose h3 { margin: 1.8em 0 0.5em; font-size: 1.1rem; }
.epc-prose p, .epc-prose li { color: var(--bone-2); }
.epc-prose ul { padding-left: 1.2em; list-style: disc; margin: 0 0 1.2em; }
.epc-prose li { margin-bottom: 0.4em; }
.epc-prose a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(168, 199, 220, 0.4); }
.epc-prose a:hover { text-decoration-color: var(--ice); }
.epc-prose .epc-updated { color: var(--ash); font-size: 0.95rem; margin-bottom: 2.5em; }

/* ---------- Grain and chrome ---------- */

.epc-grain {
	position: fixed;
	inset: -50%;
	width: 200%;
	height: 200%;
	pointer-events: none;
	z-index: 90;
	opacity: 0.055;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	background-size: 240px 240px;
	animation: epc-grain 1.6s steps(4) infinite;
}
@keyframes epc-grain {
	0% { transform: translate(0, 0); }
	25% { transform: translate(-2%, 1%); }
	50% { transform: translate(1%, -2%); }
	75% { transform: translate(-1%, -1%); }
	100% { transform: translate(2%, 2%); }
}

.epc-loader {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: var(--ink);
	display: grid;
	place-items: center;
	transition: opacity 0.7s var(--ease-2), visibility 0s linear 0.7s;
}
.epc-loader.is-done { opacity: 0; visibility: hidden; }
.epc-mark--loader { width: 56px; color: var(--bone); }
.epc-mark--loader .epc-mark__shell { stroke-dasharray: 120; stroke-dashoffset: 120; animation: epc-draw 1.1s var(--ease) forwards; }
.epc-mark--loader .epc-mark__bar,
.epc-mark--loader .epc-mark__dot { opacity: 0; animation: epc-fade 0.5s ease forwards 0.8s; }
@keyframes epc-draw { to { stroke-dashoffset: 0; } }
@keyframes epc-fade { to { opacity: 1; } }

.epc-rail {
	position: fixed;
	left: 26px;
	top: 120px;
	bottom: 48px;
	width: 2px;
	z-index: 40;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.epc-rail__track { position: relative; flex: 1; width: 1px; background: var(--line); }
.epc-rail__thumb {
	position: absolute;
	left: -0.5px;
	top: 0;
	width: 2px;
	height: 56px;
	background: var(--ice);
	box-shadow: 0 0 12px rgba(168, 199, 220, 0.5);
	transition: transform 0.15s linear;
}
.epc-rail__label {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 0.72rem;
	font-weight: 500;
	color: var(--ash);
	letter-spacing: 0.04em;
	white-space: nowrap;
	transition: opacity 0.3s;
}

/* ---------- Header ---------- */

.epc-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 50;
	transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
	border-bottom: 1px solid transparent;
}
.epc-header.is-scrolled {
	background: rgba(18, 18, 19, 0.72);
	-webkit-backdrop-filter: blur(14px) saturate(120%);
	backdrop-filter: blur(14px) saturate(120%);
	border-bottom-color: var(--line);
}
.epc-header.is-hidden { transform: translateY(-100%); }
.epc-header__inner {
	max-width: var(--wrap);
	margin-inline: auto;
	padding: 18px var(--gutter);
	display: flex;
	align-items: center;
	gap: 40px;
}
.epc-header.is-scrolled .epc-header__inner { padding-block: 12px; }

.epc-brand { display: flex; align-items: center; gap: 12px; color: var(--bone); margin-right: auto; }
.epc-brand .epc-mark { width: 30px; flex: none; transition: color 0.3s; }
.epc-brand:hover .epc-mark { color: var(--ice); }
.epc-brand__name {
	font-family: var(--font-display);
	font-size: 0.62rem;
	line-height: 1.35;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: flex;
	flex-direction: column;
}
.epc-brand__name span:last-child { color: var(--ash); }

.epc-nav { display: flex; gap: 34px; }
.epc-nav a {
	position: relative;
	font-size: 0.92rem;
	font-weight: 500;
	color: var(--bone-2);
	padding: 6px 0;
	transition: color 0.3s;
}
.epc-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	height: 1px;
	width: 100%;
	background: var(--ice);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.45s var(--ease);
}
.epc-nav a:hover, .epc-nav .current-menu-item a, .epc-nav .current_page_item a { color: var(--bone); }
.epc-nav a:hover::after, .epc-nav .current-menu-item a::after, .epc-nav .current_page_item a::after { transform: scaleX(1); transform-origin: left; }

.epc-burger {
	display: none;
	width: 44px;
	height: 44px;
	position: relative;
	margin-right: -10px;
}
.epc-burger__line {
	position: absolute;
	left: 12px;
	right: 12px;
	height: 1.5px;
	background: var(--bone);
	transition: transform 0.4s var(--ease), top 0.4s var(--ease);
}
.epc-burger__line:first-child { top: 17px; }
.epc-burger__line:nth-child(2) { top: 26px; }
.epc-burger[aria-expanded="true"] .epc-burger__line:first-child { top: 21.5px; transform: rotate(45deg); }
.epc-burger[aria-expanded="true"] .epc-burger__line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.epc-burger__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.epc-mobile {
	position: fixed;
	inset: 0;
	z-index: 45;
	background: var(--ink);
	padding: 120px var(--gutter) 40px;
	display: flex;
	flex-direction: column;
	opacity: 0;
	transition: opacity 0.4s var(--ease-2);
}
.epc-mobile[hidden] { display: none; }
.epc-mobile.is-open { opacity: 1; }
.epc-mobile__nav { display: flex; flex-direction: column; gap: 6px; }
.epc-mobile__nav a {
	font-family: var(--font-display);
	font-size: clamp(1.5rem, 6vw, 2.2rem);
	padding: 10px 0;
	display: block;
	border-bottom: 1px solid var(--line);
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.epc-mobile.is-open .epc-mobile__nav a { opacity: 1; transform: none; }
.epc-mobile.is-open .epc-mobile__nav li:nth-child(2) a { transition-delay: 0.06s; }
.epc-mobile.is-open .epc-mobile__nav li:nth-child(3) a { transition-delay: 0.12s; }
.epc-mobile.is-open .epc-mobile__nav li:nth-child(4) a { transition-delay: 0.18s; }
.epc-mobile.is-open .epc-mobile__nav li:nth-child(5) a { transition-delay: 0.24s; }
.epc-mobile__cta { margin-top: 32px; align-self: flex-start; }
.epc-mobile__foot { margin-top: auto; color: var(--ash); font-size: 0.95rem; }
.epc-mobile__foot a { color: var(--bone-2); }
body.is-nav-open { overflow: hidden; }

/* ---------- Buttons ---------- */

.epc-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	background: var(--bone);
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1;
	border-radius: 2px;
	overflow: hidden;
	isolation: isolate;
	transition: color 0.3s, border-color 0.3s;
	white-space: nowrap;
}
.epc-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ice);
	transform: translateX(-101%);
	transition: transform 0.5s var(--ease);
	z-index: -1;
}
.epc-btn:hover::before { transform: translateX(0); }
.epc-btn--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.epc-btn--ghost::before { background: var(--ice-glow); }
.epc-btn--ghost:hover { border-color: var(--ice); }
.epc-btn--small { padding: 11px 18px; font-size: 0.86rem; }
.epc-btn[disabled] { opacity: 0.6; cursor: default; }
.epc-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.epc-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	color: var(--bone);
	padding-bottom: 4px;
	border-bottom: 1px solid var(--line-2);
	transition: border-color 0.3s, color 0.3s;
}
.epc-link:hover { border-color: var(--ice); color: var(--ice); }

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

.epc-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.epc-sec { position: relative; padding-block: clamp(80px, 10vw, 150px); }
.epc-sec--tight { padding-block: clamp(56px, 7vw, 100px); }
.epc-sec--line { border-top: 1px solid var(--line); }
.epc-sec--ink { background: var(--ink); }
.epc-sec__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 80px); }
.epc-sec__head p { color: var(--ash); max-width: 46ch; margin: 0; }
.epc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }

/* ---------- Reveal ---------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 1s var(--ease), transform 1s var(--ease);
	transition-delay: var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.epc-hero {
	position: relative;
	min-height: 100svh;
	display: grid;
	align-items: center;
	padding-top: 120px;
	padding-bottom: 80px;
	overflow: hidden;
}
.epc-hero__canvas {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.epc-hero__canvas canvas { width: 100%; height: 100%; display: block; }
.epc-hero__canvas::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--matt) 0%, rgba(18, 18, 19, 0.85) 30%, rgba(18, 18, 19, 0) 62%);
	pointer-events: none;
}
.epc-hero .epc-wrap { position: relative; z-index: 2; width: 100%; }
.epc-hero__text { max-width: 640px; }
.epc-hero__text > * {
	opacity: 0;
	transform: translateY(26px);
	transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
body.is-ready .epc-hero__text > * { opacity: 1; transform: none; }
body.is-ready .epc-hero__text > *:nth-child(2) { transition-delay: 0.12s; }
body.is-ready .epc-hero__text > *:nth-child(3) { transition-delay: 0.24s; }
body.is-ready .epc-hero__text > *:nth-child(4) { transition-delay: 0.36s; }
.epc-hero__kicker { color: var(--ash); font-weight: 500; font-size: 0.95rem; margin-bottom: 26px; }
.epc-hero h1 { margin-bottom: 28px; }
.epc-hero .epc-lede { margin-bottom: 8px; }

.epc-hero__meta {
	position: absolute;
	right: var(--gutter);
	bottom: 40px;
	z-index: 2;
	display: flex;
	gap: 36px;
	font-size: 0.82rem;
	color: var(--ash);
	opacity: 0;
	transition: opacity 1.2s var(--ease) 0.9s;
}
body.is-ready .epc-hero__meta { opacity: 1; }
.epc-hero__meta span { display: flex; align-items: center; gap: 10px; }
.epc-hero__meta span::before { content: ""; width: 14px; height: 1px; background: var(--ice); }

.epc-hero__scroll {
	position: absolute;
	left: var(--gutter);
	bottom: 40px;
	z-index: 2;
	width: 1px;
	height: 56px;
	background: var(--line-2);
	overflow: hidden;
}
.epc-hero__scroll::after {
	content: "";
	position: absolute;
	left: 0;
	top: -100%;
	width: 100%;
	height: 100%;
	background: var(--ice);
	animation: epc-scroll 2.4s var(--ease-2) infinite;
}
@keyframes epc-scroll { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

.epc-hero--page { min-height: 0; padding-top: clamp(150px, 20vh, 220px); padding-bottom: clamp(50px, 6vw, 90px); }
.epc-hero--page .epc-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.epc-hero__art { position: relative; min-height: 220px; }
.epc-hero__art svg { width: 100%; height: auto; }

/* ---------- Facts strip ---------- */

.epc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.epc-fact { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.epc-fact::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 1px; background: var(--ice); }
.epc-fact h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.35; margin-bottom: 12px; }
.epc-fact p { color: var(--ash); font-size: 0.98rem; }

/* ---------- Service rows ---------- */

.epc-svc { border-top: 1px solid var(--line); }
.epc-svc:last-child { border-bottom: 1px solid var(--line); }
.epc-svc__head {
	width: 100%;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) 40px;
	align-items: center;
	gap: 24px;
	padding: 30px 0;
	text-align: left;
	transition: padding 0.4s var(--ease);
}
.epc-svc__index { font-size: 0.85rem; font-weight: 500; color: var(--ash); }
.epc-svc__title { font-family: var(--font-display); font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.3; transition: color 0.3s, transform 0.5s var(--ease); }
.epc-svc__head:hover .epc-svc__title { transform: translateX(8px); }
.epc-svc.is-open .epc-svc__title { color: var(--ice); }
.epc-svc__icon { position: relative; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color 0.3s, background-color 0.3s; }
.epc-svc__icon::before, .epc-svc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--bone); transition: transform 0.5s var(--ease), background-color 0.3s; }
.epc-svc__icon::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.epc-svc__icon::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }
.epc-svc.is-open .epc-svc__icon { border-color: var(--ice); background: var(--ice-glow); }
.epc-svc.is-open .epc-svc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.epc-svc.is-open .epc-svc__icon::before, .epc-svc.is-open .epc-svc__icon::after { background: var(--ice); }
.epc-svc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.7s var(--ease); }
.epc-svc.is-open .epc-svc__body { grid-template-rows: 1fr; }
.epc-svc__inner { overflow: hidden; }
.epc-svc__content {
	display: grid;
	grid-template-columns: 64px minmax(0, 7fr) minmax(0, 4fr);
	gap: 24px 40px;
	padding: 4px 0 40px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s;
}
.epc-svc.is-open .epc-svc__content { opacity: 1; transform: none; }
.epc-svc__content > :first-child { grid-column: 2; }
.epc-svc__content p { color: var(--bone-2); max-width: 58ch; }
.epc-svc__points li { position: relative; padding-left: 22px; margin-bottom: 10px; color: var(--ash); font-size: 0.97rem; }
.epc-svc__points li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 10px; height: 1px; background: var(--ice); }
.epc-svc__content .epc-link { margin-top: 10px; }

/* ---------- Split ---------- */

.epc-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.epc-split--flip > :first-child { order: 2; }
.epc-split h2 { margin-bottom: 24px; }
.epc-split p { color: var(--bone-2); max-width: 52ch; }
.epc-split .epc-actions { margin-top: 30px; }
.epc-art {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--ink);
	border: 1px solid var(--line);
	overflow: hidden;
}
.epc-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.epc-art { transform-style: preserve-3d; transition: transform 0.6s var(--ease), border-color 0.4s; will-change: transform; }
.epc-art:hover { border-color: var(--line-2); }
.epc-art::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -20%;
	height: 18%;
	background: linear-gradient(180deg, rgba(168, 199, 220, 0) 0%, rgba(168, 199, 220, 0.06) 50%, rgba(168, 199, 220, 0) 100%);
	pointer-events: none;
	animation: epc-scan 7s var(--ease-2) infinite;
}
@keyframes epc-scan { 0% { top: -20%; } 70% { top: 105%; } 100% { top: 105%; } }
.epc-art__caption { position: absolute; left: 20px; bottom: 16px; font-size: 0.78rem; color: var(--ash); display: flex; gap: 10px; align-items: center; }
.epc-art__caption::before { content: ""; width: 12px; height: 1px; background: var(--ice); }

/* Route graphic */
.epc-route__path { fill: none; stroke: var(--bone-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.epc-route__glow { fill: none; stroke: var(--ice); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.12; filter: blur(3px); }
.epc-route__grid line { stroke: var(--line); stroke-width: 1; }
.epc-route__wp circle { fill: var(--ink); stroke: var(--ice); stroke-width: 1.4; }
.epc-route__wp text { fill: var(--ash); font-family: var(--font-body); font-size: 11px; font-weight: 500; }
.epc-route__car { fill: var(--ice); }
.epc-route__halo { fill: var(--ice); opacity: 0.25; }
.is-drawn .epc-route__path, .is-drawn .epc-route__glow { stroke-dashoffset: 0 !important; }
.epc-route__path, .epc-route__glow { transition: stroke-dashoffset 2.6s var(--ease-2); }
.epc-route__wp { opacity: 0; transition: opacity 0.6s ease; }
.is-drawn .epc-route__wp { opacity: 1; }
.is-drawn .epc-route__wp:nth-of-type(2) { transition-delay: 0.7s; }
.is-drawn .epc-route__wp:nth-of-type(3) { transition-delay: 1.4s; }
.is-drawn .epc-route__wp:nth-of-type(4) { transition-delay: 2.1s; }

/* Contour graphic */
.epc-contours path { fill: none; stroke: var(--bone); stroke-width: 1; opacity: 0.3; transform-origin: 50% 50%; }
.epc-contours path:nth-child(odd) { animation: epc-spin 90s linear infinite; }
.epc-contours path:nth-child(even) { animation: epc-spin 120s linear infinite reverse; }
.epc-contours path:nth-child(4n) { stroke: var(--ice); opacity: 0.45; }
.epc-contours circle { fill: var(--ice); }
@keyframes epc-spin { to { transform: rotate(360deg); } }

/* Formation graphic */
.epc-formation__ring { fill: none; stroke: var(--line-2); stroke-width: 1; }
.epc-formation__ring--dash { stroke-dasharray: 2 6; }
.epc-formation__line { stroke: var(--ice); stroke-width: 1; opacity: 0.5; }
.epc-formation__p { fill: var(--bone); }
.epc-formation__o { fill: var(--ice); }
.epc-formation__group { transform-origin: 50% 50%; animation: epc-spin 40s linear infinite; }
.epc-formation__label { fill: var(--ash); font-family: var(--font-body); font-size: 11px; font-weight: 500; }

/* ---------- Who we work with ---------- */

.epc-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.epc-who__item { padding-top: 24px; border-top: 1px solid var(--line); transition: border-color 0.4s; }
.epc-who__item:hover { border-top-color: var(--ice); }
.epc-who__item h3 { margin-bottom: 12px; }
.epc-who__item p { color: var(--ash); font-size: 0.98rem; }

/* ---------- Steps ---------- */

.epc-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; position: relative; counter-reset: step; }
.epc-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line); }
.epc-step { position: relative; padding-top: 34px; }
.epc-step::before {
	content: "";
	position: absolute;
	top: 6px;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--matt);
	border: 1px solid var(--ice);
	box-shadow: 0 0 0 4px var(--matt);
}
.epc-step__n { font-family: var(--font-display); font-size: 0.8rem; color: var(--ice); margin-bottom: 14px; }
.epc-step h3 { font-size: 1.05rem; margin-bottom: 10px; }
.epc-step p { color: var(--ash); font-size: 0.95rem; }

/* ---------- Statement ---------- */

.epc-statement { position: relative; padding-left: clamp(28px, 4vw, 56px); border-left: 1px solid var(--ice); max-width: 900px; }
.epc-statement p { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.8rem); line-height: 1.4; margin-bottom: 24px; }
.epc-statement footer { color: var(--ash); font-size: 0.95rem; }

/* ---------- CTA band ---------- */

.epc-cta { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.epc-cta .epc-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.epc-cta p { color: var(--ash); margin-top: 16px; max-width: 48ch; }
.epc-cta .epc-actions { margin-top: 0; justify-content: flex-end; }

/* ---------- Table ---------- */

.epc-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.epc-table th, .epc-table td { text-align: left; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.epc-table th { font-weight: 600; color: var(--ash); font-size: 0.85rem; padding-top: 0; }
.epc-table td:first-child { font-family: var(--font-display); font-size: 0.9rem; }
.epc-table td { color: var(--bone-2); }
.epc-table tbody tr { transition: background-color 0.3s; }
.epc-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.epc-table-wrap { overflow-x: auto; }

/* ---------- Principles ---------- */

.epc-principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 60px; }
.epc-principle { padding: 32px 0 0; border-top: 1px solid var(--line); }
.epc-principle h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; margin-bottom: 14px; }
.epc-principle p { color: var(--bone-2); max-width: 46ch; }

/* ---------- Standards list ---------- */

.epc-standards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.epc-standards li { position: relative; padding: 16px 0 16px 28px; border-bottom: 1px solid var(--line); color: var(--bone-2); }
.epc-standards li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 12px; height: 1px; background: var(--ice); }

/* ---------- Contact ---------- */

.epc-contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.epc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.epc-field { display: flex; flex-direction: column; gap: 8px; }
.epc-field--full { grid-column: 1 / -1; }
.epc-field label { font-size: 0.86rem; font-weight: 500; color: var(--ash); }
.epc-field input, .epc-field select, .epc-field textarea {
	width: 100%;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--line-2);
	border-radius: 0;
	padding: 12px 0;
	color: var(--bone);
	font: inherit;
	font-size: 1.05rem;
	transition: border-color 0.3s;
	-webkit-appearance: none;
	appearance: none;
}
.epc-field input:focus, .epc-field select:focus, .epc-field textarea:focus { outline: none; border-bottom-color: var(--ice); }
.epc-field select { cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%238f8e8a' stroke-width='1.4'/></svg>"); background-repeat: no-repeat; background-position: right 2px center; padding-right: 24px; }
.epc-field select option { background: var(--matt-2); color: var(--bone); }
.epc-field textarea { min-height: 140px; resize: vertical; }
.epc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.epc-form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 8px; }
.epc-form__note { color: var(--ash); font-size: 0.88rem; max-width: 40ch; }
.epc-form__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 0.95rem; color: var(--ice); }
.epc-form__status.is-error { color: var(--danger); }
.epc-form__done { padding: 40px 0; }
.epc-form__done h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: 16px; }
.epc-form__done p { color: var(--bone-2); }

.epc-aside { position: sticky; top: 120px; }
.epc-aside__block { padding: 28px 0; border-top: 1px solid var(--line); }
.epc-aside__block:first-child { padding-top: 0; border-top: 0; }
.epc-aside__block h3 { font-size: 0.86rem; font-weight: 500; color: var(--ash); margin-bottom: 12px; }
.epc-aside__block p { color: var(--bone-2); }
.epc-aside__block a { color: var(--bone); border-bottom: 1px solid var(--line-2); transition: border-color 0.3s; }
.epc-aside__block a:hover { border-color: var(--ice); }
.epc-aside__big { font-family: var(--font-display); font-size: 0.95rem; line-height: 1.5; }
.epc-status { display: flex; align-items: center; gap: 12px; color: var(--bone-2); }

.epc-pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); flex: none; }
.epc-pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--ice); animation: epc-pulse 2.2s ease-out infinite; }
@keyframes epc-pulse { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(1.6); opacity: 0; } }

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

.epc-footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(60px, 8vw, 110px) 0 40px; }
.epc-footer__top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 60px; margin-bottom: clamp(50px, 6vw, 90px); }
.epc-mark--footer { width: 36px; color: var(--bone); margin-bottom: 24px; }
.epc-footer__line { color: var(--ash); max-width: 34ch; }
.epc-footer__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); gap: 32px; }
.epc-footer__col--contact a, .epc-aside__big a { overflow-wrap: anywhere; }
.epc-footer__col h2 { font-family: var(--font-body); font-weight: 500; font-size: 0.86rem; color: var(--ash); margin-bottom: 18px; }
.epc-footer__col li { margin-bottom: 10px; }
.epc-footer__col a { color: var(--bone-2); font-size: 0.95rem; transition: color 0.3s; }
.epc-footer__col a:hover { color: var(--ice); }
.epc-footer__col p { font-size: 0.95rem; margin-bottom: 10px; }
.epc-footer__status { display: flex; align-items: center; gap: 12px; color: var(--ash); font-size: 0.88rem; margin-top: 18px; }
.epc-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ash-2); font-size: 0.82rem; }
.epc-footer__bottom p { margin: 0; }

/* ---------- Cookie ---------- */

.epc-cookie {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 60;
	max-width: 380px;
	background: var(--matt-2);
	border: 1px solid var(--line);
	padding: 22px 24px;
	font-size: 0.9rem;
	color: var(--bone-2);
	transform: translateY(calc(100% + 40px));
	transition: transform 0.7s var(--ease);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.epc-cookie[hidden] { display: none; }
.epc-cookie.is-show { transform: none; }
.epc-cookie p { margin-bottom: 16px; }
.epc-cookie a { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.epc-rail { display: none; }
}

@media (max-width: 900px) {
	.epc-header__nav, .epc-header__cta { display: none; }
	.epc-burger { display: block; }
	.epc-hero__canvas { opacity: 0.55; }
	.epc-hero__canvas::after { background: linear-gradient(180deg, rgba(18, 18, 19, 0.2) 0%, rgba(18, 18, 19, 0.6) 100%); }
	.epc-hero__meta { position: static; margin-top: 40px; padding-inline: var(--gutter); flex-wrap: wrap; gap: 14px 28px; }
	.epc-hero__scroll { display: none; }
	.epc-hero--page .epc-wrap { grid-template-columns: 1fr; }
	.epc-hero__art { min-height: 0; max-width: 420px; }
	.epc-sec__head { grid-template-columns: 1fr; gap: 16px; }
	.epc-facts { grid-template-columns: 1fr; gap: 28px; }
	.epc-svc__head { grid-template-columns: 40px minmax(0, 1fr) 36px; gap: 16px; padding: 22px 0; }
	.epc-svc__content { grid-template-columns: 1fr; gap: 20px; padding-bottom: 30px; }
	.epc-svc__content > :first-child { grid-column: 1; }
	.epc-split, .epc-split--flip { grid-template-columns: 1fr; }
	.epc-split--flip > :first-child { order: 0; }
	.epc-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.epc-steps { grid-template-columns: 1fr; gap: 0; }
	.epc-steps::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
	.epc-step { padding: 0 0 32px 32px; }
	.epc-step::before { top: 4px; }
	.epc-cta .epc-wrap { grid-template-columns: 1fr; }
	.epc-cta .epc-actions { justify-content: flex-start; margin-top: 24px; }
	.epc-principles, .epc-standards { grid-template-columns: 1fr; }
	.epc-contact { grid-template-columns: 1fr; }
	.epc-aside { position: static; }
	.epc-footer__top { grid-template-columns: 1fr; gap: 40px; }
	.epc-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
	body { font-size: 1rem; }
	.epc-who { grid-template-columns: 1fr; }
	.epc-form { grid-template-columns: 1fr; }
	.epc-footer__cols { grid-template-columns: 1fr; }
	.epc-cookie { left: 12px; right: 12px; max-width: none; }
	.epc-hero { padding-top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
	.epc-loader { display: none; }
	[data-reveal], .epc-hero__text > *, .epc-hero__meta { opacity: 1; transform: none; }
	.epc-grain { animation: none; }
}
