/* ==========================================================================
   Huzaifa Studio — theme styles
   1. Design tokens        6. Header & navigation    11. Toolkit / dark panel
   2. Reset & base         7. Hero                   12. Why & stats
   3. Typography           8. Marquee                13. Testimonials & FAQ
   4. Layout primitives    9. Services bento         14. Contact & forms
   5. Buttons & pills     10. Process & work         15. Footer
   16. Inner pages, posts, prose   17. Utilities, motion, print
   ========================================================================== */

/* 1. Design tokens --------------------------------------------------------- */
:root {
	/* Brand (overridable from Appearance → Customize → Brand & style). */
	--hs-accent: #C2410C;
	--hs-glow: #FF7A48;
	--hs-ink: #14100D;
	--hs-canvas: #F6F1E9;
	--hs-iris: #7C63F5;

	/* Derived tones — follow the brand values automatically. */
	--hs-surface: color-mix(in srgb, var(--hs-canvas) 40%, #fff);
	--hs-sunk: color-mix(in srgb, var(--hs-canvas), var(--hs-ink) 5%);
	--hs-muted: color-mix(in srgb, var(--hs-ink) 70%, var(--hs-canvas));
	--hs-faint: color-mix(in srgb, var(--hs-ink) 60%, var(--hs-canvas));
	--hs-line: color-mix(in srgb, var(--hs-ink) 11%, transparent);
	--hs-line-strong: color-mix(in srgb, var(--hs-ink) 22%, transparent);
	--hs-ink-2: color-mix(in srgb, var(--hs-ink), var(--hs-canvas) 7%);
	--hs-on-dark: var(--hs-canvas);
	--hs-on-dark-muted: color-mix(in srgb, var(--hs-canvas) 72%, var(--hs-ink));
	--hs-line-dark: color-mix(in srgb, var(--hs-canvas) 13%, transparent);
	--hs-line-dark-strong: color-mix(in srgb, var(--hs-canvas) 26%, transparent);
	--hs-accent-hover: color-mix(in srgb, var(--hs-accent) 84%, #000);
	--hs-grad: linear-gradient(105deg, var(--hs-glow) 0%, color-mix(in srgb, var(--hs-glow) 55%, #F0567E) 100%);
	--hs-success: #5BD08A;

	/* Type. */
	--hs-font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
	--hs-font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--fs-h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
	--fs-h2: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);
	--fs-h2-md: clamp(1.875rem, 1.3rem + 2.3vw, 2.875rem);
	--fs-h1: clamp(2.75rem, 1.5rem + 5.2vw, 5.75rem);

	/* Space, shape, depth, motion. */
	--container: 1200px;
	--gutter: clamp(1rem, 0.4rem + 2.6vw, 2rem);
	--space-section: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);
	--header-h: 64px;
	--header-top: 12px;
	--header-space: calc(var(--header-h) + var(--header-top) * 2);
	--r-sm: 12px;
	--r: 20px;
	--r-lg: 28px;
	--r-xl: clamp(28px, 2vw + 16px, 44px);
	--shadow-sm: 0 1px 2px color-mix(in srgb, var(--hs-ink) 8%, transparent), 0 8px 24px -16px color-mix(in srgb, var(--hs-ink) 30%, transparent);
	--shadow: 0 30px 60px -34px color-mix(in srgb, var(--hs-ink) 45%, transparent);
	--shadow-lg: 0 50px 90px -40px color-mix(in srgb, var(--hs-ink) 60%, transparent);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. Reset & base ------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-space) + 8px);
}

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body {
	margin: 0;
	background: var(--hs-canvas);
	color: var(--hs-ink);
	font-family: var(--hs-font-body);
	font-size: var(--fs-base);
	line-height: 1.65;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
svg.icon { width: 1.25em; height: 1.25em; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--hs-glow) 32%, transparent); }

:focus-visible {
	outline: 2px solid var(--hs-accent);
	outline-offset: 3px;
	border-radius: 6px;
}

.site-header :focus-visible,
.mobile-panel :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.dark-panel :focus-visible,
.form-card :focus-visible,
.not-found :focus-visible,
.site-footer :focus-visible { outline-color: var(--hs-glow); }

.site-main:focus { outline: none; }

/* 3. Typography -------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hs-font-display);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.accent { font-style: italic; color: var(--hs-accent); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--hs-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--hs-accent);
}

.eyebrow::before {
	content: "";
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.eyebrow a { color: inherit; }
.eyebrow--light { color: var(--hs-glow); }
.eyebrow--center { justify-content: center; }

.section-title {
	margin-top: 0.9rem;
	font-size: var(--fs-h2);
	font-weight: 450;
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.section-title--md { font-size: var(--fs-h2-md); }

.lead {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--hs-muted);
	text-wrap: pretty;
}

/* 4. Layout primitives -------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
	position: relative;
}

.container--narrow { max-width: calc(860px + var(--gutter) * 2); }
.container--prose { max-width: calc(760px + var(--gutter) * 2); }
.container--wide { max-width: calc(1100px + var(--gutter) * 2); }

.section {
	position: relative;
	padding-block: var(--space-section);
}

.section--tight { padding-block: clamp(2rem, 1rem + 4vw, 3.5rem); }
.section--sunk { background: var(--hs-sunk); }

.section-head { margin-bottom: clamp(2.5rem, 1.5rem + 3.5vw, 3.75rem); }

.section-head--split {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	align-items: end;
	gap: 1.25rem clamp(2rem, 5vw, 5rem);
}

.section-head--split .lead { max-width: 44ch; justify-self: end; }

@media (max-width: 860px) {
	.section-head--split { grid-template-columns: 1fr; }
	.section-head--split .lead { justify-self: start; }
}

.section-head--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.section-head--center .section-head__main { max-width: 820px; }
.section-head--center .lead { max-width: 56ch; }

/* 5. Buttons & pills ---------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.8rem 1.5rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--hs-font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
	background: var(--hs-accent);
	color: #fff;
	box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--hs-accent) 80%, transparent);
}

.btn--primary:hover { background: var(--hs-accent-hover); color: #fff; }

.btn--glow {
	background: var(--hs-glow);
	color: var(--hs-ink);
	box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--hs-glow) 90%, transparent);
}

.btn--glow:hover { background: color-mix(in srgb, var(--hs-glow) 86%, #fff); color: var(--hs-ink); }

.btn--ghost {
	background: transparent;
	color: var(--hs-ink);
	border-color: var(--hs-line-strong);
}

.btn--ghost:hover { background: var(--hs-ink); border-color: var(--hs-ink); color: var(--hs-canvas); }

.btn--ghost-light {
	background: color-mix(in srgb, var(--hs-canvas) 4%, transparent);
	color: var(--hs-on-dark);
	border-color: var(--hs-line-dark-strong);
}

.btn--ghost-light:hover { background: var(--hs-canvas); border-color: var(--hs-canvas); color: var(--hs-ink); }

.btn--sm { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 0.95rem 1.75rem; font-size: 1rem; }
.btn--block { width: 100%; }

.pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border: 1.5px solid var(--hs-line-strong);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-accent);
	white-space: nowrap;
}

.stars { color: var(--hs-accent); letter-spacing: 2px; }

/* 6. Header & navigation ---------------------------------------------------- */
.skip-link:focus {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	width: auto;
	height: auto;
	clip-path: none;
	padding: 0.75rem 1.25rem;
	border-radius: 999px;
	background: var(--hs-ink);
	color: var(--hs-canvas);
	font-weight: 700;
}

.site-header {
	position: fixed;
	top: var(--header-top);
	left: 0;
	right: 0;
	z-index: 100;
	padding-inline: var(--gutter);
	pointer-events: none;
}

.admin-bar .site-header { top: calc(32px + var(--header-top)); }

@media (max-width: 782px) {
	.admin-bar .site-header { top: calc(46px + var(--header-top)); }
}

.site-header__bar {
	pointer-events: auto;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: var(--container);
	height: var(--header-h);
	margin-inline: auto;
	padding: 0 0.6rem 0 1rem;
	border: 1px solid var(--hs-line-dark);
	border-radius: 999px;
	background: color-mix(in srgb, var(--hs-ink) 80%, transparent);
	-webkit-backdrop-filter: blur(16px) saturate(140%);
	backdrop-filter: blur(16px) saturate(140%);
	color: var(--hs-on-dark);
	transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled .site-header__bar {
	background: color-mix(in srgb, var(--hs-ink) 92%, transparent);
	box-shadow: 0 20px 40px -24px color-mix(in srgb, var(--hs-ink) 70%, transparent);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 44px;
	margin-right: auto;
	font-family: var(--hs-font-display);
	font-size: 1.2rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: inherit;
}

.brand__mark {
	flex: none;
	width: 40px;
	height: 40px;
	transition: transform 0.4s var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.04); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }

.brand__tagline {
	margin-top: 0.2rem;
	font-family: var(--hs-font-body);
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--hs-on-dark-muted);
}

@media (max-width: 360px) {
	.brand__tagline { display: none; }
}
.brand--logo { margin-right: auto; }
.brand--logo img { max-height: 40px; width: auto; }

.primary-nav .menu {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-nav .menu > li { position: relative; }

.primary-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--hs-on-dark-muted);
	transition: color 0.25s, background-color 0.25s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
	color: var(--hs-on-dark);
	background: color-mix(in srgb, var(--hs-canvas) 9%, transparent);
}

/* Dropdowns (depth 2). */
.primary-nav .sub-menu {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	border: 1px solid var(--hs-line-dark);
	border-radius: var(--r);
	background: var(--hs-ink);
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
}

.primary-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.primary-nav .menu-item-has-children > a::after {
	content: "";
	width: 6px;
	height: 6px;
	margin: -3px 0 0 0.5rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.7;
}

.primary-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.primary-nav .sub-menu .sub-menu { top: -0.5rem; left: calc(100% + 0.5rem); }

.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { display: flex; width: 100%; border-radius: var(--r-sm); }

.nav-toggle {
	display: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--hs-line-dark-strong);
	border-radius: 999px;
	background: transparent;
	color: var(--hs-on-dark);
	cursor: pointer;
}

.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__open { display: inline-grid; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-grid; }

.mobile-panel {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	padding: calc(var(--header-space) + 1rem) var(--gutter) 2rem;
	overflow-y: auto;
	background: var(--hs-ink);
	color: var(--hs-on-dark);
	opacity: 0;
	transform: translateY(-12px);
	transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.mobile-panel[hidden] { display: none; }
.mobile-panel.is-open { opacity: 1; transform: none; }
.admin-bar .mobile-panel { padding-top: calc(var(--header-space) + 46px + 1rem); }

.mobile-panel .menu { margin: 0; padding: 0; list-style: none; }

.mobile-panel .menu a {
	display: flex;
	align-items: center;
	min-height: 56px;
	border-bottom: 1px solid var(--hs-line-dark);
	font-family: var(--hs-font-display);
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
	color: var(--hs-on-dark);
}

.mobile-panel .sub-menu { padding-left: 1rem; list-style: none; }
.mobile-panel .sub-menu a { font-size: 1.2rem; min-height: 48px; }
.mobile-panel .btn { margin-top: 0.5rem; }

body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
	.primary-nav,
	.site-header__cta { display: none; }
	.nav-toggle { display: inline-grid; }

	/* Without JavaScript, show the menu as a scrollable row instead. */
	.no-js .nav-toggle { display: none; }
	.no-js .primary-nav { display: block; overflow-x: auto; }
}

/* 7. Hero ------------------------------------------------------------------- */
.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--header-space) + clamp(2.5rem, 1rem + 6vw, 6rem)) 0 clamp(4rem, 2rem + 7vw, 7.5rem);
	border-radius: 0 0 var(--r-xl) var(--r-xl);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
}

.hero__bg,
.page-hero::before,
.not-found__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		radial-gradient(42rem 30rem at 88% 8%, color-mix(in srgb, var(--hs-glow) 30%, transparent), transparent 70%),
		radial-gradient(36rem 28rem at -4% 104%, color-mix(in srgb, var(--hs-iris) 22%, transparent), transparent 70%);
}

.hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, var(--hs-line-dark) 1px, transparent 1px),
		linear-gradient(to bottom, var(--hs-line-dark) 1px, transparent 1px);
	background-size: 72px 72px;
	opacity: 0.45;
	-webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	align-items: center;
	gap: clamp(2.5rem, 1rem + 5vw, 5rem);
}

.hero__eyebrow { margin-bottom: 1.5rem; }

.hero__title {
	font-size: var(--fs-h1);
	font-weight: 420;
	line-height: 1.02;
	letter-spacing: -0.03em;
	color: var(--hs-on-dark);
}

.hero__line {
	display: block;
	overflow: hidden;
	padding-bottom: 0.08em;
	margin-bottom: -0.08em;
}

.hero__line > span {
	display: block;
	animation: hs-rise 1s var(--ease) both;
	animation-delay: calc(var(--i, 0) * 0.1s + 0.1s);
}

.hero .accent,
.page-hero .accent,
.not-found .accent,
.dark-panel .accent,
.site-footer .accent {
	color: var(--hs-glow);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.hero .accent,
	.not-found .accent {
		background: var(--hs-grad);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		padding-right: 0.04em;
	}
}

.hero__text {
	max-width: 46ch;
	margin-top: 1.5rem;
	font-size: var(--fs-lead);
	color: var(--hs-on-dark-muted);
	animation: hs-fade 1s ease 0.45s both;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2.25rem;
	animation: hs-fade 1s ease 0.6s both;
}

.hero__actions--center { justify-content: center; }

.hero__trust {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-top: 2.5rem;
	font-size: var(--fs-xs);
	line-height: 1.45;
	color: var(--hs-on-dark-muted);
	animation: hs-fade 1s ease 0.75s both;
}

.hero__trust p { display: flex; flex-direction: column; }
.hero__trust strong { color: var(--hs-on-dark); font-weight: 700; }
.hero__trust .stars { color: var(--hs-glow); font-size: 0.875rem; }

.avatar-stack { display: flex; }

.avatar-stack > span {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	margin-left: -10px;
	border: 2px solid var(--hs-ink);
	border-radius: 50%;
	font-family: var(--hs-font-display);
	font-size: 0.8rem;
	font-weight: 600;
	background: var(--hs-glow);
	color: var(--hs-ink);
}

.avatar-stack > span:first-child { margin-left: 0; }
.avatar-stack > span:nth-child(2) { background: var(--hs-iris); color: #fff; }
.avatar-stack > span:nth-child(3) { background: var(--hs-canvas); color: var(--hs-ink); }
.avatar-stack > span:last-child { background: var(--hs-ink-2); color: var(--hs-on-dark); border-color: var(--hs-ink); box-shadow: inset 0 0 0 1px var(--hs-line-dark-strong); }

.hero__visual {
	position: relative;
	width: 100%;
	max-width: 460px;
	justify-self: end;
	animation: hs-fade 1.1s ease 0.3s both;
}

.hero__visual::before {
	content: "";
	position: absolute;
	inset: 6% -6% -4%;
	z-index: -1;
	border-radius: 50%;
	background: var(--hs-grad);
	filter: blur(60px);
	opacity: 0.4;
}

.portrait {
	position: relative;
	overflow: hidden;
	aspect-ratio: 660 / 871;
	border: 1px solid var(--hs-line-dark-strong);
	border-radius: 999px 999px var(--r-lg) var(--r-lg);
	background: var(--hs-ink-2);
	box-shadow: var(--shadow-lg);
}

.portrait::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 35%;
	background: linear-gradient(to top, color-mix(in srgb, var(--hs-ink) 45%, transparent), transparent);
	pointer-events: none;
}

.portrait__img { width: 100%; height: 100%; object-fit: cover; }

.float-chip,
.float-badge {
	position: absolute;
	display: flex;
	align-items: center;
	margin: 0;
	box-shadow: 0 24px 44px -22px color-mix(in srgb, #000 70%, transparent);
}

.float-chip {
	gap: 0.75rem;
	padding: 0.75rem 1.05rem 0.75rem 0.75rem;
	border: 1px solid color-mix(in srgb, #fff 50%, transparent);
	border-radius: 18px;
	background: color-mix(in srgb, var(--hs-canvas) 92%, transparent);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: var(--hs-ink);
}

.float-chip strong {
	display: block;
	font-family: var(--hs-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
}

.float-chip small { display: block; margin-top: 0.2rem; font-size: 0.75rem; color: var(--hs-muted); }

.float-chip__icon {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 11px;
	background: var(--hs-grad);
	color: var(--hs-ink);
}

.float-chip__icon--ink { background: var(--hs-ink); color: var(--hs-glow); }
.float-chip__icon svg { width: 19px; height: 19px; }
.float-chip--one { top: 12%; left: -12%; animation: hs-float 6s ease-in-out infinite alternate; }
.float-chip--two { bottom: 10%; right: -5%; animation: hs-float 7s ease-in-out -2s infinite alternate-reverse; }

.float-badge {
	top: -2%;
	right: 6%;
	gap: 0.55rem;
	padding: 0.55rem 0.95rem;
	border: 1px solid var(--hs-line-dark-strong);
	border-radius: 999px;
	background: var(--hs-ink);
	color: var(--hs-on-dark);
	font-size: 0.78rem;
	font-weight: 600;
	animation: hs-float 5.5s ease-in-out infinite alternate;
}

.pulse-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--hs-success);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hs-success) 25%, transparent);
	animation: hs-pulse 2.2s infinite;
}

@media (max-width: 980px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__visual { justify-self: center; max-width: min(380px, 82vw); margin-top: 1rem; }
	.float-chip--one { left: -8%; }
	.float-chip--two { right: -6%; }
}

@media (max-width: 520px) {
	.hero__actions .btn { flex: 1 1 100%; }
	.float-chip { padding: 0.55rem 0.8rem 0.55rem 0.55rem; }
	.float-chip strong { font-size: 1.05rem; }
	.float-chip__icon { width: 32px; height: 32px; }
	.float-chip--one { left: -4%; }
	.float-chip--two { right: -4%; }
}

/* 8. Marquee ---------------------------------------------------------------- */
.marquee { padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0 0; }

.marquee__label {
	margin-bottom: 1.25rem;
	text-align: center;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--hs-faint);
}

.marquee__viewport {
	display: flex;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
	display: flex;
	flex: none;
	align-items: center;
	gap: 3rem;
	min-width: max-content;
	margin: 0;
	padding: 0 3rem 0 0;
	list-style: none;
	animation: hs-marquee 45s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__track li {
	display: flex;
	align-items: center;
	gap: 3rem;
	font-family: var(--hs-font-display);
	font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem);
	color: var(--hs-muted);
	white-space: nowrap;
}

.marquee__track li::after {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hs-accent);
	opacity: 0.6;
}

/* 9. Services bento ---------------------------------------------------------- */
.bento {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: minmax(210px, auto);
	gap: 1rem;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	overflow: hidden;
	padding: 1.75rem;
	border: 1px solid var(--hs-line);
	border-radius: var(--r-lg);
	background: var(--hs-surface);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}

.tile:hover { transform: translateY(-4px); border-color: var(--hs-line-strong); box-shadow: var(--shadow); }
.tile:nth-child(4) { grid-column: span 2; }

.tile__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 16px;
	background: var(--hs-sunk);
	color: var(--hs-accent);
	transition: transform 0.4s var(--ease);
}

.tile__icon svg { width: 24px; height: 24px; }
.tile:hover .tile__icon { transform: rotate(-8deg) scale(1.05); }
.tile__body { margin-top: auto; }
.tile__title { margin-bottom: 0.45rem; font-size: 1.375rem; }
.tile p { font-size: var(--fs-sm); line-height: 1.55; color: var(--hs-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }

.tags li {
	padding: 0.3rem 0.65rem;
	border-radius: 8px;
	background: var(--hs-sunk);
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--hs-muted);
}

.tile--feature {
	grid-column: span 2;
	grid-row: span 2;
	justify-content: space-between;
	padding: clamp(1.75rem, 1rem + 2vw, 2.5rem);
	border-color: transparent;
	background: var(--hs-ink);
	color: var(--hs-on-dark);
}

.tile--feature::before {
	content: "";
	position: absolute;
	top: -120px;
	right: -100px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: var(--hs-grad);
	filter: blur(40px);
	opacity: 0.3;
	pointer-events: none;
}

.tile--feature .tile__icon { background: color-mix(in srgb, var(--hs-canvas) 9%, transparent); color: var(--hs-glow); }
.tile--feature .tile__title { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 0.75rem; }
.tile--feature p { max-width: 42ch; font-size: 1rem; color: var(--hs-on-dark-muted); }
.tile--feature .tags li { background: color-mix(in srgb, var(--hs-canvas) 9%, transparent); color: var(--hs-on-dark-muted); }

@media (max-width: 1024px) {
	.bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile--feature { grid-row: span 1; }
}

@media (max-width: 640px) {
	.bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
	.tile--feature,
	.tile:nth-child(4) { grid-column: auto; }
}

/* 10. Process & work ---------------------------------------------------------- */
.steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	counter-reset: step;
}

.step {
	position: relative;
	overflow: hidden;
	padding: 1.75rem;
	border: 1px solid var(--hs-line);
	border-radius: var(--r-lg);
	background: var(--hs-surface);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--hs-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.6s var(--ease);
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step:hover::after { transform: scaleX(1); }

.step__num {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 1.5rem;
	border: 1.5px solid var(--hs-line-strong);
	border-radius: 50%;
	font-family: var(--hs-font-display);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--hs-accent);
}

.step__title { margin-bottom: 0.4rem; font-size: 1.375rem; }
.step p { font-size: var(--fs-sm); color: var(--hs-muted); }

@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.cases {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.case {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	border: 1px solid var(--hs-line);
	border-radius: var(--r-lg);
	background: var(--hs-surface);
	transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s;
}

.case:hover {
	transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--hs-accent) 40%, transparent);
	box-shadow: var(--shadow);
}

.case:focus-within { outline: 2px solid var(--hs-accent); outline-offset: 3px; }
.case__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }

.case__index {
	font-family: var(--hs-font-display);
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--hs-faint);
}

.case__title { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); padding-right: 3.5rem; }
.case__title a:focus-visible { outline: none; }
.case__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.case p { font-size: var(--fs-sm); color: var(--hs-muted); padding-right: 3.5rem; }

.case__go {
	position: absolute;
	right: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	bottom: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--hs-line-strong);
	border-radius: 50%;
	color: var(--hs-ink);
	transition: background-color 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.case__go svg { width: 18px; height: 18px; }
.case:hover .case__go { background: var(--hs-accent); border-color: var(--hs-accent); color: #fff; transform: rotate(45deg); }

@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* 11. Toolkit / dark panel ------------------------------------------------- */
.dark-panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: clamp(3rem, 2rem + 5vw, 5.5rem) clamp(1.25rem, 0.5rem + 4vw, 4rem);
	border-radius: var(--r-xl);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
}

.dark-panel__glow {
	position: absolute;
	top: -320px;
	left: 50%;
	z-index: -1;
	width: 680px;
	height: 620px;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--hs-glow) 45%, transparent), color-mix(in srgb, var(--hs-iris) 25%, transparent) 60%, transparent);
	transform: translateX(-50%);
	opacity: 0.6;
	pointer-events: none;
}

.dark-panel .section-title { color: var(--hs-on-dark); }
.dark-panel .lead { color: var(--hs-on-dark-muted); }
.dark-panel .eyebrow { color: var(--hs-glow); }
.dark-panel .section-head { margin-bottom: 0; }

.tech-cloud {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	max-width: 940px;
	margin: 2.75rem auto 0;
}

.tech-cloud li {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 1.05rem;
	border: 1px solid var(--hs-line-dark);
	border-radius: 999px;
	background: color-mix(in srgb, var(--hs-canvas) 4%, transparent);
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--hs-on-dark);
	transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s;
}

.tech-cloud li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hs-grad);
}

.tech-cloud li:hover {
	transform: translateY(-3px);
	border-color: color-mix(in srgb, var(--hs-glow) 55%, transparent);
	background: color-mix(in srgb, var(--hs-glow) 12%, transparent);
}

/* 12. Why & stats ------------------------------------------------------------ */
.why {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	align-items: start;
	gap: clamp(2.5rem, 1rem + 6vw, 5.5rem);
}

.why__intro { position: sticky; top: calc(var(--header-space) + 2rem); }

.why__stat {
	margin-top: 1.75rem;
	font-family: var(--hs-font-display);
	font-size: clamp(3.5rem, 2rem + 5vw, 5.5rem);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--hs-accent);
}

.why__stat-label { margin-top: 0.5rem; max-width: 30ch; font-size: var(--fs-sm); color: var(--hs-muted); }

.why__row {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: 1.25rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--hs-line);
	transition: padding-left 0.35s var(--ease);
}

.why__row:last-child { border-bottom: 1px solid var(--hs-line); }
.why__row:hover { padding-left: 0.5rem; }

.why__num {
	font-family: var(--hs-font-display);
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--hs-accent);
}

.why__row h3 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.why__row p { font-size: var(--fs-sm); color: var(--hs-muted); }

.stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
	padding: clamp(1.75rem, 1rem + 3vw, 3rem) clamp(1.25rem, 0.5rem + 3vw, 3rem);
	border-radius: var(--r-xl);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
}

.why + .stats { margin-top: clamp(3.5rem, 2rem + 5vw, 6rem); }

.stat {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	padding: 0.5rem clamp(1rem, 0.5rem + 1.5vw, 2rem);
	border-left: 1px solid var(--hs-line-dark);
}

.stat:first-child { border-left: 0; padding-left: 0; }

.stat__value {
	font-family: var(--hs-font-display);
	font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.5rem);
	font-weight: 450;
	line-height: 1;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.stat__suffix { color: var(--hs-glow); }
.stat__label { margin-top: 0.75rem; font-size: var(--fs-xs); font-weight: 600; color: var(--hs-on-dark-muted); }

@media (max-width: 960px) {
	.why { grid-template-columns: 1fr; }
	.why__intro { position: static; }
}

@media (max-width: 760px) {
	.stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
	.stat { padding: 0 0 0 1rem; }
	.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* 13. Testimonials & FAQ ------------------------------------------------------ */
.quotes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.quote {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	margin: 0;
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	border: 1px solid var(--hs-line);
	border-radius: var(--r-lg);
	background: var(--hs-surface);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote blockquote p { font-size: 1.0625rem; line-height: 1.6; }

.quote--featured {
	position: relative;
	grid-column: 1 / -1;
	padding: clamp(2rem, 1rem + 4vw, 3.75rem);
	overflow: hidden;
	background:
		radial-gradient(30rem 20rem at 100% 0%, color-mix(in srgb, var(--hs-glow) 14%, transparent), transparent 70%),
		var(--hs-surface);
}

.quote--featured blockquote p {
	max-width: 26ch;
	font-family: var(--hs-font-display);
	font-size: clamp(1.5rem, 1.05rem + 1.9vw, 2.5rem);
	font-weight: 450;
	line-height: 1.22;
	letter-spacing: -0.015em;
}

.quote__mark {
	position: absolute;
	top: clamp(0.5rem, 2vw, 1.25rem);
	right: clamp(1rem, 3vw, 2.75rem);
	font-family: var(--hs-font-display);
	font-size: clamp(7rem, 4rem + 9vw, 12rem);
	line-height: 1;
	color: var(--hs-accent);
	opacity: 0.16;
	pointer-events: none;
}
.quote__who { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; }
.quote__who > span:last-child { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--hs-muted); }
.quote__who strong { font-family: var(--hs-font-display); font-size: 1.05rem; font-weight: 600; color: var(--hs-ink); }

.avatar {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--hs-grad);
	color: var(--hs-ink);
	font-family: var(--hs-font-display);
	font-weight: 600;
}

.avatar--0 { background: var(--hs-iris); color: #fff; }
.avatar--1 { background: var(--hs-ink); color: var(--hs-canvas); }
.quote--featured .avatar { width: 56px; height: 56px; font-size: 1.1rem; }

@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--hs-line-strong); }
.faq__item { border-bottom: 1px solid var(--hs-line-strong); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding: 1.5rem 0.25rem;
	font-family: var(--hs-font-display);
	font-size: clamp(1.125rem, 1rem + 0.6vw, 1.45rem);
	font-weight: 500;
	line-height: 1.3;
	list-style: none;
	cursor: pointer;
	transition: color 0.25s;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { content: ""; }
.faq__q:hover { color: var(--hs-accent); }

.faq__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--hs-line-strong);
	border-radius: 50%;
	color: var(--hs-accent);
	transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}

.faq__icon svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.faq__item[open] .faq__icon { background: var(--hs-accent); border-color: var(--hs-accent); color: #fff; }
.faq__item[open] .faq__icon svg { transform: rotate(135deg); }
.faq__a p { max-width: 68ch; padding: 0 0.25rem 1.6rem; color: var(--hs-muted); line-height: 1.7; }
.faq__item[open] .faq__a { animation: hs-fade 0.4s ease both; }

/* 14. Contact & forms ------------------------------------------------------- */
.contact {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(2rem, 1rem + 4vw, 4rem);
	padding: clamp(1.25rem, 0.5rem + 4vw, 3.5rem);
	border: 1px solid var(--hs-line);
	border-radius: var(--r-xl);
	background: var(--hs-surface);
}

.contact::before {
	content: "";
	position: absolute;
	bottom: -260px;
	left: -160px;
	z-index: -1;
	width: 560px;
	height: 560px;
	border-radius: 50%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--hs-glow) 22%, transparent), transparent);
	pointer-events: none;
}

.contact__info { padding: clamp(0.5rem, 1vw, 1rem) 0; }
.contact__info .lead { margin-top: 1.25rem; }

.contact-list { display: flex; flex-direction: column; gap: 0.6rem; margin: 2rem 0 1.75rem; }

.contact-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1.1rem 0.85rem 0.85rem;
	border: 1px solid var(--hs-line);
	border-radius: 18px;
	background: var(--hs-canvas);
	font-weight: 600;
	overflow-wrap: anywhere;
	transition: transform 0.35s var(--ease), border-color 0.35s;
}

a.contact-item:hover { transform: translateX(4px); border-color: color-mix(in srgb, var(--hs-accent) 45%, transparent); }
.contact-item > span:last-child { display: flex; flex-direction: column; min-width: 0; }

.contact-item small {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hs-faint);
}

.contact-item__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	border-radius: 13px;
	background: var(--hs-ink);
	color: var(--hs-glow);
}

.contact-item__icon svg { width: 20px; height: 20px; }

.socials { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }

.socials a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--hs-line-strong);
	border-radius: 13px;
	color: var(--hs-ink);
	transition: transform 0.3s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}

.socials a:hover { transform: translateY(-3px); background: var(--hs-accent); border-color: var(--hs-accent); color: #fff; }
.socials svg { width: 20px; height: 20px; }

.form-card {
	position: relative;
	padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
	border-radius: var(--r-lg);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
	color-scheme: dark;
	box-shadow: var(--shadow-lg);
}

.form-card__title { font-size: 1.6rem; color: var(--hs-on-dark); }
.form-card__text { margin: 0.4rem 0 1.5rem; font-size: var(--fs-sm); color: var(--hs-on-dark-muted); }
.form-card__note { margin-top: 0.9rem; text-align: center; font-size: var(--fs-xs); color: var(--hs-on-dark-muted); }
.form-card__note.is-success { color: var(--hs-success); }

.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1rem; }

.field label,
.form-plugin label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hs-on-dark-muted);
}

.field input,
.field select,
.field textarea,
.form-plugin input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-plugin select,
.form-plugin textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: 1.5px solid var(--hs-line-dark);
	border-radius: 14px;
	background: color-mix(in srgb, var(--hs-canvas) 5%, transparent);
	color: var(--hs-on-dark);
	font-size: var(--fs-sm);
	transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.field textarea,
.form-plugin textarea { min-height: 120px; resize: vertical; }

.field ::placeholder,
.form-plugin ::placeholder { color: color-mix(in srgb, var(--hs-canvas) 45%, var(--hs-ink)); opacity: 1; }

.field option,
.form-plugin option { background: var(--hs-ink); color: var(--hs-on-dark); }

.field input:focus,
.field select:focus,
.field textarea:focus,
.form-plugin input:focus,
.form-plugin select:focus,
.form-plugin textarea:focus {
	outline: none;
	border-color: var(--hs-glow);
	background: color-mix(in srgb, var(--hs-canvas) 8%, transparent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hs-glow) 22%, transparent);
}

.field input:user-invalid { border-color: #FF8C8C; }

/* Contact Form 7 / generic plugin forms inside the dark card. */
.form-plugin p { margin-bottom: 1rem; }
.form-plugin .wpcf7-form-control-wrap { display: block; }

.form-plugin input[type="submit"],
.form-plugin button[type="submit"] {
	width: 100%;
	min-height: 54px;
	border: 0;
	border-radius: 999px;
	background: var(--hs-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.3s var(--ease);
}

.form-plugin input[type="submit"]:hover,
.form-plugin button[type="submit"]:hover { background: var(--hs-accent-hover); transform: translateY(-2px); }
.form-plugin .wpcf7-not-valid-tip { margin-top: 0.35rem; font-size: var(--fs-xs); color: #FFB4A0; }
.form-plugin .wpcf7-spinner { display: block; margin: 0.75rem auto 0; }

.form-plugin .wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border-radius: 14px;
	font-size: var(--fs-sm);
}

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* Light forms: search, comments. */
.search-form { display: flex; gap: 0.5rem; }

.search-form__input,
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.8rem 1.25rem;
	border: 1.5px solid var(--hs-line-strong);
	border-radius: 999px;
	background: var(--hs-surface);
	color: var(--hs-ink);
}

.comment-form textarea { min-height: 140px; border-radius: var(--r); }

.search-form__input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--hs-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--hs-accent) 18%, transparent);
}

.search-form__submit {
	display: grid;
	place-items: center;
	flex: none;
	width: 52px;
	height: 52px;
	border: 0;
	border-radius: 50%;
	background: var(--hs-ink);
	color: var(--hs-canvas);
	cursor: pointer;
}

.search-form__submit svg { width: 20px; height: 20px; }

/* 15. Footer ---------------------------------------------------------------- */
.site-footer {
	padding: clamp(4rem, 2rem + 6vw, 6.5rem) 0 2rem;
	border-radius: var(--r-xl) var(--r-xl) 0 0;
	background: var(--hs-ink);
	color: var(--hs-on-dark-muted);
	font-size: var(--fs-sm);
}

.footer-cta {
	max-width: 780px;
	margin: 0 auto clamp(3.5rem, 2rem + 5vw, 5.5rem);
	text-align: center;
}

.footer-cta__title {
	margin: 1rem 0 2rem;
	font-size: var(--fs-h2);
	font-weight: 450;
	line-height: 1.05;
	color: var(--hs-on-dark);
}

.footer-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
	gap: 2.5rem;
	padding: 3rem 0 2.5rem;
	border-top: 1px solid var(--hs-line-dark);
}

.site-footer > .container:first-child .footer-grid { padding-top: 0; border-top: 0; }
.site-footer .brand { color: var(--hs-on-dark); margin-right: 0; }
.footer-brand p { max-width: 34ch; margin: 1rem 0 1.5rem; }
.site-footer .socials a { border-color: var(--hs-line-dark-strong); color: var(--hs-on-dark); }
.site-footer .socials a:hover { background: var(--hs-glow); border-color: var(--hs-glow); color: var(--hs-ink); }

.footer-col__title {
	margin-bottom: 1rem;
	font-family: var(--hs-font-body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: color-mix(in srgb, var(--hs-canvas) 58%, var(--hs-ink));
}

.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { overflow-wrap: anywhere; }
.footer-col a,
.footer-col span { display: inline-block; padding: 0.35rem 0; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover,
.legal-menu a:hover { color: var(--hs-glow); }

.footer-wordmark {
	overflow: hidden;
	margin: 0.5rem 0 1rem;
	font-family: var(--hs-font-display);
	font-size: clamp(4rem, 1rem + 16vw, 13.5rem);
	font-weight: 500;
	line-height: 0.85;
	letter-spacing: -0.045em;
	text-align: center;
	white-space: nowrap;
	color: var(--hs-on-dark);
	opacity: 0.07;
	user-select: none;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hs-line-dark);
	font-size: var(--fs-xs);
}

.legal-menu { display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* 16. Inner pages, posts, prose --------------------------------------------- */
.page-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: calc(var(--header-space) + clamp(2.5rem, 1rem + 5vw, 5rem)) 0 clamp(3rem, 2rem + 4vw, 5rem);
	border-radius: 0 0 var(--r-xl) var(--r-xl);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
}

.page-hero::before { content: ""; }
.page-hero__inner { display: flex; flex-direction: column; gap: 1rem; }

.page-hero__title {
	max-width: 22ch;
	font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
	font-weight: 450;
	line-height: 1.04;
	letter-spacing: -0.028em;
	overflow-wrap: break-word;
}

.page-hero__text { max-width: 60ch; font-size: var(--fs-lead); color: var(--hs-on-dark-muted); }
.page-hero .eyebrow a:hover { text-decoration: underline; }

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	font-size: 0.875rem;
	color: var(--hs-on-dark-muted);
}

.entry-media { position: relative; z-index: 2; margin-top: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)); }
.entry-media img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }

.entry-content { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); overflow-wrap: break-word; }
.entry-content--full { padding: 0; }
.elementor-content { min-height: 40vh; }

.is-elementor-page .site-main,
.is-full-width .site-main { padding-top: var(--header-space); }

.entry-content > * + * { margin-top: 1.25em; }
.entry-content > :is(h2, h3, h4) { margin-top: 2em; }
.entry-content h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); }
.entry-content h3 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem); }
.entry-content h4 { font-size: 1.25rem; }
.entry-content :is(h2, h3, h4) + * { margin-top: 0.75em; }
.entry-content p,
.entry-content li { text-wrap: pretty; }

.entry-content a:not(.wp-block-button__link):not(.btn) {
	color: var(--hs-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.entry-content a:not(.wp-block-button__link):not(.btn):hover { text-decoration-thickness: 2px; }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: 0.4em; }
.entry-content li::marker { color: var(--hs-accent); }

.entry-content blockquote,
.entry-content .wp-block-quote {
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 3px solid var(--hs-accent);
	font-family: var(--hs-font-display);
	font-size: 1.35rem;
	font-style: italic;
	line-height: 1.45;
}

.entry-content blockquote cite { display: block; margin-top: 0.75rem; font-family: var(--hs-font-body); font-size: var(--fs-xs); font-style: normal; color: var(--hs-muted); }
.entry-content img { border-radius: var(--r); }
.entry-content figcaption,
.wp-caption-text { margin-top: 0.6rem; text-align: center; font-size: var(--fs-xs); color: var(--hs-muted); }

.entry-content pre {
	overflow-x: auto;
	padding: 1.25rem 1.5rem;
	border-radius: var(--r);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
	font-size: 0.9rem;
}

.entry-content :not(pre) > code { padding: 0.15em 0.4em; border-radius: 6px; background: var(--hs-sunk); font-size: 0.9em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.entry-content th,
.entry-content td { padding: 0.75rem; border: 0; border-bottom: 1px solid var(--hs-line-strong); text-align: left; }
.entry-content thead { border-bottom: 0; }
.entry-content thead th { border-bottom: 2px solid var(--hs-ink); font-weight: 700; }
.entry-content hr,
.wp-block-separator { height: 1px; border: 0; background: var(--hs-line-strong); }

.entry-content .alignwide { width: min(1100px, calc(100vw - var(--gutter) * 2)); max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-inline: 50%; transform: translateX(-50%); }
.entry-content .alignfull img { border-radius: 0; }
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }

.wp-block-button__link,
.wp-element-button {
	border-radius: 999px;
	background: var(--hs-accent);
	color: #fff;
	font-weight: 700;
	padding: 0.85rem 1.6rem;
}

.wp-block-button__link:hover { background: var(--hs-accent-hover); color: #fff; }
.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; color: var(--hs-ink); }

.page-links { display: flex; gap: 0.5rem; margin-top: 2rem; font-weight: 700; }

.entry-footer { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.tag-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.tag-list a { padding: 0.35rem 0.85rem; border: 1px solid var(--hs-line-strong); border-radius: 999px; font-size: var(--fs-xs); font-weight: 600; }
.tag-list a:hover { border-color: var(--hs-accent); color: var(--hs-accent); }

.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	height: 100%;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--hs-line);
	border-radius: var(--r);
	background: var(--hs-surface);
	transition: border-color 0.3s, transform 0.3s var(--ease);
}

.post-navigation a:hover { transform: translateY(-3px); border-color: var(--hs-accent); }
.post-navigation .nav-next { grid-column: 2; text-align: right; }
.nav-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--hs-faint); }
.nav-title { font-family: var(--hs-font-display); font-size: 1.15rem; }

@media (max-width: 600px) {
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { grid-column: auto; }
}

/* Post cards. */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--hs-line);
	border-radius: var(--r-lg);
	background: var(--hs-surface);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:focus-within { outline: 2px solid var(--hs-accent); outline-offset: 3px; }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 0.6rem; padding: 1.5rem; }
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--fs-xs); color: var(--hs-faint); }
.card__title { font-size: 1.4rem; line-height: 1.2; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__title a:focus-visible { outline: none; }
.card__excerpt { font-size: var(--fs-sm); color: var(--hs-muted); }
.card__more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; padding-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: var(--hs-accent); }
.card__more svg { width: 16px; height: 16px; }

.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 3rem; }

.page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--hs-line-strong);
	border-radius: 999px;
	font-weight: 700;
}

.page-numbers.current { background: var(--hs-ink); border-color: var(--hs-ink); color: var(--hs-canvas); }
a.page-numbers:hover { border-color: var(--hs-accent); color: var(--hs-accent); }
.page-numbers svg { width: 18px; height: 18px; }
.icon--flip { transform: scaleX(-1); }

.search-again { max-width: 520px; margin-bottom: 2.5rem; }

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
	border: 1.5px dashed var(--hs-line-strong);
	border-radius: var(--r-lg);
	text-align: center;
}

.empty-state h2 { font-size: var(--fs-h2-md); }
.empty-state p { max-width: 44ch; color: var(--hs-muted); }

/* Comments. */
.comments { padding-bottom: clamp(3rem, 6vw, 5rem); }
.comments__title,
.comment-reply-title { margin-bottom: 1.5rem; font-size: 1.75rem; }
.comment-list { margin: 0 0 2.5rem; padding: 0; list-style: none; }
.comment-list .children { margin: 0; padding-left: clamp(1rem, 4vw, 2.5rem); list-style: none; }
.comment-body { padding: 1.5rem 0; border-bottom: 1px solid var(--hs-line); }
.comment-author { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { margin: 0.25rem 0 0.75rem; font-size: var(--fs-xs); color: var(--hs-faint); }
.comment-content > * + * { margin-top: 0.75em; }
.reply a { font-size: var(--fs-xs); font-weight: 700; color: var(--hs-accent); }
.comment-form > p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: 0.4rem; font-size: var(--fs-xs); font-weight: 700; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 500; }

/* 404. */
.not-found {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	place-items: center;
	min-height: min(100svh, 920px);
	padding: calc(var(--header-space) + 3rem) 0 clamp(4rem, 8vw, 6rem);
	border-radius: 0 0 var(--r-xl) var(--r-xl);
	background: var(--hs-ink);
	color: var(--hs-on-dark);
	text-align: center;
}

.not-found__code {
	font-family: var(--hs-font-display);
	font-size: clamp(7rem, 3rem + 16vw, 14rem);
	font-weight: 500;
	line-height: 0.85;
	letter-spacing: -0.05em;
	background: linear-gradient(120deg, var(--hs-glow), var(--hs-iris));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.not-found .eyebrow { margin-top: 1.5rem; }
.not-found__title { max-width: 18ch; margin: 1rem auto 0; font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem); font-weight: 450; }
.not-found__text { max-width: 48ch; margin: 1rem auto 0; color: var(--hs-on-dark-muted); }
.not-found__search { max-width: 440px; margin: 2rem auto 0; }

.not-found .search-form__input {
	border-color: var(--hs-line-dark-strong);
	background: color-mix(in srgb, var(--hs-canvas) 6%, transparent);
	color: var(--hs-on-dark);
}

.not-found .search-form__input::placeholder { color: var(--hs-on-dark-muted); }
.not-found .search-form__submit { background: var(--hs-glow); color: var(--hs-ink); }

/* 17. Utilities, motion, print ------------------------------------------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.js [data-reveal] {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
	transition-delay: calc(var(--d, 0) * 70ms);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal].is-visible:hover { transition-delay: 0s; }
.js .tile[data-reveal].is-visible:hover,
.js .case[data-reveal].is-visible:hover,
.js .step[data-reveal].is-visible:hover,
.js .quote[data-reveal].is-visible:hover { transform: translateY(-4px); }

@keyframes hs-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
@keyframes hs-pulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--hs-success) 0%, transparent); } }
@keyframes hs-marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.js [data-reveal] { opacity: 1; transform: none; }
	.marquee__track { animation: none; }
	.marquee__track[aria-hidden="true"] { display: none; }
	.marquee__viewport { justify-content: center; -webkit-mask-image: none; mask-image: none; }
	.marquee__track { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 0 var(--gutter); gap: 0.5rem 2rem; }
	.marquee__track li { gap: 2rem; }
}

@media print {
	.site-header,
	.mobile-panel,
	.site-footer,
	.hero__visual,
	.marquee { display: none !important; }
	.hero,
	.page-hero,
	.dark-panel,
	.stats,
	.form-card { background: #fff !important; color: #000 !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
}
