/*
Theme Name: Process Core Engineering Signal
Author: Process Core Engineering
Description: A dark technical and editorial WordPress theme for Process Core Engineering.
Version: 3.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: process-core-engineering-signal
*/

:root {
	--coal: #10171c;
	--coal-2: #182229;
	--coal-3: #223039;
	--paper: #eef1ec;
	--paper-2: #dfe5df;
	--white: #ffffff;
	--signal: #b9f04a;
	--signal-dark: #7aa813;
	--steel: #9babb2;
	--ink: #172027;
	--line: rgba(255, 255, 255, .16);
	--line-dark: rgba(16, 23, 28, .18);
	--shell: 82rem;
	--header: 5.25rem;
	--radius: .25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--coal);
	color: var(--paper);
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Arial Narrow", "Roboto Condensed", Impact, sans-serif; font-weight: 700; line-height: .97; letter-spacing: -.04em; }
h1 { max-width: 12ch; font-size: clamp(3.6rem, 8.6vw, 8.25rem); text-transform: uppercase; }
h2 { max-width: 15ch; font-size: clamp(2.8rem, 5.4vw, 5.7rem); text-transform: uppercase; }
h3 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.shell { width: min(calc(100% - 3rem), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: -10rem; left: 1rem; padding: .7rem 1rem; background: var(--signal); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header {
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	width: 100%;
	border-bottom: 1px solid var(--line);
	background: rgba(16, 23, 28, .88);
	backdrop-filter: blur(14px);
	transition: background .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled { background: rgba(16, 23, 28, .97); box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .24); }
.header-inner { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; }
.brand-code { display: grid; place-items: center; width: 3.15rem; height: 3.15rem; border: 1px solid var(--signal); color: var(--signal); font-family: Consolas, monospace; font-size: .75rem; font-weight: 800; letter-spacing: .04em; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { text-transform: uppercase; letter-spacing: .08em; font-size: .88rem; }
.brand small { margin-top: .25rem; color: var(--steel); font-size: .67rem; text-transform: uppercase; letter-spacing: .24em; }
.custom-brand img { width: auto; max-width: 13rem; max-height: 3.5rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.menu { display: flex; align-items: center; gap: 1.65rem; margin: 0; padding: 0; list-style: none; }
.menu a { position: relative; color: var(--paper); text-decoration: none; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -.42rem; width: 100%; height: 1px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .2s ease; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--white); }
.signal-button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.4rem; padding: .85rem 1.35rem; border: 1px solid var(--signal); border-radius: var(--radius); background: var(--signal); color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; transition: background .2s ease, color .2s ease, transform .2s ease; }
.signal-button:hover, .signal-button:focus-visible { background: transparent; color: var(--signal); transform: translateY(-2px); }
.signal-button-small { min-height: 2.8rem; padding: .6rem 1rem; }

.module-label { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.4rem; color: var(--signal); font-family: Consolas, monospace; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; }
.module-label span { padding-right: .75rem; border-right: 1px solid currentColor; }
.module-dark { color: var(--signal-dark); }
.hero { position: relative; min-height: min(62rem, 100svh); padding: calc(var(--header) + 5rem) 0 4rem; overflow: hidden; background: var(--coal); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 4rem 4rem; }
.hero-image { position: absolute; inset: var(--header) 0 0 53%; overflow: hidden; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--coal) 0, rgba(16,23,28,.1) 42%), linear-gradient(0deg, rgba(16,23,28,.72), transparent 50%); }
.hero-image img { height: 100%; object-fit: cover; filter: saturate(.55) contrast(1.08); }
.hero-image span { position: absolute; z-index: 1; top: 8%; right: 8%; width: 4rem; height: 4rem; border-top: 2px solid var(--signal); border-right: 2px solid var(--signal); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; align-items: end; min-height: calc(min(62rem, 100svh) - var(--header) - 9rem); gap: 3rem; }
.hero-copy { align-self: center; }
.hero h1 { margin-bottom: 2rem; color: var(--white); }
.hero-lead { max-width: 43rem; margin-bottom: 2rem; color: #cbd4d7; font-size: clamp(1.05rem, 1.65vw, 1.35rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.line-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--white); text-decoration: none; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.line-link span { color: var(--signal); font-size: 1rem; transition: transform .2s ease; }
.line-link:hover span { transform: translate(.2rem, -.2rem); }
.hero-note { align-self: end; padding: 1.1rem 0 1.1rem 1rem; border-left: 2px solid var(--signal); }
.hero-note span, .hero-note small { display: block; color: var(--steel); font-family: Consolas, monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.hero-note strong { display: block; margin: .35rem 0; color: var(--white); font-size: .98rem; }

.stat-band { background: var(--signal); color: var(--ink); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-grid > div { min-height: 9rem; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1.5rem; border-left: 1px solid rgba(16,23,28,.18); }
.stat-grid > div:last-child { border-right: 1px solid rgba(16,23,28,.18); }
.stat-grid strong { font-family: "Arial Narrow", Impact, sans-serif; font-size: 2.8rem; line-height: 1; letter-spacing: -.04em; }
.stat-grid span { max-width: 12rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; line-height: 1.5; }

.intro { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--paper); color: var(--ink); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .85fr .65fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro-title h2 { margin-bottom: 0; }
.intro-copy { padding-top: 3rem; color: #3d4b52; font-size: 1.08rem; }
.intro-copy p { margin-bottom: 1.4rem; }
.intro figure { margin: 3rem 0 0; }
.intro figure img { aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(.25); }
.intro figcaption { padding-top: .85rem; border-top: 1px solid var(--line-dark); color: #59666c; font-family: Consolas, monospace; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }

.services { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--coal-2); }
.services-heading { display: grid; grid-template-columns: 1fr .38fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.services-heading h2 { margin-bottom: 0; }
.services-heading > p { margin-bottom: .5rem; color: var(--steel); }
.service-index { border-top: 1px solid var(--line); }
.service-index details { border-bottom: 1px solid var(--line); }
.service-index summary { display: grid; grid-template-columns: 4rem 1fr minmax(12rem, .35fr); align-items: center; gap: 1rem; min-height: 7.5rem; padding: 1rem 0; list-style: none; cursor: pointer; }
.service-index summary::-webkit-details-marker { display: none; }
.service-index summary > span { color: var(--signal); font-family: Consolas, monospace; font-size: .7rem; }
.service-index summary strong { font-family: "Arial Narrow", Impact, sans-serif; font-size: clamp(1.6rem, 3.1vw, 3rem); text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.service-index summary em { position: relative; padding-right: 2.5rem; color: var(--steel); font-size: .67rem; font-style: normal; font-weight: 700; text-align: right; text-transform: uppercase; letter-spacing: .09em; }
.service-index summary em::after { content: "+"; position: absolute; right: 0; top: 50%; color: var(--signal); font-family: Arial, sans-serif; font-size: 1.8rem; font-weight: 300; transform: translateY(-50%); }
.service-index details[open] summary em::after { content: "−"; }
.service-index details > div { padding: 0 4rem 2.5rem; }
.service-index ul { columns: 2; column-gap: 4rem; margin: 0; padding-left: 1rem; color: #c4cdd1; }
.service-index li { break-inside: avoid; margin-bottom: .8rem; padding-left: .5rem; }
.service-index li::marker { color: var(--signal); }

.visual-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; min-height: 30rem; background: var(--coal); }
.visual-grid figure { position: relative; min-height: 30rem; margin: 0; overflow: hidden; border-right: 1px solid var(--coal); }
.visual-grid img { height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.1); transition: transform .7s ease, filter .4s ease; }
.visual-grid figure:hover img { transform: scale(1.025); filter: grayscale(0) contrast(1.02); }
.visual-grid figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; gap: .8rem; padding: 3rem 1.5rem 1.2rem; background: linear-gradient(transparent, rgba(16,23,28,.9)); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.visual-grid figcaption span { color: var(--signal); }

.delivery { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--paper); color: var(--ink); }
.delivery-grid { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.delivery h2 { margin-bottom: 0; }
.delivery ol { margin: 0; padding: 0; border-top: 1px solid var(--line-dark); list-style: none; }
.delivery li { display: grid; grid-template-columns: 4rem 1fr; gap: 1.25rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line-dark); }
.delivery li > span { color: var(--signal-dark); font-family: Consolas, monospace; font-size: .7rem; font-weight: 800; }
.delivery li strong { display: block; margin-bottom: .35rem; font-family: "Arial Narrow", Impact, sans-serif; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .01em; }
.delivery li p { margin: 0; color: #526068; }

.experience { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--coal); }
.experience-head { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 4rem; }
.experience-head .module-label { flex: 0 0 auto; }
.experience-head h2 { max-width: 12ch; margin: 0; text-align: right; }
.experience-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.experience-grid article { min-height: 19rem; padding: clamp(2rem, 4vw, 3.5rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.025), transparent); }
.experience-grid article > span { color: var(--signal); font-family: Consolas, monospace; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.experience-grid h3 { margin: 2.6rem 0 1rem; text-transform: uppercase; }
.experience-grid p { max-width: 35rem; margin-bottom: 0; color: var(--steel); }
.experience-note { margin-top: 1.4rem; color: #74868e; font-size: .68rem; }

.contact { padding: clamp(5rem, 10vw, 9rem) 0; background: var(--signal); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .75fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.contact-copy { position: sticky; top: calc(var(--header) + 3rem); }
.contact-copy h2 { margin-bottom: 1.5rem; }
.contact-copy > p:not(.module-label) { max-width: 30rem; }
.line-link-dark { color: var(--ink); }
.line-link-dark span { color: var(--ink); }
.form-wrap { padding: clamp(1.5rem, 4vw, 3rem); background: var(--coal); color: var(--paper); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-wrap label { display: block; margin-bottom: 1.15rem; color: #bcc8cd; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.form-wrap input, .form-wrap select, .form-wrap textarea { width: 100%; margin-top: .5rem; padding: .8rem .9rem; border: 1px solid #42515a; border-radius: 0; outline: 0; background: var(--coal-2); color: var(--white); text-transform: none; letter-spacing: 0; }
.form-wrap input:focus, .form-wrap select:focus, .form-wrap textarea:focus { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.form-wrap textarea { resize: vertical; }
.form-wrap select option { background: var(--coal-2); }
.consent { display: flex !important; align-items: flex-start; gap: .75rem; }
.consent input { flex: 0 0 1rem; width: 1rem; height: 1rem; margin: .2rem 0 0; accent-color: var(--signal); }
.consent span { text-transform: none; letter-spacing: 0; font-weight: 500; line-height: 1.45; }
.signal-button-dark { border: 1px solid var(--signal); }
.notice { margin-bottom: 1.25rem; padding: 1rem; border-left: 3px solid #ff7c66; background: rgba(255,255,255,.07); }
.notice.success { border-color: var(--signal); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.site-footer { padding-top: 4rem; background: #080d10; color: var(--paper); }
.footer-main { display: grid; grid-template-columns: 1.4fr .65fr .65fr; gap: 4rem; padding-bottom: 4rem; }
.brand-footer { margin-bottom: 1.5rem; }
.footer-main > div:first-child p { max-width: 28rem; color: var(--steel); }
.footer-main > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-label { margin-bottom: .5rem; color: var(--signal); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-main a:not(.brand) { color: var(--steel); text-decoration: none; }
.footer-main a:not(.brand):hover { color: var(--signal); }
.footer-main span { color: var(--steel); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem 0; border-top: 1px solid var(--line); color: #718189; font-family: Consolas, monospace; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }

.content-page { min-height: 65vh; padding: calc(var(--header) + 5rem) 0 6rem; background: var(--paper); color: var(--ink); }
.content-page article { max-width: 55rem; }
.content-page h1 { max-width: 15ch; font-size: clamp(3rem, 7vw, 6rem); }
.entry-content { font-size: 1.08rem; }
.entry-content a { color: #4b7112; }
.entry-content img { margin-block: 2rem; }
.not-found { text-align: left; }

@media (max-width: 1050px) {
	.hero-image { left: 45%; opacity: .65; }
	.intro-grid { grid-template-columns: 1fr 1fr; }
	.intro figure { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; }
	.intro figure img { max-height: 25rem; aspect-ratio: 16 / 9; }
	.stat-grid { grid-template-columns: repeat(2, 1fr); }
	.stat-grid > div:nth-child(3), .stat-grid > div:nth-child(4) { border-top: 1px solid rgba(16,23,28,.18); }
	.visual-grid { grid-template-columns: 1.25fr 1fr; }
	.visual-grid figure:last-child { display: none; }
}

@media (max-width: 820px) {
	:root { --header: 4.6rem; }
	body.admin-bar .site-header { top: 46px; }
	.shell { width: min(calc(100% - 2rem), var(--shell)); }
	.nav-toggle { position: relative; z-index: 1002; display: flex; align-items: center; gap: .65rem; padding: .5rem 0; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
	.nav-toggle i, .nav-toggle i::before { display: block; width: 1.5rem; height: 1px; background: currentColor; transition: transform .2s ease; }
	.nav-toggle i { position: relative; }
	.nav-toggle i::before { content: ""; position: absolute; top: -.45rem; }
	.nav-toggle[aria-expanded="true"] i { transform: rotate(45deg); }
	.nav-toggle[aria-expanded="true"] i::before { top: 0; transform: rotate(90deg); }
	.nav { position: fixed; inset: 0; z-index: 1001; display: none; flex-direction: column; justify-content: center; align-items: stretch; padding: 6rem 2rem 3rem; background: var(--coal); }
	.nav.is-open { display: flex; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu li { border-bottom: 1px solid var(--line); }
	.menu a { display: block; padding: 1rem 0; font-family: "Arial Narrow", Impact, sans-serif; font-size: 1.7rem; }
	.menu a::after { display: none; }
	.nav .signal-button { margin-top: 1rem; }
	.hero { min-height: auto; padding-top: calc(var(--header) + 5rem); }
	.hero-image { inset: var(--header) 0 0 20%; opacity: .4; }
	.hero-image::after { background: linear-gradient(90deg, var(--coal), rgba(16,23,28,.3)), linear-gradient(0deg, var(--coal), transparent 70%); }
	.hero-layout { grid-template-columns: 1fr; min-height: 42rem; }
	.hero-note { max-width: 20rem; }
	.services-heading, .delivery-grid, .contact-grid { grid-template-columns: 1fr; }
	.services-heading { gap: 1rem; }
	.service-index summary { grid-template-columns: 2.5rem 1fr; min-height: 6rem; }
	.service-index summary em { grid-column: 2; text-align: left; padding-right: 2.5rem; }
	.service-index details > div { padding-left: 2.5rem; padding-right: 0; }
	.service-index ul { columns: 1; }
	.experience-head { display: block; }
	.experience-head h2 { text-align: left; }
	.contact-copy { position: static; }
}

@media (max-width: 600px) {
	h1 { font-size: clamp(3.1rem, 17vw, 5.2rem); }
	h2 { font-size: clamp(2.4rem, 13vw, 4rem); }
	.brand-code { width: 2.7rem; height: 2.7rem; }
	.hero { padding-bottom: 3rem; }
	.hero-layout { min-height: 39rem; }
	.hero-actions { align-items: flex-start; flex-direction: column; }
	.stat-grid { grid-template-columns: 1fr; }
	.stat-grid > div { min-height: 6rem; padding: 1rem; border-right: 1px solid rgba(16,23,28,.18); border-top: 1px solid rgba(16,23,28,.18); }
	.intro-grid { grid-template-columns: 1fr; }
	.intro-copy { padding-top: 0; }
	.intro figure { grid-column: auto; display: block; margin-top: 0; }
	.intro figcaption { margin-top: .7rem; }
	.visual-grid { grid-template-columns: 1fr; }
	.visual-grid figure { min-height: 22rem; }
	.visual-grid figure:not(:first-child) { display: none; }
	.experience-grid { grid-template-columns: 1fr; }
	.experience-grid article { min-height: auto; }
	.form-row { grid-template-columns: 1fr; gap: 0; }
	.footer-main { grid-template-columns: 1fr; gap: 2rem; }
	.footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

