/* ==========================================================================
   Suvales Starter — design system v2.1
   ==========================================================================
   Design language: Framer.com-inspired — dark-only, high contrast,
   atmospheric glows, glass surfaces, pill buttons, bento grids, canvas
   preview windows. Palette: black / dark blue / medium blue / gray / white.

   ── How to re-brand ────────────────────────────────────────────────────────
   1. Fonts:      change the Google Fonts URL in functions.php and the
                  --font-* tokens here.
   2. Colors:     edit the palette block in :root. Blue accents are
                  --color-primary (medium blue) and --color-deep (dark blue).
   3. Radii/shadows/motion: --radius-*, --shadow-*, --dur-*, --ease-*.

   ── Tokens explained ───────────────────────────────────────────────────────
   --color-bg            page background (near-black, blue tint)
   --color-surface       cards / panels (dark charcoal)
   --color-surface-2     alternate section background
   --color-surface-hover card hover background
   --color-primary       medium blue — links, chips, focus, accents
   --color-primary-soft  tinted blue background (icon chips, eyebrows)
   --color-deep          dark blue — deep glows, gradients
   --color-accent        sky blue — gradient partners, stars
   --color-text / -muted / -faint   white → gray text hierarchy
   --color-border / -strong         hairlines (white with low alpha)
   ========================================================================== */

:root {
	/* Palette — neutral black/white base, one dark-blue accent. */
	--color-bg: #050506;
	--color-surface: #0b0b0e;
	--color-surface-2: #08080a;
	--color-surface-hover: #141417;

	--color-primary: #2e6ae8;
	--color-primary-hover: #4b86f5;
	--color-primary-soft: rgba(46, 106, 232, 0.14);
	--color-primary-soft-text: #9db8ff;
	--color-on-primary: #ffffff;
	--color-on-strong: #050506;
	--color-accent: #7c9cff;
	--color-deep: #1e3a8a;

	/* Floating surfaces — header pill, chips, mobile nav panel. */
	--color-pill: rgba(11, 11, 14, 0.72);
	--color-pill-strong: rgba(7, 7, 8, 0.88);
	--color-panel: rgba(9, 9, 10, 0.92);

	--color-dark: #070708;
	--color-dark-2: #0d0d10;
	--color-white: #ffffff;

	/* Text hierarchy — white → neutral gray. */
	--color-text: #f8fafc;
	--color-text-muted: #9aa2ad;
	--color-text-faint: #6e7681;
	--color-border: rgba(148, 155, 166, 0.14);
	--color-border-strong: rgba(148, 155, 166, 0.26);

	/* Hairlines & tints — white alpha scale for borders and hover fills. */
	--hairline-faint: rgba(255, 255, 255, 0.04);
	--hairline: rgba(255, 255, 255, 0.06);
	--hairline-strong: rgba(255, 255, 255, 0.16);
	--tint-hover: rgba(255, 255, 255, 0.08);

	/* Blue glows — repeated halo colors for avatars, rings, focus. */
	--glow-primary: rgba(46, 106, 232, 0.4);
	--glow-primary-strong: rgba(46, 106, 232, 0.5);

	/* Feedback. */
	--color-success: #34d399;
	--color-success-bg: rgba(16, 185, 129, 0.12);
	--color-success-border: rgba(52, 211, 153, 0.4);
	--color-error: #f87171;
	--color-error-bg: rgba(239, 68, 68, 0.12);
	--color-error-border: rgba(248, 113, 113, 0.4);
	--color-warning: #fbbf24;
	--color-warning-bg: rgba(245, 158, 11, 0.12);
	--color-warning-border: rgba(251, 191, 36, 0.4);

	/* Focus ring. */
	--focus-ring: 0 0 0 4px rgba(96, 165, 250, 0.4);

	/* Typography — Sora (display) + Manrope (body) + JetBrains Mono. */
	--font-display: "Sora", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

	/* Fluid type scale — one step down across the board. --text-4xl is the
	   hero display tier (hero-title consumes it). */
	--text-xs: 0.75rem;
	--text-sm: 0.875rem;
	--text-base: 1rem;
	--text-md: 1.0625rem;
	--text-lg: 1.125rem;
	--text-xl: 1.25rem;
	--text-2xl: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
	--text-3xl: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem);
	--text-4xl: clamp(2.25rem, 5.5vw, 4.25rem);

	/* Leading & tracking. */
	--leading-none: 1.05;
	--leading-tight: 1.15;
	--leading-snug: 1.35;
	--leading-normal: 1.65;
	--leading-relaxed: 1.7;
	--tracking-tight: -0.03em;
	--tracking-wide: 0.08em;

	/* Spacing scale — 4px grid; the rhythm tokens below are the actual
	   values used by components (gaps, section rhythm). */
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;

	/* Radii. */
	--radius-sm: 10px;
	--radius-md: 14px;
	--radius-lg: 20px;
	--radius-full: 999px;

	/* Shadows — multi-layered, deep. */
	--shadow-sm: 0 4px 16px -8px rgba(0, 0, 0, 0.5);
	--shadow-md: 0 12px 32px -12px rgba(0, 0, 0, 0.65);
	--shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
	--shadow-xl: 0 40px 80px -24px rgba(0, 0, 0, 0.8);
	--shadow-primary: 0 0 0 1px rgba(59, 130, 246, 0.4), 0 16px 48px -12px rgba(37, 99, 235, 0.45);

	/* Motion. */
	--dur-fast: 0.15s;
	--dur-base: 0.25s;
	--dur-slow: 0.6s;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

	/* Layout — 1280px standard, 1440px edge-to-edge, safe areas. */
	--content-width: 1280px;
	--content-width-wide: 1440px;
	--content-width-narrow: 720px;
	--container-pad: clamp(20px, 4vw, 48px);
	--section-pad: clamp(6rem, 12vw, 10rem);
	--section-pad-sm: clamp(3.5rem, 8vw, 5.5rem);
	/* Pill height (58px) + sticky offset (12px): the hero backdrop is
	   pulled up by exactly this so no strip ever shows above the pill. */
	--header-h: 70px;

	/* Z-index scale. */
	--z-content: 10;
	--z-header: 50;
	--z-overlay: 60;
	--z-modal: 70;

	/* Runtime-driven values (fed by main.js). Defaults keep no-JS and
	   reduced-motion identical to a static page. */
	--par-y-1: 0px; /* hero copy      */
	--par-y-2: 0px; /* ghost wordmark */
	--par-y-3: 0px; /* hero window    */
	--par-y-4: 0px; /* float chips    */
	--win-tilt: 0deg;   /* hero window fly-away tilt (JS)  */
	--win-scale: 1;     /* hero window fly-away growth    */
	--win-blur: 0px;    /* hero scene defocus near edge   */

	/* Film grain — one monochrome character (desaturated feTurbulence,
	   stitched tile) reused by every glass/card surface. Strength steps
	   keep the texture consistent while letting size set the feel. */
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
	--grain-s: 0.025;   /* pill, cards           */
	--grain-m: 0.035;   /* hero product window   */
	--spot-x: 50%;  /* cursor light   */
	--spot-y: 30%;

	/* Native form controls & scrollbars render dark. */
	color-scheme: dark;
}

/* ── Base ─────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 20px);
	-webkit-text-size-adjust: 100%;
}

html {
	/* The root scroll container gets the same clip as body, so reveal
	   transforms or glows can never create a horizontal scroll on the
	   viewport — even in their pre-reveal, out-of-view state. */
	overflow-x: hidden;
	overflow-x: clip;
}
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--text-base);
	line-height: var(--leading-normal);
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	/* Variable fonts only — never synthesize faux weights. */
	font-synthesis: none;
	/* Fallback for browsers without clip support, then the modern value.
	   Prevents any horizontal scroll from reveal transforms or glows. */
	overflow-x: hidden;
	overflow-x: clip;
	-webkit-tap-highlight-color: transparent;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color var(--dur-fast) ease;
}
a:hover {
	color: var(--color-primary-hover);
	text-decoration: underline;
}

h1, h2, h3, h4, h5 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 0.5em;
	color: var(--color-text);
	text-wrap: balance;
}

strong {
	font-weight: 600;
}

h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: 1.1rem; }
h4 { font-size: var(--text-base); }

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-left: 1.25em;
}

::selection {
	background: rgba(59, 130, 246, 0.35);
	color: var(--color-white);
}

:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

/* Slim, quiet scrollbars (WebKit/Blink). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.22);
	border-radius: var(--radius-full);
	border: 2px solid var(--color-bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.4); }

/* ── Film grain ────────────────────────────────────────────────────────────
   Subtle noise over the whole page — the texture that separates premium
   dark sites from flat ones. Static, pointer-transparent, invisible at
   normal reading distance. */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 100;
	pointer-events: none;
	opacity: 0.025;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Layout ───────────────────────────────────────────────────────────── */

.container {
	max-width: var(--content-width);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
.container-narrow {
	max-width: var(--content-width-narrow);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}
.container-wide {
	max-width: var(--content-width-wide);
	margin: 0 auto;
	padding: 0 var(--container-pad);
}

.section {
	padding: var(--section-pad) 0;
}
.section-alt {
	background: var(--color-surface-2);
	border-top: 1px solid var(--hairline-faint);
	border-bottom: 1px solid var(--hairline-faint);
}
.section-tight {
	padding: var(--section-pad-sm) 0;
}

/* Anchored sections clear the sticky header. */
[id] {
	scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ── Utilities ─────────────────────────────────────────────────────────── */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	color: var(--color-text);
	padding: 12px 18px;
	z-index: var(--z-modal);
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
	left: 0;
	color: var(--color-text);
	text-decoration: none;
}

/* Brand gradient (blue → sky) for small text moments. */
.text-gradient {
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Hero-style white → silver gradient for big display headlines. */
.title-gradient {
	background: linear-gradient(180deg, #ffffff 0%, #aebad1 60%, #64748b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.icon {
	width: 22px;
	height: 22px;
	display: inline-block;
	flex: none;
	vertical-align: middle;
}

/* ── Buttons (pill) ────────────────────────────────────────────────────── */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 13px 26px;
	border: 1px solid transparent;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--text-base);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	cursor: pointer;
	text-decoration: none;
	position: relative;
	transition:
		background var(--dur-base) ease,
		color var(--dur-base) ease,
		border-color var(--dur-base) ease,
		transform var(--dur-fast) ease,
		box-shadow var(--dur-base) var(--ease-out),
		font-weight var(--dur-base) ease;
}
.btn:hover {
	text-decoration: none;
	transform: translateY(-1px);
	font-weight: 700;
}
.btn:active {
	transform: translateY(0) scale(0.98);
}
.btn .icon {
	width: 18px;
	height: 18px;
}

/* Primary — white on dark (Framer style). */
.btn-primary {
	background: var(--color-white);
	color: var(--color-on-strong);
}
.btn-primary:hover {
	background: #e2e8f0;
	color: var(--color-on-strong);
	box-shadow: var(--shadow-lg);
}

/* Secondary — glassmorphism. */
.btn-secondary {
	background: var(--hairline);
	color: var(--color-white);
	border-color: rgba(255, 255, 255, 0.14);
	backdrop-filter: blur(8px);
}
.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.24);
	color: var(--color-white);
}

/* Ghost — plain transparent for quiet contexts. */
.btn-ghost {
	background: transparent;
	color: var(--color-white);
	border-color: var(--hairline-strong);
}
.btn-ghost:hover {
	background: var(--tint-hover);
	border-color: rgba(255, 255, 255, 0.28);
	color: var(--color-white);
}

/* Blue — solid brand action for sections that need color. */
.btn-blue {
	background: var(--color-primary);
	color: var(--color-on-primary);
}
.btn-blue:hover {
	background: var(--color-primary-hover);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-primary);
}

/* Text link with an animated arrow — "read more" style actions. */
.btn-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 4px 2px;
	border: none;
	background: none;
	border-radius: 4px;
	color: var(--color-primary);
	font-weight: 600;
	cursor: pointer;
}
.btn-link:hover {
	color: var(--color-primary-hover);
	text-decoration: none;
}
.btn-link .icon {
	width: 17px;
	height: 17px;
	transition: transform var(--dur-base) var(--ease-out);
}
.btn-link:hover .icon {
	transform: translateX(4px);
}

.btn-sm {
	padding: 9px 18px;
	font-size: var(--text-sm);
}
.btn-lg {
	padding: var(--space-4) 34px;
	font-size: var(--text-md);
}
.btn-block {
	width: 100%;
}

/* ── Cursor spotlight ─────────────────────────────────────────────────────
   A single soft light follows the pointer across the whole page (fine
   pointers only). Inert by default — it only appears after the first
   pointermove (html.has-spotlight is set by main.js), so no-JS and
   touch users never see a static blob. */

@media (hover: hover) and (pointer: fine) {
	body::before {
		content: "";
		position: fixed;
		inset: 0;
		z-index: 90;
		pointer-events: none;
		opacity: 0;
		transition: opacity 0.6s ease;
		background: radial-gradient(620px circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(156, 190, 255, 0.06), transparent 70%);
	}
	html.has-spotlight body::before {
		opacity: 1;
	}
}

/* ── Floating pill header ─────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 12px;
	z-index: var(--z-header);
	padding: 0 var(--container-pad);
	transition: transform var(--dur-base) var(--ease-out);
	/* Transparent: the hero/page-hero background runs underneath, so the
	   pill appears to float over one continuous backdrop. */
}
/* Hide on scroll-down, reveal on scroll-up (main.js toggles .header-hidden;
   skipped while the mobile menu is open). */
.site-header.header-hidden {
	transform: translateY(calc(-100% - 12px));
}

.header-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-6);
	max-width: 1200px;
	margin: 0 auto;
	min-height: 58px;
	padding: 8px 14px 8px 24px;
	/* Containing block for the grain overlay (::after). */
	position: relative;
	background: var(--color-pill);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--radius-full);
	transition: background var(--dur-base) ease, border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, min-height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
}
.site-header.scrolled .header-pill {
	background: var(--color-pill-strong);
	border-color: var(--hairline-strong);
	box-shadow: var(--shadow-lg);
	/* Compact once the page is scrolled — the pill breathes. */
	min-height: 50px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.site-brand {
	display: flex;
	align-items: center;
}
.site-brand-name {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--color-white);
	font-family: var(--font-display);
	font-size: 1.15rem;
	font-weight: 500;
	letter-spacing: var(--tracking-tight);
	white-space: nowrap;
}
.site-brand-name::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
}
.site-brand-name:hover {
	text-decoration: none;
	color: var(--color-white);
}
.site-brand .custom-logo-link img {
	max-height: 34px;
	width: auto;
}

.main-nav {
	margin: 0 auto;
}
.main-nav ul {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.main-nav a {
	display: inline-block;
	padding: var(--space-2) 14px;
	color: rgba(255, 255, 255, 0.55);
	font-weight: 400;
	font-size: var(--text-sm);
	border-radius: var(--radius-full);
	transition: color var(--dur-fast) ease, background var(--dur-fast) ease, font-weight var(--dur-base) ease;
}
.main-nav a:hover {
	color: var(--color-white);
	background: var(--hairline);
	font-weight: 500;
	text-decoration: none;
}
.main-nav .current-menu-item > a,
.main-nav a.is-active {
	color: var(--color-white);
	background: var(--tint-hover);
	font-weight: 500;
}

.header-cta {
	display: none;
}
/* 861px = 860px + 1px seam so the header CTA only ever renders on
   breakpoints where the hamburger toggle is hidden. */
@media (min-width: 861px) {
	.header-cta {
		display: inline-flex;
	}
}

/* Mobile toggle */
.nav-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 10px 8px;
	border-radius: var(--radius-full);
}
.nav-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--color-white);
	margin: 5px 0;
	border-radius: 2px;
	transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) ease;
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-bar:nth-child(2) {
	opacity: 0;
}
.nav-toggle.active .nav-toggle-bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero (front page) ────────────────────────────────────────────────── */

.hero {
	position: relative;
	overflow: hidden;
	/* Runs the hero backdrop up underneath the floating header so the
	   pill appears to hover over the hero, not below a separate strip. */
	margin-top: calc(-1 * var(--header-h));
	padding: calc(clamp(5rem, 12vw, 8.5rem) + var(--header-h)) 0;
	text-align: center;
}
/* One directional light from above — quiet, no blobs, no grid. The
   giant ghost wordmark (.hero-wordmark) carries the texture instead. */
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(1100px 700px at 50% -12%, rgba(30, 58, 138, 0.28), transparent 65%),
		linear-gradient(180deg, transparent 55%, rgba(30, 58, 138, 0.12) 100%);
	pointer-events: none;
}
/* Light bleed along the hero's bottom edge: a soft blue haze the window
   passes through as it flies down, so the boundary reads as luminous
   light dissolving the scene instead of a hard clip line. Painted above
   the content (z 11 > content 10), below the header (50). */
.hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 34%;
	background: linear-gradient(180deg, rgba(46, 106, 232, 0) 0%, rgba(46, 106, 232, 0.09) 55%, rgba(46, 106, 232, 0.26) 100%);
	filter: blur(18px);
	pointer-events: none;
	z-index: 11;
}

/* Ghost brand wordmark — the studio signature behind the headline. */
.hero-wordmark {
	position: absolute;
	top: 46%;
	left: 50%;
	z-index: 0;
	/* Centering + scroll parallax share the translate property (JS feeds
	   --par-y-2; different layers move at different speeds). */
	translate: -50% var(--par-y-2, 0px);
	font-family: var(--font-display);
	font-weight: 400;
	font-size: clamp(5.5rem, 22vw, 19rem);
	line-height: 1;
	letter-spacing: -0.045em;
	white-space: nowrap;
	color: transparent;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.11) 25%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0.09) 75%, rgba(255, 255, 255, 0.04) 100%);
	background-size: 220% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	pointer-events: none;
	user-select: none;
	animation: wordmark-shimmer 26s linear infinite alternate;
}

@keyframes wordmark-shimmer {
	from { background-position: 0% 0%; }
	to { background-position: 100% 0%; }
}

.hero-inner {
	position: relative;
	z-index: var(--z-content);
	max-width: 920px;
	margin: 0 auto;
	/* Scroll parallax (JS feeds --par-y-1). */
	translate: 0 var(--par-y-1, 0px);
}

/* Eyebrow badge with gradient border. */
.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px;
	border-radius: var(--radius-full);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.85);
	background:
		linear-gradient(rgba(11, 11, 14, 0.9), rgba(11, 11, 14, 0.9)) padding-box,
		linear-gradient(90deg, rgba(46, 106, 232, 0.55), rgba(124, 156, 255, 0.35), rgba(255, 255, 255, 0.1)) border-box;
	border: 1px solid transparent;
	margin-bottom: 28px;
	transition: color var(--dur-fast) ease;
}
.hero-badge:hover {
	color: var(--color-white);
}
.hero-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #34d399;
	box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
	animation: pulse-dot 2.4s var(--ease-out) infinite;
}

.hero-title {
	font-size: var(--text-4xl);
	line-height: var(--leading-none);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 22px;
	/* Light play inside the letterforms: a looping sheen sweeps through
	   the glyphs (JS drives --sheen), and a soft radial light follows the
	   cursor (JS drives --tx/--ty). Without JS the defaults sit center. */
	background-image:
		radial-gradient(220px circle at 50% 50%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.2) 40%, transparent 68%),
		linear-gradient(100deg, #57606f 12%, #dbe3ef 38%, #ffffff 50%, #dbe3ef 62%, #57606f 88%);
	background-size: 220px 220px, 220% 100%;
	background-repeat: no-repeat;
	background-position: var(--tx, 50%) var(--ty, 40%), var(--sheen, 40%) 0;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-subtitle {
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: var(--leading-relaxed);
	color: var(--color-text-muted);
	max-width: 640px;
	margin: 0 auto 38px;
}

.hero-actions {
	display: flex;
	gap: 14px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Trust row under the CTAs — short, honest conversion signals. */
.hero-trust {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 26px;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--color-text-faint);
}
.hero-trust li {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
}
.hero-trust li::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--color-primary);
	box-shadow: 0 0 8px rgba(59, 130, 246, 0.8);
}
/* The Made-in-Germany badge shows the flag instead of the dot. */
.hero-trust li.made-in-germany::before {
	display: none;
}
.hero-trust li.made-in-germany {
	gap: 7px;
	font-weight: 600;
}

/* ── Hero product preview window ─────────────────────────────────────────
   A canvas window below the hero copy with a skeleton site mock and two
   floating glass status chips. Swap the skeletons for a real screenshot
   (<img> inside .window-body) once you have one. */

.hero-visual {
	position: relative;
	/* Wider than the hero copy so the window reads as a big product shot. */
	max-width: min(1180px, 100%);
	margin: clamp(3rem, 6vw, 5rem) auto 0;
	z-index: var(--z-content);
	/* Whole-scene defocus (window + chips) as the fly-away nears the hero's
	   bottom edge — JS ramps --win-blur. 0px = sharp, no compositing cost. */
	filter: blur(var(--win-blur, 0px));
}
/* Soft screen light pooling under the window. */
.hero-visual::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -9%;
	width: 78%;
	height: 38%;
	transform: translateX(-50%);
	background: radial-gradient(50% 100% at 50% 100%, rgba(37, 99, 235, 0.28), transparent 72%);
	filter: blur(24px);
	z-index: -1;
	animation: glow-in 1.1s var(--ease-out) 0.5s both;
}

@keyframes glow-in {
	from { opacity: 0; }
	to { opacity: 1; }
}
/* Hero canvas window — translucent glass so the hero light glows through.
   SEE-THROUGH KNOB: the two alphas in the gradient below (0.72 / 0.85)
   control how much of the backdrop shows — lower = more see-through.
   The border alpha (0.18) controls the frame visibility. */
.hero-visual .window {
	position: relative;
	background: linear-gradient(180deg, rgba(13, 19, 34, 0.72) 0%, rgba(8, 11, 19, 0.85) 50%);
	border-color: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 120px -24px rgba(37, 99, 235, 0.4);
	/* Scroll fly-away: translate (par-y-3) slides the window down, while
	   the transform tips the top edge away and grows the window toward the
	   viewer — the hero clips it as it passes the section boundary, so the
	   next section appears to cut the shot off. JS feeds both vars. */
	transform: perspective(1100px) rotateX(var(--win-tilt, 0deg)) scale(var(--win-scale, 1));
	transform-origin: 50% 50%;
	translate: 0 var(--par-y-3, 0px);
	will-change: transform;
}
.hero-visual .window-body {
	padding: 0;
}

/* Idle float for the window scene — a slow, gentle bob with its own rhythm
   (chips bob at 5.5s, the window at 6.5s). Pure transform on a wrapper so
   it never collides with the scroll-driven fly-away or parallax. */
.hero-window-float {
	animation: window-float 6.5s ease-in-out infinite;
}
@keyframes window-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}

/* On small screens the fly-away reads stronger than the content — soften
   the tilt (keep the slide + growth) so the hero stays legible. */
@media (max-width: 860px) {
	.hero-visual .window {
		transform: perspective(900px) rotateX(calc(var(--win-tilt, 0deg) * 0.55)) scale(var(--win-scale, 1));
	}
}

/* Skeleton site mock inside the hero window. */
.mock-navbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--hairline);
}
.mock-logo {
	width: 64px;
	height: 12px;
	border-radius: var(--radius-full);
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 0 16px var(--glow-primary-strong);
}
.mock-navlink {
	width: 44px;
	height: 8px;
	border-radius: var(--radius-full);
	background: var(--tint-hover);
}
.mock-navlink.cta {
	width: 68px;
	height: 22px;
	margin-left: auto;
	background: var(--hairline-strong);
}
.mock-hero-large {
	position: relative;
	display: grid;
	justify-items: center;
	gap: var(--space-3);
	padding: clamp(34px, 6vw, 64px) 24px 40px;
	text-align: center;
}
.mock-hero-large::before {
	content: "";
	position: absolute;
	inset: -40% -20%;
	background: radial-gradient(55% 60% at 50% 30%, rgba(37, 99, 235, 0.22), transparent 70%);
	pointer-events: none;
}
.mock-hero-large .mock-title {
	width: min(420px, 80%);
	height: 36px;
	background: var(--hairline-strong);
}
.mock-hero-large .mock-title.short {
	width: min(300px, 58%);
}
.mock-hero-large .mock-line {
	width: min(340px, 68%);
	height: 12px;
	background: rgba(255, 255, 255, 0.07);
}
.mock-btn {
	width: 156px;
	height: 46px;
	border-radius: var(--radius-full);
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 12px 32px -8px rgba(59, 130, 246, 0.6);
	margin-top: 10px;
}
.mock-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-3);
	padding: 0 22px 26px;
}
.mock-card {
	height: 108px;
	border-radius: var(--radius-sm);
	background: var(--hairline-faint);
	border: 1px solid var(--hairline);
}

/* Floating glass status chips over the hero preview. */
.float-chip {
	position: absolute;
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: 10px 16px;
	border-radius: var(--radius-full);
	background: var(--color-pill-strong);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--color-border-strong);
	box-shadow: var(--shadow-lg);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	color: var(--color-text-muted);
	white-space: nowrap;
	/* Parallax (translate) composes with the idle float (transform). */
	translate: 0 var(--par-y-4, 0px);
	animation: chip-float 5.5s ease-in-out infinite;
}
.float-chip .icon {
	width: 14px;
	height: 14px;
}
.float-chip-a {
	top: 16%;
	left: -4%;
}
.float-chip-a .icon {
	color: #34d399;
}
.float-chip-b {
	bottom: 12%;
	right: -3%;
	animation-delay: 2.75s;
}
.float-chip-b .icon {
	color: var(--color-accent);
}

@keyframes chip-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9px); }
}

/* Staggered entrance — CSS-only so it works without JS. Fill-mode
   "backwards" (not "both") so the hero window's scroll-driven transform
   (rotateX/scale) takes over once the entrance ends. */
.hero-inner > * {
	animation: hero-in 0.7s var(--ease-out) backwards;
}
.hero-inner > *:nth-child(2) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.2s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.3s; }
.hero-inner > *:nth-child(5) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(6) { animation-delay: 0.5s; }

/* ── Page hero (inner pages) ──────────────────────────────────────────── */

.page-hero {
	position: relative;
	overflow: hidden;
	margin-top: calc(-1 * var(--header-h));
	padding: calc(clamp(4rem, 9vw, 6.5rem) + var(--header-h)) 0 clamp(3rem, 7vw, 5rem);
	text-align: center;
}
.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(1000px 640px at 50% -15%, rgba(37, 99, 235, 0.22), transparent 65%);
	pointer-events: none;
}
.page-hero .container {
	position: relative;
	z-index: var(--z-content);
}

.page-hero-title {
	font-size: clamp(1.875rem, 4vw, 3rem);
	line-height: var(--leading-none);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 14px;
}

.page-hero-subtitle {
	max-width: 640px;
	margin: 0 auto;
	color: var(--color-text-muted);
	font-size: var(--text-lg);
}

/* ── Breadcrumbs ──────────────────────────────────────────────────────── */

.breadcrumbs {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: var(--space-2);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--color-text-faint);
	margin-bottom: 22px;
}
.breadcrumbs a {
	color: var(--color-text-muted);
}
.breadcrumbs a:hover {
	color: var(--color-white);
}
.breadcrumbs .current {
	color: var(--color-text-faint);
}
.breadcrumbs .sep {
	opacity: 0.45;
}

/* ── Section headings ─────────────────────────────────────────────────── */

.section-heading {
	text-align: center;
	max-width: 720px;
	margin: 0 auto var(--space-16);
}
.section-heading.heading-left {
	text-align: left;
	margin-left: 0;
	max-width: 600px;
	margin-bottom: var(--space-16);
}

/* Section label — quiet uppercase eyebrow, symmetric gradient rules on
   both sides (fading outward), centered under the section rhythm. No box,
   no dot. The gradient echoes the header logo mark. */
.section-eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--color-primary-soft-text);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	white-space: nowrap;
	margin: 0 0 var(--space-8);
}
.section-eyebrow::before,
.section-eyebrow::after {
	content: "";
	flex: 1 1 24px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-primary) 60%, var(--color-accent));
}
.section-eyebrow::after {
	background: linear-gradient(90deg, var(--color-accent), var(--color-primary) 40%, transparent);
}

.section-title {
	font-size: var(--text-3xl);
	margin-bottom: var(--space-4);
}

.section-intro {
	color: var(--color-text-muted);
	max-width: 600px;
	margin: 0 auto;
	font-size: var(--text-md);
	line-height: var(--leading-relaxed);
}
.section-heading.heading-left .section-intro {
	margin-left: 0;
	max-width: 560px;
}

.section-more {
	text-align: center;
	margin-top: var(--space-8);
}

/* ── Cards (glow-border hover) ────────────────────────────────────────── */

.cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--space-6);
}

.card {
	position: relative;
	overflow: hidden;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hairline);
	transition:
		transform var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) ease,
		background var(--dur-base) ease;
}
/* Cursor-following glow (position fed by main.js as --mx/--my). */
.card::before,
.bento-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.07), transparent 65%);
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}
.card:hover::before,
.bento-card:hover::before {
	opacity: 1;
}
.card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-border-strong);
	background: var(--color-surface-hover);
}

/* ── Film grain on glass & card surfaces ───────────────────────────────
   A static monochrome noise layer (desaturated, stitched feTurbulence)
   gives frosted surfaces materiality and masks gradient banding. One
   character for the whole theme; strength varies per container via the
   --grain-s/m steps. Painted above the surface but pointer-inert, so
   hover glow (::before) and interactivity are untouched. */
.header-pill::after,
.card::after,
.bento-card::after,
.hero-visual .window::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background-image: var(--grain);
	background-size: 300px 300px;
	opacity: var(--grain-s);
	pointer-events: none;
	z-index: 1;
}
/* The product window is the biggest glass surface — one step stronger. */
.hero-visual .window::after {
	opacity: var(--grain-m);
}
/* Without blend support: plain low-alpha noise (darkens slightly). */
@supports not (mix-blend-mode: soft-light) {
	.header-pill::after,
	.card::after,
	.bento-card::after,
	.hero-visual .window::after {
		opacity: 0.015;
	}
}
@supports (mix-blend-mode: soft-light) {
	.header-pill::after,
	.card::after,
	.bento-card::after,
	.hero-visual .window::after {
		mix-blend-mode: soft-light;
	}
}

.card h3 {
	margin-top: 0;
}

.card-thumb {
	display: block;
	margin: -24px -24px 18px;
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	overflow: hidden;
	position: relative;
}
.card-thumb img {
	width: 100%;
	transition: transform 0.5s var(--ease-out);
}
.card:hover .card-thumb img,
.card-thumb:hover img {
	transform: scale(1.04);
}

/* ── Canvas preview window (app/site mockup) ──────────────────────────── */

.window {
	width: 100%;
	border-radius: var(--radius-md);
	border: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--hairline);
	background: linear-gradient(180deg, var(--color-dark-2) 0%, var(--color-surface-2) 100%);
	overflow: hidden;
}

.window-bar {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--hairline);
}

.window-dots {
	display: inline-flex;
	gap: 6px;
	flex: none;
	justify-self: start;
}
.window-dots i {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
}
.window-dots i:nth-child(1) { background: rgba(255, 255, 255, 0.1); }
.window-dots i:nth-child(2) { background: var(--hairline-strong); }
.window-dots i:nth-child(3) { background: rgba(255, 255, 255, 0.24); }

.window-title {
	margin: 0;
	padding: 4px 14px;
	border-radius: var(--radius-full);
	background: var(--hairline);
	border: 1px solid var(--tint-hover);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	white-space: nowrap;
	justify-self: center;
}

.window-body {
	position: relative;
	padding: var(--space-5);
}

/* ── Terminal card ────────────────────────────────────────────────────── */

.terminal {
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	border: 1px solid var(--hairline);
	border-radius: var(--radius-md);
	padding: 20px 22px;
	font-family: var(--font-mono);
	font-size: var(--text-xs);
	line-height: 2.1;
	color: var(--color-text-muted);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.terminal p {
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.terminal .t-prompt {
	color: var(--color-primary-soft-text);
}
.terminal .t-ok {
	color: var(--color-success);
}
.terminal .t-dim {
	color: var(--color-text-faint);
}

/* Skeleton mock (mini landing page inside a window). */
.mock-hero {
	display: grid;
	gap: var(--space-3);
	justify-items: center;
	text-align: center;
	position: relative;
}
.mock-hero::before {
	content: "";
	position: absolute;
	inset: -30% -20%;
	background: radial-gradient(60% 50% at 50% 30%, rgba(37, 99, 235, 0.28), transparent 70%);
	pointer-events: none;
}
.mock-badge,
.mock-title,
.mock-line,
.mock-btn {
	display: block;
	height: 10px;
	border-radius: var(--radius-full);
	background: var(--tint-hover);
}
.mock-badge {
	width: 96px;
	height: 22px;
	background: rgba(59, 130, 246, 0.16);
	border: 1px solid rgba(59, 130, 246, 0.3);
}
.mock-title {
	width: 260px;
	height: 26px;
	background: rgba(255, 255, 255, 0.14);
}
.mock-title.short {
	width: 180px;
}
.mock-line {
	width: 220px;
	background: var(--hairline);
}
.mock-line.short {
	width: 150px;
}
.mock-btn {
	width: 120px;
	height: 32px;
	background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
	box-shadow: 0 8px 24px -8px rgba(59, 130, 246, 0.7);
	margin-top: var(--space-2);
}

/* ── Bento grid (highlight component) ─────────────────────────────────── */

.bento-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: var(--space-6);
}

.bento-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg), inset 0 1px 0 var(--hairline);
	transition:
		transform var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		border-color var(--dur-base) ease;
}
.bento-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-xl);
	border-color: var(--color-border-strong);
}
.bento-7 { grid-column: span 7; }
.bento-5 { grid-column: span 5; }
.bento-4 { grid-column: span 4; }

.bento-media {
	flex: 1;
	padding: 20px 20px 0;
	display: flex;
	align-items: stretch;
	min-height: 220px;
}
.bento-media .window,
.bento-media .terminal {
	align-self: flex-start;
}

.bento-content {
	padding: var(--space-6);
}
.bento-content h3 {
	margin-bottom: var(--space-2);
	font-size: 1.15rem;
}
.bento-content p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}

.bento-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-md);
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-text);
	margin-bottom: 18px;
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.bento-mini-stats {
	display: grid;
	gap: 0;
}
.bento-mini-stats .mini-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-3);
	padding: var(--space-3) 0;
	border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}
.bento-mini-stats .mini-stat:first-child {
	padding-top: 0;
}
.bento-mini-stats .mini-stat:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.mini-stat strong {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: var(--tracking-tight);
	color: var(--color-white);
}
.mini-stat span {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}

/* ── Clients marquee ──────────────────────────────────────────────────── */

.clients-section {
	padding: var(--section-pad-sm) 0;
	overflow: hidden;
}

.clients-section .section-eyebrow {
	display: flex;
	justify-content: center;
}

/* "Vertraut von" as plain intro text instead of a pill. */
.clients-label {
	text-align: center;
	font-size: var(--text-sm);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-text-faint);
	margin-bottom: 30px;
}

.clients-strip {
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.clients-track {
	display: flex;
	width: max-content;
	animation: marquee 34s linear infinite;
}
.clients-track:hover {
	animation-play-state: paused;
}

.clients-group {
	display: flex;
	align-items: center;
	gap: clamp(48px, 6vw, 88px);
	padding-right: clamp(48px, 6vw, 88px);
}

.client-name {
	font-family: var(--font-display);
	font-weight: 500;
	letter-spacing: var(--tracking-wide);
	text-transform: uppercase;
	color: var(--color-text-faint);
	font-size: var(--text-sm);
	white-space: nowrap;
	opacity: 0.8;
	transition: color var(--dur-base) ease, opacity var(--dur-base) ease;
}
.client-name:hover {
	color: var(--color-white);
	opacity: 1;
}

/* ── Services ─────────────────────────────────────────────────────────── */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-6);
}

.service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: var(--radius-md);
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-text);
	margin-bottom: 18px;
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
	transition: background var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease;
}
.service-card:hover .service-icon {
	background: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-primary);
	transform: translateY(-2px) rotate(-4deg) scale(1.04);
}
.service-card h3 {
	margin-bottom: 8px;
	font-size: 1.1rem;
}
.service-card p {
	color: var(--color-text-muted);
	margin: 0;
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}

/* ── About / values ───────────────────────────────────────────────────── */

.about-grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(32px, 6vw, 72px);
	align-items: start;
}
.about-grid .section-heading {
	margin-bottom: var(--space-6);
}
.about-grid > div:first-child > p {
	color: var(--color-text-muted);
}

.value-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-3);
}

.value-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	font-weight: 500;
	font-size: var(--text-sm);
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hairline-faint);
	transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) ease, box-shadow var(--dur-base) var(--ease-out);
}
.value-item:hover {
	transform: translateX(4px);
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
}

.value-icon {
	flex: none;
	color: var(--color-primary);
	margin-top: 3px;
}
.value-icon .icon {
	width: 18px;
	height: 18px;
}

/* ── Split / feature highlight (asymmetric 7:5) ───────────────────────── */

.split-grid {
	display: grid;
	grid-template-columns: 7fr 5fr;
	gap: clamp(36px, 6vw, 72px);
	align-items: center;
}
.split-grid .section-heading {
	margin-bottom: var(--space-6);
}

.split-text p {
	color: var(--color-text-muted);
}

.split-list {
	list-style: none;
	margin: var(--space-6) 0 var(--space-8);
	padding: 0;
	display: grid;
	gap: 14px;
}
.split-point {
	display: flex;
	align-items: flex-start;
	gap: var(--space-3);
	font-weight: 500;
}
.split-point .icon {
	width: 20px;
	height: 20px;
	color: var(--color-primary);
	margin-top: 2px;
}

.split-actions {
	display: flex;
	align-items: center;
	gap: 22px;
	flex-wrap: wrap;
}

.split-media {
	position: relative;
}
.split-media .window {
	box-shadow: var(--shadow-xl), inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.split-media .window-body {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(60% 70% at 30% 20%, rgba(37, 99, 235, 0.25), transparent 70%),
		radial-gradient(50% 60% at 80% 90%, rgba(124, 156, 255, 0.16), transparent 70%);
}
.split-media .window-body .icon {
	width: 56px;
	height: 56px;
	color: rgba(255, 255, 255, 0.5);
}
.split-media .window-body img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.split-badge {
	position: absolute;
	left: -14px;
	bottom: -14px;
	z-index: var(--z-content);
	display: flex;
	align-items: center;
	gap: var(--space-3);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-md);
	padding: 12px 18px;
	box-shadow: var(--shadow-lg);
	backdrop-filter: blur(8px);
}
.split-badge strong {
	display: block;
	font-family: var(--font-display);
	font-size: var(--text-xl);
	font-weight: 400;
	line-height: 1.1;
	color: var(--color-white);
}
.split-badge span {
	display: block;
	font-size: var(--text-xs);
	color: var(--color-text-muted);
}
.split-badge .icon {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

/* ── Stats band ───────────────────────────────────────────────────────── */

.stats {
	position: relative;
	overflow: hidden;
	border-top: 1px solid var(--hairline-faint);
	border-bottom: 1px solid var(--hairline-faint);
}
.stats::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(560px 300px at 50% 0%, rgba(30, 58, 138, 0.3), transparent 70%);
	pointer-events: none;
}
.stats .container {
	position: relative;
	z-index: var(--z-content);
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 36px;
	text-align: center;
}

.stat-number {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 4vw, 3.2rem);
	font-weight: 400;
	letter-spacing: var(--tracking-tight);
	color: var(--color-white);
	line-height: var(--leading-none);
	font-variant-numeric: tabular-nums;
}

.stat-label {
	color: var(--color-text-muted);
	margin-top: 8px;
	font-size: var(--text-sm);
}

/* Hairline dividers between stats (single row only). */
@media (min-width: 1100px) {
	.stats-grid .stat + .stat {
		border-left: 1px solid var(--hairline);
	}
}

/* ── Process ──────────────────────────────────────────────────────────── */

.process-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: var(--space-6);
}

/* Gradient connector line behind the step numbers (desktop only).
   1024px is process-specific, intentionally between the 1100 and 860
   breakpoints of the grid systems. */
@media (min-width: 1024px) {
	.process-grid::before {
		content: "";
		position: absolute;
		top: 47px;
		left: 10%;
		right: 10%;
		height: 1px;
		background: linear-gradient(90deg, transparent, rgba(46, 106, 232, 0.35) 25%, rgba(124, 156, 255, 0.35) 75%, transparent);
		pointer-events: none;
	}
	.process-grid .process-step {
		z-index: 1;
	}
}

.process-step {
	position: relative;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 26px 24px;
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hairline-faint);
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) ease;
}
.process-step:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-border-strong);
}

.step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: var(--radius-full);
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-text);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--text-sm);
	margin-bottom: 18px;
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
	transition: background var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-base) var(--ease-spring);
}
.process-step:hover .step-number {
	background: var(--color-primary);
	color: var(--color-on-primary);
	transform: scale(1.08) rotate(-6deg);
}

.process-step h3 {
	margin-bottom: 8px;
	font-size: 1.05rem;
}
.process-step p {
	color: var(--color-text-muted);
	margin: 0;
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}

/* ── Portfolio (browser windows) ──────────────────────────────────────── */

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: var(--space-6);
}

.portfolio-card {
	padding: 0;
}

.portfolio-thumb {
	display: block;
	padding: 14px 14px 0;
}
.portfolio-thumb .window-body {
	aspect-ratio: 16 / 9;
	display: grid;
	place-items: center;
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(37, 99, 235, 0.3), transparent 70%),
		radial-gradient(60% 80% at 85% 100%, rgba(124, 156, 255, 0.16), transparent 70%),
		linear-gradient(180deg, var(--hairline-faint), transparent);
}
.portfolio-card:nth-child(3n + 2) .portfolio-thumb .window-body {
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(99, 102, 241, 0.3), transparent 70%),
		radial-gradient(60% 80% at 85% 100%, rgba(124, 156, 255, 0.16), transparent 70%),
		linear-gradient(180deg, var(--hairline-faint), transparent);
}
.portfolio-card:nth-child(3n + 3) .portfolio-thumb .window-body {
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(124, 156, 255, 0.22), transparent 70%),
		radial-gradient(60% 80% at 85% 100%, rgba(37, 99, 235, 0.2), transparent 70%),
		linear-gradient(180deg, var(--hairline-faint), transparent);
}
.portfolio-thumb .window-body span {
	font-family: var(--font-display);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: var(--text-xs);
	color: rgba(255, 255, 255, 0.75);
}
.portfolio-thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}
.portfolio-card:hover .portfolio-thumb img {
	transform: scale(1.05);
}

.portfolio-arrow {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-full);
	background: var(--color-white);
	color: var(--color-on-strong);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
	z-index: var(--z-content);
}
.portfolio-card:hover .portfolio-arrow {
	opacity: 1;
	transform: translateY(0);
}
.portfolio-arrow .icon {
	width: 17px;
	height: 17px;
}

.portfolio-body {
	padding: 20px 24px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.portfolio-tag {
	color: var(--color-primary-soft-text);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.portfolio-body h3 {
	margin: 8px 0 8px;
	font-size: 1.1rem;
}
.portfolio-body p {
	color: var(--color-text-muted);
	margin: 0;
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}

/* ── Team ─────────────────────────────────────────────────────────────── */

.team-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-6);
}

.team-card {
	text-align: center;
	padding: 30px 22px;
}

.team-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 78px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	color: var(--color-white);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 1.3rem;
	margin-bottom: 16px;
	box-shadow: 0 8px 24px -8px var(--glow-primary-strong);
	transition: transform var(--dur-base) var(--ease-spring);
}
.team-card:nth-child(2) .team-avatar {
	background: linear-gradient(135deg, var(--color-deep), var(--color-primary));
}
.team-card:nth-child(3) .team-avatar {
	background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}
.team-card:nth-child(4) .team-avatar {
	background: linear-gradient(135deg, #6366f1, var(--color-primary));
}
.team-card:hover .team-avatar {
	transform: scale(1.06);
}
.team-avatar img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
}

.team-card h3 {
	margin-bottom: 4px;
	font-size: 1.05rem;
}

.team-role {
	color: var(--color-text-muted);
	margin: 0;
	font-size: var(--text-sm);
}

/* ── Testimonials ─────────────────────────────────────────────────────── */

.testimonials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--space-6);
}

.testimonial {
	margin: 0;
	display: flex;
	flex-direction: column;
}

.testimonial-stars {
	display: inline-flex;
	gap: 3px;
	margin-bottom: 16px;
}
.testimonial-stars .icon {
	width: 15px;
	height: 15px;
	color: var(--color-accent);
	fill: currentColor;
	filter: drop-shadow(0 0 6px rgba(124, 156, 255, 0.5));
}

.testimonial-text {
	font-style: italic;
	color: rgba(255, 255, 255, 0.88);
	margin-bottom: 18px;
	line-height: var(--leading-relaxed);
}

.testimonial-author {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
	color: var(--color-white);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--text-sm);
	box-shadow: 0 4px 16px -4px var(--glow-primary-strong);
}
.testimonial:nth-child(2) .testimonial-avatar {
	background: linear-gradient(135deg, var(--color-deep), var(--color-primary));
}
.testimonial:nth-child(3) .testimonial-avatar {
	background: linear-gradient(135deg, #0ea5e9, #22d3ee);
}
.testimonial-author strong {
	display: block;
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-white);
}
.testimonial-role {
	display: block;
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	margin-top: 2px;
}

/* ── Pricing ──────────────────────────────────────────────────────────── */

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	align-items: stretch;
	gap: var(--space-5);
}

.pricing-card {
	display: flex;
	flex-direction: column;
	text-align: center;
	padding: 34px 28px;
	position: relative;
	overflow: visible;
}

.pricing-card.featured {
	border: 1px solid var(--glow-primary-strong);
	box-shadow: var(--shadow-primary);
}
.pricing-card.featured:hover {
	box-shadow: 0 24px 64px -16px rgba(37, 99, 235, 0.55);
}

.featured-badge {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-primary);
	color: var(--color-on-primary);
	font-family: var(--font-body);
	font-size: var(--text-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	padding: 5px 16px;
	border-radius: var(--radius-full);
	white-space: nowrap;
	box-shadow: var(--shadow-primary);
}

.pricing-card h3 {
	font-size: 1.1rem;
	margin-bottom: 8px;
}

.price {
	font-family: var(--font-display);
	font-size: 2.6rem;
	font-weight: 400;
	letter-spacing: var(--tracking-tight);
	line-height: var(--leading-none);
	color: var(--color-white);
	margin-bottom: 20px;
}

.price-period {
	font-family: var(--font-body);
	font-size: var(--text-sm);
	font-weight: 400;
	color: var(--color-text-muted);
}

.pricing-list {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	text-align: left;
}

.pricing-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	border-bottom: 1px dashed rgba(148, 163, 184, 0.14);
}
.pricing-list li:last-child {
	border-bottom: none;
}

.pricing-check {
	flex: none;
	color: var(--color-primary);
	margin-top: 3px;
}
.pricing-check .icon {
	width: 17px;
	height: 17px;
}

.pricing-card .btn {
	margin-top: auto;
}

/* ── Blog preview + cards ─────────────────────────────────────────────── */

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	margin-bottom: 18px;
}
.post-meta .icon {
	width: 14px;
	height: 14px;
	margin-right: 5px;
	vertical-align: -2px;
}
.post-meta a {
	color: inherit;
	font-weight: 500;
}

.card .post-meta {
	margin: 0 0 8px;
}
.card h3 a {
	color: var(--color-text);
	transition: color var(--dur-fast) ease;
}
.card h3 a:hover {
	color: var(--color-primary);
	text-decoration: none;
}
.card > p {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}

/* ── Care-Paket (single pricing plan) ──────────────────────────────────── */

.care-wrap {
	max-width: 780px;
	margin: 0 auto;
}

.care-card {
	/* Narrower than the wrap so list lines stay at a comfortable length. */
	max-width: 640px;
	margin: 0 auto;
	padding: 44px 44px 40px;
	text-align: left;
	overflow: visible;
}
.care-card h3 {
	text-align: center;
	font-size: var(--text-xl);
}
.care-price {
	text-align: center;
	margin: 8px 0 4px;
}
.care-intro {
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	max-width: 480px;
	margin: 0 auto 30px;
}
.care-subtitle {
	font-size: var(--text-sm);
	font-weight: 400;
	color: var(--color-text);
	margin: 24px 0 12px;
}
.care-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.care-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
	color: var(--color-text-muted);
}
.care-list .icon {
	width: 17px;
	height: 17px;
	margin-top: 2px;
}
.care-included li .icon {
	color: var(--color-primary);
}
.care-excluded li .icon {
	color: var(--color-text-faint);
}
.care-card .btn {
	margin-top: 28px;
	width: 100%;
}
.care-note {
	text-align: center;
	font-size: var(--text-xs);
	color: var(--color-text-faint);
	margin: 14px 0 0;
}
.care-extra {
	text-align: center;
	margin-top: 36px;
}
.care-extra p {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	margin: 0 auto 10px;
	max-width: 520px;
}

/* ── FAQ accordion ────────────────────────────────────────────────────── */

.faq-list {
	max-width: 760px;
	margin: 0 auto;
}

.faq-item {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	margin-bottom: 12px;
	overflow: hidden;
	box-shadow: var(--shadow-sm), inset 0 1px 0 var(--hairline-faint);
	transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease, background var(--dur-base) ease;
}
.faq-item:hover {
	border-color: var(--color-border-strong);
}
.faq-item.open {
	border-color: rgba(59, 130, 246, 0.45);
	background: var(--color-surface-hover);
	box-shadow: var(--shadow-md);
}

.faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	padding: 18px 22px;
	background: none;
	border: none;
	font: inherit;
	font-family: var(--font-display);
	font-size: var(--text-md);
	font-weight: 600;
	text-align: left;
	color: var(--color-text);
	cursor: pointer;
	border-radius: var(--radius-md);
	transition: color var(--dur-fast) ease;
}
.faq-question:hover {
	color: var(--color-primary-soft-text);
}

.faq-icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: var(--radius-full);
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-text);
	transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) ease;
}
.faq-icon .icon {
	width: 15px;
	height: 15px;
}
.faq-item.open .faq-icon {
	transform: rotate(45deg);
	background: var(--color-primary);
	color: var(--color-on-primary);
}

/* Smooth height animation via grid rows (display:none would jump). */
.faq-answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--dur-slow) var(--ease-out);
}
.faq-answer-inner {
	overflow: hidden;
}
.faq-answer p {
	padding: 0 22px 20px;
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
}
.faq-item.open .faq-answer {
	grid-template-rows: 1fr;
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.contact-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(32px, 6vw, 64px);
	align-items: start;
}

.contact-info-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--space-5);
}

.contact-info-item {
	display: flex;
	align-items: flex-start;
	gap: var(--space-4);
}

.contact-info-icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--radius-md);
	background: var(--color-primary-soft);
	color: var(--color-primary-soft-text);
	box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
	transition: background var(--dur-base) ease, color var(--dur-base) ease, transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base) ease;
}
.contact-info-item:hover .contact-info-icon {
	background: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-primary);
	transform: translateY(-2px);
}

.contact-info-item h3 {
	font-size: var(--text-base);
	margin: 0 0 3px;
}
.contact-info-item p {
	margin: 0;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
}
.contact-info-item a {
	font-weight: 500;
}

/* ── Forms ────────────────────────────────────────────────────────────── */

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-4);
}

.form-group {
	margin-bottom: 16px;
}

.form-group label {
	display: block;
	font-weight: 600;
	font-size: var(--text-sm);
	margin-bottom: 7px;
	color: var(--color-text-muted);
}

.form-group input,
.form-group textarea,
.form-group select,
.search-field {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: var(--text-sm);
	background: var(--color-surface);
	color: var(--color-text);
	transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background var(--dur-fast) ease;
}
.form-group textarea {
	resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.search-field::placeholder {
	color: var(--color-text-faint);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.search-field:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-soft), 0 0 24px -6px var(--glow-primary);
}

.form-note {
	font-size: var(--text-xs);
	color: var(--color-text-faint);
	margin: 0 0 18px;
}

.form-success,
.form-error,
.form-warning {
	border-radius: var(--radius-sm);
	padding: 13px 16px;
	margin: 0 0 18px;
	font-size: var(--text-sm);
	line-height: var(--leading-snug);
}
.form-success {
	background: var(--color-success-bg);
	border: 1px solid var(--color-success-border);
	color: var(--color-success);
}
.form-error {
	background: var(--color-error-bg);
	border: 1px solid var(--color-error-border);
	color: var(--color-error);
}
.form-warning {
	background: var(--color-warning-bg);
	border: 1px solid var(--color-warning-border);
	color: var(--color-warning);
}

/* Honeypot field: invisible to humans, tempting for bots. */
.hp-field {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
	margin: 0;
}

/* ── Newsletter (pill form) ───────────────────────────────────────────── */

.newsletter-wrap {
	max-width: 560px;
	margin: 0 auto;
}
.newsletter-form {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	padding: 6px;
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-full);
	transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.newsletter-form:focus-within {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-soft), 0 0 24px -6px var(--glow-primary);
}
.newsletter-form .search-field {
	flex: 1;
	border: none;
	background: transparent;
	box-shadow: none;
	border-radius: var(--radius-full);
	padding: 10px 16px;
}
.newsletter-form .search-field:focus {
	box-shadow: none;
}
.newsletter-form .btn {
	flex: none;
	padding: 11px 22px;
}
.newsletter-note {
	text-align: center;
	font-size: var(--text-xs);
	color: var(--color-text-faint);
	margin: 14px 0 0;
}

/* ── Gallery (window tiles) ───────────────────────────────────────────── */

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-5);
}

.gallery-item {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--radius-md);
	overflow: hidden;
	border: 1px solid var(--color-border);
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(37, 99, 235, 0.3), transparent 70%),
		linear-gradient(180deg, var(--color-dark-2), var(--color-surface-2));
	display: grid;
	place-items: center;
	box-shadow: var(--shadow-sm);
	cursor: zoom-in;
	transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) ease;
}
.gallery-item:nth-child(3n + 2) {
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(99, 102, 241, 0.3), transparent 70%),
		linear-gradient(180deg, var(--color-dark-2), var(--color-surface-2));
}
.gallery-item:nth-child(3n + 3) {
	background:
		radial-gradient(70% 90% at 30% 0%, rgba(124, 156, 255, 0.22), transparent 70%),
		linear-gradient(180deg, var(--color-dark-2), var(--color-surface-2));
}
.gallery-item:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: var(--color-border-strong);
}

.gallery-item img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--dur-slow) var(--ease-out);
}
.gallery-item:hover img {
	transform: scale(1.05);
}

.gallery-item .icon {
	position: relative;
	z-index: var(--z-content);
	width: 36px;
	height: 36px;
	color: rgba(255, 255, 255, 0.55);
}

.gallery-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 32px 16px 14px;
	background: linear-gradient(transparent, rgba(2, 6, 23, 0.85));
	color: var(--color-white);
	font-size: var(--text-sm);
	font-weight: 600;
	z-index: var(--z-content);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.gallery-item:hover .gallery-caption,
.gallery-item:focus-within .gallery-caption {
	opacity: 1;
	transform: translateY(0);
}

/* Zoom hint chip (slides in on hover, like the portfolio arrow). */
.gallery-zoom {
	position: absolute;
	right: 14px;
	bottom: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: var(--radius-full);
	background: rgba(255, 255, 255, 0.92);
	color: var(--color-on-strong);
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: translateY(10px) scale(0.9);
	transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
	z-index: var(--z-content);
}
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-within .gallery-zoom {
	opacity: 1;
	transform: translateY(0) scale(1);
}
.gallery-zoom .icon {
	width: 16px;
	height: 16px;
}

/* ── CTA band (big headline) ──────────────────────────────────────────── */

.cta {
	position: relative;
	overflow: hidden;
	text-align: center;
}
.cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(640px 480px at 50% 0%, rgba(30, 58, 138, 0.4), transparent 70%),
		radial-gradient(520px 400px at 15% 100%, rgba(37, 99, 235, 0.18), transparent 70%),
		radial-gradient(520px 400px at 85% 100%, rgba(30, 58, 138, 0.18), transparent 70%);
	pointer-events: none;
}

.cta-inner {
	position: relative;
	z-index: var(--z-content);
	max-width: 760px;
}
.cta h2 {
	font-size: clamp(1.875rem, 4.5vw, 3.375rem);
	line-height: var(--leading-none);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 18px;
}
.cta p {
	color: var(--color-text-muted);
	margin-bottom: 30px;
	font-size: var(--text-md);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
	border-top: 1px solid var(--hairline);
	background: var(--color-dark);
	color: var(--color-text-muted);
}

/* Giant fading wordmark — the Linear/Framer-style footer signature. */
.footer-wordmark {
	margin: 0;
	text-align: center;
	font-family: var(--font-display);
	font-size: clamp(3.5rem, 13vw, 11rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.8;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.22) 55%, rgba(255, 255, 255, 0) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	user-select: none;
	pointer-events: none;
	padding-top: clamp(2.5rem, 6vw, 5rem);
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--space-10);
	padding-top: clamp(3.5rem, 7vw, 5.5rem);
	padding-bottom: var(--space-12);
}

.footer-widgets .widget + .widget {
	margin-top: 32px;
}

.widget-title {
	color: var(--color-white);
	font-size: var(--text-sm);
	font-weight: 400;
	margin-bottom: 16px;
	letter-spacing: var(--tracking-tight);
}

/* Brand fallback column (used until real footer widgets are assigned). */
.widget-brand .widget-title {
	font-size: 1.35rem;
	font-weight: 400;
}
.footer-blurb {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	line-height: var(--leading-relaxed);
	margin: 0 0 14px;
}
.footer-contact-line {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin: 0;
	font-size: var(--text-sm);
}
.footer-contact-line .icon {
	width: 15px;
	height: 15px;
	color: var(--color-primary);
}
.widget-contact li,
.widget-services li {
	color: var(--color-text-muted);
}

.footer-widgets .widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-widgets .widget li {
	margin-bottom: 9px;
	line-height: var(--leading-snug);
	font-size: var(--text-sm);
}
.footer-widgets .widget a {
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	transition: color var(--dur-fast) ease, padding-left var(--dur-fast) ease;
}
.footer-widgets .widget a:hover {
	color: var(--color-white);
	padding-left: 4px;
	text-decoration: none;
}

/* Dropdown widgets (Archiv, Kategorien, …) match the dark design. */
.footer-widgets .widget select {
	width: 100%;
	max-width: 260px;
	padding: 10px 14px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	background: var(--color-surface);
	color: var(--color-text);
	font: inherit;
	font-size: var(--text-sm);
}
.footer-widgets .widget select:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.footer-bottom {
	border-top: 1px solid var(--hairline);
	padding: var(--space-6) 0;
	font-size: var(--text-sm);
}

.footer-bottom-inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 18px 28px;
	flex-wrap: wrap;
}
.footer-bottom p {
	margin: 0;
	color: var(--color-text-faint);
}
.footer-bottom ul.menu {
	display: flex;
	align-items: center;
	gap: var(--space-2) var(--space-5);
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-bottom a {
	color: var(--color-text-muted);
	transition: color var(--dur-fast) ease;
}
.footer-bottom a:hover {
	color: var(--color-white);
	text-decoration: none;
}
.footer-bottom .menu .current-menu-item > a {
	color: var(--color-primary-soft-text);
}

/* Social icon row. */
.social-links {
	display: flex;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.social-links a {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: var(--radius-full);
	border: 1px solid var(--color-border-strong);
	background: var(--hairline-faint);
	color: var(--color-text-muted);
	transition: background var(--dur-base) ease, color var(--dur-base) ease, border-color var(--dur-base) ease, transform var(--dur-base) var(--ease-spring);
}
.social-links a:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-3px);
	text-decoration: none;
}
.social-links .icon {
	width: 17px;
	height: 17px;
}

/* ── Lightbox ──────────────────────────────────────────────────────────── */

.lightbox {
	position: fixed;
	inset: 0;
	z-index: var(--z-modal);
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(3, 5, 9, 0.92);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease;
}
.lightbox.open {
	opacity: 1;
	visibility: visible;
}

.lightbox-stage {
	max-width: min(1100px, 92vw);
	width: 100%;
}
.lightbox-stage .gallery-item {
	cursor: default;
	box-shadow: var(--shadow-xl), 0 0 120px -32px rgba(37, 99, 235, 0.5);
	border-color: var(--color-border-strong);
}
.lightbox-stage .gallery-item:hover {
	transform: none;
}
.lightbox-stage .gallery-caption,
.lightbox-stage .gallery-zoom {
	display: none;
}

.lightbox-caption {
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--text-sm);
	margin: 16px 0 0;
}

.lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: var(--radius-full);
	background: var(--color-surface);
	border: 1px solid var(--color-border-strong);
	color: var(--color-white);
	cursor: pointer;
	transition: background var(--dur-base) ease, transform var(--dur-base) var(--ease-out);
}
.lightbox-close:hover {
	background: var(--color-primary);
	transform: rotate(90deg);
}
.lightbox-close .icon {
	width: 18px;
	height: 18px;
	transform: rotate(45deg);
}

/* ── Back to top ──────────────────────────────────────────────────────── */

.back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: var(--z-overlay);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-full);
	background: var(--color-pill-strong);
	backdrop-filter: blur(8px);
	color: var(--color-white);
	cursor: pointer;
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity var(--dur-base) ease, visibility var(--dur-base) ease, transform var(--dur-base) var(--ease-out), background var(--dur-base) ease;
}
.back-to-top.visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.back-to-top:hover {
	background: var(--color-primary);
	border-color: var(--color-primary);
	transform: translateY(-3px);
}
.back-to-top .icon {
	width: 19px;
	height: 19px;
}

/* ── Blog pieces (listing, single) ────────────────────────────────────── */

.page-title {
	font-size: clamp(1.625rem, 3.5vw, 2.375rem);
	letter-spacing: var(--tracking-tight);
	margin-bottom: 24px;
}

.single-article .entry-content {
	max-width: var(--content-width-narrow);
}
.single-article .entry-content p {
	line-height: var(--leading-relaxed);
	color: var(--color-text-muted);
}

.post-thumbnail {
	margin: 0 0 24px;
}
.post-thumbnail img {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
	width: 100%;
	border: 1px solid var(--color-border);
}

.entry-content h2 {
	margin-top: 1.6em;
}
.entry-content img {
	border-radius: var(--radius-sm);
}

.archive-desc {
	color: var(--color-text-muted);
	margin-bottom: 28px;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-2);
	margin: 28px 0 0;
}
.post-tags a {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	color: var(--color-text-muted);
	font-size: var(--text-xs);
	font-weight: 600;
	transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.post-tags a:hover {
	color: var(--color-primary-soft-text);
	border-color: var(--glow-primary);
	text-decoration: none;
}

.post-navigation {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 40px;
}
.post-navigation a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
	background: var(--color-surface);
	font-size: var(--text-sm);
	font-weight: 600;
	color: var(--color-text);
	transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) ease, box-shadow var(--dur-base) var(--ease-out);
}
.post-navigation a:hover {
	transform: translateY(-2px);
	border-color: var(--color-border-strong);
	box-shadow: var(--shadow-md);
	text-decoration: none;
}
.post-navigation .nav-next {
	text-align: right;
}
.post-navigation .nav-label {
	display: block;
	font-size: var(--text-xs);
	font-weight: 500;
	color: var(--color-text-faint);
	margin-bottom: 3px;
}

.pagination {
	margin-top: 40px;
	text-align: center;
}
.pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--space-2);
}
.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-full);
	background: var(--color-surface);
	color: var(--color-text-muted);
	font-weight: 600;
	font-size: var(--text-sm);
	transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.pagination .page-numbers:hover {
	border-color: var(--color-primary);
	color: var(--color-white);
	transform: translateY(-1px);
	text-decoration: none;
}
.pagination .page-numbers.current {
	background: var(--color-primary);
	border-color: var(--color-primary);
	color: var(--color-on-primary);
	box-shadow: var(--shadow-primary);
}

/* ── Comments ─────────────────────────────────────────────────────────── */

.comments-area {
	max-width: var(--content-width-narrow);
	margin: 56px auto 0;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment {
	border-top: 1px solid var(--color-border);
	padding: 20px 0;
}
.comment .comment-body {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
}
.comment-meta {
	font-size: var(--text-xs);
	color: var(--color-text-faint);
	margin-bottom: 6px;
}
.comment-meta a {
	font-weight: 600;
	color: var(--color-text);
}
.comment-meta a:hover {
	color: var(--color-primary);
}
.comment .children {
	list-style: none;
	padding-left: 24px;
	margin-top: 10px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	font-size: var(--text-sm);
	margin: 14px 0 7px;
	color: var(--color-text-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 13px 16px;
	border: 1px solid var(--color-border-strong);
	border-radius: var(--radius-sm);
	font: inherit;
	font-size: var(--text-sm);
	background: var(--color-surface);
	color: var(--color-text);
	transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px var(--color-primary-soft);
}
.comment-form .comment-notes,
.comment-form .logged-in-as {
	font-size: var(--text-xs);
	color: var(--color-text-faint);
}
.comment-form .form-submit {
	margin-top: 18px;
}

/* ── Legal / long-form pages ──────────────────────────────────────────── */

.legal-content {
	max-width: var(--content-width-narrow);
	margin: 0 auto;
}
.legal-content h2 {
	margin-top: 2em;
}
.legal-content ul,
.legal-content ol {
	padding-left: 1.4em;
}
.legal-content li {
	margin-bottom: 0.4em;
	line-height: var(--leading-relaxed);
	color: var(--color-text-muted);
}

/* ── Search ───────────────────────────────────────────────────────────── */

.search-form {
	display: flex;
	gap: 10px;
	max-width: 480px;
	margin: 0 auto 32px;
}
.search-form > label {
	flex: 1;
}
.not-found .search-form {
	margin: 28px auto 0;
}

/* ── 404 ──────────────────────────────────────────────────────────────── */

.not-found {
	position: relative;
	text-align: center;
	padding: clamp(3rem, 8vw, 5.5rem) 0;
}
.not-found::before {
	content: "";
	position: absolute;
	inset: -20% 0;
	background: radial-gradient(560px 400px at 50% 30%, rgba(30, 58, 138, 0.35), transparent 70%);
	pointer-events: none;
}
.not-found-code {
	position: relative;
	display: block;
	font-family: var(--font-display);
	font-size: clamp(5rem, 14vw, 9rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: var(--tracking-tight);
	background: linear-gradient(180deg, #ffffff 0%, #64748b 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	margin-bottom: 12px;
}
.not-found-actions {
	position: relative;
	display: flex;
	justify-content: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 24px;
}

/* ── Motion: scroll reveal ──────────────────────────────────────────────
   Elements opt in with [data-reveal] (values: fade-up | left | right |
   zoom). Children of [data-reveal-group] are staggered automatically by
   main.js. Everything is disabled for reduced motion and never hidden
   without JS (the .js class is set in the head). */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition:
		opacity 0.8s var(--ease-out) var(--reveal-delay, 0s),
		transform 0.8s var(--ease-out) var(--reveal-delay, 0s);
	will-change: opacity, transform;
}
.js [data-reveal="left"] { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="zoom"] { transform: scale(0.95); }
.js [data-reveal].revealed {
	opacity: 1;
	transform: none;
}

/* ── 3D tilt (data-tilt) & magnetic buttons (data-magnetic) ─────────────
   Transforms are driven by main.js; the CSS only smooths them. Both are
   gated to fine pointers and skipped for reduced motion in JS. */

.js [data-tilt] {
	transition: transform 0.35s var(--ease-out);
	will-change: transform;
}
.btn[data-magnetic] {
	will-change: transform;
}

/* ── Keyframes ────────────────────────────────────────────────────────── */

@keyframes marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@keyframes hero-in {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

@keyframes nav-link-in {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@keyframes pulse-dot {
	0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
	70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
	100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ── Next-gen feel ────────────────────────────────────────────────────────
   Masked title reveals, scroll-scrubbed eyebrows, the live
   window headline, progress-ring back-to-top, link underlines. Every
   effect degrades to a static page without JS / for reduced motion. */

/* Line-mask titles — overflow-masked lines slide up when the heading
   enters (JS splits .section-title into .title-mask/.title-line). */
.title-split,
.title-measure {
	text-wrap: normal;
}
.title-mask {
	display: block;
	overflow: hidden;
	padding-bottom: 0.14em;
	margin-bottom: -0.14em;
}
.title-line {
	display: block;
	transform: translateY(120%);
	transition: transform 0.8s var(--ease-out) var(--title-delay, 0s);
	will-change: transform;
}
.section-heading.in .title-line {
	transform: translateY(0);
}

/* Scroll-scrubbed eyebrow draw-in — lines grow from the center as the
   heading enters. Progressive enhancement only. */
@supports (animation-timeline: view()) {
	.section-eyebrow::before,
	.section-eyebrow::after {
		animation: eyebrow-draw 0.6s var(--ease-out) both;
		animation-timeline: view();
		animation-range: entry 0% entry 65%;
	}
}
@keyframes eyebrow-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* Cursor-reactive wordmark letters. */
.wm-letter {
	display: inline-block;
	will-change: transform;
}

/* Hero window — live headline replaces the skeleton lines. */
.hero .mock-hero-large.has-live-line .mock-title,
.hero .mock-hero-large.has-live-line .mock-line {
	display: none;
}
.hero .mock-hero-large.has-live-line {
	align-content: center;
}
.window-type-line {
	grid-column: 1 / -1;
	margin: 0;
	font-family: var(--font-body);
	font-size: clamp(1rem, 2.2vw, 1.45rem);
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.5;
	min-height: 1.6em;
}

/* Back-to-top progress ring. */
.back-to-top .icon {
	position: relative;
	z-index: 1;
	width: 17px;
	height: 17px;
}
.btt-ring {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}
.btt-track {
	stroke: rgba(255, 255, 255, 0.08);
	stroke-width: 1.5;
}
.btt-progress {
	stroke: var(--color-primary);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-dasharray: 97.4;
	stroke-dashoffset: 97.4;
	transition: stroke-dashoffset 0.1s linear;
}

/* Quiet underline draw for text links. */
.footer-nav a,
.footer-contact-line a,
.entry-content a,
.breadcrumbs a {
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-size: 0% 1px;
	background-position: 0 100%;
	transition: background-size var(--dur-base) var(--ease-out), color var(--dur-fast) ease;
}
.footer-nav a:hover,
.footer-contact-line a:hover,
.entry-content a:hover,
.breadcrumbs a:hover {
	background-size: 100% 1px;
}

/* ── Responsive ─────────────────────────────────────────────────────────
   Breakpoint ladder: 1100 (grids collapse) → 1024 (process connector
   only) → 860 (nav toggle, page hero) → 640 (single columns). */

@media (max-width: 1100px) {
	.bento-7,
	.bento-5 {
		grid-column: span 12;
	}
	.bento-4 {
		grid-column: span 6;
	}
	.split-grid,
	.about-grid,
	.contact-grid {
		grid-template-columns: 1fr;
		gap: var(--space-10);
	}
	.split-media {
		max-width: 640px;
		margin: 0 auto;
		width: 100%;
	}
	.split-badge {
		left: 16px;
		bottom: 16px;
	}
	.footer-widgets {
		grid-template-columns: 1fr 1fr;
	}
	.gallery-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.post-navigation {
		grid-template-columns: 1fr;
	}
	.post-navigation .nav-next {
		text-align: left;
	}
}

@media (max-width: 860px) {
	.nav-toggle {
		display: block;
	}
	.site-header {
		padding: 0 24px;
	}
	.header-pill {
		padding-left: var(--space-6);
		gap: var(--space-3);
	}
	.main-nav {
		position: absolute;
		top: calc(100% + 10px);
		/* The pill is the containing block now (grain overlay) — flush the
		   panel to the pill's edges so it hangs directly off it. */
		left: 0;
		right: 0;
		margin: 0;
		background: var(--color-panel);
		backdrop-filter: blur(16px);
		border: 1px solid var(--color-border);
		border-radius: var(--radius-lg);
		padding: 10px;
		box-shadow: var(--shadow-xl);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity var(--dur-base) ease, transform var(--dur-base) var(--ease-out), visibility var(--dur-base) ease;
	}
	.main-nav.open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.main-nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}
	.main-nav a {
		display: block;
		padding: 13px 14px;
		font-size: var(--text-base);
		border-radius: var(--radius-sm);
	}
	.main-nav a:hover {
		background: rgba(255, 255, 255, 0.07);
	}
	/* Staggered link reveal behind the blur panel (replays on open). */
	.main-nav.open a {
		animation: nav-link-in 0.35s var(--ease-out) both;
	}
	.main-nav.open li:nth-child(1) a { animation-delay: 0.03s; }
	.main-nav.open li:nth-child(2) a { animation-delay: 0.08s; }
	.main-nav.open li:nth-child(3) a { animation-delay: 0.13s; }
	.main-nav.open li:nth-child(4) a { animation-delay: 0.18s; }
	.main-nav.open li:nth-child(5) a { animation-delay: 0.23s; }
	.main-nav.open li:nth-child(6) a { animation-delay: 0.28s; }
	.main-nav.open li:nth-child(n + 7) a { animation-delay: 0.33s; }

	.hero {
		padding: calc(4.5rem + var(--header-h)) 0;
	}
	.section {
		padding: var(--section-pad-sm) 0;
	}
	.page-hero {
		padding: calc(3.5rem + var(--header-h)) 0 3rem;
	}
	.form-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.float-chip-a {
		left: -6px;
	}
	.float-chip-b {
		right: -6px;
	}
}

@media (max-width: 640px) {
	.bento-4 {
		grid-column: span 12;
	}
	.bento-grid {
		gap: var(--space-4);
	}
	.pricing-grid,
	.services-grid,
	.portfolio-grid,
	.team-grid,
	.testimonials-grid {
		grid-template-columns: 1fr;
	}
	.stats-grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}
	.gallery-grid {
		grid-template-columns: 1fr;
	}
	.newsletter-form {
		border-radius: var(--radius-lg);
		flex-direction: column;
		align-items: stretch;
		padding: 10px;
	}
	.newsletter-form .btn {
		width: 100%;
	}
	.hero-actions {
		flex-direction: column;
		align-items: stretch;
		max-width: 320px;
		margin: 0 auto;
	}
	.mock-cards {
		grid-template-columns: 1fr 1fr;
	}
	.mock-card:last-child {
		display: none;
	}
	.footer-widgets {
		grid-template-columns: 1fr;
	}
	.footer-bottom-inner {
		justify-content: center;
		text-align: center;
	}
	.back-to-top {
		right: 16px;
		bottom: 16px;
	}
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::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;
	}
	.hero-inner > * {
		animation: none;
	}
	.card::before,
	.bento-card::before {
		opacity: 0 !important;
	}

	.clients-track {
		animation: none;
		width: auto;
		flex-wrap: wrap;
		justify-content: center;
	}
	.clients-track .clients-group[aria-hidden="true"] {
		display: none;
	}
	/* Scroll-timeline animations are immune to the duration kill above. */
	.section-eyebrow::before,
	.section-eyebrow::after {
		animation: none !important;
	}
}
