/* ==========================================================================
   Nexfolio — main stylesheet
   ========================================================================== */
:root,
body {
	--accent: #7c5cff;
	--accent-2: #00d4ff;
	--bg: #0b0d17;
	--bg-alt: #10131f;
	--surface: #161a2b;
	--surface-2: #1d2238;
	--border: rgba(255, 255, 255, 0.08);
	--text: #c9cde0;
	--muted: #8a90a8;
	--heading: #ffffff;
	--radius: 16px;
	--shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	--gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
	--font-head: "Poppins", system-ui, sans-serif;
	--font-body: "Inter", system-ui, sans-serif;
	--font-size: 16px;
	--heading-weight: 700;
	--container: 1200px;
	--btn-radius: 50px;
	--on-accent: #ffffff;
	--success: #3ee6b6;
	--overlay: color-mix(in srgb, var(--bg) 88%, transparent);
	--header-h: 76px;
}

/* Light color scheme (Customizer > Colors & Scheme) */
.scheme-light {
	--bg: #f6f7fb;
	--bg-alt: #eef1f8;
	--surface: #ffffff;
	--surface-2: #e6eaf3;
	--border: rgba(15, 23, 42, 0.1);
	--text: #3b4256;
	--muted: #6b7280;
	--heading: #0f172a;
	--success: #0f9f78;
	--shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.scheme-light .hero::after { opacity: .6; }
.scheme-light .flow-card::before { opacity: .25; }
.scheme-light .notice-success { color: #0b7a5c; }
.scheme-light .notice-error { color: #c62f3d; }
.scheme-light .chip, .scheme-light .checklist li { box-shadow: 0 2px 6px rgba(15, 23, 42, .04); }

/* Button shapes */
.btn-shape-rounded { --btn-radius: 12px; }
.btn-shape-square { --btn-radius: 2px; }

/* Turn off motion (Customizer > Layout & Style) */
.no-animations *, .no-animations *::before, .no-animations *::after { animation: none !important; }
.js .no-animations .reveal { opacity: 1; transform: none; transition: none; }
.no-animations .skill-bar span { width: var(--w); }

/* Static (non-sticky) header */
.header-static .site-header { position: absolute; }
.header-static .site-header.scrolled { background: transparent; box-shadow: none; backdrop-filter: none; }
.no-back-to-top .back-to-top { display: none; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: var(--font-size)/1.7 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--heading); }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-family: var(--font-head); font-weight: var(--heading-weight); line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; flex-shrink: 0; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--surface); color: var(--heading); padding: 10px 16px; border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }
.section { padding: 110px 0; position: relative; }
.alt-bg { background: var(--bg-alt); }

/* Buttons ---------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 14px 30px; border-radius: var(--btn-radius); border: 0;
	font: 600 15px/1 var(--font-head); cursor: pointer;
	transition: transform .25s, box-shadow .25s, background .25s, color .25s;
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-gradient { background: var(--gradient); color: var(--on-accent); box-shadow: 0 10px 30px -10px var(--accent); }
.btn-gradient:hover { color: var(--on-accent); transform: translateY(-3px); box-shadow: 0 16px 40px -10px var(--accent); }
.btn-outline { color: var(--heading); border: 1.5px solid var(--border); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); transform: translateY(-3px); }

/* Section headings ------------------------------------------------------- */
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 46px); margin: 0; }
.eyebrow {
	display: inline-block; font: 600 14px/1 var(--font-head);
	letter-spacing: 2px; text-transform: uppercase; margin-bottom: 14px;
	background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Header ----------------------------------------------------------------- */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
	display: flex; align-items: center; transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
	background: var(--overlay); backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--border);
}
.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-text { display: inline-flex; align-items: center; gap: 12px; color: var(--heading); font: 700 20px/1 var(--font-head); }
.logo-mark {
	width: 42px; height: 42px; border-radius: 12px; background: var(--gradient);
	display: grid; place-items: center; color: var(--on-accent); font-size: 17px;
}
.custom-logo { height: var(--logo-h, 44px); width: auto; max-width: 220px; object-fit: contain; }
.logo-mark { width: var(--logo-h, 42px); height: var(--logo-h, 42px); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.main-nav li { position: relative; }
.main-nav a:not(.btn) {
	display: block; padding: 8px 14px; color: var(--text);
	font: 500 15px/1 var(--font-head); border-radius: 8px;
}
.main-nav a:not(.btn):hover, .main-nav .current-menu-item > a, .main-nav a.active { color: var(--heading); }
.main-nav a.active::after, .main-nav .current-menu-item > a::after {
	content: ""; display: block; height: 2px; margin-top: 6px; background: var(--gradient); border-radius: 2px;
}
.main-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px; flex-direction: column;
	background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-toggle {
	display: none; background: none; border: 0; padding: 10px; cursor: pointer;
	flex-direction: column; gap: 5px;
}
.menu-toggle .bar { width: 26px; height: 2px; background: var(--heading); transition: .3s; border-radius: 2px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding: calc(var(--header-h) + 70px) 0 80px; overflow: hidden; }
.hero-glow, .page-hero .hero-glow {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(600px circle at 15% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
		radial-gradient(500px circle at 85% 70%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 60%);
}
.hero::after {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
	background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: clamp(42px, 7vw, 76px); font-weight: 800; margin: 0 0 12px; letter-spacing: -1px; }
.hero-role { font: 600 clamp(22px, 3vw, 32px)/1.3 var(--font-head); color: var(--heading); margin-bottom: 20px; }
.typed { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: 3px; height: 1em; background: var(--accent-2); margin-left: 4px; vertical-align: -0.12em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-text { font-size: 18px; max-width: 540px; color: var(--muted); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 46px; }
.hero-social { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-social > span { font: 500 13px/1 var(--font-head); text-transform: uppercase; letter-spacing: 2px; color: var(--muted); }

.social { display: flex; gap: 12px; flex-wrap: wrap; }
.social a {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
	background: var(--surface); border: 1px solid var(--border); color: var(--text);
	box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); transition: .25s;
}
.social a:hover { background: var(--gradient); color: var(--on-accent); transform: translateY(-4px); border-color: transparent; }

.hero-media { position: relative; justify-self: center; }
.hero-photo {
	width: min(420px, 80vw); aspect-ratio: 1; border-radius: 50%; padding: 8px;
	background: var(--gradient); animation: morph 10s ease-in-out infinite;
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--accent) 60%, transparent);
}
.hero-photo img, .hero-photo .photo-placeholder { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@keyframes morph {
	0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
	50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
.photo-placeholder {
	display: grid; place-items: center; background: var(--surface);
	font: 800 clamp(60px, 10vw, 110px)/1 var(--font-head); color: var(--heading);
}
.float-badge {
	position: absolute; display: flex; align-items: center; gap: 10px;
	padding: 12px 18px; border-radius: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px);
	border: 1px solid var(--border); color: var(--heading); font: 600 14px/1 var(--font-head);
	box-shadow: var(--shadow); animation: float 5s ease-in-out infinite;
}
.float-badge .icon { color: var(--accent-2); }
.badge-1 { top: 12%; left: -30px; }
.badge-2 { bottom: 10%; right: -20px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-14px); } }
.scroll-down {
	position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
	width: 26px; height: 42px; border: 2px solid var(--muted); border-radius: 20px; z-index: 1;
}
.scroll-down span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent-2); animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* About ------------------------------------------------------------------ */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.about-media { position: relative; }
.about-frame { border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; position: relative; background: var(--surface); }
.about-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--border); border-radius: inherit; }
.about-frame img, .about-frame .photo-placeholder { width: 100%; height: 100%; object-fit: cover; }
.about-media::before {
	content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: 24px;
	border: 2px solid var(--accent); opacity: .5; z-index: -1;
}
.exp-badge {
	position: absolute; right: -20px; bottom: 40px; padding: 20px 26px; border-radius: 18px;
	background: var(--gradient); color: var(--on-accent); box-shadow: var(--shadow); text-align: center;
}
.exp-badge strong { display: block; font: 800 36px/1 var(--font-head); }
.exp-badge span { font-size: 13px; }
.about-content .section-head { margin-bottom: 24px; }
.about-text { color: var(--muted); }
.info-list { list-style: none; padding: 0; margin: 26px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.info-list li { color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.info-list li span { display: block; color: var(--muted); font-size: 13px; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.skill-head { display: flex; justify-content: space-between; font: 500 15px/1 var(--font-head); color: var(--heading); margin-bottom: 10px; }
.skill-bar { height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.skill-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--gradient); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.skills.in-view .skill-bar span { width: var(--w); }

/* Cards & grid ----------------------------------------------------------- */
.grid { display: grid; gap: 30px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	transition: transform .35s, border-color .35s, box-shadow .35s;
}

.service-card { padding: 40px 34px; position: relative; overflow: hidden; }
.service-card::before {
	content: ""; position: absolute; inset: 0; background: var(--gradient); opacity: 0; transition: opacity .35s; z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.service-card:hover h3, .service-card:hover p { color: var(--on-accent); }
.service-card:hover .icon-box { background: rgba(255, 255, 255, .18); color: var(--on-accent); }
.service-card h3 { font-size: 21px; margin: 26px 0 12px; transition: color .35s; }
.service-card p { color: var(--muted); margin: 0; transition: color .35s; }
.card-num { position: absolute; top: 24px; right: 28px; font: 800 44px/1 var(--font-head); color: color-mix(in srgb, var(--heading) 6%, transparent); }
.icon-box {
	width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
	background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-2); transition: .35s;
}
.icon-box .icon { width: 28px; height: 28px; }

/* Portfolio -------------------------------------------------------------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: -20px 0 46px; }
.filter {
	padding: 10px 22px; border-radius: var(--btn-radius); cursor: pointer;
	background: var(--surface); border: 1px solid var(--border); color: var(--text);
	font: 500 14px/1 var(--font-head); transition: .25s;
}
.filter:hover { color: var(--heading); border-color: var(--accent); }
.filter.active { background: var(--gradient); color: var(--on-accent); border-color: transparent; }
.project { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); transition: transform .35s, box-shadow .35s, opacity .35s; }
.project.is-hidden { display: none; }
.project:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.project-thumb { aspect-ratio: 10/7; overflow: hidden; position: relative; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover .project-thumb img, .project:hover .thumb-placeholder { transform: scale(1.07); }
.project-info { padding: 22px 26px 26px; position: relative; }
.project-cat { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-2); }
.project-info h3 { font-size: 20px; margin: 6px 40px 0 0; }
.project-arrow {
	position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
	background: var(--surface-2); color: var(--heading); transition: .3s;
}
.project:hover .project-arrow { background: var(--gradient); color: var(--on-accent); }

/* Decorative placeholders used until real images are added */
.thumb-placeholder { position: absolute; inset: 0; display: block; transition: transform .6s; overflow: hidden; }
.thumb-placeholder span { position: absolute; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.thumb-placeholder span:nth-child(1) { left: 12%; top: 16%; width: 76%; height: 12%; }
.thumb-placeholder span:nth-child(2) { left: 12%; top: 36%; width: 46%; height: 44%; }
.thumb-placeholder span:nth-child(3) { left: 64%; top: 36%; width: 24%; height: 44%; background: rgba(255, 255, 255, .24); }
.ph-1 { background: linear-gradient(135deg, #7c5cff, #00d4ff); }
.ph-2 { background: linear-gradient(135deg, #ff5f9e, #ffb86b); }
.ph-3 { background: linear-gradient(135deg, #00c896, #00d4ff); }
.ph-4 { background: linear-gradient(135deg, #f7971e, #ff5f6d); }
.ph-5 { background: linear-gradient(135deg, #5b5bd6, #c55df6); }
.ph-6 { background: linear-gradient(135deg, #11998e, #38ef7d); }
.center-actions { text-align: center; margin-top: 54px; }

/* Stats band ------------------------------------------------------------- */
.stats-band { padding: 70px 0; background: var(--gradient); position: relative; overflow: hidden; }
.stats-band::before {
	content: ""; position: absolute; inset: 0; opacity: .12;
	background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 22px 22px;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; position: relative; }
.stat strong { display: block; font: 800 clamp(38px, 5vw, 54px)/1.1 var(--font-head); color: var(--on-accent); }
.stat span { color: rgba(255, 255, 255, .85); font-weight: 500; }

/* Testimonials ----------------------------------------------------------- */
.slider { max-width: 820px; margin: 0 auto; }
.slides { display: grid; }
.testimonial {
	grid-area: 1 / 1; margin: 0; padding: 54px 50px 44px; text-align: center; position: relative;
	opacity: 0; visibility: hidden; transform: scale(.96); transition: opacity .5s, transform .5s, visibility .5s;
}
.testimonial.is-active { opacity: 1; visibility: visible; transform: none; }
.quote-icon {
	position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
	width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); color: var(--on-accent); display: grid; place-items: center;
}
.quote-icon .icon { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 18px; color: var(--surface-2); }
.stars .on { color: #ffc947; }
.stars .icon { fill: currentColor; stroke: none; }
.testimonial blockquote { margin: 0 0 30px; font-size: 19px; line-height: 1.75; color: var(--heading); font-style: italic; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: 14px; text-align: left; }
.testimonial figcaption img, .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); font: 700 18px/1 var(--font-head); }
.testimonial strong { display: block; color: var(--heading); font-family: var(--font-head); }
.testimonial em { font-style: normal; color: var(--muted); font-size: 14px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 34px; }
.slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 12px; border: 0; background: var(--surface-2); cursor: pointer; transition: .3s; }
.slider-dots button.active { width: 34px; background: var(--gradient); }

/* Blog cards ------------------------------------------------------------- */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; position: relative; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post-card:hover .post-thumb img, .post-card:hover .thumb-placeholder { transform: scale(1.07); }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-body p { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.tag { padding: 5px 12px; border-radius: 30px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-2); font-size: 13px; font-weight: 500; }
.post-title { font-size: 20px; }
.post-title a { color: var(--heading); }
.post-title a:hover { color: var(--accent-2); }
.read-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-head); }
.read-more .icon { transition: transform .25s; }
.read-more:hover .icon { transform: translateX(5px); }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.lead { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.contact-item { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; color: var(--heading); font-weight: 500; overflow-wrap: anywhere; }
.contact-item small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.contact-item a { color: var(--heading); }
.contact-item a:hover { color: var(--accent-2); }
.contact-info .social { margin-top: 30px; }
.contact-form-wrap { padding: 44px; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label span, .comment-form label { display: block; font: 500 14px/1 var(--font-head); color: var(--heading); margin-bottom: 10px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], input[type="number"], textarea, select {
	width: 100%; padding: 15px 18px; border-radius: 12px; font: inherit; color: var(--heading);
	background: var(--bg); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea { resize: vertical; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; font-weight: 500; }
.notice-success { background: rgba(0, 200, 150, .12); color: #3ee6b6; border: 1px solid rgba(0, 200, 150, .3); }
.notice-error { background: rgba(255, 95, 109, .12); color: #ff8a95; border: 1px solid rgba(255, 95, 109, .3); }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: 60px 0 40px; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.footer-nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; padding: 0; }
.footer-nav a { color: var(--text); }
.footer-nav a:hover { color: var(--heading); }
.copyright { color: var(--muted); font-size: 14px; margin: 0; }
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 48px; height: 48px; border-radius: 14px;
	display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(16px); transition: .3s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { color: var(--on-accent); transform: translateY(-4px); }

/* Inner pages ------------------------------------------------------------ */
.page-hero { position: relative; padding: calc(var(--header-h) + 80px) 0 80px; text-align: center; background: var(--bg-alt); overflow: hidden; }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 16px; }
.page-hero .eyebrow a { color: inherit; }
.breadcrumbs { display: flex; justify-content: center; gap: 10px; color: var(--muted); font-size: 15px; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.project-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 50px; align-items: start; }
.project-details { padding: 32px; position: sticky; top: calc(var(--header-h) + 20px); }
.project-details .info-list { grid-template-columns: 1fr; }
.featured-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 36px; }
.featured-image img { width: 100%; }
.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 24px; margin-top: 1.4em; }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 1.6em 0; padding: 24px 30px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; color: var(--heading); font-style: italic; }
.entry-content pre, .entry-content code { background: var(--surface); border-radius: 8px; font-size: .9em; }
.entry-content code { padding: 2px 6px; }
.entry-content pre { padding: 20px; overflow-x: auto; }
.entry-content img { border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border: 1px solid var(--border); text-align: left; }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--muted); }
.post-tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags a { padding: 6px 14px; border-radius: 30px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 14px; }
.post-tags a:hover { background: var(--accent); color: var(--on-accent); }
.post-navigation { margin-top: 50px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.post-navigation a { display: block; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--heading); font-weight: 600; }
.post-navigation a:hover { border-color: var(--accent); }
.post-navigation small { display: block; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }

.sidebar { display: grid; gap: 26px; }
.widget { padding: 28px; }
.widget-title { font-size: 19px; margin-bottom: 18px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget li:last-child { border: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--accent-2); }
.search-form { display: flex; position: relative; }
.search-form input { padding-right: 54px; }
.search-form button { position: absolute; right: 6px; top: 6px; bottom: 6px; width: 44px; border: 0; border-radius: 9px; background: var(--gradient); color: var(--on-accent); cursor: pointer; }

.pagination { margin-top: 60px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.page-numbers { min-width: 46px; height: 46px; padding: 0 14px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 600; }
.page-numbers.current, a.page-numbers:hover { background: var(--gradient); color: var(--on-accent); border-color: transparent; }
.empty-state { max-width: 480px; margin: 0 auto; text-align: center; }

.comments-area { margin-top: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-body { padding: 24px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.comment-author { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: 6px 0 12px; }
.comment-metadata a { color: var(--muted); }
.comment-form p { margin-bottom: 18px; }

.error-404 .container { position: relative; z-index: 1; }
.big-404 { font-size: clamp(110px, 22vw, 220px); font-weight: 800; line-height: 1; margin: 0; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Reveal on scroll ------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s ease; transition-delay: calc(var(--d, 0) * 120ms); }
.js .reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; }
	.skill-bar span { width: var(--w); }
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1024px) {
	.grid-3 { grid-template-columns: repeat(2, 1fr); }
	.hero-grid, .about-grid, .contact-grid, .with-sidebar, .project-layout { grid-template-columns: 1fr; }
	.hero { text-align: center; }
	.hero-text { margin-inline: auto; }
	.hero-actions, .hero-social { justify-content: center; }
	.hero-media { order: -1; }
	.about-media { max-width: 460px; margin: 0 auto; }
	.project-details { position: static; }
	.alignwide { margin-inline: 0; }
}
@media (max-width: 900px) {
	.menu-toggle { display: flex; }
	.main-nav {
		position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px;
		padding: 20px 24px 30px; background: color-mix(in srgb, var(--bg) 97%, transparent); backdrop-filter: blur(14px);
		border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .3s;
	}
	.main-nav.open { opacity: 1; visibility: visible; transform: none; }
	.main-nav ul { flex-direction: column; }
	.main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); border-radius: 0; }
	.main-nav a.active::after { display: none; }
	.main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; background: none; padding: 0 0 0 16px; }
	.nav-cta { align-self: flex-start; }
	.stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.section { padding: 80px 0; }
	.grid-3, .skills, .info-list, .form-row { grid-template-columns: 1fr; }
	.section-head { margin-bottom: 44px; }
	.badge-1 { left: 0; } .badge-2 { right: 0; }
	.exp-badge { right: 10px; }
	.about-media::before { inset: 16px -10px -16px 16px; }
	.contact-form-wrap { padding: 28px 20px; }
	.testimonial { padding: 50px 24px 34px; }
	.testimonial blockquote { font-size: 17px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* ==========================================================================
   Measurement / consultancy sections
   ========================================================================== */
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.section-intro { max-width: 640px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.section-head:not(.center) .section-intro { margin-left: 0; }
.anchor { position: absolute; top: 0; }

/* Hero */
.hero-title > span { display: block; }
.hero .hero-title { font-size: clamp(42px, 6.4vw, 72px); }
.hero .eyebrow { max-width: 520px; line-height: 1.5; }
.hero-points {
	list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--border);
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.hero-points strong { display: block; color: var(--heading); font: 600 16px/1.3 var(--font-head); margin-bottom: 4px; }
.hero-points span { font-size: 14px; color: var(--muted); line-height: 1.5; }
.hero-actions { margin-bottom: 40px; }

.flow-card {
	width: min(440px, 100%); padding: 22px; border-radius: 22px; position: relative;
	background: linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 92%, transparent), color-mix(in srgb, var(--surface) 92%, transparent));
	border: 1px solid var(--border); box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 20%, transparent);
}
.flow-card::before {
	content: ""; position: absolute; inset: -40px; z-index: -1; filter: blur(50px); opacity: .45;
	background: var(--gradient); border-radius: 50%;
}
.flow-head { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.flow-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-2); }
.flow-head em { margin-left: auto; font: 500 12px/1 ui-monospace, monospace; font-style: normal; color: var(--accent-2); padding: 6px 10px; border-radius: 20px; background: color-mix(in srgb, var(--accent-2) 12%, transparent); }
.flow-node { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.flow-node .icon-box { width: 44px; height: 44px; border-radius: 12px; }
.flow-node .icon-box .icon { width: 20px; height: 20px; }
.flow-node strong { display: block; color: var(--heading); font: 600 15px/1.3 var(--font-head); }
.flow-node small { color: var(--muted); font-size: 13px; }
.flow-node .ok { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.flow-node .ok .icon { width: 14px; height: 14px; }
.flow-line { height: 26px; width: 2px; margin-left: 35px; background: var(--border); position: relative; overflow: hidden; }
.flow-line span { position: absolute; left: 0; width: 2px; height: 10px; background: var(--accent-2); animation: flow 1.4s linear infinite; }
@keyframes flow { from { top: -10px; } to { top: 26px; } }
.flow-dest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.flow-dest span {
	text-align: center; padding: 10px 6px; border-radius: 10px; font: 600 13px/1.2 var(--font-head); color: var(--heading);
	background: color-mix(in srgb, var(--accent) 14%, var(--bg)); border: 1px solid var(--border);
}
.flow-meta { display: flex; justify-content: space-between; margin-top: 16px; font-size: 12px; color: var(--muted); }
.flow-meta span::before { content: "●"; color: var(--success); margin-right: 6px; }

/* Technology marquee */
.tech { padding-bottom: 90px; }
.marquee-wrap { display: grid; gap: 14px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; gap: 14px; padding-right: 14px; flex-shrink: 0; animation: marquee 50s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.chip {
	white-space: nowrap; padding: 12px 22px; border-radius: 50px; font: 500 15px/1 var(--font-head); color: var(--heading);
	background: var(--surface); border: 1px solid var(--border);
}

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.partner-card { padding: 30px 26px; display: flex; flex-direction: column; }
.partner-card:hover, .cert-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.partner-card.featured { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface) 70%); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.partner-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.partner-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gradient); color: var(--on-accent); font: 700 18px/1 var(--font-head); }
.partner-badge { max-height: 56px; width: auto; }
.badge-pill {
	display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 30px; white-space: nowrap;
	font: 500 12px/1 var(--font-head); color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 12%, transparent);
}
.badge-pill .icon { width: 14px; height: 14px; }
.partner-card h3 { font-size: 20px; margin-bottom: 10px; }
.partner-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* Certifications */
.certs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card { padding: 28px; display: flex; gap: 18px; align-items: flex-start; }
.cert-card .icon-box { width: 52px; height: 52px; border-radius: 14px; }
.cert-issuer { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent-2); }
.cert-card h3 { font-size: 18px; margin: 6px 0 10px; }
.cert-id { font-size: 13px; color: var(--muted); margin-bottom: 12px; overflow-wrap: anywhere; }
.cert-id code { font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--bg); color: var(--text); }

/* Services tabs */
.tab-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab {
	display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--btn-radius); cursor: pointer;
	background: var(--surface); border: 1px solid var(--border); color: var(--text); font: 500 15px/1 var(--font-head); transition: .25s;
}
.tab:hover { color: var(--heading); border-color: var(--accent); }
.tab.active { background: var(--gradient); color: var(--on-accent); border-color: transparent; }
.tab-num { font-size: 12px; opacity: .7; }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; padding: 50px; align-items: center; animation: fadeUp .45s ease; }
.tab-panel[hidden] { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
.panel-intro h3 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 14px; }
.panel-intro .icon-box { margin-bottom: 22px; }
.panel-intro p { color: var(--muted); font-size: 17px; margin-bottom: 28px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
	background: var(--bg); border: 1px solid var(--border); color: var(--heading); font-weight: 500; font-size: 15px;
}
.checklist .icon { color: var(--success); flex-shrink: 0; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 20px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent); opacity: .5; }
.step { text-align: center; position: relative; }
.step-num {
	display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; border-radius: 50%;
	background: var(--bg-alt); border: 2px solid var(--accent); color: var(--heading); font: 700 18px/1 var(--font-head);
	box-shadow: 0 0 0 8px var(--bg-alt);
}
.step:hover .step-num { background: var(--gradient); border-color: transparent; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.case { overflow: hidden; display: flex; flex-direction: column; }
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.case.is-hidden { display: none; }
.case-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 23, .85)); pointer-events: none; }
.case:hover .case-media img { transform: scale(1.05); }
.case-num, .post-thumb .case-num {
	position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 12px; border-radius: 10px;
	background: rgba(11, 13, 23, .7); backdrop-filter: blur(8px); color: var(--on-accent); font: 700 14px/1 var(--font-head);
}
.play {
	position: absolute; left: 18px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 12px;
	color: var(--on-accent); font: 600 15px/1 var(--font-head);
}
.play:hover { color: var(--on-accent); }
.play-btn {
	width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.2s infinite;
}
.play-btn .icon { fill: currentColor; stroke: none; margin-left: 3px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 16px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.case-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 21px; line-height: 1.35; margin: 8px 0 12px; }
.case-body h3 a { color: var(--heading); }
.case-body h3 a:hover { color: var(--accent-2); }
.case-text p { color: var(--muted); font-size: 15px; margin: 0; }
.js .case-text.clamped p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more-toggle { align-self: flex-start; margin-top: 8px; padding: 0; background: none; border: 0; color: var(--accent-2); font: 600 14px/1.4 var(--font-head); cursor: pointer; }
.tags { list-style: none; margin: auto 0 0; padding: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 30px; font-size: 13px; background: var(--bg); border: 1px solid var(--border); color: var(--text); }

/* About as profile */
.about-frame { aspect-ratio: 1; }
.about .exp-badge strong { font-size: 22px; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 30px; }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.review { margin: 0; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review .stars { margin: 0; }
.review-shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.review-shot img { width: 100%; }
.review blockquote { margin: 0; color: var(--heading); font-style: italic; }
.review figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.review figcaption strong { display: block; color: var(--heading); }
.review figcaption em { font-style: normal; color: var(--muted); font-size: 14px; }
.review-cta { max-width: 820px; margin: 0 auto; padding: 36px; display: flex; align-items: center; gap: 24px; }
.review-cta h3 { font-size: 22px; margin-bottom: 4px; }
.review-cta p { color: var(--muted); margin: 0; }
.review-cta .btn { margin-left: auto; flex-shrink: 0; }

/* Blog: first post featured */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.center-actions .muted { margin-bottom: 16px; }

/* Contact */
.contact-title { font-size: clamp(32px, 4.4vw, 46px); margin-bottom: 18px; }
.promise-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.promise-list li { display: flex; align-items: center; gap: 14px; color: var(--heading); font-weight: 500; }
.promise-list span {
	width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center;
	background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2); font: 700 13px/1 var(--font-head);
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
select {
	appearance: none; cursor: pointer; padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a90a8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 16px center; background-size: 18px;
}
select option { background: var(--surface); color: var(--heading); }

/* Footer columns */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { color: var(--muted); margin: 18px 0 22px; max-width: 340px; }
.footer-col h3 { font-size: 16px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); font-size: 15px; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--border); }
.slogan { margin: 0; font: 600 14px/1.6 var(--font-head); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media (max-width: 1024px) {
	.partners-grid { grid-template-columns: repeat(2, 1fr); }
	.certs-grid { grid-template-columns: repeat(2, 1fr); }
	.tab-panel { grid-template-columns: 1fr; padding: 36px; gap: 30px; }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
	.steps::before { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-points { text-align: left; }
	.flow-card { margin: 0 auto; }
}
@media (max-width: 760px) {
	.cases, .reviews-grid, .blog-grid { grid-template-columns: 1fr; }
	.review-cta { flex-direction: column; text-align: center; }
	.review-cta .btn { margin: 0; }
}
@media (max-width: 640px) {
	.partners-grid, .certs-grid, .checklist, .steps, .footer-grid { grid-template-columns: 1fr; }
	.hero-points { grid-template-columns: 1fr; gap: 14px; }
	.tab-list { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 24px; padding: 0 16px 6px; scrollbar-width: none; }
	.tab { flex-shrink: 0; }
	.tab-panel { padding: 26px 20px; }
	.case-body { padding: 22px 20px 24px; }
	.flow-node { padding: 12px; }
	.flow-dest span { font-size: 12px; }
	.footer-bottom { flex-direction: column; }
}

/* Page templates */
.page-template-template-full-width .entry-content > .alignfull,
.page-template-template-canvas .entry-content > .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.canvas-content { padding-top: var(--header-h); }
.canvas-content > .entry-content > *:not(.alignfull):not(.alignwide) { max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.canvas-content > .entry-content > .alignwide { max-width: calc(var(--container) + 160px); margin-left: auto; margin-right: auto; }

/* Footer widgets */
.footer-widget + .footer-widget { margin-top: 24px; }
.footer-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-widget a { color: var(--text); }
.footer-widget a:hover { color: var(--accent-2); }

/* Block editor color palette */
.has-accent-color { color: var(--accent); } .has-accent-background-color { background-color: var(--accent); }
.has-accent-2-color { color: var(--accent-2); } .has-accent-2-background-color { background-color: var(--accent-2); }
.has-dark-color { color: #0b0d17; } .has-dark-background-color { background-color: #0b0d17; }
.has-light-color { color: #f6f7fb; } .has-light-background-color { background-color: #f6f7fb; }
.has-white-color { color: #fff; } .has-white-background-color { background-color: #fff; }
.wp-block-button__link { border-radius: var(--btn-radius); background: var(--gradient); color: var(--on-accent); font-family: var(--font-head); font-weight: 600; }

/* ==========================================================================
   Design style: "SaaS" (Customizer > Nexfolio Design > Layout & Style)
   Clean light product-site look: solid accent, bordered cards, centered hero,
   wordmark strip, segmented tabs and a dark call-to-action band.
   ========================================================================== */
.style-saas {
	--gradient: linear-gradient(var(--accent), var(--accent));
	--shadow: 0 12px 32px -12px rgba(16, 24, 40, .18);
	--card-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
}
.style-saas.scheme-dark { --card-shadow: none; }
.style-saas h1, .style-saas h2 { letter-spacing: -0.025em; }
.style-saas h3 { letter-spacing: -0.01em; }
.style-saas .section { padding: 104px 0; }
.style-saas .section-head h2 { font-size: clamp(34px, 4.6vw, 52px); }
.style-saas .section-intro { font-size: 18px; }

/* Eyebrows become small tinted pills */
.style-saas .eyebrow {
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	-webkit-background-clip: border-box; background-clip: border-box;
	color: var(--accent); padding: 7px 14px; border-radius: 50px;
	font-size: 13px; letter-spacing: .3px; text-transform: none; font-weight: 600;
}
.style-saas .hero .eyebrow { max-width: none; line-height: 1.3; }

/* Buttons: solid accent, crisp outline */
.style-saas .btn-gradient { background: var(--accent); box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 10px 24px -10px var(--accent); }
.style-saas .btn-gradient:hover { background: color-mix(in srgb, var(--accent) 86%, #000); transform: translateY(-2px); }
.style-saas .btn-outline { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--card-shadow); }
.style-saas .btn-outline:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); }

/* Header: always solid with a hairline */
.style-saas .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.style-saas .site-header.scrolled { box-shadow: 0 4px 20px -12px rgba(16, 24, 40, .2); }
.style-saas .main-nav a.active::after, .style-saas .main-nav .current-menu-item > a::after { display: none; }
.style-saas .main-nav a.active, .style-saas .main-nav .current-menu-item > a { color: var(--accent); }
.style-saas .logo-mark { border-radius: 10px; }

/* Cards */
.style-saas .card, .style-saas .project, .style-saas .case { box-shadow: var(--card-shadow); }
.style-saas .card:hover, .style-saas .case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.style-saas .icon-box { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }

/* Hero: centered headline, product-style flow card underneath */
.style-saas .hero { min-height: 0; text-align: center; padding: calc(var(--header-h) + 96px) 0 90px; }
.style-saas .hero-glow {
	background:
		radial-gradient(900px 420px at 50% -60px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
		radial-gradient(500px 300px at 85% 85%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 70%);
}
.style-saas .hero::after {
	background-image: radial-gradient(color-mix(in srgb, var(--heading) 14%, transparent) 1px, transparent 1px);
	background-size: 24px 24px; opacity: .7;
	mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 65%);
}
.style-saas .hero-grid { grid-template-columns: 1fr; gap: 64px; }
.style-saas .hero-content { max-width: 1060px; margin: 0 auto; }
.style-saas .hero .hero-title { font-size: clamp(40px, 6.2vw, 78px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 22px 0 22px; }
.style-saas .hero-text { margin: 0 auto 34px; font-size: 19px; max-width: 660px; }
.style-saas .hero-actions { justify-content: center; margin-bottom: 44px; }
.style-saas .hero-points { border: 0; padding: 0; max-width: 820px; margin: 0 auto; gap: 14px; }
.style-saas .hero-points li {
	padding: 16px 18px; border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 80%, transparent);
	border: 1px solid var(--border); box-shadow: var(--card-shadow); text-align: left;
}
.style-saas .hero-points strong { color: var(--accent); }
.style-saas .hero-media { order: 0; justify-self: stretch; }
.style-saas .hero-photo { width: min(980px, 100%); aspect-ratio: 16/9; border-radius: var(--radius); animation: none; padding: 0; margin: 0 auto; box-shadow: var(--shadow); }

.style-saas .flow-card {
	width: min(1000px, 100%); margin: 0 auto; padding: 22px 26px 20px; text-align: left;
	display: grid; grid-template-columns: 1fr 56px 1fr 56px 1.35fr; align-items: center;
	background: var(--surface); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow), 0 0 0 1px var(--border);
}
.style-saas .flow-card::before { inset: 20% 10% -10%; opacity: .18; }
.style-saas .flow-head, .style-saas .flow-meta { grid-column: 1 / -1; }
.style-saas .flow-head { padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.style-saas .flow-head em { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.style-saas .flow-node { background: var(--bg-alt); }
.style-saas .flow-line { width: 100%; height: 2px; margin: 0; }
.style-saas .flow-line span { top: 0; width: 14px; height: 2px; animation-name: flow-x; }
@keyframes flow-x { from { left: -14px; } to { left: 100%; } }
.style-saas .flow-dest span { background: var(--bg-alt); color: var(--heading); }
.style-saas .flow-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

/* Technology strip as greyed wordmarks */
.style-saas .tech { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.style-saas .tech .section-head { margin-bottom: 30px; }
.style-saas .tech .section-head h2 { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: 0; color: var(--muted); }
.style-saas .tech .eyebrow { display: none; }
.style-saas .chip {
	background: none; border: 0; padding: 6px 22px; border-radius: 0;
	font: 700 clamp(17px, 1.6vw, 21px)/1 var(--font-head); letter-spacing: -0.01em;
	color: color-mix(in srgb, var(--heading) 45%, transparent); transition: color .2s;
}
.style-saas .chip:hover { color: var(--heading); }

/* Partners */
.style-saas .partner-card.featured { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.style-saas .partner-logo { border-radius: 12px; }
.style-saas .badge-pill { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.style-saas .cert-issuer, .style-saas .project-cat { color: var(--accent); }

/* Services: segmented control tabs */
.style-saas .tabs { text-align: center; }
.style-saas .tab-list {
	display: inline-flex; gap: 4px; padding: 6px; margin-bottom: 28px; border-radius: calc(var(--btn-radius) + 6px);
	background: var(--bg-alt); border: 1px solid var(--border);
}
.style-saas .tab { background: transparent; border: 0; border-radius: var(--btn-radius); padding: 11px 18px; }
.style-saas .tab.active { background: var(--surface); color: var(--heading); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.style-saas .tab.active .tab-num { color: var(--accent); opacity: 1; }
.style-saas .tab-panel { text-align: left; }
.style-saas .checklist li { background: var(--bg-alt); }

/* Process as cards */
.style-saas .steps::before { display: none; }
.style-saas .step { text-align: left; padding: 28px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); }
.style-saas .step-num {
	width: 44px; height: 44px; margin: 0 0 22px; border-radius: 12px; border: 0; box-shadow: none; font-size: 15px;
	background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent);
}
.style-saas .step:hover .step-num { background: var(--accent); color: var(--on-accent); }

/* Case studies & blog */
.style-saas .tags li { background: var(--bg-alt); }
.style-saas .tag { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.style-saas .read-more { color: var(--accent); }

/* About */
.style-saas .about-media::before { display: none; }
.style-saas .about-frame { box-shadow: var(--shadow); }

/* Contact: dark call-to-action band */
.style-saas .contact {
	--bg: #0b1020; --bg-alt: #0b1020; --surface: #121a30; --surface-2: #1a2342;
	--border: rgba(255, 255, 255, .1); --text: #c4cae0; --muted: #8e97b5; --heading: #ffffff;
	--card-shadow: none;
	background:
		radial-gradient(700px 360px at 15% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
		radial-gradient(600px 320px at 100% 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
		var(--bg);
	color: var(--text);
}
.style-saas .contact .eyebrow { background: rgba(255, 255, 255, .08); color: #fff; }
.style-saas .contact .btn-outline { background: transparent; color: #fff; }
.style-saas .contact .btn-outline:hover { border-color: #fff; }
.style-saas .contact .promise-list span { background: rgba(255, 255, 255, .08); color: #fff; }
.style-saas .contact .notice-success { color: #3ee6b6; }

/* Footer */
.style-saas .site-footer { background: var(--bg-alt); }

@media (max-width: 1024px) {
	.style-saas .hero { text-align: center; }
}
@media (max-width: 860px) {
	.style-saas .flow-card { grid-template-columns: 1fr; }
	.style-saas .flow-line { width: 2px; height: 22px; margin-left: 35px; }
	.style-saas .flow-line span { width: 2px; height: 10px; left: 0; animation-name: flow; }
	.style-saas .flow-dest { margin-top: 4px; }
}
@media (max-width: 640px) {
	.style-saas .section { padding: 76px 0; }
	.style-saas .tab-list { display: flex; border-radius: 14px; }
	.style-saas .hero { padding-top: calc(var(--header-h) + 60px); }
	.style-saas .hero-points li { text-align: left; }
}
.style-saas .thumb-placeholder { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--bg-alt)), color-mix(in srgb, var(--accent-2) 14%, var(--bg-alt))); }
.style-saas .thumb-placeholder span { background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: var(--card-shadow); }
.style-saas .thumb-placeholder span:nth-child(3) { background: color-mix(in srgb, var(--accent) 22%, var(--surface)); }

/* Book a call (Calendly) */
.booking-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: start; }
.booking-info { position: sticky; top: calc(var(--header-h) + 30px); }
.booking-info h2 { font-size: clamp(32px, 4vw, 44px); margin: 16px 0 16px; }
.booking-points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.booking-points li { display: flex; align-items: center; gap: 12px; color: var(--heading); font-weight: 500; }
.booking-points .icon { color: var(--success); flex-shrink: 0; }
.booking-widget { padding: 8px; overflow: hidden; }
.calendly-inline-widget { min-width: 300px; height: 700px; }
.booking-link { padding: 48px 32px; display: grid; justify-items: center; gap: 20px; text-align: center; }
.booking-setup { padding: 24px 28px; border-style: dashed; color: var(--muted); }
@media (max-width: 1024px) {
	.booking-grid { grid-template-columns: 1fr; gap: 30px; }
	.booking-info { position: static; }
}
@media (max-width: 640px) {
	.booking-widget { padding: 0; margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
	.calendly-inline-widget { height: 1000px; }
}
.calendly-inline-widget { position: relative; }
.calendly-inline-widget:empty::before {
	content: ""; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
	border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.calendly-inline-widget.is-fallback { height: auto; min-height: 0; padding: 56px 24px; display: grid; place-items: center; }

/* Headings: keep descenders of gradient text visible, tuck punctuation in */
.text-gradient { padding-bottom: .14em; margin-bottom: -.14em; }
.punct { margin-left: -0.06em; }

/* Blog cards: every image the same size */
.post-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-2); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-card .post-meta { gap: 10px; }
.post-card .meta-line { font-size: 13px; color: var(--muted); }
.post-card .post-title { font-size: 19px; line-height: 1.35; }
.post-card .post-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }
.hero-title .punct { display: inline; }
