/* ========================================================================
   Ethical AI — Main Stylesheet
   ========================================================================
   Tokens are set in :root (light) and overridden in [data-theme="dark"].
   The Customizer injects --brand-primary, --brand-accent, --font-display,
   and --font-body via inline <style>, so this sheet only defines the
   structural tokens and component styles.
   ======================================================================== */

:root {
	--brand-primary: #004AAD;
	--brand-accent:  #E26A2B;
	--brand-ink:     #1a1d29;
	--brand-mute:    #6b6e7a;

	--bg:        #faf7f2;
	--bg-2:      #f1ece2;
	--surface:   #ffffff;
	--line:      rgba(26,29,41,.12);
	--line-2:    rgba(26,29,41,.06);
	--text:      var(--brand-ink);
	--text-mute: var(--brand-mute);
	--invert:    #ffffff;

	--font-display: 'Fraunces', Georgia, serif;
	--font-body:    'Manrope', sans-serif;
	--font-mono:    'JetBrains Mono', ui-monospace, monospace;

	--radius:    4px;
	--radius-lg: 10px;
	--max:       1240px;
	--pad:       clamp(20px, 4vw, 56px);
	--ease:      cubic-bezier(.2,.7,.1,1);
}

[data-theme="dark"] {
	--bg:        #0e0f14;
	--bg-2:      #15171f;
	--surface:   #181a23;
	--line:      rgba(255,255,255,.10);
	--line-2:    rgba(255,255,255,.05);
	--text:      #ece7dc;
	--text-mute: #9aa0b0;
	--invert:    #0e0f14;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	background: var(--bg);
	color: var(--text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	transition: background .4s var(--ease), color .4s var(--ease);
	overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--brand-accent); color: #fff; }

.screen-reader-text {
	clip: rect(1px,1px,1px,1px); position: absolute !important;
	height: 1px; width: 1px; overflow: hidden; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--text); color: var(--invert);
	padding: 12px 20px; border-radius: 0 0 6px 0;
	font-size: 14px;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.grain {
	position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .25 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
	mix-blend-mode: multiply;
}
[data-theme="dark"] .grain { mix-blend-mode: screen; opacity: .15; }

/* NAV */
.nav {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: blur(14px) saturate(140%);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	background: color-mix(in srgb, var(--bg) 75%, transparent);
	border-bottom: 1px solid var(--line-2);
}
.nav-inner {
	display: flex; align-items: center; justify-content: space-between;
	height: 76px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 48px; width: auto; max-width: 220px; }
.brand-name {
	font-family: var(--font-display); font-weight: 600; font-size: 22px;
	letter-spacing: -.01em; font-variation-settings: "SOFT" 50;
}
.brand-name .accent { color: var(--brand-accent); }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a, .nav-links li a {
	font-size: 14px; color: var(--text-mute);
	transition: color .2s var(--ease); position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
	content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
	height: 1px; background: var(--brand-accent);
	transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
	padding: 10px 18px; border: 1px solid var(--text);
	border-radius: 999px; font-size: 13px; font-weight: 600;
	transition: all .25s var(--ease);
}
.nav-cta:hover { background: var(--text); color: var(--invert); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* HERO */
.hero {
	padding-block: clamp(60px, 10vw, 140px) clamp(80px, 12vw, 180px);
	position: relative;
}
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-mono);
	font-size: 11px; text-transform: uppercase; letter-spacing: .2em;
	color: var(--text-mute);
	padding: 8px 14px; border: 1px solid var(--line);
	border-radius: 999px; margin-bottom: 32px;
}
.eyebrow::before {
	content: ''; width: 6px; height: 6px; border-radius: 50%;
	background: var(--brand-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 25%, transparent);
	animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
	0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-accent) 25%, transparent); }
	50%      { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-accent) 0%, transparent); }
}

.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

h1.hero-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(48px, 8vw, 112px);
	line-height: .95;
	letter-spacing: -.035em;
	margin: 0 0 28px;
	font-variation-settings: "opsz" 144, "SOFT" 30;
}
h1.hero-title em {
	font-style: italic; font-weight: 300;
	color: var(--brand-accent);
	font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-lede {
	font-size: clamp(17px, 1.6vw, 20px);
	max-width: 52ch; color: var(--text-mute);
	margin: 0 0 40px; line-height: 1.5;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 16px 26px; border-radius: 999px;
	font-weight: 600; font-size: 15px;
	transition: all .25s var(--ease);
	border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--text); color: var(--invert); }
.btn-primary:hover { background: var(--brand-accent); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }

.helix-stage { position: relative; aspect-ratio: 4/5; max-width: 460px; margin-inline: auto; }
.helix-stage svg { width: 100%; height: 100%; }
.helix-stage::before {
	content: ''; position: absolute; inset: -10%;
	background: radial-gradient(circle at 50% 50%,
		color-mix(in srgb, var(--brand-accent) 18%, transparent) 0%,
		transparent 60%);
	filter: blur(40px); z-index: -1;
}
.helix-strand-a { stroke: var(--brand-primary); }
.helix-strand-b { stroke: var(--brand-accent); }
.helix-rung    { stroke: var(--text-mute); }
.helix-node-a  { fill: var(--brand-accent); }
.helix-node-b  { fill: var(--brand-primary); }

.meta-strip {
	margin-top: 80px;
	display: grid; grid-template-columns: repeat(4, 1fr);
	gap: 32px; padding-top: 32px;
	border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .meta-strip { grid-template-columns: repeat(2,1fr); } }
.meta-stat .num {
	font-family: var(--font-display);
	font-size: clamp(36px, 4vw, 52px);
	font-weight: 500; letter-spacing: -.03em; line-height: 1;
	font-variation-settings: "opsz" 144;
}
.meta-stat .label {
	font-family: var(--font-mono);
	font-size: 11px; text-transform: uppercase; letter-spacing: .15em;
	color: var(--text-mute); margin-top: 12px;
}

/* SECTIONS */
section { padding-block: clamp(80px, 10vw, 140px); position: relative; z-index: 2; }
.section-label {
	display: flex; align-items: center; gap: 16px;
	font-family: var(--font-mono); font-size: 12px;
	text-transform: uppercase; letter-spacing: .2em;
	color: var(--text-mute); margin-bottom: 32px;
}
.section-label::before { content: ''; width: 36px; height: 1px; background: var(--brand-accent); }
h2.section-title, .section-title {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(36px, 5vw, 64px);
	line-height: 1.05; letter-spacing: -.025em;
	margin: 0 0 24px; max-width: 18ch;
	font-variation-settings: "opsz" 144, "SOFT" 50;
}
h2.section-title em, .section-title em {
	font-style: italic; color: var(--brand-accent); font-weight: 300;
}

/* PRINCIPLES */
.principles {
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle {
	padding: 40px 28px;
	border-right: 1px solid var(--line);
	position: relative; transition: background .3s var(--ease);
}
.principles .principle:last-child { border-right: 0; }
@media (max-width: 980px) {
	.principle:nth-child(2n) { border-right: 0; }
	.principle:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
	.principle { border-right: 0 !important; border-bottom: 1px solid var(--line); }
	.principle:last-child { border-bottom: 0; }
}
.principle:hover { background: var(--bg-2); }
.principle .pn {
	font-family: var(--font-mono); font-size: 11px;
	letter-spacing: .15em; text-transform: uppercase;
	color: var(--brand-accent); margin-bottom: 24px;
}
.principle h3 {
	font-family: var(--font-display);
	font-weight: 500; font-size: 24px;
	letter-spacing: -.02em; margin: 0 0 12px;
	font-variation-settings: "opsz" 36;
}
.principle p { font-size: 14.5px; color: var(--text-mute); margin: 0; line-height: 1.6; }

/* SOLUTIONS */
.sol-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .sol-grid { grid-template-columns: 1fr; } }
.sol-card {
	padding: 40px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: transform .35s var(--ease), border-color .35s var(--ease);
	position: relative; overflow: hidden;
}
.sol-card:hover { transform: translateY(-4px); border-color: var(--brand-accent); }
.sol-card::before {
	content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
	background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
	transform: scaleX(0); transform-origin: left;
	transition: transform .5s var(--ease);
}
.sol-card:hover::before { transform: scaleX(1); }
.sol-card .icon {
	width: 44px; height: 44px; display: grid; place-items: center;
	border-radius: 50%;
	background: color-mix(in srgb, var(--brand-accent) 12%, transparent);
	color: var(--brand-accent); margin-bottom: 24px;
}
.sol-card h3 {
	font-family: var(--font-display);
	font-weight: 500; font-size: 26px; letter-spacing: -.02em;
	margin: 0 0 12px;
}
.sol-card p { color: var(--text-mute); margin: 0 0 20px; font-size: 15px; }
.sol-card .more {
	font-family: var(--font-mono); font-size: 12px;
	text-transform: uppercase; letter-spacing: .15em;
	color: var(--text); display: inline-flex; gap: 8px; align-items: center;
}
.sol-card .more::after { content: '→'; transition: transform .25s var(--ease); }
.sol-card:hover .more::after { transform: translateX(4px); }

/* PROCESS */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
@media (max-width: 880px) { .process { grid-template-columns: 1fr; gap: 40px; } }
.steps { display: flex; flex-direction: column; }
.step {
	padding: 28px 0;
	border-bottom: 1px solid var(--line);
	display: grid; grid-template-columns: 64px 1fr; gap: 24px;
	cursor: pointer;
	transition: padding-left .3s var(--ease);
}
.step:hover { padding-left: 12px; }
.step:last-child { border-bottom: 0; }
.step .sn {
	font-family: var(--font-display);
	font-size: 36px; font-weight: 300; font-style: italic;
	color: var(--brand-accent); line-height: 1;
}
.step h4 {
	font-family: var(--font-display);
	font-weight: 500; font-size: 22px; letter-spacing: -.015em;
	margin: 0 0 8px;
}
.step p { color: var(--text-mute); margin: 0; font-size: 14.5px; }

/* PRICING */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .pricing { grid-template-columns: 1fr; } }
.tier {
	padding: 40px 32px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	display: flex; flex-direction: column;
	position: relative;
}
.tier.featured {
	background: var(--text); color: var(--invert);
	border-color: var(--text); transform: scale(1.02);
}
.tier.featured .tier-name,
.tier.featured .tier-desc,
.tier.featured ul li { color: var(--invert); }
.tier.featured .price { color: var(--brand-accent); }
.tier.featured .price-suffix { color: color-mix(in srgb, var(--invert) 60%, transparent); }
.tier-badge {
	position: absolute; top: -12px; left: 32px;
	background: var(--brand-accent); color: #fff;
	font-family: var(--font-mono); font-size: 10px;
	letter-spacing: .15em; text-transform: uppercase;
	padding: 6px 12px; border-radius: 999px;
}
.tier-name {
	font-family: var(--font-display); font-size: 22px; font-weight: 500;
	margin: 0 0 8px;
}
.tier-desc { font-size: 14px; color: var(--text-mute); margin: 0 0 24px; min-height: 42px; }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px; }
.price {
	font-family: var(--font-display); font-size: 56px; font-weight: 400;
	letter-spacing: -.03em; line-height: 1;
	font-variation-settings: "opsz" 144;
}
.price-suffix { font-size: 14px; color: var(--text-mute); }
.tier ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.tier ul li {
	padding: 10px 0; border-top: 1px solid var(--line);
	font-size: 14px; display: flex; align-items: center; gap: 10px;
}
.tier ul li::before { content: '✓'; color: var(--brand-accent); font-weight: 700; }
.tier .btn { width: 100%; justify-content: center; }
.tier.featured .btn-primary { background: var(--brand-accent); color: #fff; }

/* TESTIMONIAL */
.quote {
	background: var(--bg-2);
	border-radius: var(--radius-lg);
	padding: clamp(40px, 6vw, 80px);
	position: relative; overflow: hidden;
}
.quote::before {
	content: '“'; position: absolute;
	top: -40px; left: 20px;
	font-family: var(--font-display);
	font-size: 280px; line-height: 1;
	color: color-mix(in srgb, var(--brand-accent) 20%, transparent);
	font-style: italic;
}
.quote blockquote {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(24px, 3vw, 38px);
	line-height: 1.25; letter-spacing: -.02em;
	margin: 0 0 32px; max-width: 28ch;
	position: relative; z-index: 1;
	font-variation-settings: "opsz" 60;
}
.quote-author {
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	font-family: var(--font-mono); font-size: 12px;
	text-transform: uppercase; letter-spacing: .15em;
}
.quote-author .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-accent); }
.quote-author .role { color: var(--text-mute); }

/* CTA */
.cta-final {
	text-align: center;
	padding-block: clamp(80px, 10vw, 140px);
	border-top: 1px solid var(--line);
}
.cta-final h2 {
	font-family: var(--font-display);
	font-size: clamp(40px, 6vw, 80px);
	font-weight: 400; line-height: 1; letter-spacing: -.03em;
	margin: 0 0 32px;
	font-variation-settings: "opsz" 144, "SOFT" 50;
}
.cta-final h2 em { font-style: italic; color: var(--brand-accent); font-weight: 300; }

/* FOOTER */
footer[role="contentinfo"] {
	border-top: 1px solid var(--line);
	padding-block: 60px 32px;
	background: var(--bg-2);
}
.foot-grid {
	display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
	margin-bottom: 60px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h5 {
	font-family: var(--font-mono); font-size: 11px;
	text-transform: uppercase; letter-spacing: .15em;
	color: var(--text-mute); margin: 0 0 16px;
}
.foot-grid ul, .foot-grid .menu { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li, .foot-grid .menu li { padding: 6px 0; font-size: 14px; }
.foot-grid ul li a:hover, .foot-grid .menu li a:hover { color: var(--brand-accent); }
.foot-bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding-top: 32px; border-top: 1px solid var(--line);
	font-size: 13px; color: var(--text-mute);
}
.foot-tag { max-width: 32ch; font-size: 14px; color: var(--text-mute); margin: 12px 0 0; }

/* BLOG / POST CARDS */
.post-list-section { padding-block: clamp(80px, 10vw, 140px); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 40px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
	padding: 24px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); border-color: var(--brand-accent); }
.post-thumb { display: block; overflow: hidden; border-radius: 6px; margin-bottom: 16px; }
.post-thumb img { transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-meta {
	font-family: var(--font-mono); font-size: 11px;
	text-transform: uppercase; letter-spacing: .15em;
	color: var(--text-mute); margin-bottom: 12px;
}
.post-title {
	font-family: var(--font-display);
	font-size: 24px; font-weight: 500; letter-spacing: -.02em;
	margin: 0 0 12px;
}
.post-title a:hover { color: var(--brand-accent); }
.post-excerpt { font-size: 14.5px; color: var(--text-mute); margin: 0 0 16px; line-height: 1.55; }
.post-card .more {
	font-family: var(--font-mono); font-size: 11px;
	text-transform: uppercase; letter-spacing: .15em;
	color: var(--text); display: inline-flex; gap: 8px; align-items: center;
}
.post-card .more::after { content: '→'; transition: transform .25s var(--ease); }
.post-card:hover .more::after { transform: translateX(4px); }

.pagination { margin-top: 48px; display: flex; justify-content: center; }
.pagination .nav-links { gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px;
	font-size: 14px; color: var(--text-mute);
	transition: all .2s;
}
.pagination .page-numbers:hover { color: var(--text); border-color: var(--text-mute); }
.pagination .page-numbers.current { background: var(--text); color: var(--invert); border-color: var(--text); }

/* SINGLE POST / PAGE */
.single-post, .single-page { padding-block: clamp(60px, 8vw, 120px); }
.post-header, .page-header { margin-bottom: 40px; }
.post-feature { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; }
.post-feature img { width: 100%; }
.prose { font-size: 17px; line-height: 1.7; }
.prose h2 {
	font-family: var(--font-display); font-weight: 500;
	font-size: 32px; letter-spacing: -.015em;
	margin: 48px 0 16px;
}
.prose h3 {
	font-family: var(--font-display); font-weight: 500;
	font-size: 22px; margin: 32px 0 12px;
}
.prose p { margin: 0 0 1.5em; }
.prose a { color: var(--brand-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-accent); }
.prose blockquote {
	border-left: 3px solid var(--brand-accent);
	padding: 8px 0 8px 20px; margin: 32px 0;
	font-family: var(--font-display); font-style: italic;
	font-size: 22px;
}
.prose code {
	font-family: var(--font-mono); font-size: .9em;
	background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
}
.prose pre {
	background: var(--bg-2); padding: 20px; border-radius: 8px;
	overflow-x: auto; font-family: var(--font-mono); font-size: 14px;
}
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { border-radius: 8px; margin: 24px 0; }

.post-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags .tag {
	padding: 6px 12px; font-size: 12px;
	font-family: var(--font-mono); letter-spacing: .1em;
	background: var(--bg-2); border-radius: 999px;
}
.post-tags .tag:hover { background: var(--brand-accent); color: #fff; }

/* COMMENTS */
.comments-area { margin-top: 80px; padding-top: 40px; border-top: 1px solid var(--line); }
.comments-title {
	font-family: var(--font-display); font-weight: 500;
	font-size: 24px; margin: 0 0 32px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 40px; }
.comment-list .comment { padding: 24px 0; border-bottom: 1px solid var(--line); }
.comment-list .comment:last-child { border-bottom: 0; }
.comment-author { font-weight: 600; font-size: 14px; }
.comment-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); }
.comment-form {
	display: flex; flex-direction: column; gap: 16px;
}
.comment-form label { font-size: 13px; color: var(--text-mute); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	padding: 12px 14px;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--line); border-radius: 6px;
	font-family: inherit; font-size: 15px;
	width: 100%;
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus {
	outline: none; border-color: var(--brand-accent);
}
.form-submit input[type="submit"] {
	padding: 14px 26px; background: var(--text); color: var(--invert);
	border-radius: 999px; border: 0; cursor: pointer;
	font-weight: 600; font-size: 14px;
	transition: background .2s;
}
.form-submit input[type="submit"]:hover { background: var(--brand-accent); }

/* SEARCH FORM */
.search-form {
	display: flex; gap: 8px;
}
.search-field {
	flex: 1;
	padding: 12px 14px;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--line); border-radius: 999px;
	font-family: inherit; font-size: 15px;
}
.search-field:focus { outline: none; border-color: var(--brand-accent); }

/* WORDPRESS-SPECIFIC ALIGNMENT CLASSES */
.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide  { width: 100%; max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.wp-caption { max-width: 100%; }
.wp-caption-text {
	font-family: var(--font-mono); font-size: 12px;
	color: var(--text-mute); margin-top: 8px; text-align: center;
}
.sticky { position: relative; }
.sticky::before {
	content: 'Pinned'; position: absolute; top: 16px; right: 16px;
	font-family: var(--font-mono); font-size: 10px;
	letter-spacing: .15em; text-transform: uppercase;
	padding: 4px 8px; background: var(--brand-accent); color: #fff;
	border-radius: 999px; z-index: 1;
}
.bypostauthor { /* hook for styling */ }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }

/* REVEAL ANIMATION */
.reveal {
	opacity: 0; transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ========================================================================
   BANNER SLIDER (Swiper)
   ======================================================================== */
.banner-slider {
	position: relative;
	overflow: hidden;
	background: var(--bg);
}
.banner-swiper {
	width: 100%;
	min-height: clamp(520px, 78vh, 760px);
}
.banner-slide {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: clamp(520px, 78vh, 760px);
	padding-block: clamp(80px, 10vw, 120px);
	overflow: hidden;
	color: var(--text);
}

/* Image-backed slides */
.banner-slide.has-image {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #fff;
}
.banner-slide.has-image::after {
	/* Gentle ken-burns zoom for life */
	content: '';
	position: absolute; inset: 0;
	pointer-events: none;
	background: inherit;
	background-size: cover; background-position: center;
	animation: kenburns 12s ease-out forwards;
	opacity: 0;
}
.swiper-slide-active.banner-slide.has-image::after { opacity: 1; }
@keyframes kenburns {
	from { transform: scale(1); }
	to   { transform: scale(1.06); }
}
.banner-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Image-less branded slides — use brand-color gradients */
.banner-slide.no-image {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--brand-primary) 6%, var(--bg)) 0%,
		var(--bg) 50%,
		color-mix(in srgb, var(--brand-accent) 4%, var(--bg)) 100%);
}
.banner-slide.no-image.grad-b {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--brand-accent) 8%, var(--bg)) 0%,
		var(--bg) 60%);
}
.banner-slide.no-image.grad-c {
	background: linear-gradient(135deg,
		var(--bg) 0%,
		color-mix(in srgb, var(--brand-primary) 10%, var(--bg)) 100%);
}
[data-theme="dark"] .banner-slide.no-image {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--brand-primary) 14%, var(--bg)) 0%,
		var(--bg) 60%,
		color-mix(in srgb, var(--brand-accent) 10%, var(--bg)) 100%);
}

/* Helix illustration on imageless slides */
.banner-helix {
	position: absolute;
	right: -4%;
	top: 50%;
	transform: translateY(-50%);
	width: clamp(360px, 40vw, 580px);
	aspect-ratio: 4/5;
	z-index: 0;
	opacity: .9;
}
.banner-helix::before {
	content: '';
	position: absolute;
	inset: -8%;
	background: radial-gradient(circle at 50% 50%,
		color-mix(in srgb, var(--brand-accent) 22%, transparent) 0%,
		transparent 60%);
	filter: blur(50px);
	z-index: -1;
}
.banner-helix svg { width: 100%; height: 100%; }
@media (max-width: 880px) {
	.banner-helix { right: -30%; opacity: .35; }
}

/* Content */
.banner-content {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 40px;
}
.banner-inner { max-width: 720px; flex: 1; }
.banner-slide.align-center .banner-content { text-align: center; }
.banner-slide.align-center .banner-inner { margin-inline: auto; }
.banner-slide.align-right  .banner-content { justify-content: flex-end; text-align: right; }
.banner-slide.align-right  .banner-inner   { margin-left: auto; }
.banner-slide.align-right  .banner-mark    { display: none; }

.banner-eyebrow {
	margin-bottom: 28px;
	background: color-mix(in srgb, var(--bg) 50%, transparent);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.banner-slide.has-image .banner-eyebrow {
	color: rgba(255,255,255,.85);
	border-color: rgba(255,255,255,.25);
	background: rgba(0,0,0,.25);
}

.banner-heading {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(40px, 6.5vw, 88px);
	line-height: .98;
	letter-spacing: -.03em;
	margin: 0 0 24px;
	font-variation-settings: "opsz" 144, "SOFT" 30;
}
.banner-heading em {
	font-style: italic;
	font-weight: 300;
	color: var(--brand-accent);
	font-variation-settings: "opsz" 144, "SOFT" 100;
	display: inline-block;
}
.banner-slide.has-image .banner-heading em {
	color: var(--brand-accent);
	text-shadow: 0 2px 30px rgba(0,0,0,.4);
}

.banner-subhead {
	font-size: clamp(16px, 1.5vw, 19px);
	max-width: 56ch;
	color: var(--text-mute);
	margin: 0 0 36px;
	line-height: 1.5;
}
.banner-slide.has-image .banner-subhead { color: rgba(255,255,255,.8); }
.banner-slide.align-center .banner-subhead { margin-inline: auto; }
.banner-slide.align-right  .banner-subhead { margin-left: auto; }

.banner-slide.has-image .banner-cta {
	background: var(--brand-accent);
	color: #fff;
}
.banner-slide.has-image .banner-cta:hover { background: var(--brand-primary); }

/* Brand watermark in bottom-right corner */
.banner-mark {
	width: 80px;
	flex-shrink: 0;
	opacity: .8;
	transition: opacity .3s var(--ease);
}
.banner-mark img {
	width: 100%;
	height: auto;
	display: block;
}
.banner-slide.has-image .banner-mark {
	filter: brightness(0) invert(1);
	opacity: .7;
}
@media (max-width: 720px) { .banner-mark { display: none; } }

/* Animate slide content in on activation */
.banner-slide .banner-eyebrow,
.banner-slide .banner-heading,
.banner-slide .banner-subhead,
.banner-slide .banner-cta {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.swiper-slide-active.banner-slide .banner-eyebrow { opacity: 1; transform: none; transition-delay: .15s; }
.swiper-slide-active.banner-slide .banner-heading { opacity: 1; transform: none; transition-delay: .25s; }
.swiper-slide-active.banner-slide .banner-subhead { opacity: 1; transform: none; transition-delay: .4s; }
.swiper-slide-active.banner-slide .banner-cta     { opacity: 1; transform: none; transition-delay: .55s; }

/* Pagination dots */
.banner-pagination {
	position: absolute;
	bottom: 28px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	display: flex !important;
	gap: 8px;
	width: auto !important;
}
.banner-pagination .swiper-pagination-bullet {
	width: 32px;
	height: 3px;
	border-radius: 0;
	background: currentColor;
	opacity: .25;
	transition: opacity .3s, transform .3s;
	margin: 0 !important;
}
.banner-pagination .swiper-pagination-bullet-active {
	opacity: 1;
	background: var(--brand-accent);
	transform: scaleY(1.6);
}

/* Arrows */
.banner-prev, .banner-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--bg) 60%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--text);
	cursor: pointer;
	transition: all .25s var(--ease);
	margin: 0 !important;
}
.banner-prev::after, .banner-next::after { content: none; }
.banner-prev { left: 24px; }
.banner-next { right: 24px; }
.banner-prev:hover, .banner-next:hover {
	background: var(--text);
	color: var(--invert);
	border-color: var(--text);
}
.banner-slide.has-image ~ .banner-prev,
.banner-slide.has-image ~ .banner-next {
	background: rgba(0,0,0,.3);
	color: #fff;
	border-color: rgba(255,255,255,.25);
}
@media (max-width: 720px) {
	.banner-prev, .banner-next { display: none; }
}

/* Hide default Swiper arrow text */
.swiper-button-prev::after, .swiper-button-next::after { font-size: 0 !important; }

/* Section that holds meta-strip below the slider */
.meta-strip-section {
	padding-block: clamp(40px, 5vw, 80px);
	border-bottom: 1px solid var(--line);
}

/* ========================================================================
   POWERED BY (footer attribution)
   ======================================================================== */
.powered-by {
	font-size: 13px;
	color: var(--text-mute);
}
.powered-by a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .2s var(--ease);
	border-bottom: 1px dashed transparent;
	padding-bottom: 1px;
}
.powered-by a:hover {
	color: var(--brand-accent);
	border-bottom-color: var(--brand-accent);
}
.powered-by svg {
	opacity: .6;
	transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.powered-by a:hover svg {
	opacity: 1;
	transform: translate(2px, -2px);
}

/* ========================================================================
   COLORFUL SECTION VARIANTS
   ======================================================================== */

/* Deep navy section with white text */
.section-dark {
	background: linear-gradient(135deg, #0c1632 0%, #1a1d29 60%, #0e0f14 100%);
	color: #ece7dc;
	position: relative;
	overflow: hidden;
}
.section-dark::before {
	content: '';
	position: absolute;
	top: -200px; right: -200px;
	width: 600px; height: 600px;
	background: radial-gradient(circle,
		color-mix(in srgb, var(--brand-accent) 30%, transparent) 0%,
		transparent 70%);
	filter: blur(80px);
	pointer-events: none;
}
.section-dark::after {
	content: '';
	position: absolute;
	bottom: -200px; left: -200px;
	width: 500px; height: 500px;
	background: radial-gradient(circle,
		color-mix(in srgb, var(--brand-primary) 35%, transparent) 0%,
		transparent 70%);
	filter: blur(80px);
	pointer-events: none;
}
.section-dark .wrap { position: relative; z-index: 1; }

.section-label-light {
	color: rgba(236, 231, 220, .6) !important;
}
.section-label-light::before { background: var(--brand-accent) !important; }

.section-title-light {
	color: #fff !important;
}
.section-title-light em { color: var(--brand-accent) !important; }

/* Principles on dark — bright cards with glowing borders */
.principles-on-dark {
	border-top: 1px solid rgba(255,255,255,.15) !important;
	border-bottom: 1px solid rgba(255,255,255,.15) !important;
}
.principles-on-dark .principle {
	border-right: 1px solid rgba(255,255,255,.12) !important;
	transition: background .3s var(--ease), transform .3s var(--ease);
}
.principles-on-dark .principle:hover {
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--brand-primary) 25%, transparent),
		color-mix(in srgb, var(--brand-accent) 15%, transparent)) !important;
	transform: translateY(-2px);
}
.principles-on-dark .principle .pn { color: var(--brand-accent) !important; }
.principles-on-dark .principle h3 { color: #fff !important; }
.principles-on-dark .principle p { color: rgba(236, 231, 220, .7) !important; }

/* Quote on dark — punchier */
.quote-on-dark {
	background: rgba(255, 255, 255, .04) !important;
	border: 1px solid rgba(255, 255, 255, .08);
}
.quote-on-dark blockquote { color: #fff; }
.quote-on-dark .quote-author { color: #fff; }
.quote-on-dark .quote-author .role { color: rgba(255, 255, 255, .55); }
.quote-on-dark::before {
	color: color-mix(in srgb, var(--brand-accent) 35%, transparent) !important;
}

/* Warm orange-tinted background section (Solutions) */
.section-warm {
	background:
		radial-gradient(circle at 100% 0%,
			color-mix(in srgb, var(--brand-accent) 18%, transparent) 0%,
			transparent 50%),
		radial-gradient(circle at 0% 100%,
			color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%,
			transparent 50%),
		linear-gradient(135deg, #fff5ec 0%, var(--bg-2) 100%);
	position: relative;
}
[data-theme="dark"] .section-warm {
	background:
		radial-gradient(circle at 100% 0%,
			color-mix(in srgb, var(--brand-accent) 25%, transparent) 0%,
			transparent 50%),
		linear-gradient(135deg, #1a1f2e 0%, var(--bg-2) 100%);
}

/* Solutions cards with vibrant tops */
.section-warm .sol-card {
	background: var(--surface);
	box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.section-warm .sol-card:nth-child(1)::before { background: linear-gradient(90deg, #004AAD, #1e72d8); transform: scaleX(1); }
.section-warm .sol-card:nth-child(2)::before { background: linear-gradient(90deg, #E26A2B, #f59e0b); transform: scaleX(1); }
.section-warm .sol-card:nth-child(3)::before { background: linear-gradient(90deg, #0F766E, #14b8a6); transform: scaleX(1); }
.section-warm .sol-card:nth-child(4)::before { background: linear-gradient(90deg, #7c3aed, #ec4899); transform: scaleX(1); }
.section-warm .sol-card:nth-child(1) .icon { background: color-mix(in srgb, #004AAD 15%, transparent); color: #004AAD; }
.section-warm .sol-card:nth-child(2) .icon { background: color-mix(in srgb, #E26A2B 15%, transparent); color: #E26A2B; }
.section-warm .sol-card:nth-child(3) .icon { background: color-mix(in srgb, #0F766E 15%, transparent); color: #0F766E; }
.section-warm .sol-card:nth-child(4) .icon { background: color-mix(in srgb, #7c3aed 15%, transparent); color: #7c3aed; }

/* Vibrant blue section (Pricing) */
.section-blue {
	background:
		radial-gradient(circle at 20% 0%,
			color-mix(in srgb, var(--brand-accent) 20%, transparent) 0%,
			transparent 40%),
		linear-gradient(135deg, #003585 0%, #004AAD 50%, #0a5fc7 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.section-blue::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.section-blue .tier {
	background: rgba(255, 255, 255, .08);
	backdrop-filter: blur(10px);
	border-color: rgba(255, 255, 255, .18);
	color: #fff;
}
.section-blue .tier:hover {
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .35);
	transform: translateY(-4px);
}
.section-blue .tier-name { color: #fff; }
.section-blue .tier-desc { color: rgba(255, 255, 255, .7); }
.section-blue .price { color: var(--brand-accent); }
.section-blue .price-suffix { color: rgba(255, 255, 255, .55); }
.section-blue .tier ul li {
	color: rgba(255, 255, 255, .85);
	border-top-color: rgba(255, 255, 255, .12);
}
.section-blue .tier ul li::before { color: var(--brand-accent); }

.section-blue .tier.featured {
	background: linear-gradient(135deg, var(--brand-accent), #ff8c4a);
	border-color: var(--brand-accent);
	box-shadow: 0 20px 60px -20px rgba(226, 106, 43, .6);
}
.section-blue .tier.featured .tier-name,
.section-blue .tier.featured .tier-desc,
.section-blue .tier.featured ul li,
.section-blue .tier.featured .price,
.section-blue .tier.featured .price-suffix { color: #fff !important; }
.section-blue .tier.featured ul li { border-top-color: rgba(255, 255, 255, .25); }
.section-blue .tier.featured ul li::before { color: #fff; }
.section-blue .tier.featured .tier-badge {
	background: #fff;
	color: var(--brand-accent);
}

.section-blue .btn-ghost {
	border-color: rgba(255,255,255,.4);
	color: #fff;
}
.section-blue .btn-ghost:hover {
	border-color: #fff;
	background: rgba(255,255,255,.1);
}
.section-blue .tier.featured .btn-primary {
	background: #fff;
	color: var(--brand-accent);
}
.section-blue .tier.featured .btn-primary:hover {
	background: rgba(255,255,255,.9);
}

/* CTA on warm orange gradient */
.cta-orange {
	background:
		radial-gradient(circle at 80% 100%,
			color-mix(in srgb, var(--brand-primary) 25%, transparent) 0%,
			transparent 50%),
		linear-gradient(135deg, #c84d12 0%, var(--brand-accent) 50%, #f08743 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
	border-top: 0;
}
.cta-orange::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
.cta-orange::after {
	content: '';
	position: absolute;
	width: 600px; height: 600px;
	top: -300px; left: -200px;
	background: radial-gradient(circle, rgba(255,255,255,.15), transparent 70%);
	filter: blur(40px);
}
.cta-orange .wrap { position: relative; z-index: 1; }
.cta-orange h2 { color: #fff; }
.cta-orange h2 em { color: #1a1d29; font-style: italic; }
.cta-lede {
	color: rgba(255, 255, 255, .85);
	max-width: 48ch;
	margin: 0 auto 40px;
	font-size: 17px;
	line-height: 1.5;
}
.cta-final.cta-orange { text-align: center; }

.btn-on-orange {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 18px 32px;
	background: #fff;
	color: #1a1d29;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	transition: all .25s var(--ease);
	box-shadow: 0 10px 40px -10px rgba(0,0,0,.4);
}
.btn-on-orange:hover {
	background: #1a1d29;
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 15px 50px -10px rgba(0,0,0,.5);
}
.btn-on-orange svg { transition: transform .25s var(--ease); }
.btn-on-orange:hover svg { transform: translateX(4px); }

/* Dark footer */
.footer-dark {
	background: linear-gradient(180deg, #0e0f14 0%, #06080d 100%) !important;
	color: rgba(236, 231, 220, .8) !important;
	border-top: 1px solid rgba(255, 255, 255, .08) !important;
	position: relative;
	overflow: hidden;
}
.footer-dark::before {
	content: '';
	position: absolute;
	top: 0; left: 50%;
	transform: translateX(-50%);
	width: 80%; height: 1px;
	background: linear-gradient(90deg, transparent, rgba(226, 106, 43, .4), transparent);
}
.footer-dark .foot-grid h5 { color: rgba(236, 231, 220, .55); }
.footer-dark .foot-grid ul li a,
.footer-dark .foot-grid .menu li a { color: rgba(236, 231, 220, .85); }
.footer-dark .foot-grid ul li a:hover { color: var(--brand-accent); }
.footer-dark .foot-tag { color: rgba(236, 231, 220, .6); }
.footer-dark .foot-bottom {
	border-top-color: rgba(255, 255, 255, .08);
	color: rgba(236, 231, 220, .55);
}
.footer-dark .powered-by a {
	color: rgba(236, 231, 220, .8);
}
.footer-dark .powered-by a:hover {
	color: var(--brand-accent);
	border-bottom-color: var(--brand-accent);
}
.footer-dark .brand-name { color: #fff; }
.footer-dark .brand-mark { filter: brightness(0) invert(1); opacity: .9; }
