/* =====================================================================
   AJNAS THAZHE PARAMBAN — CORE STYLESHEET
   Color system lives entirely in CSS variables (see :root / [data-theme]).
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x:hidden on body alone is not reliable on mobile Safari once a
   position:fixed element (the header) is in play — the page can still
   rubber-band/scroll sideways a few px and clip content at the edge. Setting
   it on html too, plus a hard 100% width ceiling, closes that off. */
html {
	scroll-behavior: smooth;
	overflow-x: hidden;
	width: 100%;
}

/* ---------------------------------------------------------------------
   COLOR SYSTEM
   --------------------------------------------------------------------- */
:root {
	--font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-display: 'Space Grotesk', 'Manrope', sans-serif;

	--container: 1200px;
	--gutter: clamp(20px, 5vw, 64px);
	--radius: 14px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* DARK MODE (default look) */
:root,
[data-theme="dark"] {
	--color-bg: #0a0b0d;
	--color-bg-alt: #101216;
	--color-surface: #15171c;
	--color-surface-raised: #1b1e24;
	--color-text: #f2f3f5;
	--color-muted: #9498a3;
	--color-border: rgba(255, 255, 255, 0.09);
	--color-accent: #6d7bff;
	--color-accent-soft: rgba(109, 123, 255, 0.14);
	--color-accent-2: #9d6dff;
	--grid-line: rgba(255, 255, 255, 0.06);
	--shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* LIGHT MODE — a distinct, purpose-designed palette, not an inversion */
[data-theme="light"] .ajnas-header { background: rgba(250, 249, 246, 0.75); }
[data-theme="light"] .ajnas-header { background: color-mix(in srgb, var(--color-bg) 75%, transparent); }

[data-theme="light"] {
	--color-bg: #faf9f6;
	--color-bg-alt: #f2f1ec;
	--color-surface: #ffffff;
	--color-surface-raised: #ffffff;
	--color-text: #16181d;
	--color-muted: #5c6068;
	--color-border: rgba(20, 20, 20, 0.09);
	--color-accent: #4453e0;
	--color-accent-soft: rgba(68, 83, 224, 0.09);
	--color-accent-2: #7b3fd1;
	--grid-line: rgba(20, 20, 20, 0.05);
	--shadow-lg: 0 30px 70px rgba(20, 20, 20, 0.10);
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background 0.4s var(--ease), color 0.4s var(--ease);
	overflow-x: hidden;
	width: 100%;
	position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.ajnas-container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.ajnas-section {
	position: relative;
	padding: clamp(80px, 12vw, 160px) 0;
}

.ajnas-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 13px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin-bottom: 20px;
}
.ajnas-eyebrow::before {
	content: '';
	width: 26px;
	height: 1px;
	background: var(--color-accent);
}

.ajnas-heading-xl {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(48px, 9vw, 128px);
	line-height: 0.98;
	letter-spacing: -0.02em;
	margin: 0 0 24px;
}
/* Project titles run longer than "LOST SIGNAL." or the closing Vision
   line, so they get their own, smaller ceiling — fits properly instead
   of wrapping huge across the page. */
.ajnas-project-detail-title {
	font-size: clamp(32px, 5.5vw, 72px);
	max-width: 900px;
}
.ajnas-heading-lg {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(32px, 5vw, 56px);
	line-height: 1.05;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
}
.ajnas-lede {
	font-size: clamp(17px, 1.6vw, 21px);
	color: var(--color-muted);
	max-width: 620px;
	margin: 0 0 32px;
}

.ajnas-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--color-text);
	color: var(--color-bg);
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.ajnas-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.ajnas-btn--ghost {
	background: transparent;
	color: var(--color-text);
	border-color: var(--color-border);
}

/* ---------------------------------------------------------------------
   REVEAL-ON-SCROLL UTILITY (driven by main.js IntersectionObserver)
   --------------------------------------------------------------------- */
[data-reveal] {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
	transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal="scale"].is-visible { transform: scale(1); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="left"].is-visible { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="right"].is-visible { transform: translateX(0); }

/* =====================================================================
   HEADER
   ===================================================================== */
.ajnas-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px var(--gutter);
	backdrop-filter: blur(14px);
	/* Fallback first for browsers without color-mix() support. */
	background: rgba(10, 11, 13, 0.72);
	background: color-mix(in srgb, var(--color-bg) 72%, transparent);
	border-bottom: 1px solid transparent;
	transition: border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.ajnas-header.is-scrolled { border-bottom-color: var(--color-border); }

.ajnas-logo {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: 0.02em;
}
.ajnas-logo span { color: var(--color-accent); }

.ajnas-nav { display: flex; align-items: center; gap: 28px; }
.ajnas-nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.ajnas-nav-links a {
	position: relative;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-muted);
	transition: color 0.25s var(--ease);
}
.ajnas-nav-links a::after {
	content: '';
	position: absolute; left: 0; bottom: -4px;
	width: 100%; height: 1px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s var(--ease);
}
.ajnas-nav-links a:hover { color: var(--color-text); }
.ajnas-nav-links a:hover::after { transform: scaleX(1); }
.ajnas-header-linkedin {
	display: flex;
	align-items: center;
	padding: 9px 18px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--color-text);
	transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
	white-space: nowrap;
}
.ajnas-header-linkedin:hover { border-color: var(--color-accent); transform: translateY(-1px); background: var(--color-accent-soft); }

/* Theme toggle now lives in a floating utility dock (see footer.php),
   not the header nav — kept "premium" and out of the way rather than a
   generic circle competing with navigation. */
.ajnas-utility-dock {
	position: fixed;
	right: var(--gutter);
	bottom: 28px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ajnas-theme-toggle {
	width: 46px; height: 46px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	box-shadow: var(--shadow-lg);
	display: flex; align-items: center; justify-content: center;
	font-size: 17px;
	transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ajnas-theme-toggle:hover { transform: translateY(-2px) scale(1.04); border-color: var(--color-accent); }

.ajnas-menu-toggle {
	display: none;
	width: 42px; height: 42px;
	border-radius: 50%;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 4px;
	cursor: pointer;
}
.ajnas-menu-toggle span {
	display: block;
	width: 16px; height: 2px;
	background: var(--color-text);
	transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.ajnas-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.ajnas-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ajnas-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Subtle scroll-progress line under the header — how far through the
   story the visitor has scrolled, nothing louder than that. */
.ajnas-scroll-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 2px;
	z-index: 101;
	background: transparent;
}
.ajnas-scroll-progress span {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
	transition: width 0.1s linear;
}

/* =====================================================================
   HERO
   ===================================================================== */
.ajnas-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh; /* accounts for mobile browser address-bar chrome so content isn't cropped */
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-top: 90px;
	padding-bottom: 40px;
	max-width: 100%;
}
.ajnas-hero-bg {
	position: absolute; inset: 0;
	background:
		radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), var(--color-accent-soft), transparent 60%),
		linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
	transition: background 0.6s var(--ease);
	z-index: 0;
}
.ajnas-hero-grid {
	position: absolute; inset: -56px;
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
	z-index: 0;
	animation: ajnas-grid-drift 40s linear infinite;
}
@keyframes ajnas-grid-drift {
	from { background-position: 0 0, 0 0; }
	to { background-position: 56px 56px, 56px 56px; }
}
@media (prefers-reduced-motion: reduce) {
	.ajnas-hero-grid { animation: none; }
}
.ajnas-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 48px;
	align-items: center;
	width: 100%;
}
.ajnas-hero-eyebrow {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(16px, 1.4vw, 20px);
	letter-spacing: 0.24em;
	color: var(--color-muted);
	margin-bottom: 14px;
}
.ajnas-hero-name {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(56px, 10vw, 140px);
	line-height: 0.92;
	letter-spacing: -0.02em;
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.06em;
	max-width: 100%;
	overflow-wrap: anywhere;
}
/* The "dot" after the name isn't a period — it's a square block that
   blinks like a cursor / status indicator. Sized and seated like an
   actual full stop (small, sitting on the baseline), not a tall bar. */
.ajnas-hero-dot {
	display: inline-block;
	width: 0.12em;
	height: 0.12em;
	margin-left: 0.05em;
	background: var(--color-accent);
	border-radius: 2px;
	animation: ajnas-dot-blink 1.8s ease-in-out infinite;
}
@keyframes ajnas-dot-blink {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.25; transform: scale(0.85); }
}

.ajnas-hero-roles {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin: 20px 0 28px;
	font-family: var(--font-display);
	font-size: clamp(20px, 2.4vw, 30px);
	color: var(--color-text);
	min-height: 1.3em;
}
.ajnas-hero-roles-type { font-weight: 600; }
.ajnas-hero-roles-cursor {
	color: var(--color-accent);
	font-weight: 400;
	animation: ajnas-cursor-blink 0.9s steps(1, end) infinite;
}
@keyframes ajnas-cursor-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
.ajnas-hero-copy { max-width: 480px; color: var(--color-muted); font-size: 18px; margin-bottom: 36px; }
.ajnas-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.ajnas-hero-photo-wrap {
	position: relative;
	aspect-ratio: 4 / 5;
	border-radius: 24px;
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	transform: translateY(calc(var(--parallax, 0) * 1px));
}
.ajnas-hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
/* =====================================================================
   PLACEHOLDER VISUALS — used everywhere a real photo hasn't been
   uploaded yet (profile, ventures, gallery). Each variant is a distinct
   CSS/SVG blueprint pattern, never a stock photo, so nothing here is
   pretending to be a real photograph of a real thing.
   ===================================================================== */
.ajnas-placeholder-visual {
	width: 100%; height: 100%;
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: flex-end;
	background: linear-gradient(160deg, var(--color-surface), var(--color-bg));
}
.ajnas-placeholder-visual::before {
	content: '';
	position: absolute; inset: 0;
	background-image:
		linear-gradient(var(--color-border) 1px, transparent 1px),
		linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
	background-size: 28px 28px;
	opacity: 0.5;
}
.ajnas-placeholder-visual::after {
	content: '';
	position: absolute; inset: 0;
	background: radial-gradient(circle at 30% 20%, var(--color-accent-soft), transparent 60%);
}
.ajnas-placeholder-label {
	position: relative;
	z-index: 1;
	margin: 20px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(0,0,0,0.4);
	backdrop-filter: blur(4px);
	color: #fff;
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

/* Profile — an abstract geometric mark, never a stock photo of a
   person. A simple bust silhouette built from CSS shapes + initials. */
.ajnas-placeholder--profile {
	align-items: center;
	justify-content: center;
	background: conic-gradient(from 180deg at 50% 50%, var(--color-accent), var(--color-accent-2), var(--color-accent));
}
.ajnas-placeholder--profile::before { opacity: 0.15; mix-blend-mode: overlay; }
.ajnas-placeholder--profile::after {
	content: '';
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 72%; height: 55%;
	border-radius: 50% 50% 0 0 / 40% 40% 0 0;
	background: rgba(255,255,255,0.16);
}
.ajnas-placeholder--profile .ajnas-placeholder-label {
	position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%);
	margin: 0; padding: 0; background: none; backdrop-filter: none;
	font-family: var(--font-display); font-size: 15vw; font-weight: 700;
	color: rgba(255,255,255,0.92); letter-spacing: 0.02em;
}
@media (min-width: 640px) { .ajnas-placeholder--profile .ajnas-placeholder-label { font-size: 64px; } }

/* Venture — brand-neutral monogram tile until a logo is uploaded. */
.ajnas-placeholder--venture {
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--color-accent-soft), var(--color-surface));
}
.ajnas-placeholder--venture .ajnas-placeholder-label {
	position: static;
	margin: 0; background: none; backdrop-filter: none;
	font-family: var(--font-display); font-size: 42px; font-weight: 700;
	color: var(--color-accent); letter-spacing: 0.04em;
}

/* Engineering categories — same grid, different accent tint per type. */
.ajnas-placeholder--pcb::after { background: radial-gradient(circle at 70% 30%, rgba(46, 204, 113, 0.28), transparent 60%); }
.ajnas-placeholder--electronics::after { background: radial-gradient(circle at 30% 70%, rgba(52, 152, 219, 0.28), transparent 60%); }
.ajnas-placeholder--prototype::after { background: radial-gradient(circle at 60% 20%, rgba(230, 126, 34, 0.28), transparent 60%); }
.ajnas-placeholder--lab::after,
.ajnas-placeholder--automation::after,
.ajnas-placeholder--iot::after,
.ajnas-placeholder--hardware::after { background: radial-gradient(circle at 30% 20%, var(--color-accent-soft), transparent 60%); }

.ajnas-scroll-cue {
	position: absolute;
	bottom: 36px; left: 50%;
	transform: translateX(-50%);
	font-size: 12px;
	letter-spacing: 0.15em;
	color: var(--color-muted);
	display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ajnas-scroll-cue::after {
	content: '';
	width: 1px; height: 34px;
	background: linear-gradient(var(--color-muted), transparent);
	animation: ajnas-scroll-pulse 1.8s var(--ease) infinite;
}
@keyframes ajnas-scroll-pulse { 0% { opacity: 0.2; } 50% { opacity: 1; } 100% { opacity: 0.2; } }

/* =====================================================================
   NUMBERED SECTION HEADER (used by Engineer / Builder / Entrepreneur / Creator)
   ===================================================================== */
.ajnas-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin-bottom: 56px;
	flex-wrap: wrap;
}
.ajnas-section-number {
	font-family: var(--font-display);
	font-size: 14px;
	color: var(--color-muted);
	letter-spacing: 0.1em;
	display: flex;
	align-items: center;
	gap: 8px;
}
/* A small embedded-electronics-style status LED — used sparingly. */
.ajnas-led {
	display: inline-block;
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #2ecc71;
	box-shadow: 0 0 6px 2px rgba(46, 204, 113, 0.6);
	animation: ajnas-led-pulse 2s ease-in-out infinite;
	flex-shrink: 0;
}
@keyframes ajnas-led-pulse {
	0%, 100% { opacity: 1; box-shadow: 0 0 6px 2px rgba(46, 204, 113, 0.6); }
	50% { opacity: 0.6; box-shadow: 0 0 3px 1px rgba(46, 204, 113, 0.35); }
}

/* =====================================================================
   ENGINEER
   ===================================================================== */
.ajnas-engineer { background: var(--color-bg-alt); position: relative; }

.ajnas-skills-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 8px;
}

/* Skill groups are now presented as elevated, self-contained cards —
   a defined surface, border and hover lift replace the old plain
   underlined-list columns for a more polished, "product" feel. */
.ajnas-skill-group {
	position: relative;
	padding: 30px 28px 26px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}
/* Thin accent bar along the top edge — reads as a subtle "card header"
   rather than decoration; brightens on reveal / hover. */
.ajnas-skill-group::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
	opacity: 0.35;
	transition: opacity 0.4s var(--ease);
}
.ajnas-skill-group:hover {
	transform: translateY(-6px);
	/* Neon glow instead of a solid border highlight — soft layered halo
	   in the accent color, plus the ambient card lift shadow. */
	box-shadow:
		0 0 0 1px var(--color-accent),
		0 0 14px var(--color-accent),
		0 0 34px var(--color-accent-soft),
		0 0 64px var(--color-accent-soft),
		var(--shadow-lg);
}
.ajnas-skill-group:hover::before,
.ajnas-skill-group.is-visible::before { opacity: 1; }

.ajnas-skill-group h4 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-family: var(--font-display);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--color-border);
}
.ajnas-skill-group-title { flex: 1; }
/* Category icon: a plain PNG uploaded from Admin → AJNAS Theme → Skill
   Icons is turned into a flat, single-colour glyph via CSS mask — the
   PNG only supplies the shape (its own colours are ignored), so every
   icon reads as one consistent colour, and that colour is a single
   admin setting (falls back to the accent colour if unset). */
.ajnas-skill-icon {
	flex-shrink: 0;
	width: var(--ajnas-skill-icon-size, 26px);
	height: var(--ajnas-skill-icon-size, 26px);
}
/* Admin-uploaded PNG: shape comes from the file's own alpha channel via
   CSS mask, recoloured to a single flat colour (see Skill Icons above). */
.ajnas-skill-icon--mask {
	background-color: var(--color-accent);
	-webkit-mask-image: var(--ajnas-skill-icon-url);
	mask-image: var(--ajnas-skill-icon-url);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}
/* Built-in fallback: inline SVG shown until a category has its own
   uploaded icon. Uses currentColor so the same Icon Colour setting
   (or the accent colour by default) applies with no extra CSS. */
.ajnas-skill-icon--svg {
	color: var(--color-accent);
}
.ajnas-skill-icon--svg svg {
	width: 100%;
	height: 100%;
	display: block;
}
.ajnas-skill-group ul { list-style: none; margin: 0; padding: 0; }
.ajnas-skill-group li {
	position: relative;
	padding: 9px 0 9px 20px;
	font-size: 15px;
	color: var(--color-text);
}
.ajnas-skill-group li::before {
	content: '';
	position: absolute;
	left: 0; top: 17px;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--color-muted);
	opacity: 0.6;
}
.ajnas-skill-group li small { display: block; color: var(--color-muted); font-weight: 400; margin-top: 2px; }
/* Individual skills step in one after another once their group scrolls
   into view — the group itself is the [data-reveal] target ("is-visible"
   toggles on it); each li fades/slides up on its own short delay. */
.ajnas-skill-group li {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.ajnas-skill-group.is-visible li { opacity: 1; transform: translateY(0); }
.ajnas-skill-group.is-visible li:nth-child(1) { transition-delay: 0.05s; }
.ajnas-skill-group.is-visible li:nth-child(2) { transition-delay: 0.12s; }
.ajnas-skill-group.is-visible li:nth-child(3) { transition-delay: 0.19s; }
.ajnas-skill-group.is-visible li:nth-child(4) { transition-delay: 0.26s; }
.ajnas-skill-group.is-visible li:nth-child(5) { transition-delay: 0.33s; }
.ajnas-skill-group.is-visible li:nth-child(n+6) { transition-delay: 0.4s; }

/* =====================================================================
   BUILDER — a single signal path, not boxed cards. One line runs the
   full width; a gradient fill grows along it and each stage lights up
   as the visitor scrolls past, driven by main.js updateBuilderProgress()
   setting --builder-progress on .ajnas-builder-track.
   ===================================================================== */
.ajnas-builder-track {
	position: relative;
	margin-top: 88px;
	padding-top: 6px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	--builder-progress: 0;
}
.ajnas-builder-line {
	position: absolute;
	top: 6px; left: 0; right: 0;
	height: 3px;
	border-radius: 3px;
	background: var(--color-border);
	overflow: hidden;
}
.ajnas-builder-line-fill {
	display: block;
	height: 100%;
	width: 100%;
	transform-origin: left center;
	transform: scaleX(var(--builder-progress));
	background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
	transition: transform 0.15s linear;
}
.ajnas-builder-stage {
	position: relative;
	flex: 1;
	text-align: center;
	padding-top: 30px;
}
.ajnas-builder-node-dot {
	position: absolute;
	top: -3px; left: 50%;
	transform: translateX(-50%) scale(0.9);
	width: 12px; height: 12px;
	border-radius: 50%;
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.ajnas-builder-step {
	display: block;
	font-family: var(--font-mono, monospace);
	font-size: 11px;
	letter-spacing: 0.1em;
	color: var(--color-muted);
	margin-bottom: 6px;
	transition: color 0.4s var(--ease);
}
.ajnas-builder-stage h5 {
	font-family: var(--font-display);
	font-size: 15px;
	letter-spacing: 0.06em;
	margin: 0;
	color: var(--color-muted);
	transition: color 0.4s var(--ease);
}
/* main.js toggles this class on each stage as --builder-progress passes it */
.ajnas-builder-stage.is-active .ajnas-builder-node-dot {
	border-color: var(--color-accent);
	background: var(--color-accent);
	transform: translateX(-50%) scale(1.15);
	box-shadow: 0 0 0 5px var(--color-accent-soft);
}
.ajnas-builder-stage.is-active .ajnas-builder-step { color: var(--color-accent); }
.ajnas-builder-stage.is-active h5 { color: var(--color-text); }

@media (max-width: 780px) {
	.ajnas-builder-track { flex-direction: column; align-items: flex-start; gap: 36px; padding-top: 0; padding-left: 24px; }
	.ajnas-builder-line { top: 0; left: 5px; right: auto; width: 3px; height: 100%; }
	.ajnas-builder-line-fill { width: 100%; height: 100%; transform: scaleY(var(--builder-progress)); transform-origin: top center; }
	.ajnas-builder-stage { padding-top: 0; text-align: left; padding-left: 8px; }
	.ajnas-builder-node-dot { top: 2px; left: -24px; transform: translateX(0) scale(0.9); }
	.ajnas-builder-stage.is-active .ajnas-builder-node-dot { transform: translateX(0) scale(1.15); }
}


/* =====================================================================
   ENGINEERING LAB (Projects)
   ===================================================================== */
.ajnas-lab-list { margin-top: 40px; border-top: 1px solid var(--color-border); }
.ajnas-lab-item {
	position: relative;
	display: grid;
	grid-template-columns: 90px 1fr 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 28px 0;
	border-bottom: 1px solid var(--color-border);
	transition: background 0.3s var(--ease), transform 0.35s var(--ease), z-index 0s;
	transform-origin: center;
}
.ajnas-lab-item:hover {
	z-index: 2;
}

/* Steady neon glow along the row's top and bottom borders on hover —
   replaces the old floating thumbnail popup. Fixed in place (no travel),
   just a fade-in glow. */
.ajnas-lab-item::before,
.ajnas-lab-item::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--color-accent);
	opacity: 0;
	pointer-events: none;
	border-radius: 2px;
	box-shadow: 0 0 8px 1px var(--color-accent), 0 0 16px 2px var(--color-accent-soft);
	transition: opacity 0.3s var(--ease);
}
.ajnas-lab-item::before { top: -1px; }
.ajnas-lab-item::after { bottom: -1px; }
.ajnas-lab-item:hover::before,
.ajnas-lab-item:hover::after,
.ajnas-lab-item:focus-visible::before,
.ajnas-lab-item:focus-visible::after {
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.ajnas-lab-item:hover { transform: none; }
}
.ajnas-lab-number {
	font-family: var(--font-display);
	font-size: 14px;
	color: var(--color-muted);
	transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.ajnas-lab-item:hover .ajnas-lab-number { transform: translateX(4px); color: var(--color-accent); }
.ajnas-lab-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; transition: transform 0.3s var(--ease); }
.ajnas-lab-item:hover .ajnas-lab-title { transform: translateX(6px); }
.ajnas-lab-meta { display: flex; flex-wrap: wrap; gap: 8px; transition: opacity 0.3s var(--ease); }
.ajnas-lab-tag {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 5px 10px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	color: var(--color-muted);
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.ajnas-lab-item:hover .ajnas-lab-tag { border-color: var(--color-accent); color: var(--color-accent); }
.ajnas-lab-year { color: var(--color-muted); font-size: 14px; transition: opacity 0.3s var(--ease); }
.ajnas-lab-item:hover .ajnas-lab-year { opacity: 0.5; }

/* The old floating thumbnail preview popup has been removed in favor of
   the row-scale + neon border-travel hover effect above. The thumbnail
   markup is kept in the template but stays hidden everywhere. */
.ajnas-lab-thumb,
.ajnas-lab-thumb-view {
	display: none;
}

@media (max-width: 900px) {
	.ajnas-lab-item { grid-template-columns: 1fr; gap: 10px; }
	.ajnas-lab-thumb { display: none; }
}

/* Project detail page */
.ajnas-project-detail-hero { padding-top: 140px; padding-bottom: 40px; }
.ajnas-project-detail-number { font-family: var(--font-display); color: var(--color-muted); }
.ajnas-project-detail-grid {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 60px;
	margin-top: 40px;
}
.ajnas-spec-list { list-style: none; margin: 0; padding: 0; }
.ajnas-spec-list li {
	display: flex; justify-content: space-between;
	padding: 12px 0; border-bottom: 1px solid var(--color-border);
	font-size: 14px;
}
.ajnas-spec-list li span:first-child { color: var(--color-muted); }
@media (max-width: 900px) { .ajnas-project-detail-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   GALLERY
   ===================================================================== */
.ajnas-gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.ajnas-gallery-filter {
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--color-border);
	font-size: 13px;
	background: transparent;
	color: var(--color-muted);
}
.ajnas-gallery-filter.is-active { background: var(--color-text); color: var(--color-bg); border-color: transparent; }
/* Editorial/masonry composition: a base grid with a handful of items
   spanning extra columns/rows (via the size classes gallery.php assigns
   in a repeating pattern) so sizes vary instead of a uniform square grid. */
.ajnas-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-rows: 160px;
	grid-auto-flow: dense;
	gap: 18px;
}
.ajnas-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--color-border);
	cursor: pointer;
	grid-column: span 1;
	grid-row: span 1;
}
.ajnas-gallery-item--lg { grid-column: span 2; grid-row: span 2; }
.ajnas-gallery-item--tall { grid-row: span 2; }
.ajnas-gallery-item--wide { grid-column: span 2; }
.ajnas-gallery-item img,
.ajnas-gallery-item .ajnas-placeholder-visual { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease), filter 0.6s var(--ease); }
.ajnas-gallery-item:hover img { transform: scale(1.06); }
/* Fade + blur → sharp + scale as each tile enters the viewport. */
.ajnas-gallery-item[data-reveal] img,
.ajnas-gallery-item[data-reveal] .ajnas-placeholder-visual { filter: blur(10px); transform: scale(1.08); }
.ajnas-gallery-item[data-reveal].is-visible img,
.ajnas-gallery-item[data-reveal].is-visible .ajnas-placeholder-visual { filter: blur(0); transform: scale(1); }
.ajnas-gallery-caption {
	position: absolute; inset: auto 0 0 0;
	padding: 12px 14px;
	background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
	color: #fff;
	font-size: 12px;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ajnas-gallery-item:hover .ajnas-gallery-caption,
.ajnas-gallery-item:focus-visible .ajnas-gallery-caption { opacity: 1; transform: translateY(0); }
/* Touch devices have no hover — show the caption a little, always. */
@media (hover: none) {
	.ajnas-gallery-caption { opacity: 0.9; transform: translateY(0); }
}

.ajnas-lightbox {
	position: fixed; inset: 0; z-index: 200;
	background: rgba(0,0,0,0.9);
	display: none;
	align-items: center; justify-content: center;
	padding: 40px;
}
.ajnas-lightbox.is-open { display: flex; }
.ajnas-lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.ajnas-lightbox-close { position: absolute; top: 24px; right: 32px; color: #fff; font-size: 28px; background: none; border: none; cursor: pointer; }
.ajnas-lightbox-prev, .ajnas-lightbox-next {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 48px; height: 48px; border-radius: 50%;
	background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2);
	color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
	display: none; align-items: center; justify-content: center;
	transition: background 0.25s var(--ease);
}
.ajnas-lightbox-prev:hover, .ajnas-lightbox-next:hover { background: rgba(255,255,255,0.18); }
.ajnas-lightbox-prev { left: 24px; }
.ajnas-lightbox-next { right: 24px; }
.ajnas-lightbox.has-multiple .ajnas-lightbox-prev,
.ajnas-lightbox.has-multiple .ajnas-lightbox-next { display: flex; }

/* =====================================================================
   PROJECT DETAIL MODAL — opened from a Lab row click (see main.js);
   the link at the bottom still goes to the real single-project page,
   so the modal is a progressive enhancement, not the only way in.
   ===================================================================== */
.ajnas-project-modal {
	position: fixed; inset: 0; z-index: 210;
	display: none;
	align-items: center; justify-content: center;
	padding: 24px;
	background: rgba(6, 6, 10, 0.82);
	backdrop-filter: blur(6px);
}
.ajnas-project-modal.is-open { display: flex; }
.ajnas-project-modal-panel {
	position: relative;
	max-width: 720px; width: 100%;
	max-height: 86vh;
	overflow-y: auto;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 44px;
	box-shadow: var(--shadow-lg);
}
.ajnas-project-modal-close {
	position: absolute; top: 18px; right: 18px;
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--color-border);
	background: var(--color-bg);
	color: var(--color-text);
	font-size: 20px; cursor: pointer;
}
.ajnas-project-modal-meta { display: flex; gap: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 12px; }
.ajnas-project-modal-title { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; }
.ajnas-project-modal-role { color: var(--color-muted); font-size: 13px; margin-bottom: 16px; }
.ajnas-project-modal-desc { color: var(--color-text); margin-bottom: 20px; line-height: 1.6; }
.ajnas-project-modal-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.ajnas-project-modal-tech span {
	font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 5px 10px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-muted);
}
.ajnas-project-modal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-bottom: 24px; }
.ajnas-project-modal-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; border: 1px solid var(--color-border); }
@media (max-width: 600px) { .ajnas-project-modal-panel { padding: 28px 22px; } }

/* =====================================================================
   JOURNEY — a neon horizontal timeline (same layout on every screen).

   The track is one long row you scroll sideways. Each YEAR is one block:
   a single big year number on top, a connector line under it, and that
   year's roles sitting SIDE BY SIDE along the line. The year number is
   sticky, so while you move through a year's roles it stays on screen.
   The block nearest the middle of the screen is "active" and its year
   lights up in neon; the line behind you stays lit so 2026 → 2025 → 2024
   reads as one continuous chain.

   Height is NEVER fixed. The section is exactly as tall as its tallest
   role plus breathing room for the glow, so nothing can be cropped at
   the top or bottom whatever the window size / browser zoom / phone.
   ===================================================================== */
.ajnas-journey-scroller {
	position: relative;
	/* Break out of .ajnas-container so the track runs edge to edge.
	   html/body already set overflow-x: hidden, so 100vw is safe here. */
	width: 100vw;
	margin-left: calc(50% - 50vw);
}
.ajnas-journey-pin {
	position: relative;
	/* No height, no overflow clipping: sized by its content. */
}

/* Soft accent wash behind the track. It is exactly as tall as the track
   and an ellipse that fades to nothing at its own edge, so it can never
   end in a hard, flat cut-off line. */
.ajnas-journey-glow {
	position: absolute;
	left: 50%;
	top: 0;
	width: min(90vw, 1100px);
	height: 100%;
	transform: translateX(-50%);
	pointer-events: none;
	background: radial-gradient(ellipse closest-side, var(--color-accent-soft) 0%, transparent 100%);
}

.ajnas-journey-track {
	--jcw: clamp(270px, 26vw, 360px);    /* width of one role */
	--jgap: clamp(28px, 3.4vw, 48px);    /* space between roles / years */
	/* Left edge of the page's normal content column, so the first year
	   lines up with the "THE PATH SO FAR." heading above it. */
	--jedge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));

	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	/* Top padding leaves room for the neon glow around the year (the
	   track has to clip sideways scrolling, and would otherwise slice
	   the halo off flat). */
	padding: 76px var(--jedge) 44px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
}
.ajnas-journey-track::-webkit-scrollbar { display: none; }
.ajnas-journey-track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.ajnas-journey-yearblock {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	position: relative;
	/* Gap to the next year. The connector line stretches over it (see
	   .ajnas-journey-line) so the chain has no breaks. */
	padding-right: var(--jgap);
}

/* ---- the year number (ONE per block) ----------------------------- */
.ajnas-journey-year {
	position: sticky;
	/* Sticky offsets are measured from the inner edge of the track's
	   padding (= the content column edge), so this pulls the resting
	   spot out to the normal page gutter instead. */
	left: calc(var(--gutter) - var(--jedge));
	z-index: 2;
	align-self: flex-start;
	margin: 0 0 24px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(52px, 6.2vw, 92px);
	line-height: 1;
	letter-spacing: -0.02em;
	color: transparent;
	-webkit-text-stroke: 1.5px color-mix(in srgb, var(--color-text) 24%, transparent);
	transition: color 0.45s var(--ease), text-shadow 0.45s var(--ease),
		-webkit-text-stroke-color 0.45s var(--ease);
}
/* NEON — only the active year gets it. White core, accent halo. */
.ajnas-journey-yearblock.is-active .ajnas-journey-year {
	color: #fff;
	-webkit-text-stroke-color: transparent;
	text-shadow:
		0 0 4px #fff,
		0 0 11px var(--color-accent),
		0 0 26px var(--color-accent),
		0 0 58px var(--color-accent),
		0 0 80px var(--color-accent-soft);
	animation: ajnasNeonOn 0.75s var(--ease) both;
}
/* Light mode has no dark surround for a white core to glow against, so
   the tube itself is tinted instead. */
[data-theme="light"] .ajnas-journey-yearblock.is-active .ajnas-journey-year {
	color: var(--color-accent);
	text-shadow:
		0 0 12px var(--color-accent-soft),
		0 0 34px var(--color-accent-soft);
}
/* The little start-up flicker a real neon tube does. */
@keyframes ajnasNeonOn {
	0%   { opacity: 0.25; }
	12%  { opacity: 1; }
	20%  { opacity: 0.4; }
	32%  { opacity: 1; }
	38%  { opacity: 0.65; }
	100% { opacity: 1; }
}

/* ---- the connector line ------------------------------------------ */
.ajnas-journey-line {
	position: relative;
	height: 2px;
	/* Runs through the gap after the block, so consecutive years'
	   segments butt together into one long line. */
	margin-right: calc(-1 * var(--jgap));
	background: var(--color-border);
}
.ajnas-journey-line::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
	box-shadow: 0 0 10px var(--color-accent), 0 0 22px var(--color-accent-soft);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.9s var(--ease);
}
/* is-seen is sticky — once a year has come into view the line behind
   you stays lit, which is what makes the chain read as connected. */
.ajnas-journey-yearblock.is-seen .ajnas-journey-line::after { transform: scaleX(1); }

/* ---- the roles of that year, side by side ------------------------ */
.ajnas-journey-entries {
	display: flex;
	align-items: flex-start;
	gap: var(--jgap);
	opacity: 0.5;
	transition: opacity 0.5s var(--ease);
}
.ajnas-journey-yearblock.is-active .ajnas-journey-entries { opacity: 1; }

.ajnas-journey-entry {
	position: relative;
	flex: 0 0 var(--jcw);
	width: var(--jcw);
	padding-top: 30px;
}

/* One dot per role, sitting on the line at the role's left edge. */
.ajnas-journey-node {
	position: absolute;
	top: -8px; /* centres the 14px dot on the 2px line just above */
	left: 0;
	z-index: 2;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--color-bg);
	border: 2px solid var(--color-border);
	transition: border-color 0.45s var(--ease), background 0.45s var(--ease),
		box-shadow 0.45s var(--ease);
}
.ajnas-journey-yearblock.is-seen .ajnas-journey-node {
	border-color: var(--color-accent);
	background: var(--color-accent);
}
.ajnas-journey-yearblock.is-active .ajnas-journey-node {
	box-shadow: 0 0 0 5px var(--color-accent-soft), 0 0 14px var(--color-accent);
}
/* The year's first dot pulses while that year is active. */
.ajnas-journey-yearblock.is-active .ajnas-journey-entry:first-child .ajnas-journey-node::after {
	content: '';
	position: absolute;
	inset: -4px;
	border-radius: 50%;
	border: 1px solid var(--color-accent);
	animation: ajnasNodePulse 2s var(--ease) infinite;
}
@keyframes ajnasNodePulse {
	0%   { transform: scale(0.8); opacity: 0.9; }
	100% { transform: scale(2.4); opacity: 0; }
}

/* The role text slides in from the right, one role after another. */
.ajnas-journey-card {
	opacity: 0;
	transform: translateX(46px);
	transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
	/* --i is the role's index within its year (set in journey.php). */
	transition-delay: calc(0.2s + var(--i, 0) * 0.16s);
}
.ajnas-journey-yearblock.is-seen .ajnas-journey-card { opacity: 1; transform: none; }
.ajnas-journey-dates { font-size: 13px; color: var(--color-muted); }
.ajnas-journey-role { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; margin: 6px 0 2px; }
.ajnas-journey-company { color: var(--color-accent); font-size: 14px; margin-bottom: 8px; }
.ajnas-journey-desc { color: var(--color-muted); font-size: 14px; }
.ajnas-journey-desc p { margin: 0 0 8px; }

/* ---- scroll affordance (sits under the track, never over content) -- */
.ajnas-journey-hint {
	text-align: center;
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--color-muted);
	pointer-events: none;
}
.ajnas-journey-hint span { animation: ajnasHintFade 2.4s ease-in-out infinite; }
.ajnas-journey-hint-touch { display: none; }
@keyframes ajnasHintFade { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.8; } }

/* Touch devices: "Swipe", and roles snap into place under the year. */
@media (hover: none) {
	.ajnas-journey-hint-mouse { display: none; }
	.ajnas-journey-hint-touch { display: inline; }
}
@media (pointer: coarse) {
	.ajnas-journey-track { scroll-snap-type: x proximity; scroll-padding-left: var(--jedge); }
	.ajnas-journey-entry { scroll-snap-align: start; }
}

/* ---- phones ------------------------------------------------------ */
@media (max-width: 780px) {
	.ajnas-journey-track {
		--jcw: min(78vw, 320px);
		--jgap: 26px;
		padding-top: 68px;
		padding-bottom: 36px;
	}
	.ajnas-journey-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ajnas-journey-year { animation: none !important; }
	.ajnas-journey-node::after { animation: none !important; }
	.ajnas-journey-card { opacity: 1; transform: none; transition: none; }
	.ajnas-journey-line::after { transform: scaleX(1); transition: none; }
	.ajnas-journey-hint span { animation: none; opacity: 0.6; }
}

/* =====================================================================
   VENTURE (shared FUDIKOO / ZNACH component)
   ===================================================================== */
.ajnas-venture {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 56px 0;
	border-bottom: 1px solid var(--color-border);
}
.ajnas-venture--no-image { grid-template-columns: 1fr; }
.ajnas-venture--no-image .ajnas-venture-copy { max-width: 640px; }
.ajnas-venture:last-child { border-bottom: none; }
.ajnas-venture-visual {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4/3;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	padding: 0; margin: 0;
	cursor: default;
}
.ajnas-venture-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
button.ajnas-venture-gallery-trigger { cursor: pointer; }
button.ajnas-venture-gallery-trigger:hover img { transform: scale(1.04); }
.ajnas-venture-gallery-cue {
	position: absolute; left: 20px; bottom: 20px;
	padding: 8px 16px; border-radius: 999px;
	background: rgba(0,0,0,0.55); backdrop-filter: blur(6px);
	color: #fff; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase;
	opacity: 0; transform: translateY(8px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
button.ajnas-venture-gallery-trigger:hover .ajnas-venture-gallery-cue,
button.ajnas-venture-gallery-trigger:focus-visible .ajnas-venture-gallery-cue { opacity: 1; transform: translateY(0); }
.ajnas-venture-role { color: var(--color-accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.ajnas-venture-name { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); margin: 0 0 16px; }
.ajnas-venture-desc { color: var(--color-muted); margin-bottom: 24px; }
.ajnas-venture-focus { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.ajnas-venture-focus span {
	font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 6px 12px; border: 1px solid var(--color-border); border-radius: 999px; color: var(--color-muted);
}
.ajnas-venture-meta { display: flex; align-items: center; gap: 20px; font-size: 13px; color: var(--color-muted); margin-bottom: 20px; }
.ajnas-venture-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 24px; }

/* Status — a small coloured LED + label, not a plain "Active" string. */
.ajnas-status { display: inline-flex; align-items: center; gap: 7px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 12px; }
.ajnas-led--status { width: 6px; height: 6px; box-shadow: none; animation: none; }
.ajnas-status--active .ajnas-led--status { background: #2ecc71; box-shadow: 0 0 5px 1px rgba(46, 204, 113, 0.55); }
.ajnas-status--hold .ajnas-led--status { background: #f39c12; box-shadow: 0 0 5px 1px rgba(243, 156, 18, 0.55); }
.ajnas-status--inactive .ajnas-led--status { background: #e74c3c; box-shadow: 0 0 5px 1px rgba(231, 76, 60, 0.55); }

/* Social links inside a company section render as small round icon
   buttons, matching the Contact/Footer treatment. */
.ajnas-venture-socials { display: flex; align-items: center; gap: 12px; }
.ajnas-venture-social {
	width: 36px; height: 36px;
	border: 1px solid var(--color-border);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	color: var(--color-muted);
	transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.ajnas-venture-social:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
@media (max-width: 900px) { .ajnas-venture { grid-template-columns: 1fr; } }
.ajnas-venture:nth-child(even) .ajnas-venture-visual { order: 2; }
@media (max-width: 900px) { .ajnas-venture:nth-child(even) .ajnas-venture-visual { order: 0; } }

/* =====================================================================
   ZNACH infrastructure flow (rendered inside its venture's description area)
   ===================================================================== */
.ajnas-flow { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; }
.ajnas-flow-step {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; color: var(--color-muted);
}
.ajnas-flow-step strong { color: var(--color-text); }
.ajnas-flow-step::before { content: '↓'; opacity: 0.4; }
.ajnas-flow-step:first-child::before { content: ''; }

/* =====================================================================
   CREATOR
   ===================================================================== */
.ajnas-creator-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.ajnas-creator-card {
	padding: 28px;
	border-radius: var(--radius);
	border: 1px solid var(--color-border);
	background: var(--color-surface);
	transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.ajnas-creator-card:hover { transform: translateY(-6px); border-color: var(--color-accent); }
.ajnas-creator-card h4 { font-family: var(--font-display); font-size: 18px; margin: 0 0 8px; }
.ajnas-creator-card p { color: var(--color-muted); font-size: 14px; margin: 0; }

/* =====================================================================
   NOW
   ===================================================================== */
.ajnas-now-list { list-style: none; padding: 0; margin: 40px 0 0; }
.ajnas-now-list li {
	font-family: var(--font-display);
	font-size: clamp(20px, 3vw, 32px);
	padding: 18px 0;
	border-bottom: 1px solid var(--color-border);
	display: flex; align-items: center; gap: 16px;
}
.ajnas-now-list li::before { content: '●'; color: var(--color-accent); font-size: 10px; }

/* =====================================================================
   ABOUT — editorial
   ===================================================================== */
.ajnas-about-grid {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 60px;
	align-items: start;
}
.ajnas-about-visual {
	aspect-ratio: 3/4;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--color-border);
}
.ajnas-about-visual img { width: 100%; height: 100%; object-fit: cover; }
.ajnas-about-copy p {
	font-family: var(--font-body, 'Manrope', sans-serif);
	font-weight: 400;
	font-size: clamp(17px, 1.6vw, 20px);
	line-height: 1.7;
	margin: 0 0 22px;
	color: var(--color-text);
}
.ajnas-about-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 20px; }
.ajnas-about-meta div { font-size: 13px; color: var(--color-muted); }
.ajnas-about-meta strong { display: block; color: var(--color-text); font-size: 15px; }
@media (max-width: 900px) { .ajnas-about-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   VISION — cinematic close
   ===================================================================== */
.ajnas-vision {
	text-align: center;
	background: radial-gradient(circle at 50% 30%, var(--color-accent-soft), transparent 60%);
}
.ajnas-vision-lines { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 26px); color: var(--color-muted); margin-bottom: 32px; }
.ajnas-vision-lines div { margin: 4px 0; }
.ajnas-vision-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 5vw, 52px); margin: 0 0 12px; }
.ajnas-vision-role { color: var(--color-accent); letter-spacing: 0.1em; font-size: 14px; text-transform: uppercase; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.ajnas-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.ajnas-contact-info div { margin-bottom: 20px; font-size: 15px; }
.ajnas-contact-info span { display: block; color: var(--color-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.ajnas-form-field { margin-bottom: 18px; }
.ajnas-form-field label { display: block; font-size: 13px; color: var(--color-muted); margin-bottom: 6px; }
.ajnas-form-field input, .ajnas-form-field textarea {
	width: 100%;
	padding: 14px 16px;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 10px;
	color: var(--color-text);
}
.ajnas-form-field input:focus, .ajnas-form-field textarea:focus { outline: none; border-color: var(--color-accent); }
.ajnas-form-honeypot { position: absolute; left: -9999px; }
.ajnas-form-status { margin-top: 16px; font-size: 14px; }
.ajnas-form-status.is-success { color: #2fae57; }
.ajnas-form-status.is-error { color: #e0554a; }
@media (max-width: 900px) { .ajnas-contact-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ajnas-footer {
	padding: 28px var(--gutter);
	border-top: 1px solid var(--color-border);
}
.ajnas-footer-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
}
.ajnas-footer-cta {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--color-muted);
}
.ajnas-footer-copyright { font-size: 12px; color: var(--color-muted); opacity: 0.7; }
.ajnas-social-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ajnas-social-links a {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--color-muted);
	transition: color 0.3s var(--ease), transform 0.3s var(--ease);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ajnas-social-links a:hover { color: var(--color-accent); transform: translateX(4px); }

/* =====================================================================
   LONG-FORM CONTENT (project detail, pages, posts)
   ===================================================================== */
.ajnas-entry-content, .ajnas-project-detail-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--color-muted);
}
.ajnas-entry-content h2, .ajnas-project-detail-content h2 {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 34px);
	color: var(--color-text);
	margin: 48px 0 16px;
}
.ajnas-entry-content h3, .ajnas-project-detail-content h3 {
	font-family: var(--font-display);
	font-size: 21px;
	color: var(--color-text);
	margin: 36px 0 12px;
}
.ajnas-entry-content p, .ajnas-project-detail-content p { margin: 0 0 20px; }
.ajnas-entry-content a, .ajnas-project-detail-content a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ajnas-entry-content ul, .ajnas-entry-content ol,
.ajnas-project-detail-content ul, .ajnas-project-detail-content ol { margin: 0 0 20px; padding-left: 22px; }
.ajnas-entry-content li, .ajnas-project-detail-content li { margin-bottom: 8px; }
.ajnas-entry-content blockquote, .ajnas-project-detail-content blockquote {
	margin: 32px 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--color-accent);
	font-family: var(--font-display);
	font-size: 20px;
	color: var(--color-text);
}
.ajnas-entry-content img, .ajnas-project-detail-content img {
	border-radius: var(--radius);
	margin: 24px 0;
}
.ajnas-entry-content code, .ajnas-project-detail-content code {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 0.9em;
}
.ajnas-entry-content pre, .ajnas-project-detail-content pre {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	padding: 20px;
	overflow-x: auto;
	margin: 24px 0;
}

/* Pagination + screen-reader utility */
.pagination, .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.page-numbers {
	padding: 8px 14px;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 14px;
	color: var(--color-muted);
}
.page-numbers.current { background: var(--color-text); color: var(--color-bg); border-color: transparent; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Keyboard focus visibility (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Skip link */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-text);
	color: var(--color-bg);
	padding: 12px 20px;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* =====================================================================
   CERTIFICATIONS
   ===================================================================== */
.ajnas-certs-list {
	list-style: none;
	margin: 40px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 48px;
}
.ajnas-certs-list li {
	display: flex;
	align-items: baseline;
	gap: 20px;
	padding: 18px 0;
	border-bottom: 1px solid var(--color-border);
}
.ajnas-certs-list li:nth-child(1),
.ajnas-certs-list li:nth-child(2) { border-top: 1px solid var(--color-border); }
@media (max-width: 780px) {
	.ajnas-certs-list { grid-template-columns: 1fr; }
	.ajnas-certs-list li:nth-child(2) { border-top: none; }
}
.ajnas-certs-number {
	font-family: var(--font-display);
	font-size: 13px;
	color: var(--color-muted);
	flex-shrink: 0;
	width: 28px;
}
.ajnas-certs-title { font-weight: 600; font-size: 16px; }
.ajnas-certs-issuer { color: var(--color-muted); font-size: 14px; margin-left: auto; text-align: right; }
