/* ==========================================================================
   Wizcrew theme styles
   Brand colors come from the logo: orange #FA9428, blue #0F6C9D.
   ========================================================================== */

:root {
	--blue: #0F6C9D;
	--blue-700: #0A4F74;
	--blue-600: #0C5D87;
	--blue-300: #5BB4E5;
	--blue-100: #E2F1FA;
	--orange: #FA9428;
	--orange-600: #E27B10;
	--orange-300: #FFC27F;
	--orange-100: #FFF1E1;
	--ink: #0B1B2B;
	--ink-2: #2B3F54;
	--muted: #5A6E83;
	--line: #DFE7EE;
	--mist: #F3F7FA;
	--white: #FFFFFF;
	--navy: #061321;
	--navy-2: #0B2135;
	--navy-line: rgba(140, 190, 230, 0.16);
	--on-dark: #EAF3FA;
	--on-dark-muted: #9DB3C7;

	--font-head: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
	--font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 18px;
	--radius-sm: 12px;
	--radius-lg: 28px;
	--shadow-sm: 0 1px 2px rgba(11, 27, 43, 0.06), 0 2px 8px rgba(11, 27, 43, 0.05);
	--shadow: 0 10px 30px -10px rgba(11, 27, 43, 0.18), 0 2px 6px rgba(11, 27, 43, 0.05);
	--shadow-lg: 0 30px 60px -20px rgba(11, 27, 43, 0.28);
	--header-h: 76px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--container: 1200px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-600); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; color: inherit; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

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

.icon { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	--bg: var(--blue); --fg: #fff;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	padding: 0.8em 1.35em; border-radius: 999px; border: 1.5px solid transparent;
	background: var(--bg); color: var(--fg); font-weight: 600; font-size: 0.95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn--primary { --bg: var(--orange); --fg: #1B1003; box-shadow: 0 8px 24px -8px rgba(250, 148, 40, 0.7); }
.btn--primary:hover { --bg: #FFA544; box-shadow: 0 12px 30px -8px rgba(250, 148, 40, 0.85); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--dark:hover { --bg: var(--blue); }
.btn--outline { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn--outline:hover { --fg: var(--blue); border-color: var(--blue); }
.btn--ghost-light { --bg: rgba(255, 255, 255, 0.06); --fg: #fff; border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --bg: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.88rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em;
	font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 1.1em;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow--light { color: var(--orange-300); }
.eyebrow__dot { display: none; }
.hero .eyebrow::before { display: none; }
.hero .eyebrow__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(250, 148, 40, 0.2); animation: pulse 2s infinite; }

.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--navy); color: var(--on-dark); position: relative; isolation: isolate; }
.section--dark .section-lead, .section--dark p { color: var(--on-dark-muted); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; }
.section-head--split > div { max-width: 640px; }
.section-head--split .section-lead { max-width: 440px; margin: 0; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 0.4em; }
.section-title--sm { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.section-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); line-height: 1.6; }

.icon-badge {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
	background: linear-gradient(140deg, var(--blue-100), #fff); color: var(--blue);
	border: 1px solid #CFE5F3; flex: none;
}
.icon-badge .icon { width: 24px; height: 24px; }
.icon-badge--dark { background: rgba(91, 180, 229, 0.1); border-color: var(--navy-line); color: var(--blue-300); width: 40px; height: 40px; border-radius: 12px; }
.icon-badge--dark .icon { width: 20px; height: 20px; }

.check-list { list-style: none; padding: 0; margin: 1.5em 0 0; display: grid; gap: 0.8em; }
.check-list li { display: flex; gap: 0.75em; align-items: flex-start; color: var(--ink-2); }
.check-list .icon { color: #fff; background: var(--blue); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.check-list--light li { color: var(--on-dark); }
.check-list--light .icon { background: var(--orange); color: var(--ink); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Hero content animates in on load instead of on scroll. */
.js .hero .reveal, .js .hero .reveal.is-visible { opacity: 1; transform: none; animation: rise-in 0.9s var(--ease) both; animation-delay: calc(0.1s + var(--i, 0) * 120ms); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100; height: var(--header-h);
	background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
	border-bottom: 1px solid rgba(11, 27, 43, 0.06);
	transition: box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px -12px rgba(11, 27, 43, 0.2); background: rgba(255, 255, 255, 0.94); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.site-header__brand { flex: none; }
.site-logo img, .custom-logo { height: 46px; width: auto; }
.custom-logo-link { display: block; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: background 0.2s, color 0.2s; }
.site-nav .menu a:hover, .site-nav .menu .current-menu-item > a:not([href*="#"]), .site-nav .menu .current_page_parent > a { background: var(--blue-100); color: var(--blue); }
.site-nav .menu .sub-menu { display: none; }
.site-nav__cta { display: none; }
.site-header__cta { flex: none; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); background: linear-gradient(90deg, var(--blue), var(--orange)); }
body:not(.single-post) .read-progress { display: none; }

@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.site-header__cta { display: none; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px 24px 28px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
		transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all 0.3s var(--ease);
	}
	.nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
	.site-nav .menu { flex-direction: column; }
	.site-nav .menu a { padding: 12px 14px; font-size: 1.05rem; }
	.site-nav__cta { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: max(820px, calc(100svh - var(--header-h)));
	display: flex; flex-direction: column; overflow: hidden;
	background:
		radial-gradient(60% 50% at 50% 72%, rgba(15, 108, 157, 0.35), transparent 70%),
		radial-gradient(40% 40% at 85% 10%, rgba(250, 148, 40, 0.12), transparent 70%),
		linear-gradient(180deg, #061321 0%, #071a2d 100%);
}
.flow-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: -1; }
.hero__grid-bg {
	position: absolute; inset: 0; z-index: -2; pointer-events: none;
	background-image: linear-gradient(rgba(140, 190, 230, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 190, 230, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero__content { position: relative; padding-top: clamp(24px, 4vh, 48px); text-align: center; max-width: 1080px; }
.hero .eyebrow { margin-bottom: 0.8em; }
@media (min-width: 521px) { .hero__title em { white-space: nowrap; } }
.hero__title { font-size: clamp(2.1rem, 4.8vw, 3.9rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0 auto 0.3em; color: #fff; }
.hero__title em { font-style: normal; background: linear-gradient(90deg, var(--orange) 0%, #FFC27F 45%, var(--blue-300) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { font-size: clamp(1rem, 1.4vw, 1.12rem); color: var(--on-dark-muted) !important; max-width: 720px; margin: 0 auto 1.4em; }
.hero__actions .btn--lg { padding: 0.85em 1.45em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Gravity Core scene: the canvas draws its own background once WebGL is running. */
.hero-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; z-index: -1; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-canvas.is-ready { opacity: 1; }
.hero::after { /* fade the bottom so the act labels stay readable over the scene */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none;
	background: linear-gradient(to bottom, rgba(5, 15, 27, 0), rgba(5, 15, 27, 0.9));
}
.hero__content::before { /* soft dark backdrop behind the copy */
	content: ""; position: absolute; inset: 0 -6% -6%; z-index: -1; pointer-events: none; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(5, 15, 27, 0.55), rgba(5, 15, 27, 0));
}
.hero__content { isolation: isolate; }
.hero__stage { position: relative; flex: 1; min-height: 380px; display: flex; flex-direction: column; padding-bottom: 28px; }
.hero__anchor { flex: 1; min-height: 300px; pointer-events: none; }

.hero-acts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero-act button {
	width: 100%; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; row-gap: 10px; align-items: start;
	padding: 0; border: 0; background: none; color: var(--on-dark-muted); text-align: left; cursor: pointer; font: inherit;
}
.hero-act__num { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: rgba(157, 179, 199, 0.6); padding-top: 2px; transition: color 0.4s; }
.hero-act__text { display: flex; flex-direction: column; gap: 1px; font-size: 0.84rem; line-height: 1.4; text-shadow: 0 2px 10px rgba(5, 15, 27, 0.9); }
.hero-act__text strong { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: rgba(234, 243, 250, 0.7); transition: color 0.4s; }
.hero-act__bar { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: rgba(140, 190, 230, 0.16); overflow: hidden; }
.hero-act__bar i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--orange), #FFD08A); }
.hero-act.is-active .hero-act__num { color: var(--orange); }
.hero-act.is-active .hero-act__text strong { color: #fff; }
.hero-act button:hover .hero-act__text strong { color: #fff; }
.hero-act button:focus-visible { outline-offset: 6px; }

@media (max-width: 520px) { .source-list { grid-template-columns: 1fr; } .hero__actions .btn { width: 100%; max-width: 320px; } .hero .eyebrow, .cta-band .eyebrow { font-size: 0.68rem; letter-spacing: 0.08em; } }
@media (max-width: 760px) {
	.hero__stage { min-height: 470px; }
	.hero__anchor { min-height: 400px; }
	.hero-acts { gap: 10px; }
	.hero-act__text span { display: none; }
	.hero-act__text strong { font-size: 0.85rem; }
	.hero-act button { grid-template-columns: 1fr; row-gap: 6px; }
}
}

/* ---------- Tools marquee ---------- */
.tools { background: var(--navy); border-top: 1px solid var(--navy-line); padding: 26px 0; color: var(--on-dark-muted); overflow: hidden; }
.tools__label { text-align: center; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__list { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 7px; }
.marquee__list li { padding: 8px 18px; border: 1px solid var(--navy-line); border-radius: 999px; font-family: var(--font-head); font-weight: 500; color: #CFE0EE; white-space: nowrap; background: rgba(255, 255, 255, 0.02); }
.tools:hover .marquee__track { animation-play-state: paused; }

/* ---------- Journey (3D stack) ---------- */
.journey__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.journey__visual { position: sticky; top: calc(var(--header-h) + 40px); height: 520px; display: grid; place-items: center; perspective: 1400px; }
.stack { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-42deg); transition: transform 1s var(--ease); }
.stack__layer {
	position: absolute; inset: 0; transform-style: preserve-3d;
	transform: translateZ(calc(var(--z) * 1px)); transition: transform 0.9s var(--ease), opacity 0.6s;
}
.stack__layer--1 { --z: 0; }
.stack__layer--2 { --z: 95; }
.stack__layer--3 { --z: 190; }
.stack__face {
	position: absolute; inset: 0; border-radius: 26px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 241, 250, 0.9));
	border: 1.5px solid #C9E1F0;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, -24px 24px 50px -10px rgba(11, 27, 43, 0.18);
	display: flex; flex-direction: column; justify-content: space-between; padding: 26px;
	transition: background 0.6s, border-color 0.6s, box-shadow 0.6s;
}
.stack__face::after { /* layer thickness */
	content: ""; position: absolute; left: 10px; right: -10px; bottom: -14px; height: 14px; border-radius: 0 0 22px 22px;
	background: linear-gradient(90deg, #BFD9EA, #9CC4DE); transform-origin: top; transform: rotateX(-90deg); opacity: 0.8;
}
.stack__num { font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.stack__name { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--ink); letter-spacing: -0.03em; }
.stack__dots { display: grid; grid-template-columns: repeat(3, 14px); gap: 8px; align-self: flex-end; }
.stack__dots i { width: 14px; height: 14px; border-radius: 4px; background: #C7DDEB; transition: background 0.5s, transform 0.5s; }
.stack__layer.is-active .stack__face {
	background: linear-gradient(135deg, var(--blue) 0%, var(--blue-700) 100%); border-color: var(--blue-300);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, -30px 30px 70px -10px rgba(15, 108, 157, 0.55);
}
.stack__layer.is-active .stack__name, .stack__layer.is-active .stack__num { color: #fff; }
.stack__layer.is-active .stack__dots i { background: var(--orange); }
.stack__layer.is-active .stack__dots i:nth-child(odd) { background: #FFC27F; }
.stack__layer.is-active { --lift: 30px; }
.stack__layer.is-active, .stack__layer.is-past { transform: translateZ(calc(var(--z) * 1px + var(--lift, 0px))); }
.stack__layer.is-past .stack__face { background: linear-gradient(135deg, #FFF6EC, #FFE6CA); border-color: var(--orange-300); }
.stack__layer.is-past .stack__dots i { background: var(--orange-300); }
.stack__beam {
	position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
	transform: translateZ(0); transform-style: preserve-3d;
}
.stack__beam::before {
	content: ""; position: absolute; left: 0; bottom: 0; width: 6px; height: 240px; transform-origin: bottom center;
	transform: rotateX(-90deg); background: linear-gradient(to top, rgba(250, 148, 40, 0), var(--orange) 60%, #fff); filter: blur(1px); opacity: 0.85;
}

.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.journey-step {
	padding: 30px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
	transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease); min-height: 220px;
}
.journey-step.is-active { border-color: rgba(15, 108, 157, 0.35); box-shadow: var(--shadow); transform: translateX(-6px); }
.journey-step__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.journey-step__num { font-family: var(--font-head); font-weight: 700; color: var(--orange); }
.journey-step__tag { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.journey-step__mult { margin-left: auto; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; padding: 4px 12px; border-radius: 999px; background: var(--blue-100); color: var(--blue); }
.journey-step.is-active .journey-step__mult { background: var(--orange); color: var(--ink); }
.journey-step h3 { font-size: 1.6rem; }
.journey-step h3 span { color: var(--muted); font-weight: 500; font-size: 0.75em; letter-spacing: -0.01em; }
.journey-step p { color: var(--ink-2); margin: 0; }

@media (max-width: 900px) {
	.journey__layout { grid-template-columns: 1fr; }
	.journey__visual { position: relative; top: 0; height: 380px; }
	.stack { width: 220px; height: 220px; }
	.stack__layer--2 { --z: 70; }
	.stack__layer--3 { --z: 140; }
	.stack__name { font-size: 1.9rem; }
}

/* ---------- Cards / tilt ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1080px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .card-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .card-grid--4 { grid-template-columns: 1fr; } }

.tilt-card { perspective: 900px; }
.tilt-card__inner {
	position: relative; height: 100%; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	box-shadow: var(--shadow-sm); transform-style: preserve-3d;
	transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.5s var(--ease), box-shadow 0.4s, border-color 0.4s;
	overflow: hidden;
}
.tilt-card__inner::before { /* light that follows the cursor */
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(250, 148, 40, 0.12), transparent 45%);
}
.tilt-card:hover .tilt-card__inner { box-shadow: var(--shadow-lg); border-color: #CBE0EE; transition: transform 0.12s linear, box-shadow 0.4s, border-color 0.4s; }
.tilt-card:hover .tilt-card__inner::before { opacity: 1; }
.tilt-card__inner > * { transform: translateZ(24px); }
.tilt-card__num { position: absolute; top: 24px; right: 28px; font-family: var(--font-head); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--mist); }
.tilt-card h3 { font-size: 1.3rem; margin: 22px 0 12px; }
.tilt-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

.service-card__top { display: flex; justify-content: space-between; align-items: center; }
.service-card__kind { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--orange-600); background: var(--orange-100); padding: 5px 10px; border-radius: 999px; }
.service-card ul { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 0.92rem; color: var(--ink-2); }
.service-card li { padding-left: 18px; position: relative; }
.service-card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); transform: rotate(45deg); }
.services .card-grid--4 .service-card:first-child .tilt-card__inner { background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%); border-color: var(--blue); color: #fff; }
.services .service-card:first-child p, .services .service-card:first-child li { color: #D7EAF6; }
.services .service-card:first-child .icon-badge { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); color: #fff; }
.services .service-card:first-child .service-card__kind { background: var(--orange); color: var(--ink); }
.services .service-card:first-child ul { border-color: rgba(255, 255, 255, 0.25); }
.services .service-card:first-child li::before { background: var(--orange); }

/* ---------- Knowledge section ---------- */
.knowledge { overflow: hidden; background: radial-gradient(60% 70% at 75% 50%, rgba(15, 108, 157, 0.28), transparent 70%), var(--navy); }
.knowledge__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.knowledge__swap { display: inline-block; transition: opacity 0.35s, transform 0.35s var(--ease); }
.knowledge__swap.is-swapping { opacity: 0; transform: translateY(10px); }
.source-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.source-list li { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font-weight: 500; font-size: 0.95rem; }
.knowledge__visual { position: relative; aspect-ratio: 1 / 0.92; min-height: 380px; cursor: grab; }
.knowledge__visual:active { cursor: grabbing; }
.knowledge-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.knowledge__hint { position: absolute; bottom: 8px; right: 8px; font-size: 0.75rem; color: var(--on-dark-muted); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }

.toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--navy-line); }
.toggle__btn { position: relative; z-index: 1; border: 0; background: none; color: var(--on-dark-muted); padding: 10px 22px; border-radius: 999px; font-weight: 600; cursor: pointer; transition: color 0.3s; }
.toggle__btn.is-active { color: var(--ink); }
.toggle__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--orange); transition: transform 0.45s var(--ease), background 0.45s; }
.toggle.is-on .toggle__thumb { transform: translateX(100%); background: var(--blue-300); }

@media (max-width: 900px) {
	.knowledge__layout { grid-template-columns: minmax(0, 1fr); }
	.knowledge__visual { min-height: 340px; }
}

/* ---------- Agent demo ---------- */
.agents__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.agent-demo { position: relative; perspective: 1400px; padding: 30px 10px; }
.agent-demo__window {
	position: relative; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
	transform: rotateY(-10deg) rotateX(6deg); transform-style: preserve-3d; transition: transform 0.8s var(--ease); overflow: hidden;
}
.agent-demo:hover .agent-demo__window { transform: rotateY(-3deg) rotateX(2deg); }
.agent-demo__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--mist); border-bottom: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.agent-demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: #E4E9EE; }
.agent-demo__bar i:first-child { background: #FF8A7A; }
.agent-demo__bar i:nth-child(2) { background: var(--orange-300); }
.agent-demo__bar i:nth-child(3) { background: #8FD6A5; }
.agent-demo__bar span { margin-left: 10px; }
.agent-demo__body { padding: 22px; display: grid; gap: 14px; min-height: 430px; align-content: start; font-size: 0.92rem; }
.agent-demo__msg { padding: 14px 16px; border-radius: 16px; max-width: 92%; }
.agent-demo__msg p { margin: 0; color: var(--ink-2); }
.agent-demo__msg--user { justify-self: end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; min-height: 48px; }
.agent-demo__msg--ai { background: var(--mist); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.agent-demo__sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agent-demo__sources span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--blue); font-weight: 600; }
.agent-demo__sources .icon { width: 13px; height: 13px; }
.agent-demo__tasks { border: 1px solid #CBE0EE; border-radius: 16px; padding: 14px 16px; background: linear-gradient(180deg, #F6FBFE, #fff); }
.agent-demo__tasks-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); margin: 0 0 10px; font-family: var(--font-head); }
.agent-demo__tasks ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.agent-demo__tasks li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); opacity: 0.35; transition: opacity 0.4s; }
.agent-demo__tasks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line); transition: all 0.3s; }
.agent-demo__tasks li.is-done { opacity: 1; }
.agent-demo__tasks li.is-done::before { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }
.agent-demo__tasks li.is-approval.is-done::before { border-color: var(--orange); background: var(--orange-100); animation: pulse 1.6s infinite; }
.agent-demo__tasks li button { margin-left: auto; border: 0; border-radius: 999px; padding: 4px 12px; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 0.78rem; }
.js [data-demo-step] { opacity: 0; transform: translateY(10px); transition: opacity 0.5s, transform 0.5s var(--ease); }
.js [data-demo-step].is-shown { opacity: 1; transform: none; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: #fff; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.agent-demo__float {
	position: absolute; display: grid; grid-template-columns: auto auto; column-gap: 10px; align-items: center;
	padding: 12px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 0.8rem; color: var(--muted);
	animation: float 6s ease-in-out infinite;
}
.agent-demo__float .icon { grid-row: span 2; width: 26px; height: 26px; color: var(--orange); }
.agent-demo__float strong { font-family: var(--font-head); color: var(--ink); font-size: 1rem; line-height: 1.1; }
.agent-demo__float--a { left: -14px; top: 12px; }
.agent-demo__float--b { right: -6px; bottom: 0; animation-delay: -3s; }
.agent-demo__float--b .icon { color: var(--blue); }
@media (max-width: 900px) {
	.agents__layout { grid-template-columns: 1fr; }
	.agent-demo__window { transform: none; }
	.agent-demo__float--a { left: 0; top: 0; }
}

/* ---------- Process timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.timeline__track { position: absolute; left: 0; right: 0; top: 27px; height: 3px; background: var(--line); border-radius: 3px; }
.timeline__fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--orange)); transform-origin: left; transform: scaleX(var(--progress, 0)); transition: transform 0.2s linear; }
.timeline__node { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); margin-bottom: 26px; transition: border-color 0.4s, background 0.4s, box-shadow 0.4s; }
.timeline__node span { font-family: var(--font-head); font-weight: 700; color: var(--muted); }
.timeline__phase.is-reached .timeline__node { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 8px rgba(250, 148, 40, 0.18); }
.timeline__phase.is-reached .timeline__node span { color: var(--ink); }
.timeline__card { height: calc(100% - 82px); padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.timeline__weeks { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--blue); font-weight: 700; margin-bottom: 6px; }
.timeline__card h3 { font-size: 1.5rem; }
.timeline__card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.timeline__card li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.timeline__card li .icon { color: var(--blue); margin-top: 3px; width: 18px; height: 18px; }
@media (max-width: 900px) {
	.timeline { grid-template-columns: 1fr; padding-left: 76px; }
	.timeline__track { left: 26px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
	.timeline__fill { transform-origin: top; transform: scaleY(var(--progress, 0)); width: 100%; }
	.timeline__node { position: absolute; left: -76px; margin: 0; }
	.timeline__phase { position: relative; }
	.timeline__card { height: auto; }
}

/* ---------- Why now ---------- */
.why-now { overflow: hidden; }
.why-now__orbit { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); pointer-events: none; z-index: -1; perspective: 900px; }
.why-now__orbit span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--navy-line); transform: rotateX(72deg); animation: spin 30s linear infinite; }
.why-now__orbit span::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 20px var(--orange); }
.why-now__orbit span:nth-child(2) { inset: 150px; animation-duration: 22s; animation-direction: reverse; }
.why-now__orbit span:nth-child(2)::after { background: var(--blue-300); box-shadow: 0 0 20px var(--blue-300); }
.why-now__orbit span:nth-child(3) { inset: 300px; animation-duration: 16s; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { padding: 36px 32px; border-radius: var(--radius); border: 1px solid var(--navy-line); background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01)); backdrop-filter: blur(4px); text-align: center; }
.stat__value { font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.6rem); font-weight: 700; line-height: 1; color: #fff !important; margin-bottom: 14px; letter-spacing: -0.04em; }
.stat__value span { background: linear-gradient(180deg, #fff, var(--orange-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__value small { font-size: 1rem; color: var(--orange-300); letter-spacing: 0; font-weight: 600; }
.stat__label { margin: 0; }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr; } }

/* ---------- First call ---------- */
.first-call__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.takeaways { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.takeaway { display: flex; gap: 20px; padding: 24px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.takeaway:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.takeaway h3 { font-size: 1.2rem; margin-bottom: 6px; }
.takeaway p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .first-call__layout { grid-template-columns: 1fr; } }

/* ---------- Power moves ---------- */
.power-moves__layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.power-moves__copy { position: sticky; top: calc(var(--header-h) + 40px); }
.moves { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: move; }
.move { display: flex; gap: 22px; align-items: flex-start; padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.move__num { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: #fff; background: linear-gradient(140deg, var(--orange), var(--orange-600)); border-radius: 12px; width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.move h3 { font-size: 1.15rem; margin-bottom: 4px; }
.move p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 900px) { .power-moves__layout { grid-template-columns: 1fr; } .power-moves__copy { position: static; } }

/* ---------- FAQ ---------- */
.faq__layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.accordion { display: grid; gap: 12px; }
.accordion__item { border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); transition: box-shadow 0.3s, border-color 0.3s; }
.accordion__item[open] { box-shadow: var(--shadow); border-color: #CBE0EE; }
.accordion__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue-100); color: var(--blue); transition: transform 0.3s var(--ease), background 0.3s; }
.accordion__item[open] .accordion__icon { transform: rotate(45deg); background: var(--orange); color: var(--ink); }
.accordion__body { padding: 0 24px 22px; color: var(--muted); }
.accordion__body p { margin: 0; }
@media (max-width: 900px) { .faq__layout { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 160px) 0; text-align: center; background: radial-gradient(50% 80% at 50% 100%, rgba(15, 108, 157, 0.45), transparent 70%), var(--navy); }
.cta-band__inner { position: relative; max-width: 760px; }
.cta-band .eyebrow { justify-content: center; }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.035em; }
.cta-band p { font-size: 1.15rem; margin-bottom: 2em; }

/* ---------- Page hero (blog, pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0 clamp(48px, 6vw, 72px); background: radial-gradient(60% 80% at 80% 0%, rgba(15, 108, 157, 0.35), transparent 70%), var(--navy); }
.page-hero--compact { padding: clamp(64px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); }
.page-hero--scene { min-height: 480px; }
.flow-canvas--blog { opacity: 0.8; }
.page-hero--scene::after { /* keep the scene on the right, away from the headline */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: linear-gradient(90deg, var(--navy) 0%, rgba(6, 19, 33, 0.95) 45%, rgba(6, 19, 33, 0.4) 66%, rgba(6, 19, 33, 0) 82%);
}
@media (max-width: 760px) { .page-hero--scene::after { background: rgba(6, 19, 33, 0.82); } }
.page-hero__inner { position: relative; }
.page-hero__title { font-size: clamp(2.3rem, 5.4vw, 4.2rem); letter-spacing: -0.035em; max-width: 880px; margin-bottom: 0.3em; }
.page-hero__title em { font-style: normal; color: var(--orange); }
.page-hero__lead { font-size: 1.2rem; max-width: 640px; }
.blog-tools { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--navy-line); color: var(--on-dark); text-decoration: none; font-size: 0.9rem; font-weight: 500; background: rgba(255, 255, 255, 0.04); transition: all 0.2s; }
.chip:hover { border-color: var(--orange); color: #fff; }
.chip.is-active { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.chip--light { border-color: var(--line); color: var(--ink-2); background: var(--mist); }
.chip--light:hover { color: var(--blue); border-color: var(--blue); }
.search-form { position: relative; display: flex; align-items: center; min-width: min(320px, 100%); }
.search-form .icon { position: absolute; left: 16px; color: var(--on-dark-muted); pointer-events: none; }
.search-form__input { width: 100%; padding: 12px 18px 12px 46px; border-radius: 999px; border: 1px solid var(--navy-line); background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 0.95rem; }
.search-form__input::placeholder { color: var(--on-dark-muted); }
.search-form__input:focus { outline: none; border-color: var(--orange); background: rgba(255, 255, 255, 0.1); }

/* ---------- Post cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #CBE0EE; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-card__media img, .post-card:hover .post-cover svg { transform: scale(1.05); }
.post-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.post-card__title { font-size: 1.28rem; margin: 12px 0 10px; line-height: 1.25; }
.post-card__title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.post-card:hover .post-card__title a { background-size: 100% 2px; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.post-card__excerpt { color: var(--muted); font-size: 0.96rem; flex: 1; }
.post-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); font-size: 0.92rem; }
.post-card__more .icon { transition: transform 0.3s var(--ease); }
.post-card:hover .post-card__more .icon { transform: translateX(4px); }

.post-card--featured { display: grid; grid-template-columns: 1.15fr 1fr; margin-bottom: 36px; }
.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 360px; }
.post-card--featured .post-card__body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.post-card--featured .post-card__title { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
@media (max-width: 860px) { .post-card--featured { grid-template-columns: 1fr; } .post-card--featured .post-card__media { min-height: 0; aspect-ratio: 16 / 9; } }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.82rem; color: var(--muted); }
.post-meta > * + *::before { content: "•"; margin-right: 14px; opacity: 0.5; }
.post-meta__cat { position: relative; z-index: 2; font-weight: 700; color: var(--orange-600); text-decoration: none; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; }

.post-cover { position: relative; width: 100%; height: 100%; background: radial-gradient(70% 80% at 60% 50%, rgba(15, 108, 157, 0.55), transparent 70%), linear-gradient(140deg, #071A2D, #0B2A45); }
.post-cover--v1 { background: radial-gradient(70% 80% at 30% 40%, rgba(250, 148, 40, 0.28), transparent 70%), linear-gradient(140deg, #0A1E33, #0E3352); }
.post-cover--v2 { background: radial-gradient(60% 80% at 70% 60%, rgba(91, 180, 229, 0.35), transparent 70%), linear-gradient(160deg, #061321, #0F3A5C); }
.post-cover--v3 { background: radial-gradient(60% 80% at 50% 20%, rgba(250, 148, 40, 0.2), transparent 70%), linear-gradient(120deg, #0B2135, #0F6C9D); }
.post-cover svg { width: 100%; height: 100%; transition: transform 0.7s var(--ease); }
.post-cover span { position: absolute; left: 18px; bottom: 16px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); }

/* Pagination */
.pagination { margin-top: 56px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--blue); border-color: var(--blue); color: #fff; }
a.page-numbers:hover { border-color: var(--blue); color: var(--blue); }

.empty-state { text-align: center; padding: 40px 0; color: var(--muted); }

/* Newsletter / CTA box */
.newsletter { position: relative; overflow: hidden; margin-top: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: clamp(32px, 5vw, 56px); border-radius: var(--radius-lg); background: radial-gradient(60% 120% at 100% 0%, rgba(250, 148, 40, 0.22), transparent 60%), linear-gradient(135deg, var(--navy-2), var(--blue-700)); color: #fff; isolation: isolate; }
.newsletter h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); color: #fff; }
.newsletter p { color: #C3D7E7; margin: 0; max-width: 560px; }
.newsletter__art { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; z-index: -1; perspective: 600px; opacity: 0.6; }
.newsletter__art span { position: absolute; width: 60px; height: 60px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.25); animation: cube 9s ease-in-out infinite; }
.newsletter__art span:nth-child(1) { left: 20px; top: 40px; }
.newsletter__art span:nth-child(2) { left: 100px; top: 20px; animation-delay: -2s; border-color: rgba(250, 148, 40, 0.6); }
.newsletter__art span:nth-child(3) { left: 60px; top: 120px; animation-delay: -4s; }
.newsletter__art span:nth-child(4) { left: 150px; top: 110px; animation-delay: -6s; border-color: rgba(91, 180, 229, 0.6); }
@media (max-width: 760px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Single article ---------- */
.article-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); background: radial-gradient(60% 80% at 85% 0%, rgba(15, 108, 157, 0.4), transparent 70%), var(--navy); overflow: hidden; }
.article-hero__inner { position: relative; max-width: 920px; }
.article-hero__back { display: inline-block; margin-bottom: 26px; color: var(--on-dark-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.article-hero__back:hover { color: var(--orange); }
.article-hero .post-meta { color: var(--on-dark-muted); }
.article-hero .post-meta__cat { color: var(--orange-300); }
.article-hero__title { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -0.035em; margin: 16px 0 18px; }
.article-hero__lead { font-size: 1.22rem; max-width: 760px; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.byline img { border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); }
.byline strong { display: block; color: #fff; font-size: 0.95rem; }
.byline span { font-size: 0.82rem; color: var(--on-dark-muted); }

.article__cover { margin-top: -24px; margin-bottom: 0; position: relative; z-index: 1; }
.article__cover img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.article__layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; gap: 64px; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 96px); }
.article__layout.has-toc { grid-template-columns: 240px minmax(0, 760px); }
.article__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.toc__title { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0 0 32px; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 0.9rem; line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--blue); border-color: var(--orange); font-weight: 600; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share .toc__title { width: 100%; margin: 0 0 4px; }
.share a, .share button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: all 0.2s; }
.share a:hover, .share button:hover, .share button.is-copied { border-color: var(--blue); color: #fff; background: var(--blue); }
.share .icon { width: 18px; height: 18px; }
@media (max-width: 1000px) {
	.article__layout.has-toc { grid-template-columns: minmax(0, 1fr); }
	.article__aside { position: static; order: 2; }
	.toc { display: none; }
}

/* Article content typography */
.entry-content { font-size: 1.1rem; line-height: 1.8; color: var(--ink-2); }
.entry-content > * { margin-top: 0; margin-bottom: 1.4em; }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.05rem); color: var(--ink); margin-top: 2em; margin-bottom: 0.6em; }
.entry-content h3 { font-size: 1.4rem; color: var(--ink); margin-top: 1.6em; margin-bottom: 0.5em; }
.entry-content h4 { font-size: 1.15rem; color: var(--ink); margin-top: 1.4em; }
.entry-content a { color: var(--blue); font-weight: 500; }
.entry-content strong { color: var(--ink); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content ol li::marker { color: var(--blue); font-weight: 700; font-family: var(--font-head); }
.entry-content blockquote, .entry-content .wp-block-quote { margin: 2em 0; padding: 22px 28px; border-left: 4px solid var(--orange); background: var(--orange-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.15rem; color: var(--ink); }
.entry-content blockquote p:last-child { margin: 0; }
.entry-content blockquote cite { display: block; margin-top: 10px; font-size: 0.9rem; color: var(--muted); font-style: normal; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 10px; }
.entry-content pre { background: var(--navy); color: #DCEAF5; padding: 20px 24px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 0.92rem; line-height: 1.6; }
.entry-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
.entry-content :not(pre) > code { background: var(--blue-100); color: var(--blue-700); padding: 2px 6px; border-radius: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.entry-content th { font-family: var(--font-head); color: var(--ink); background: var(--mist); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 3em 0; }
.entry-content .wp-block-button__link { background: var(--orange); color: var(--ink); border-radius: 999px; font-weight: 600; text-decoration: none; }
.entry-content .alignwide { margin-left: -80px; margin-right: -80px; max-width: none; }
.entry-content .has-brand-blue-color { color: var(--blue); }
.entry-content .has-brand-orange-color { color: var(--orange); }
.entry-content .has-brand-blue-background-color { background-color: var(--blue); }
.entry-content .has-brand-orange-background-color { background-color: var(--orange); }
.entry-content .has-mist-background-color { background-color: var(--mist); }
.entry-content .has-ink-color { color: var(--ink); }
.entry-content .key-takeaway { padding: 22px 26px; border-radius: var(--radius); background: var(--blue-100); border: 1px solid #CBE0EE; }
.entry-content--light, .entry-content--light p { color: var(--on-dark-muted); font-size: 1.15rem; }
@media (max-width: 1000px) { .entry-content .alignwide { margin-left: 0; margin-right: 0; } }

.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 40px 0; }
.author-box { display: flex; gap: 20px; padding: 28px; border-radius: var(--radius); background: var(--mist); border: 1px solid var(--line); margin-top: 40px; }
.author-box img { border-radius: 50%; flex: none; }
.author-box__label { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.author-box__name { font-size: 1.2rem; margin-bottom: 6px; }
.author-box p { margin: 0; color: var(--muted); }

/* Comments */
.comments { margin-top: 56px; }
.comments__title, .comment-reply-title { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 32px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.82rem; }
.comment-metadata a { color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.field input, .field select, .field textarea {
	width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form input:focus, .comment-form textarea:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(15, 108, 157, 0.12); }

/* ---------- Contact ---------- */
.contact-hero { padding-bottom: clamp(72px, 10vw, 120px); }
.contact__layout { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact__direct { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.contact__direct a { color: #fff; font-weight: 600; }
.contact__direct .icon { color: var(--orange); }
.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 16px; }
.contact-form h2 { color: var(--ink) !important; font-size: 1.5rem; margin: 0; }
.field { display: grid; gap: 6px; }
.field span { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--hp { position: absolute; left: -9999px; }
.contact-form__note { font-size: 0.82rem; color: var(--muted) !important; margin: 0; text-align: center; }
.notice { padding: 12px 16px; border-radius: 12px; font-weight: 500; margin: 0; }
.notice--success { background: #E6F6EC; color: #145C2E !important; }
.notice--error { background: #FDECEA; color: #8A1F12 !important; }
@media (max-width: 900px) { .contact__layout { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* 404 */
.not-found { min-height: 70vh; display: flex; align-items: center; text-align: center; }
.not-found .page-hero__title, .not-found .page-hero__lead { margin-left: auto; margin-right: auto; }
.not-found .blog-tools { justify-content: center; }
.not-found__code { font-family: var(--font-head); font-weight: 700; font-size: clamp(6rem, 18vw, 12rem); line-height: 1; margin: 0; color: #fff !important; letter-spacing: -0.06em; }
.not-found__code span { display: inline-block; color: var(--orange); animation: spin3d 4s linear infinite; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: #040D17; color: var(--on-dark-muted); padding: 80px 0 32px; font-size: 0.95rem; }
.site-footer__glow { position: absolute; left: 50%; top: -200px; width: 900px; height: 400px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(15, 108, 157, 0.3), transparent); pointer-events: none; }
.site-footer__grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .site-logo img { height: 56px; }
.site-footer__brand p { margin: 20px 0; max-width: 340px; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; font-weight: 700; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.site-footer a.btn { color: var(--ink); }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact .icon { color: var(--orange); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--navy-line); border-radius: 50%; }
.site-footer__bottom { position: relative; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; }
.site-footer__bottom p { margin: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* WordPress core classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.88rem; color: var(--muted); }
.sticky .post-card__title::before { content: "★ "; color: var(--orange); }
.bypostauthor > .comment-body .fn::after { content: " (author)"; font-weight: 400; color: var(--muted); font-size: 0.85em; }

/* ---------- Keyframes ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(250, 148, 40, 0.5); } 50% { box-shadow: 0 0 0 8px rgba(250, 148, 40, 0); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes spin3d { to { transform: rotateY(360deg); } }
@keyframes cube { 0%, 100% { transform: rotateX(20deg) rotateY(20deg) translateY(0); } 50% { transform: rotateX(200deg) rotateY(140deg) translateY(-14px); } }

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