/*
Theme Name: Nion Redesign
Theme URI: https://example.com/nion-redesign-theme
Author: Sandra T
Author URI:
Description: A dark, AI-forward agency/business theme recreating the expanded "Nion" Figma site (v.1): homepage plus 10 custom-templated inner pages (What We Do, Application Development, Data & Insights, AI & Workflow Automation, Client Stories, Network, Career, Our Stories, How We Work, Nion Education). Most page content ships as packaged defaults (inc/defaults.php) and simple fields are editable through the free Advanced Custom Fields plugin; navigation runs on WordPress menus, theme-wide settings live in the Customizer, and the initial site content ships as an importable demo set (Appearance -> Nion Setup). Typography uses the self-hosted KH Teka webfont (assets/fonts), matching the Figma design.
Version: 1.2.0
Requires Plugins: advanced-custom-fields
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nion-redesign
*/

/* -------------------------------------------------------------------------
   0. Design tokens (matched to Figma color/type values)
------------------------------------------------------------------------- */
:root {
	--bg: #130019;
	--surface: rgba(32, 5, 41, 0.6);
	--surface-solid: #200529;
	--border-soft: rgba(250, 233, 224, 0.1);
	--border-soft-2: rgba(250, 233, 224, 0.2);
	--border-soft-3: rgba(250, 233, 224, 0.3);
	--text: #fae9e0;
	--text-dim: #cfbbaf;
	--text-muted: #be9f8e;
	--accent: #fa601e;
	--accent-soft: rgba(250, 96, 30, 0.3);
	--purple-glow: rgba(164, 110, 219, 0.1);

	--font-heading: 'KH Teka', 'Segoe UI', system-ui, sans-serif;
	--font-body: 'KH Teka', 'Segoe UI', system-ui, sans-serif;

	--container: 1280px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-pill: 9999px;

	--header-height: 88px;
}

/* -------------------------------------------------------------------------
   1. Reset & base
------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text-dim);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-top: var(--header-height);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--text); margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text { position: absolute; left: -9999px; }

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

/* -------------------------------------------------------------------------
   2. Buttons & links
------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 28px;
	border-radius: var(--radius-pill);
	font-weight: 600;
	font-size: 1rem;
	border: 1px solid transparent;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.92; }
.btn .nion-icon { width: 16px; height: 16px; }
.btn-primary { background: rgba(250, 233, 224, 0.7); color: var(--bg); }
.btn-outline { background: var(--bg); color: var(--text); border-color: var(--border-soft-2); }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border-soft); padding: 14px 24px; }

.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 500; }
.text-link .nion-icon { width: 16px; height: 16px; }

/* -------------------------------------------------------------------------
   3. Header
------------------------------------------------------------------------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 40;
	padding: 24px 0;
	background: var(--bg);
	border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.site-branding img { height: 32px; width: auto; }
.site-logo-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: var(--text); }

.main-navigation { display: flex; align-items: center; gap: 24px; }
.menu-items { display: flex; align-items: center; gap: 45px; }
.menu-items a { color: var(--text-dim); font-size: 1.05rem; }
.menu-items a:hover { color: var(--text); }

.menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--text);
	padding: 4px;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.expanded-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	color: var(--text);
	padding: 4px;
	cursor: pointer;
	flex-shrink: 0;
}
.expanded-menu-toggle .icon-close { display: none; }
.expanded-menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.expanded-menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.expanded-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--bg);
	border-top: 1px solid var(--border-soft);
	border-bottom: 1px solid var(--border-soft);
	z-index: 30;
}
.expanded-menu.is-open { display: block; }

.expanded-menu-inner {
	padding: 48px 0 40px;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 40px;
}

.expanded-menu-vertical { display: flex; flex-direction: column; align-items: flex-start; width: 634px; max-width: 100%; }
.expanded-menu-vertical li { width: 100%; border-bottom: 1px solid var(--border-soft); }
.expanded-menu-vertical a { display: block; padding: 16px 0; text-align: left; color: var(--text-dim); font-size: 1.05rem; }
.expanded-menu-vertical a:hover { color: var(--text); }

.expanded-menu-secondary { display: flex; align-items: center; justify-content: flex-end; gap: 100px; }
.expanded-menu-secondary a { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.expanded-menu-secondary a:hover { color: var(--text); }

.header-contact-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border-soft-2);
	color: var(--text);
	flex-shrink: 0;
}
.header-contact-btn .nion-icon { width: 18px; height: 18px; }

/* -------------------------------------------------------------------------
   4. Hero
------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 96px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); background: var(--purple-glow); z-index: 0; }
.hero-glow-left { width: 800px; height: 800px; left: -25%; top: 10%; }
.hero-glow-right { width: 600px; height: 600px; right: -10%; top: -10%; }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }

/* Grid items default to a content-based minimum width, so the marquee's
   full (un-clipped) intrinsic width — from `.partner-logos { width:
   max-content; }` — was blowing out this column and pushing .hero-orbit
   off-screen, where the section's `overflow: hidden` clipped it away. */
.hero-copy { min-width: 0; }

.hero-heading { font-size: 4.5rem; line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 24px; }
.hero-heading .line-strong { display: block; text-transform: uppercase; color: var(--text); font-size: 3.9rem; }
.hero-heading .line-soft { display: block; color: rgba(250, 233, 224, 0.5); font-size: 0.5em; line-height: 1.25; margin-top: 12px; }

.hero-lead { font-size: 1.25rem; color: var(--text-dim); max-width: 560px; margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }

.hero-partners { padding-top: 24px; border-top: 1px solid var(--border-soft-3); }
.hero-partners-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 24px; }
.hero-partners-label .nion-icon { width: 16px; height: 16px; }
.partner-logos-viewport {
	overflow: hidden; height: 60px;
	-webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 62%, transparent 100%);
	mask-image: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 62%, transparent 100%);
}
.partner-logos {
	display: flex; align-items: center; flex-wrap: nowrap; gap: 48px; height: 60px;
	width: max-content; opacity: 0.5; animation: partner-marquee 28s linear infinite;
}
.partner-logos li { display: flex; align-items: center; height: 100%; flex-shrink: 0; font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.03em; color: var(--text); font-size: 1.05rem; }
.partner-logo-img { height: 100%; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
@keyframes partner-marquee { 0% { transform: translateX(-50%); } 100% { transform: translateX(0%); } }
@media (prefers-reduced-motion: reduce) {
	.partner-logos { animation: none; }
}

/* Orbit visual (pure CSS re-creation of the Figma network diagram) */
.hero-orbit { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin: 0 auto; }
.orbit-glow {
	position: absolute; inset: 8%; border-radius: 50%;
	background: radial-gradient(circle, rgba(250,96,30,0.25), rgba(250,96,30,0) 70%);
}
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid var(--accent-soft); transform-origin: center; }
.orbit-ring-outer { inset: 0; animation: orbit-spin-cw 32s linear infinite; }
.orbit-ring-inner { inset: 15%; border-color: rgba(250, 96, 30, 0.45); animation: orbit-spin-ccw 22s linear infinite; }
.orbit-ring-outer::before {
	content: ''; position: absolute; top: 50%; left: -2px; width: 4px; height: 4px;
	border-radius: 50%; background: rgba(250, 96, 30, 0.35); transform: translateY(-50%);
}
.orbit-ring-inner::before {
	content: ''; position: absolute; top: -2px; left: 50%; width: 4px; height: 4px;
	border-radius: 50%; background: rgba(250, 96, 30, 0.5); transform: translateX(-50%);
}
.orbit-core {
	position: absolute; top: 50%; left: 50%; width: 22%; height: 22%;
	transform: translate(-50%, -50%); border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff9a5a, var(--accent) 55%, #764d3c 100%);
	animation: orbit-core-glow 4s ease-in-out infinite;
}
.orbit-core::after {
	content: ''; position: absolute; inset: 18%; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #ff9a5a, var(--accent) 55%, #764d3c 100%);
	animation: orbit-core-pulse 3.5s ease-in-out infinite;
}
.orbit-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: orbit-drift 6s ease-in-out infinite; }
.orbit-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: orbit-dot-glow 2.5s ease-in-out infinite; }
.orbit-label { font-size: 0.75rem; color: var(--text-dim); background: rgba(19, 0, 25, 0.8); border: 1px solid var(--surface-solid); padding: 5px 10px; border-radius: 4px; white-space: nowrap; }

.node-data       { top: 46%; right: -4%; --orbit-dx: 1;    --orbit-dy: 0; animation-duration: 6s;   animation-delay: 0s; }
.node-processes  { bottom: 8%; right: 12%; --orbit-dx: 0.5;  --orbit-dy: 1; animation-duration: 6.4s; animation-delay: 0.8s; }
.node-people     { bottom: 8%; left: 12%; --orbit-dx: -0.5; --orbit-dy: 1; animation-duration: 6.8s; animation-delay: 1.6s; }
.node-systems    { top: 46%; left: -4%;  --orbit-dx: -1;   --orbit-dy: 0; animation-duration: 7.2s; animation-delay: 2.4s; }
.node-agents     { top: 6%; left: 22%;   --orbit-dx: -0.5; --orbit-dy: -1; animation-duration: 7.6s; animation-delay: 3.2s; }
.node-governance { top: -2%; right: 18%; --orbit-dx: 0.5;  --orbit-dy: -1; animation-duration: 8s;   animation-delay: 4s; }

.node-data .orbit-dot       { animation-duration: 2.5s;  animation-delay: 0s; }
.node-processes .orbit-dot  { animation-duration: 2.75s; animation-delay: 0.24s; }
.node-people .orbit-dot     { animation-duration: 3s;    animation-delay: 0.48s; }
.node-systems .orbit-dot    { animation-duration: 3.25s; animation-delay: 0.72s; }
.node-agents .orbit-dot     { animation-duration: 3.5s;  animation-delay: 0.96s; }
.node-governance .orbit-dot { animation-duration: 3.75s; animation-delay: 1.2s; }

@keyframes orbit-spin-cw   { to { transform: rotate(360deg); } }
@keyframes orbit-spin-ccw  { to { transform: rotate(-360deg); } }
@keyframes orbit-core-glow {
	0%, 100% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.15); }
	50%      { box-shadow: 0 0 45px rgba(250, 96, 30, 0.35); }
}
@keyframes orbit-core-pulse {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.08); }
}
@keyframes orbit-drift {
	0%, 100% { transform: translate(0, 0); }
	25%      { transform: translate(calc(var(--orbit-dx) * 7px), calc(var(--orbit-dy) * 7px)); }
	50%      { transform: translate(0, 0); }
	75%      { transform: translate(calc(var(--orbit-dx) * 2.8px), calc(var(--orbit-dy) * 2.8px)); }
}
@keyframes orbit-dot-glow {
	0%, 100% { box-shadow: 0 0 6px rgba(250, 96, 30, 0.6); }
	50%      { box-shadow: 0 0 16px rgba(250, 96, 30, 1); }
}
@media (prefers-reduced-motion: reduce) {
	.orbit-ring, .orbit-core, .orbit-core::after, .orbit-node, .orbit-dot { animation: none; }
	.orbit-core { box-shadow: 0 0 40px rgba(250, 96, 30, 0.45); }
	.orbit-dot { box-shadow: 0 0 12px rgba(250, 96, 30, 0.8); }
}

/* -------------------------------------------------------------------------
   5. Sections & headings
------------------------------------------------------------------------- */
.section { padding: 96px 0; position: relative; }
.section-bordered { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); overflow: hidden; }
.section-heading { max-width: 768px; margin: 0 auto 64px; }
.section-heading.center { text-align: center; }
.section-heading h2 { font-size: 3rem; }
.section-subheading { display: block; font-size: 1.25rem; margin-bottom: 16px; }
.section-subheading .dim { color: var(--text-muted); }
.section-subheading .bright { color: var(--text); }
.section-subheading::before { content: ''; }
.section-desc { font-size: 1.1rem; }
.section-footer-link { margin-top: 24px; }
.section-footer-link.center { text-align: center; }

.section-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; flex-wrap: wrap; }
.section-heading-row h2 { font-size: 3rem; margin-bottom: 8px; }
.section-subheading-inline { color: var(--text-muted); font-size: 1.25rem; margin: 0; }
.section-subheading-inline .section-subheading-line { display: block; }
.section-subheading-inline .section-subheading-line + .section-subheading-line { margin-top: 4px; }
.section-subheading-single { color: var(--text); font-size: 1.5rem; text-align: center; margin-bottom: 16px; }

/* -------------------------------------------------------------------------
   6. Cards & grids
------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
	background: var(--bg);
	border: 1px solid var(--border-soft);
	border-radius: var(--radius-md);
	padding: 32px;
}
.card h3, .card h4 { margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

.card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: var(--radius-sm);
	background: var(--surface-solid);
	color: var(--accent);
	margin-bottom: 24px;
}
.card-icon-sm { width: 40px; height: 40px; }
.card-icon .nion-icon { width: 22px; height: 22px; }
.platform-card { background: var(--surface-solid); text-align: center; position: relative; overflow: hidden; transition: border-color 0.3s ease; }
.platform-card:hover { border-color: rgba(250, 233, 224, 0.25); }
.platform-card-bar { position: absolute; left: 0; top: 0; height: 4px; width: 100%; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; background-image: linear-gradient(to left, #fa601e, #310f00); }
.platform-card:hover .platform-card-bar { opacity: 1; }
.card-icon-center { margin-left: auto; margin-right: auto; }

.feature-card { background: var(--surface); border-color: var(--border-soft); position: relative; overflow: hidden; transition: border-color 0.3s ease; }
.feature-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.feature-card:hover::before { opacity: 1; }
/* Per-card hover tint, matching the Figma "Nion Software Factory" cards (People / AI Tools / AI Process / Quality, in that fixed order). */
.section-factory .card-grid .feature-card:nth-child(1)::before { background-image: linear-gradient(180deg, rgba(164, 110, 219, 0.15) 0%, rgba(88, 59, 117, 0.15) 100%); }
.section-factory .card-grid .feature-card:nth-child(2)::before { background-image: linear-gradient(180deg, rgba(56, 189, 248, 0.15) 0%, rgba(14, 95, 124, 0.15) 100%); }
.section-factory .card-grid .feature-card:nth-child(3)::before { background-image: linear-gradient(180deg, rgba(99, 102, 241, 0.15) 0%, rgba(49, 51, 121, 0.15) 100%); }
.section-factory .card-grid .feature-card:nth-child(4)::before { background-image: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 95, 70, 0.15) 100%); }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag { border: 1px solid var(--surface-solid); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 0.75rem; color: var(--text-muted); }

/* -------------------------------------------------------------------------
   7. Forward Deployed Engineers section
------------------------------------------------------------------------- */
.fde-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.fde-heading-block { border-left: 4px solid var(--accent); padding-left: 24px; margin-bottom: 32px; }
.fde-heading-block h2 { font-size: 2.75rem; margin-bottom: 8px; }
.fde-abbr { font-size: 1.5rem; color: var(--text-muted); font-weight: 400; font-family: var(--font-body); }
.fde-noun { color: var(--text); font-size: 1.25rem; margin-bottom: 8px; }
.fde-quote { font-style: italic; color: var(--text-muted); font-size: 1.5rem; margin: 0; }
.fde-desc { font-size: 1.1rem; margin-bottom: 32px; }
.fde-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.step-card { padding: 24px; position: relative; overflow: hidden; transition: border-color 0.3s ease; }
.step-card p { font-size: 0.85rem; }
.step-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; background-image: linear-gradient(180deg, rgba(250, 96, 30, 0.05) 0%, rgba(250, 96, 30, 0) 100%); }
.step-card:hover { border-color: rgba(250, 233, 224, 0.25); }
.step-card:hover::before { opacity: 1; }

.section-fde { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); }

/* -------------------------------------------------------------------------
   8. Services section
------------------------------------------------------------------------- */
.section-services { }
.service-card { display: block; position: relative; overflow: hidden; transition: border-color 0.3s ease; }
.service-card:hover { border-color: rgba(250, 233, 224, 0.2); }
.service-card::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; background-image: linear-gradient(221.549deg, rgba(56, 189, 248, 0.05) 14.645%, rgba(56, 189, 248, 0) 85.355%); }
.service-card:hover::before { opacity: 1; }

/* -------------------------------------------------------------------------
   9. Platform section
------------------------------------------------------------------------- */
.section-platform { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.platform-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, var(--purple-glow), transparent 60%); pointer-events: none; }
.badge-pill {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--bg); border: 1px solid rgba(164, 110, 219, 0.3);
	border-radius: var(--radius-pill); padding: 9px 20px; margin-bottom: 24px;
	color: var(--accent); font-size: 0.875rem;
}
.badge-pill .nion-icon { width: 16px; height: 16px; }
.section-cta { margin-top: 56px; }

/* -------------------------------------------------------------------------
   10. Latest posts (dynamic content section)
------------------------------------------------------------------------- */
.post-card-thumb { border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.post-card-thumb img { width: 100%; }
a.post-card { display: block; }
a.post-card h3 { transition: color 0.15s ease; }
a.post-card:hover h3 { color: var(--accent); }

/* -------------------------------------------------------------------------
   11. Footer
------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--surface-solid); padding: 48px 0 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand { max-width: 380px; }
.footer-logo img { height: 24px; margin-bottom: 24px; }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.25rem; color: var(--text); margin-bottom: 24px; }
.footer-tagline { color: var(--text-muted); font-size: 0.875rem; }
.footer-col-title { font-family: var(--font-heading); font-weight: 700; color: var(--text); font-size: 1rem; margin-bottom: 20px; }
.footer-col-lists { display: flex; gap: 60px; }
.footer-list li { margin-bottom: 10px; }
.footer-list a, .footer-list li { color: var(--text-muted); font-size: 0.875rem; }
.footer-list a:hover { color: var(--text); }
.footer-col-legal { min-width: 160px; }

.footer-bottom {
	border-top: 1px solid var(--border-soft);
	padding: 30px 0;
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy, .footer-social a { color: var(--text-muted); font-size: 0.75rem; }
.footer-social a:hover { color: var(--text); }

/* -------------------------------------------------------------------------
   12. Inner pages (blog, page, single, 404, search)
------------------------------------------------------------------------- */
.inner-page { padding: 72px 0 96px; }
.inner-layout { display: grid; grid-template-columns: 1fr; gap: 48px; }
.inner-layout.has-sidebar { grid-template-columns: 2fr 1fr; }
.page-title { font-size: 2.75rem; margin-bottom: 24px; }
.page-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; }
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 2rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.5rem; margin-top: 1.4em; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--text-muted); font-style: italic; }
.entry-content img { border-radius: var(--radius-md); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; list-style: revert; }

/* Single post — no sidebar, wider editorial reading column */
.single-post-page { padding-top: 56px; }
.single-post-back { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 40px; transition: color 0.2s ease; }
.single-post-back:hover { color: var(--text); }
.single-post-back .nion-icon { width: 16px; height: 16px; }
.single-post-header { margin-bottom: 40px; }
.single-post-category { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.single-post-category .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.single-post-category a { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.single-post-title { font-size: 3rem; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.single-post-meta { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.875rem; }
.single-post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-soft-3); flex-shrink: 0; }

.single-post-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 56px; aspect-ratio: 16 / 9; position: relative; }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-post-thumb::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%); pointer-events: none; }
.single-post-thumb-orange  { background: linear-gradient(135deg, rgba(250, 96, 30, 0.35), rgba(19, 0, 25, 0.9)); }
.single-post-thumb-purple  { background: linear-gradient(135deg, rgba(164, 110, 219, 0.35), rgba(19, 0, 25, 0.9)); }
.single-post-thumb-indigo  { background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(19, 0, 25, 0.9)); }
.single-post-thumb-emerald { background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(19, 0, 25, 0.9)); }
.single-post-thumb-sky     { background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(19, 0, 25, 0.9)); }
.single-post-thumb-amber   { background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(19, 0, 25, 0.9)); }

.single-post-content { font-size: 1.125rem; line-height: 1.85; color: var(--text-dim); }
.single-post-content > * + * { margin-top: 1.4em; }
.single-post-content h2 { font-size: 1.875rem; line-height: 1.3; letter-spacing: -0.01em; margin-top: 1.8em; color: var(--text); }
.single-post-content h3 { font-size: 1.375rem; line-height: 1.4; margin-top: 1.6em; color: var(--text); }
.single-post-content strong { color: var(--text); }
.single-post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.single-post-content a:hover { opacity: 0.8; }
.single-post-content blockquote { margin: 0.4em 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--accent); color: var(--text); font-size: 1.25rem; line-height: 1.6; font-style: italic; }
.single-post-content img { border-radius: var(--radius-lg); }
.single-post-content ul, .single-post-content ol { padding-left: 1.4em; list-style: revert; }
.single-post-content li + li { margin-top: 0.5em; }
.single-post-content li::marker { color: var(--accent); }
.single-post-content hr { border: none; border-top: 1px solid var(--border-soft); margin: 2.6em 0; }
.single-post-content code { background: var(--surface-solid); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.single-post-content pre { background: var(--surface-solid); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px; overflow-x: auto; }
.single-post-content pre code { background: none; padding: 0; }
.single-post-content .wp-caption-text { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-top: 0.5em; }

.single-post-more { margin: 88px auto 0; padding-top: 56px; border-top: 1px solid var(--border-soft); }
.single-post-more-label { color: var(--text-muted); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.single-post-more-card { position: relative; overflow: hidden; transition: border-color 0.2s ease; }
.single-post-more-card:hover { border-color: rgba(250, 233, 224, 0.18); }
.single-post-more-card:hover h3 { color: #fff; }
.single-post-more-card-accent { position: absolute; left: 0; top: 0; height: 3px; width: 100%; opacity: 0; transition: opacity 0.3s ease; }
.single-post-more-card:hover .single-post-more-card-accent { opacity: 1; }
.single-post-more-card-cat { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.single-post-more-card-cat .dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.single-post-more-card h3 { font-size: 1.05rem; margin: 0; transition: color 0.15s ease; }

.post-meta-top { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.post-list { display: flex; flex-direction: column; gap: 24px; }
.post-list-item { }

.archive-header, .page-header { margin-bottom: 40px; }
.archive-description { color: var(--text-muted); }

.pagination { display: flex; gap: 16px; margin-top: 48px; }
.pagination a, .pagination span { padding: 8px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-sm); color: var(--text-dim); }
.pagination .current { background: var(--surface-solid); color: var(--text); }

.widget { margin-bottom: 32px; }
.widget-title { font-family: var(--font-heading); color: var(--text); font-weight: 700; margin-bottom: 16px; }

.error-404-page { text-align: center; padding: 120px 0; }
.error-eyebrow { color: var(--accent); font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; }
.error-404-content { max-width: 480px; margin: 0 auto; }
.error-404-content .btn { margin-top: 24px; }

.comments-wrap { margin-top: 56px; border-top: 1px solid var(--border-soft); padding-top: 40px; }
.comments-wrap ol.comment-list { list-style: none; padding: 0; }
.comments-wrap .comment-form input[type="text"],
.comments-wrap .comment-form input[type="email"],
.comments-wrap .comment-form input[type="url"],
.comments-wrap .comment-form textarea {
	width: 100%; background: var(--surface-solid); border: 1px solid var(--border-soft);
	color: var(--text); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px;
}
.comments-wrap .comment-form .submit {
	background: var(--accent); color: var(--bg); border: none; padding: 12px 24px;
	border-radius: var(--radius-pill); font-weight: 600;
}

/* -------------------------------------------------------------------------
   13. Alignment & WP block basics (for page/post content)
------------------------------------------------------------------------- */
.alignwide { max-width: calc(var(--container) - 120px); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); max-width: none; }
.wp-caption-text { color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* -------------------------------------------------------------------------
   14. Responsive
------------------------------------------------------------------------- */
@media (max-width: 1024px) {
	.hero-inner { grid-template-columns: 1fr; }
	.hero-orbit { max-width: 380px; margin-top: 40px; }
	.card-grid-4, .card-grid-5 { grid-template-columns: repeat(2, 1fr); }
	.fde-grid { grid-template-columns: 1fr; }
	.inner-layout.has-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.main-navigation .menu-items {
		display: none;
		position: absolute; top: 100%; left: 0; right: 0;
		flex-direction: column; align-items: flex-start; gap: 0;
		background: var(--bg); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
		padding: 16px 24px;
	}
	.main-navigation .menu-items.is-open { display: flex; }
	.main-navigation .menu-items li { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-soft); }
	.menu-toggle { display: block; }

	.expanded-menu-inner { align-items: stretch; padding: 32px 0; }
	.expanded-menu-vertical { width: 100%; max-width: none; align-items: flex-start; }
	.expanded-menu-vertical a { text-align: left; }
	.expanded-menu-secondary { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 16px; }

	.hero-heading { font-size: 2.75rem; }
	.section-heading h2, .section-heading-row h2 { font-size: 2.25rem; }
	.fde-heading-block h2 { font-size: 2rem; }
	.single-post-title { font-size: 2.25rem; }
	.single-post-content { font-size: 1.0625rem; }
	.card-grid-3 { grid-template-columns: 1fr; }
	.card-grid-4, .card-grid-5 { grid-template-columns: 1fr; }
	.fde-steps { grid-template-columns: 1fr; }
	.footer-top { flex-direction: column; }
	.footer-col-lists { gap: 32px; }
	.section { padding: 64px 0; }
}

@media (max-width: 480px) {
	.hero-heading { font-size: 2.1rem; }
	.hero-actions { flex-direction: column; align-items: stretch; }
	.btn { justify-content: center; }
}

/* -------------------------------------------------------------------------
   15. Shared inner-page hero (used by the custom page-templates/*.php files)
------------------------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding: 64px 0 72px; border-bottom: 1px solid var(--border-soft); }
.page-hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; background: var(--purple-glow); filter: blur(70px); right: -15%; top: -30%; z-index: 0; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero-eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--accent); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
	font-weight: 600; margin-bottom: 20px;
}
.page-hero-title { font-size: 3.25rem; line-height: 1.1; margin-bottom: 20px; }
.page-hero-lead { font-size: 1.2rem; color: var(--text-dim); max-width: 680px; margin-bottom: 0; }
.page-breadcrumb { display: flex; gap: 8px; align-items: center; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 24px; }
.page-breadcrumb a { color: var(--text-muted); }
.page-breadcrumb a:hover { color: var(--text); }

@media (max-width: 768px) {
	.page-hero-title { font-size: 2.25rem; }
	.page-hero { padding: 48px 0 56px; }
}
