﻿/*
Theme Name: EmbedX Portfolio
Theme URI: https://embedx.example
Description: Child theme for a technology company portfolio focused on integrated solutions.
Author: EmbedX
Template: twentytwentyfive
Version: 1.0.1
Requires at least: 6.7
Text Domain: embedx
*/

/* --------------------------------------------------------------------------
   Design tokens — black blended with red
   -------------------------------------------------------------------------- */
:root {
	--nx-ink: #0a0a0a;
	--nx-ink-soft: #140e0e;
	--nx-slate: #1c1214;
	--nx-mist: #f3efef;
	--nx-cloud: #faf7f7;
	--nx-steel: #6b5c5e;
	--nx-teal: #e11d2e;
	--nx-teal-deep: #9a1520;
	--nx-amber: #ff5a5a;
	--nx-white: #ffffff;
	--nx-grid: rgba(255, 255, 255, 0.055);
	--nx-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
body {
	background: var(--nx-cloud);
}

.nx-section {
	position: relative;
}

.nx-kicker {
	display: inline-block;
	font-family: "Syne", sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--nx-teal);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.nx-header {
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(14px);
	background: color-mix(in srgb, var(--nx-ink) 88%, transparent);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-header .wp-block-site-title a,
.nx-header .wp-block-site-title {
	font-family: "Syne", sans-serif !important;
	font-weight: 800 !important;
	font-size: 1.15rem !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-white) !important;
	text-decoration: none;
}

.nx-header .wp-block-navigation a {
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 0.95rem;
	font-weight: 500;
}

.nx-header .wp-block-navigation a:hover {
	color: var(--nx-white) !important;
}

.nx-header .wp-block-navigation .wp-block-navigation-item.nx-nav-cta > a,
.nx-header .nx-nav-cta .wp-block-navigation-item__content {
	background: var(--nx-teal) !important;
	color: var(--nx-white) !important;
	padding: 0.55rem 1.1rem !important;
	border-radius: 999px;
	font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   Hero — full-bleed composition
   -------------------------------------------------------------------------- */
.nx-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	background:
		radial-gradient(1200px 700px at 80% 20%, rgba(225, 29, 46, 0.32), transparent 55%),
		radial-gradient(900px 600px at 10% 80%, rgba(154, 21, 32, 0.22), transparent 50%),
		linear-gradient(160deg, #000000 0%, var(--nx-ink) 40%, var(--nx-ink-soft) 100%);
	color: var(--nx-white);
}

.nx-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(var(--nx-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--nx-grid) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse at 70% 40%, black 20%, transparent 70%);
	animation: nx-grid-drift 28s linear infinite;
	pointer-events: none;
}

.nx-hero::after {
	content: "";
	position: absolute;
	right: -8%;
	top: 8%;
	width: min(58vw, 720px);
	aspect-ratio: 1;
	border-radius: 40% 60% 55% 45%;
	background:
		conic-gradient(from 210deg at 50% 50%, rgba(225, 29, 46, 0.4), transparent 40%, rgba(255, 90, 90, 0.2), transparent 75%, rgba(154, 21, 32, 0.35));
	filter: blur(2px);
	animation: nx-orb-float 12s var(--nx-ease) infinite alternate;
	pointer-events: none;
}

.nx-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	padding-top: clamp(6rem, 16vh, 10rem);
	padding-bottom: clamp(3.5rem, 10vh, 6rem);
}

.nx-hero .nx-brand {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: clamp(3.4rem, 11vw, 7.5rem);
	line-height: 0.92;
	letter-spacing: -0.04em;
	margin: 0 0 1.25rem;
	color: var(--nx-white);
}

.nx-hero .nx-brand span {
	color: var(--nx-teal);
}

.nx-hero h1,
.nx-hero .nx-headline {
	font-family: "Syne", sans-serif;
	font-weight: 600;
	font-size: clamp(1.35rem, 2.6vw, 2rem);
	line-height: 1.25;
	max-width: 18ch;
	margin: 0 0 1rem;
	color: rgba(255, 255, 255, 0.94);
}

.nx-hero .nx-lede {
	max-width: 36ch;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.72);
	margin: 0 0 2rem;
}

.nx-hero .wp-block-button__link {
	border-radius: 999px !important;
	padding: 0.95rem 1.6rem !important;
	font-family: "Figtree", sans-serif;
	font-weight: 700 !important;
}

.nx-hero .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: var(--nx-teal) !important;
	color: var(--nx-white) !important;
}

.nx-hero .wp-block-button.is-style-outline .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.35) !important;
	color: var(--nx-white) !important;
	background: transparent !important;
}

.nx-hero .wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--nx-white) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}

.nx-reveal {
	opacity: 0;
	transform: translateY(28px);
	animation: nx-rise 0.9s var(--nx-ease) forwards;
}

.nx-reveal-delay-1 { animation-delay: 0.12s; }
.nx-reveal-delay-2 { animation-delay: 0.24s; }
.nx-reveal-delay-3 { animation-delay: 0.36s; }
.nx-reveal-delay-4 { animation-delay: 0.48s; }

@keyframes nx-rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes nx-grid-drift {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(-64px, -64px, 0); }
}

@keyframes nx-orb-float {
	from { transform: translate3d(0, 0, 0) rotate(0deg); }
	to { transform: translate3d(-24px, 36px, 0) rotate(18deg); }
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */
.nx-services {
	background: var(--nx-mist);
	padding-block: clamp(4rem, 10vw, 7rem);
}

.nx-services__list {
	display: grid;
	gap: 0;
	border-top: 1px solid rgba(7, 16, 31, 0.12);
}

.nx-service {
	display: grid;
	grid-template-columns: 4rem 1fr;
	gap: 1.25rem;
	padding: 1.75rem 0;
	border-bottom: 1px solid rgba(7, 16, 31, 0.12);
	transition: background 0.35s var(--nx-ease), padding-left 0.35s var(--nx-ease);
}

.nx-service:hover {
	padding-left: 0.5rem;
}

.nx-service__index {
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--nx-teal);
	letter-spacing: 0.06em;
	padding-top: 0.35rem;
}

.nx-service h3 {
	font-family: "Syne", sans-serif;
	font-size: clamp(1.35rem, 2.4vw, 1.85rem);
	margin: 0 0 0.45rem;
	letter-spacing: -0.02em;
}

.nx-service p {
	margin: 0;
	color: var(--nx-steel);
	max-width: 52ch;
	font-size: 1.05rem;
}

@media (min-width: 782px) {
	.nx-service {
		grid-template-columns: 5rem minmax(220px, 1fr) minmax(280px, 1.4fr);
		align-items: start;
	}

	.nx-service h3 {
		margin: 0;
	}
}

/* --------------------------------------------------------------------------
   About / approach
   -------------------------------------------------------------------------- */
.nx-about {
	background: var(--nx-ink);
	color: var(--nx-white);
	padding-block: clamp(4rem, 10vw, 7rem);
}

.nx-about h2 {
	font-family: "Syne", sans-serif;
	font-size: clamp(2rem, 5vw, 3.4rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	max-width: 16ch;
	margin: 0 0 1.25rem;
}

.nx-about p {
	color: rgba(255, 255, 255, 0.72);
	max-width: 42ch;
}

.nx-pillars {
	display: grid;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 782px) {
	.nx-pillars {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

.nx-pillar {
	border-top: 2px solid var(--nx-teal);
	padding-top: 1.25rem;
}

.nx-pillar h3 {
	font-family: "Syne", sans-serif;
	font-size: 1.2rem;
	margin: 0 0 0.5rem;
}

.nx-pillar p {
	margin: 0;
	font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   Work / portfolio
   -------------------------------------------------------------------------- */
.nx-work {
	background: var(--nx-cloud);
	padding-block: clamp(4rem, 10vw, 7rem);
}

.nx-work__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 782px) {
	.nx-work__grid {
		grid-template-columns: 1.2fr 1fr;
		gap: 1.75rem;
	}
}

.nx-case {
	position: relative;
	min-height: 280px;
	overflow: hidden;
	border-radius: 0;
	background: var(--nx-slate);
	color: var(--nx-white);
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	isolation: isolate;
	transition: transform 0.45s var(--nx-ease);
}

.nx-case:hover {
	transform: translateY(-4px);
}

.nx-case::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.9) 100%),
		radial-gradient(circle at 80% 20%, rgba(225, 29, 46, 0.45), transparent 55%),
		linear-gradient(135deg, #1a1012, #0a0a0a);
}

.nx-case--alt::before {
	background:
		linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.9) 100%),
		radial-gradient(circle at 20% 30%, rgba(154, 21, 32, 0.5), transparent 55%),
		linear-gradient(135deg, #221416, #0d0a0a);
}

.nx-case--tall {
	min-height: 420px;
}

@media (min-width: 782px) {
	.nx-case--tall {
		grid-row: span 2;
		min-height: 100%;
	}
}

.nx-case__meta {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nx-teal);
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.nx-case h3 {
	font-family: "Syne", sans-serif;
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	margin: 0 0 0.4rem;
	letter-spacing: -0.02em;
}

.nx-case p {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.98rem;
	max-width: 36ch;
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.nx-cta {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(800px 400px at 90% 0%, rgba(225, 29, 46, 0.28), transparent 60%),
		var(--nx-ink);
	color: var(--nx-white);
	padding-block: clamp(4rem, 10vw, 6.5rem);
}

.nx-cta h2 {
	font-family: "Syne", sans-serif;
	font-size: clamp(2rem, 5vw, 3.2rem);
	letter-spacing: -0.03em;
	line-height: 1.1;
	max-width: 14ch;
	margin: 0 0 1rem;
}

.nx-cta p {
	color: rgba(255, 255, 255, 0.7);
	max-width: 40ch;
	margin: 0 0 1.75rem;
}

.nx-cta .wp-block-button__link {
	border-radius: 999px !important;
	background: var(--nx-teal) !important;
	color: var(--nx-white) !important;
	font-weight: 700 !important;
	padding: 0.95rem 1.6rem !important;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.nx-footer {
	background: var(--nx-ink-soft);
	color: rgba(255, 255, 255, 0.7);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nx-footer .wp-block-site-title a,
.nx-footer .wp-block-site-title {
	font-family: "Syne", sans-serif !important;
	font-weight: 800 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--nx-white) !important;
	text-decoration: none;
}

.nx-footer a {
	color: rgba(255, 255, 255, 0.75);
}

.nx-footer a:hover {
	color: var(--nx-teal);
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.nx-contact {
	margin-top: 2rem;
	max-width: 34rem;
}

.nx-contact__notice {
	padding: 0.9rem 1rem;
	margin-bottom: 1.25rem;
	font-size: 0.98rem;
	line-height: 1.45;
}

.nx-contact__notice--success {
	background: color-mix(in srgb, var(--nx-teal) 16%, white);
	color: var(--nx-ink);
	border-left: 3px solid var(--nx-teal);
}

.nx-contact__notice--error {
	background: #fde8e8;
	color: #7a1f1f;
	border-left: 3px solid #c0392b;
}

.nx-contact__form {
	display: grid;
	gap: 1.1rem;
}

.nx-contact__field label {
	display: block;
	font-family: "Syne", sans-serif;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 0.45rem;
	color: var(--nx-ink);
}

.nx-contact__field input,
.nx-contact__field textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(7, 16, 31, 0.18);
	background: var(--nx-white);
	color: var(--nx-ink);
	padding: 0.85rem 0.95rem;
	font-family: "Figtree", sans-serif;
	font-size: 1rem;
	line-height: 1.4;
	border-radius: 0;
	transition: border-color 0.2s var(--nx-ease), box-shadow 0.2s var(--nx-ease);
}

.nx-contact__field input:focus,
.nx-contact__field textarea:focus {
	outline: none;
	border-color: var(--nx-teal);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--nx-teal) 22%, transparent);
}

.nx-contact__submit {
	justify-self: start;
	appearance: none;
	border: 0;
	cursor: pointer;
	background: var(--nx-teal);
	color: var(--nx-white);
	font-family: "Figtree", sans-serif;
	font-weight: 700;
	font-size: 1rem;
	padding: 0.95rem 1.55rem;
	border-radius: 999px;
	transition: background 0.2s var(--nx-ease), transform 0.2s var(--nx-ease);
}

.nx-contact__submit:hover {
	background: var(--nx-teal-deep);
	color: var(--nx-white);
}

.nx-contact__honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Page chrome (inner pages)
   -------------------------------------------------------------------------- */
.nx-page-hero {
	background: var(--nx-ink);
	color: var(--nx-white);
	padding: clamp(4rem, 12vw, 7rem) 0 clamp(3rem, 8vw, 4.5rem);
}

.nx-page-hero h1 {
	font-family: "Syne", sans-serif;
	font-size: clamp(2.4rem, 6vw, 4rem);
	letter-spacing: -0.03em;
	margin: 0.5rem 0 0;
}

/* --------------------------------------------------------------------------
   Scroll motion
   -------------------------------------------------------------------------- */
.nx-motion {
	opacity: 0;
	transform: translateY(32px);
	transition: opacity 0.8s var(--nx-ease), transform 0.8s var(--nx-ease);
}

.nx-motion.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.nx-reveal,
	.nx-hero::before,
	.nx-hero::after,
	.nx-motion {
		animation: none !important;
		transition: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}
