/* ==========================================================================
   Devfolio — main stylesheet
   Single-colour purple palette; clean editorial layout.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--purple: #5e5ede;
	--purple-600: #4d4dc9;
	--purple-soft: #e4e4fb;
	--purple-tint: #f1f1fd;
	--accent: #8b8bf3;      /* light purple accent (single-colour palette) */
	--accent-600: #4b4bc9;  /* buttons (white text) */
	--accent-700: #3c3cb0;
	--accent-soft: #ededfd;
	--accent-light: #c4c4fb; /* accent text on purple / dark */
	--navy: #16162a;
	--lavender: #f5f5ff;
	--ink: #212121;
	--text: #3c3c46;
	--muted: #6b6b78;
	--line: #ececf2;
	--bg: #ffffff;
	--grey: #f8f8f8;
	--grey-2: #fafafa;
	--cream: #fef9f1;

	--font: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--container: 1280px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 96px;
	--section: clamp(72px, 9vw, 120px);
	--radius-sm: 8px;
	--radius: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 4px 14px rgba(33, 33, 60, .06);
	--shadow: 0 14px 40px rgba(33, 33, 60, .08);
	--shadow-lg: 0 24px 60px rgba(60, 60, 160, .16);
	--ease: cubic-bezier(.22, .8, .24, 1);
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 1.0625rem/1.7 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.screen-reader-text,
.hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--purple);
	color: #fff;
	border-radius: var(--radius-sm);
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 3. Layout ---------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }

.section { position: relative; padding-block: var(--section); overflow: hidden; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.section__head { position: relative; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; margin-bottom: 24px; }
.eyebrow { margin-bottom: 10px; color: var(--purple); font-size: 1.1rem; font-weight: 600; }
.eyebrow--accent { color: var(--accent-light); }
.section__title { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section__foot { margin-top: clamp(40px, 5vw, 56px); text-align: center; }

/* Doodles: decorative, never interactive */
.doodle { position: absolute; pointer-events: none; height: auto; }

/* 4. Buttons --------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 30px;
	border: 2px solid transparent;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn--lg { min-height: 58px; padding-inline: 32px; font-size: 1.15rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 10px 24px rgba(94, 94, 222, .28); }
.btn--primary:hover { background: var(--purple-600); }
.btn--accent { background: var(--accent-600); color: #fff; box-shadow: 0 10px 24px rgba(75, 75, 201, .28); }
.btn--accent:hover { background: var(--accent-700); }
.btn--outline-light { border-color: #fff; color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--purple); }
.btn[disabled] { opacity: .7; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--purple); font-weight: 600; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a {
	display: grid;
	place-items: center;
	width: 42px; height: 42px;
	border-radius: 50%;
	background: var(--purple-tint);
	color: var(--purple);
	transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--purple); color: #fff; transform: translateY(-3px); }
.socials .icon { width: 18px; height: 18px; }

/* 5. Header ---------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow .3s, transform .35s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(33, 33, 60, .08); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.brand__logo { max-height: 56px; width: auto; }
.brand__mark { width: 52px; height: 52px; }
.brand__name { margin-left: -12px; margin-top: 18px; color: var(--ink); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.brand__name span { color: var(--purple); }

.nav { display: flex; align-items: center; flex: 1; gap: 24px; }
.nav__list { display: flex; align-items: center; justify-content: center; flex: 1; gap: clamp(20px, 3.4vw, 56px); }
.nav__list a { position: relative; padding-block: 8px; color: var(--ink); font-size: 1.1rem; transition: color .2s; }
.nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active, .nav__list .current-menu-item > a { color: var(--purple); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { min-height: 56px; padding-inline: 32px; font-size: 1.1rem; }

.nav-toggle {
	display: none;
	place-items: center;
	width: 46px; height: 46px;
	margin-left: auto;
	border: 0;
	border-radius: 12px;
	background: var(--purple-tint);
	color: var(--purple);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* 6. Person figure (hero / about / contact) -------------------------------- */
.figure { position: relative; width: 100%; aspect-ratio: 1; }
.figure__circle {
	position: absolute;
	right: 0; top: 4%;
	width: 86%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--accent);
}
.figure__media { position: absolute; overflow: hidden; }
.figure__img { width: 100%; height: 100%; object-fit: cover; }

/* Regular photo: circle with a white ring, overlapping the accent circle */
.figure--photo .figure__media,
.figure--empty .figure__media {
	left: 0; bottom: 0;
	width: 84%;
	aspect-ratio: 1;
	border: 10px solid #fff;
	border-radius: 50%;
	background: var(--purple-soft);
	box-shadow: var(--shadow-lg);
}
.figure--photo .figure__img { object-position: 50% 15%; transition: transform .8s var(--ease); }
.figure--photo:hover .figure__img { transform: scale(1.04); }
.figure__media--empty { display: grid; place-items: center; }
.figure__media--empty span { color: var(--purple); font-size: clamp(5rem, 12vw, 9rem); font-weight: 800; }

/* Cut-out PNG: person stands on the circle and rises above it */
.figure--cutout .figure__media { inset: -14% 0 0; overflow: visible; }
.figure--cutout .figure__img { object-fit: contain; object-position: 50% 100%; }

/* 7. Hero ------------------------------------------------------------------
   Three layouts: .hero--spotlight (default), .hero--bold, .hero--center    */
.hero { position: relative; overflow: hidden; background: #fff; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__sparkle { left: 47%; top: 12%; width: 40px; color: var(--accent); }
.hero__swoosh { left: 3%; bottom: 7%; width: 150px; color: var(--purple); opacity: .3; }
.hero--spotlight .hero__swoosh { left: auto; right: 44%; bottom: 5%; }

.hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: clamp(24px, 4vw, 64px);
	min-height: clamp(580px, calc(100svh - var(--header-h)), 820px);
	padding-block: clamp(40px, 5vw, 64px);
}
.hero__content { position: relative; }
.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px 8px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 500;
	box-shadow: var(--shadow-sm);
}
.hero__pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
	70%, 100% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}
.hero__title { margin-top: 22px; color: var(--ink); font-size: clamp(2.5rem, 4.5vw, 4.25rem); line-height: 1.1; letter-spacing: -.03em; }
.hero__title .grad {
	color: var(--purple);
	text-decoration: underline;
	text-decoration-color: rgba(139, 139, 243, .55);
	text-decoration-thickness: .16em;
	text-underline-offset: .06em;
	text-decoration-skip-ink: none;
}
.hero__text { max-width: 560px; margin-top: 22px; color: var(--muted); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.75; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero__actions .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.hero__actions .btn:hover .icon { transform: translateX(4px); }
.btn--outline { border-color: var(--purple); color: var(--purple); }
.btn--outline:hover { background: var(--purple); color: #fff; }

.hero__stats { display: flex; flex-wrap: wrap; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column-reverse; padding-inline: clamp(20px, 3vw, 40px); }
.hero__stats div:first-child { padding-left: 0; }
.hero__stats div + div { border-left: 1px solid var(--line); }
.hero__stats dd { margin: 0; color: var(--ink); font-size: clamp(1.8rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.hero__stats dt { margin-top: 4px; color: var(--muted); font-size: .92rem; }

/* Photo composition ------------------------------------------------------ */
.hero__visual { position: relative; width: 100%; max-width: 540px; justify-self: end; }
.hero-photo { position: relative; width: 100%; aspect-ratio: 1 / 1.08; }
.hero-photo__shape {
	position: absolute;
	left: 6%; right: 6%; bottom: 0;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--purple);
	box-shadow: 0 30px 60px rgba(94, 94, 222, .25);
}
.hero-photo__ring {
	position: absolute;
	left: 0; right: 0; bottom: -6%;
	aspect-ratio: 1;
	border: 2px dashed var(--accent);
	border-radius: 50%;
	animation: spin-slow 50s linear infinite;
}
.hero-photo__dots { right: 1%; top: 18%; width: 8px; color: var(--accent); }
/* Bottom is a half-circle matching the shape, top is open so the head pops out */
.hero-photo__clip { position: absolute; left: 6%; right: 6%; top: 0; bottom: 0; overflow: hidden; border-radius: 0 0 999px 999px; }
.hero-photo__img {
	position: absolute;
	left: 50%; bottom: 0;
	width: auto;
	max-width: none;
	height: 100%;
	transform: translateX(-50%);
}
.hero-photo__initial { position: absolute; inset: auto 0 18%; color: #fff; font-size: clamp(6rem, 14vw, 10rem); font-weight: 800; text-align: center; }

.hero-chip {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 18px 10px 10px;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 16px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 18px 40px rgba(33, 33, 80, .14);
	backdrop-filter: blur(10px);
	animation: float 6s ease-in-out infinite;
}
.hero-chip__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--purple-tint); color: var(--purple); }
.hero-chip__icon .art { width: 28px; height: 28px; }
.hero-chip--1 .hero-chip__icon { background: var(--accent-soft); color: var(--accent-700); }
.hero-chip strong { display: block; color: var(--ink); font-size: .98rem; line-height: 1.25; }
.hero-chip small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.hero-chip--1 { left: -4%; top: 30%; }
.hero-chip--2 { right: -2%; top: 54%; animation-delay: -2s; }
.hero-chip--rating { left: 0; bottom: 7%; padding-left: 16px; animation-delay: -4s; }
.hero-chip__stars { display: flex; gap: 1px; color: var(--accent); }
.hero-chip__stars .icon { width: 15px; height: 15px; fill: currentColor; }
.hero-chip--rating strong { font-size: 1.1rem; }

/* Bold: purple banner, photo standing in an accent arch -------------------- */
.hero--bold { background: var(--purple); }
.hero--bold .hero__waves { top: -40px; width: 460px; color: rgba(255, 255, 255, .25); }
.hero--bold .hero__waves--left { left: -150px; top: -60px; width: 380px; transform: scaleX(-1); }
.hero--bold .hero__waves--right { right: -40px; }
.hero--bold .hero__inner { padding-bottom: 0; }
.hero--bold .hero__content { padding-bottom: clamp(40px, 5vw, 64px); }
.hero--bold .hero__badge { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff; box-shadow: none; }
.hero--bold .hero__title { color: #fff; }
.hero--bold .hero__title .grad { color: var(--accent); text-decoration: none; }
.hero--bold .hero__text { color: rgba(255, 255, 255, .88); }
.hero--bold .hero__stats { border-color: rgba(255, 255, 255, .2); }
.hero--bold .hero__stats div + div { border-color: rgba(255, 255, 255, .2); }
.hero--bold .hero__stats dd { color: #fff; }
.hero--bold .hero__stats dt { color: rgba(255, 255, 255, .75); }
.hero--bold .hero__visual { align-self: end; }
.hero--bold .hero-photo__shape { left: 12%; right: 12%; height: 78%; aspect-ratio: auto; border-radius: 999px 999px 0 0; background: var(--accent); box-shadow: none; }
.hero--bold .hero-photo__ring { left: 4%; right: 4%; bottom: 0; height: 88%; aspect-ratio: auto; border-color: rgba(255, 255, 255, .45); border-bottom: 0; border-radius: 999px 999px 0 0; animation: none; }
.hero--bold .hero-photo__clip { left: 0; right: 0; border-radius: 0; }
.hero--bold .hero-photo__dots { color: #fff; }
.hero--bold .hero-chip { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .16); box-shadow: none; }
.hero--bold .hero-chip strong { color: #fff; }
.hero--bold .hero-chip small { color: rgba(255, 255, 255, .8); }
.hero--bold .hero-chip__icon { background: #fff; }
.hero--bold .hero-chip--rating { bottom: 12%; }

/* Centered: headline on top, photo in an arch underneath ------------------- */
.hero--center .hero__inner { grid-template-columns: 1fr; justify-items: center; gap: 32px; min-height: 0; padding-top: clamp(48px, 6vw, 80px); padding-bottom: 0; text-align: center; }
.hero--center .hero__content { display: flex; flex-direction: column; align-items: center; max-width: 900px; }
.hero--center .hero__text { margin-inline: auto; }
.hero--center .hero__actions { justify-content: center; }
.hero--center .hero__visual { justify-self: center; max-width: 860px; }
.hero--center .hero-photo { aspect-ratio: 860 / 470; }
.hero--center .hero-photo__shape { left: 50%; right: auto; width: 52%; height: 84%; aspect-ratio: auto; border-radius: 999px 999px 0 0; transform: translateX(-50%); }
.hero--center .hero-photo__ring { left: 50%; right: auto; bottom: 0; width: 62%; height: 96%; aspect-ratio: auto; border-bottom: 0; border-radius: 999px 999px 0 0; transform: translateX(-50%); animation: none; }
.hero--center .hero-photo__clip { left: 0; right: 0; border-radius: 0; }
.hero--center .hero-photo__dots { right: 16%; top: 12%; }
.hero--center .hero-chip--1 { left: 2%; top: 26%; }
.hero--center .hero-chip--2 { right: 2%; top: 44%; }
.hero--center .hero-chip--rating { left: 10%; bottom: 14%; }
.hero--center .hero__sparkle { left: 14%; top: 18%; }
.hero--center .hero__swoosh { left: auto; right: 6%; top: 16%; bottom: auto; }

/* Regular (non cut-out) photo: framed circle in every layout --------------- */
.hero-photo--photo .hero-photo__clip,
.hero-photo--empty .hero-photo__clip {
	top: auto; bottom: 4%;
	left: 50%; right: auto;
	width: min(80%, 440px);
	aspect-ratio: 1;
	border: 10px solid #fff;
	border-radius: 50%;
	transform: translateX(-50%);
	box-shadow: var(--shadow-lg);
}
.hero-photo--photo .hero-photo__img { left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: none; filter: none; }

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; min-height: 0; text-align: center; }
	.hero__text { margin-inline: auto; }
	.hero__visual { justify-self: center; max-width: 460px; }
	.hero__content { display: flex; flex-direction: column; align-items: center; }
	.hero__actions, .hero__stats { justify-content: center; }
	.hero--bold .hero__content { padding-bottom: 0; }
	.hero--center .hero__visual { max-width: 640px; }
	.hero__sparkle { left: auto; right: 8%; top: 6%; }
}

@media (max-width: 640px) {
	.hero__title { font-size: clamp(2.1rem, 9.4vw, 2.7rem); }
	.hero__actions { width: 100%; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__visual { max-width: 360px; }
	.hero__stats div { padding-inline: 14px; }
	.hero__stats dd { font-size: 1.6rem; }
	.hero__stats dt { font-size: .8rem; }
	.hero-chip { gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; }
	.hero-chip__icon { width: 34px; height: 34px; border-radius: 9px; }
	.hero-chip__icon .art { width: 22px; height: 22px; }
	.hero-chip strong { font-size: .82rem; }
	.hero-chip small { font-size: .7rem; }
	.hero-chip--1 { left: -2%; }
	.hero-chip--2 { right: -2%; }
	.hero-chip--rating { display: none; }
	.hero--center .hero-photo { aspect-ratio: 1 / 1.02; }
	.hero--center .hero-photo__shape { width: 82%; }
	.hero--center .hero-photo__ring { width: 96%; }
	.hero__swoosh, .hero--center .hero__sparkle { display: none; }
}

/* Desktop: the whole hero fits the first screen (sizes follow viewport height) */
@media (min-width: 961px) {
	.hero { --hero-pad: clamp(20px, 4vh, 56px); }
	/* At least one screen tall, but grows if the content needs more room (never hides under the header) */
	.hero__inner { height: auto; min-height: max(540px, calc(100svh - var(--header-h))); padding-block: var(--hero-pad); }
	.hero--center .hero__inner { height: calc(100svh - var(--header-h)); }
	.hero__title { margin-top: clamp(12px, 2.4vh, 22px); font-size: clamp(2.3rem, min(4.5vw, 7.6vh), 4.25rem); }
	.hero__text { margin-top: clamp(12px, 2.4vh, 22px); }
	.hero__actions { margin-top: clamp(20px, 4vh, 36px); }
	.hero__visual { max-width: min(540px, calc((100svh - var(--header-h) - 2 * var(--hero-pad)) / 1.16)); }

	.hero--bold .hero__visual { max-width: min(560px, calc((100svh - var(--header-h) - var(--hero-pad) - 24px) / 1.08)); }

	.hero--center .hero__inner { grid-template-rows: auto minmax(0, 1fr); gap: clamp(16px, 3vh, 32px); }
	.hero--center .hero__title { font-size: clamp(2.1rem, min(4vw, 6.4vh), 3.8rem); }
	.hero--center .hero__visual { display: flex; align-items: flex-end; justify-content: center; width: 100%; max-width: none; height: 100%; min-height: 0; }
	.hero--center .hero__text { max-width: 720px; }
	.hero--center .hero-photo { width: min(100%, 980px); height: 100%; aspect-ratio: auto; }
	.hero--center .hero-photo__shape { width: auto; height: 84%; aspect-ratio: .86; }
	.hero--center .hero-photo__ring { width: auto; height: 97%; aspect-ratio: .9; }
	.hero--center .hero-photo__dots { right: 28%; }
	.hero--center .hero-chip--1 { left: 8%; top: 22%; }
	.hero--center .hero-chip--2 { right: 8%; top: 46%; }
	.hero--center .hero-chip--rating { left: 16%; bottom: 12%; }
}

/* 8. About (credibility: stats, story, tool stack) -------------------------- */
.about__contour { right: -120px; top: -40px; width: 720px; color: var(--purple-soft); opacity: .7; }
.about__grid { position: relative; }
.about__content { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__content > * { grid-column: 2; }
.about__content > .section__head { grid-column: 1; grid-row: 1 / span 4; margin-bottom: 0; }

/* Stats band (under the hero) */
.stats { padding-block: clamp(16px, 2vw, 24px) clamp(24px, 3vw, 40px); background: #fff; }
.stats__row {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.stat { position: relative; padding: clamp(28px, 3vw, 40px) clamp(20px, 2.6vw, 36px); }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat::before {
	content: "";
	position: absolute;
	left: 0; top: -1px;
	width: 32px; height: 2px;
	background: var(--purple);
}
.stat + .stat::before { left: clamp(20px, 2.6vw, 36px); }
.stat__label { color: var(--muted); font-size: .92rem; font-weight: 500; }
.stat__value { display: flex; align-items: flex-start; margin: 10px 0 0; color: var(--ink); font-size: clamp(2.6rem, 4.2vw, 3.6rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat__suffix { margin-left: 2px; color: var(--accent); font-size: .55em; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.stat__suffix--muted { color: #b9b9c4; }
.stats + .services { border-top: 0; padding-top: clamp(40px, 4.5vw, 64px); }
.stat__note { margin: 12px 0 0; color: #8a8a96; font-size: .88rem; line-height: 1.5; }

.about__content { position: relative; }
.about .section__title .grad { color: var(--purple); }
.about__text { color: var(--text); font-size: 1.1rem; }
.about__text p + p { margin-top: 1em; }
.chevron-list { display: grid; gap: 18px; margin: 28px 0 36px; }
.chevron-list li { display: grid; grid-template-columns: 36px 1fr; gap: 18px; align-items: start; font-size: 1.05rem; }
.chevron-list__icon { width: 32px; margin-top: 3px; color: var(--accent); }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.about__actions .icon { width: 20px; height: 20px; }

.tools { position: relative; margin-top: clamp(72px, 8vw, 104px); padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: var(--grey-2); text-align: center; }
.tools__label { margin-bottom: 20px; color: var(--muted); font-size: .95rem; font-weight: 500; letter-spacing: .02em; }
.tools__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tool {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 18px 8px 8px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-weight: 500;
	transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.tool:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 10px 22px rgba(33, 33, 80, .1); }
.tool__mark {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--c) 14%, #fff);
	color: var(--c);
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: -.02em;
}
.tool__mark .art { width: 28px; height: 28px; }

/* 9. Services -------------------------------------------------------------- */
.services { overflow: visible; border-top: 1px solid var(--line); }
.services__layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.services__intro .section__title { max-width: 12ch; }
.services__lead { margin-top: 18px; max-width: 34ch; color: var(--muted); font-size: 1.08rem; }
.services__cta { margin-top: 28px; }

.services__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	border-top: 1px solid var(--line);
	border-left: 1px solid var(--line);
	counter-reset: none;
}
.service {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 3vw, 40px);
	border-right: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: #fff;
	transition: background-color .3s;
}
.service::before {
	content: "";
	position: absolute;
	left: -1px; top: -1px;
	width: 0; height: 3px;
	background: var(--purple);
	transition: width .4s var(--ease);
}
.service:hover { background: var(--grey-2); }
.service:hover::before { width: calc(100% + 1px); }
.service__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.service__icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--purple); transition: background-color .3s, color .3s, border-color .3s; }
.service__icon .icon { width: 24px; height: 24px; }
.service:hover .service__icon { border-color: var(--purple); background: var(--purple); color: #fff; }
.service__num { color: #c4c4cf; font-size: .95rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.service__title { font-size: 1.3rem; letter-spacing: -.015em; }
.service__text { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.service__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 22px; }
.service__tags li { padding: 4px 12px; border-radius: 999px; background: var(--grey); color: var(--text); font-size: .82rem; }

/* 10. Process (timeline) --------------------------------------------------- */
.process { background: #fff; }
.process__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.process__lead { max-width: 52ch; color: var(--muted); font-size: 1.08rem; }

.timeline { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
/* The track the markers sit on */
.timeline::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 23px;
	height: 1px;
	background: #dcdce6;
}
.timeline__step { position: relative; display: flex; flex-direction: column; }
.timeline__marker { position: relative; display: flex; align-items: center; margin-bottom: 28px; }
.timeline__num {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid #dcdce6;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	font-size: .95rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	transition: background-color .3s, border-color .3s, color .3s;
}
.timeline__step:first-child .timeline__num,
.timeline__step:hover .timeline__num { border-color: var(--purple); background: var(--purple); color: #fff; }
.timeline__time { display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-size: .85rem; font-weight: 500; }
.timeline__time .icon { width: 15px; height: 15px; }
.timeline__title { margin-top: 0; font-size: 1.3rem; letter-spacing: -.015em; }
.timeline__text { margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.65; }
.timeline__result {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: auto;
	padding-top: 18px;
	color: var(--ink);
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.45;
}
.timeline__result .icon { width: 18px; height: 18px; margin-top: 1px; color: #16a34a; stroke-width: 2.2; }
.timeline__text + .timeline__result { border-top: 0; }

/* 11. Testimonials --------------------------------------------------------- */
.testimonials { background: var(--grey-2); border-block: 1px solid var(--line); }
.testimonials__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.testimonials__aside { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.testimonials__score { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .95rem; }
.testimonials__score strong { margin-right: 4px; color: var(--ink); font-size: 1.05rem; }
.testimonials__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.testimonials__stars svg { width: 18px; height: 18px; }

.slider-nav { display: flex; gap: 10px; }
@media (min-width: 961px) {
	.testimonials--few .slider-nav { display: none; }
	.testimonials--two .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
}
.t-card__avatar--icon .icon { width: 24px; height: 24px; }
.slider-arrow {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	transition: border-color .2s, background-color .2s, color .2s;
}
.slider-arrow svg { width: 20px; height: 20px; }
.slider-arrow:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.t-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * 24px) / 3);
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.t-track::-webkit-scrollbar { display: none; }
.t-track:focus-visible { outline-offset: 6px; }
.t-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(26px, 2.6vw, 34px);
	border: 1px solid var(--line);
	border-radius: 18px;
	background: #fff;
	scroll-snap-align: start;
	transition: border-color .3s;
}
.t-card:hover { border-color: #d4d4de; }
/* Large, quiet quotation mark */
.t-card::after {
	content: "\201D";
	position: absolute;
	right: 24px; top: 4px;
	color: var(--purple-tint);
	font: 700 6rem/1 Georgia, serif;
	pointer-events: none;
}
.t-card__stars { display: flex; gap: 2px; color: var(--accent); }
.t-card__stars svg { width: 16px; height: 16px; }
.t-card__text { position: relative; margin: 18px 0 0; color: var(--ink); font-size: 1.06rem; line-height: 1.7; }
.t-card__author { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 28px; }
.t-card__avatar { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.t-card__avatar--initials { display: grid; place-items: center; background: var(--purple-tint); color: var(--purple); font-size: .95rem; font-weight: 600; }
.t-card__who { display: grid; line-height: 1.35; }
.t-card__who strong { color: var(--ink); font-size: 1rem; font-weight: 600; }
.t-card__who small { color: var(--muted); font-size: .88rem; }

/* 12. Projects ------------------------------------------------------------- */
.projects__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.projects__lead { max-width: 52ch; color: var(--muted); font-size: 1.08rem; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter {
	min-height: 38px;
	padding: 6px 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--text);
	font-size: .92rem;
	font-weight: 500;
	transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }

.projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(40px, 4vw, 56px) clamp(20px, 2.4vw, 32px); }
.project { display: flex; flex-direction: column; }
.project.is-hidden { display: none; }

/* Browser-window frame */
.project__frame {
	display: block;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 12px 32px rgba(20, 20, 40, .06);
	transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.project:hover .project__frame { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 20, 40, .04), 0 24px 48px rgba(20, 20, 40, .1); }
.project__bar { display: flex; align-items: center; gap: 12px; height: 32px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #fafafb; }
.project__dots { display: flex; gap: 6px; }
.project__dots i { width: 8px; height: 8px; border-radius: 50%; background: #e2e2e8; }
.project__url { flex: 1; max-width: 200px; margin-inline: auto; padding: 2px 10px; border-radius: 6px; background: #fff; color: var(--muted); font-size: .75rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); }
.project__bar::after { content: ""; width: 42px; }
.project__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--grey); }
.project__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 0;
	transition: object-position 6s cubic-bezier(.45, .05, .35, 1);
}
.project:hover .project__img { object-position: 50% 100%; }

.project__body { padding-top: 20px; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .85rem; }
.project__type { color: var(--purple); font-weight: 600; }
.project__tech { color: #8a8a96; }
.project__title { margin-top: 6px; font-size: clamp(1.15rem, 1.5vw, 1.3rem); letter-spacing: -.02em; }
.project__title a { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.project__title a:hover { text-decoration-color: currentColor; }
.project__text { margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project__result { margin-top: 10px; color: var(--ink); font-size: .92rem; font-weight: 500; }
.project__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--ink); font-size: .92rem; font-weight: 600; }
.project__link .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.project__link:hover { color: var(--purple); }
.project__link:hover .icon { transform: translate(2px, -2px); }

/* Archive page filters */
.section--tight > .container > .filters { margin: 0 0 clamp(32px, 4vw, 48px); }

/* "View full portfolio" button */
.projects__all .icon { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.projects__all:hover .icon { transform: translateX(4px); }

/* Placeholder shown for demo projects without a screenshot */
.project__mock { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; background: #fff; }
.project__mock-nav { display: flex; align-items: center; gap: 10px; }
.project__mock-nav i { width: 60px; height: 12px; margin-right: auto; border-radius: 4px; background: hsl(var(--hue) 45% 45%); }
.project__mock-nav b { width: 32px; height: 6px; border-radius: 3px; background: #e2e2e8; }
.project__mock-hero { display: grid; flex: 1; grid-template-columns: 1fr .8fr; gap: 16px; align-items: center; padding: 20px; border-radius: 10px; background: hsl(var(--hue) 50% 95%); }
.project__mock-copy { display: grid; gap: 8px; }
.project__mock-copy i { height: 10px; border-radius: 4px; background: hsl(var(--hue) 30% 30%); }
.project__mock-copy i:nth-child(2) { width: 75%; }
.project__mock-copy i:nth-child(3) { width: 55%; height: 6px; background: #c4c4cf; }
.project__mock-copy em { width: 70px; height: 20px; margin-top: 6px; border-radius: 999px; background: hsl(var(--hue) 55% 50%); }
.project__mock-art { aspect-ratio: 1; border-radius: 12px; background: hsl(var(--hue) 50% 80%); }
.project__mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.project__mock-row i { height: 44px; border-radius: 8px; background: #f0f0f4; }

/* 12b. Packages ------------------------------------------------------------ */
.packages { background: var(--grey-2); border-block: 1px solid var(--line); }
.packages__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.packages__lead { max-width: 54ch; color: var(--muted); font-size: 1.08rem; }

.packages__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.package {
	display: flex;
	flex-direction: column;
	padding: clamp(28px, 2.8vw, 38px);
	border: 1px solid var(--line);
	border-radius: 20px;
	background: #fff;
	transition: border-color .3s, transform .3s var(--ease);
}
.package:hover { border-color: #d4d4de; }
.package--featured { border: 2px solid var(--purple); box-shadow: 0 20px 50px rgba(94, 94, 222, .12); }
.package--featured:hover { border-color: var(--purple); }
.package__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.package__name { font-size: 1.3rem; letter-spacing: -.015em; }
.package__badge { padding: 4px 12px; border-radius: 999px; background: var(--purple-tint); color: var(--purple); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.package__summary { min-height: 4.8em; margin-top: 10px; color: var(--muted); font-size: .98rem; line-height: 1.6; }
.package__price { display: flex; align-items: baseline; gap: 8px; margin-top: 26px; }
.package__price small { color: var(--muted); font-size: .9rem; }
.package__price strong { color: var(--ink); font-size: clamp(2.3rem, 3.4vw, 2.9rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.package__price .package__price--quote { font-size: 1.8rem; }
.package__cta { width: 100%; margin-top: 24px; }
.package__features { display: grid; gap: 12px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.package__features li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; color: var(--text); font-size: .96rem; line-height: 1.5; }
.package__features .icon { width: 18px; height: 18px; margin-top: 2px; color: #16a34a; stroke-width: 2.2; }

.packages__custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 40px;
	margin-top: 24px;
	padding: clamp(24px, 2.6vw, 32px) clamp(28px, 2.8vw, 38px);
	border: 1px dashed #d4d4de;
	border-radius: 20px;
	background: #fff;
}
.packages__custom h3 { font-size: 1.15rem; }
.packages__custom p { max-width: 62ch; margin-top: 6px; color: var(--muted); font-size: .98rem; }

/* 13. Contact -------------------------------------------------------------- */
.contact { background: var(--lavender); border-top: 1px solid #ebebfa; }
.contact-card {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	overflow: hidden;
	border: 1px solid #e6e6f6;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 30px 70px rgba(60, 60, 160, .1);
}

/* Left: purple info panel */
.contact-card__info { position: relative; display: flex; flex-direction: column; padding: clamp(32px, 4vw, 56px); background: var(--purple); color: rgba(255, 255, 255, .85); overflow: hidden; }
.contact-card__info::after {
	content: "";
	position: absolute;
	right: -120px; bottom: -120px;
	width: 300px; height: 300px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	box-shadow: 0 0 0 40px rgba(255, 255, 255, .04), 0 0 0 90px rgba(255, 255, 255, .03);
	pointer-events: none;
}
.contact__title { color: #fff; font-size: clamp(1.9rem, 2.8vw, 2.5rem); }
.contact__lead { margin-top: 14px; font-size: 1.02rem; line-height: 1.7; }
.contact__details { display: grid; gap: 18px; margin-top: 32px; }
.contact__details li { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 500; }
.contact__details small { display: block; color: rgba(255, 255, 255, .65); font-size: .8rem; font-weight: 400; }
.contact__details a { overflow-wrap: anywhere; }
.contact__details a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__icon { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; }
.contact__icon .icon { width: 20px; height: 20px; }
.contact__next { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.contact__next-title { margin-bottom: 14px; color: #fff; font-weight: 600; }
.contact__next ol { display: grid; gap: 12px; }
.contact__next li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: .95rem; line-height: 1.55; }
.contact__next li span { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; color: #fff; font-size: .78rem; font-weight: 600; }
.contact__status { position: relative; z-index: 1; display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; margin-top: auto; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font-size: .88rem; }
.contact__next + .contact__status { margin-top: 32px; }
.contact__status span { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }

/* Right: form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; align-content: start; padding: clamp(32px, 4vw, 56px); }
.field { margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; }
.field label span { color: var(--purple); }
.field label small { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid #dedee8;
	border-radius: 12px;
	background: #fff;
	color: var(--ink);
	font-size: 1rem;
	transition: border-color .2s, box-shadow .2s;
}
.field select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6b78' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 18px;
	cursor: pointer;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #a3a3b2; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #c8c8d6; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(94, 94, 222, .14); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .1); }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.contact-form__foot .btn .icon { width: 20px; height: 20px; }
.contact-form__note { color: var(--muted); font-size: .88rem; }
.form-status { flex-basis: 100%; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-success { color: #15803d; }
.form-status.is-error { color: #c62828; }

/* 14. Inner pages ---------------------------------------------------------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 110px); background: var(--purple); color: #fff; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: .9; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--accent-light); }
.page-hero__title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero__lead { max-width: 640px; margin-top: 16px; color: rgba(255, 255, 255, .9); font-size: 1.15rem; }
.page-hero--404 { min-height: 70svh; display: grid; align-items: center; text-align: center; }
.page-hero--404 .page-hero__lead { margin: 16px auto 32px; }
.page-hero--404 .btn--primary { background: var(--accent-600); }
.link-back { display: inline-block; margin-bottom: 20px; color: rgba(255, 255, 255, .85); font-weight: 500; }
.link-back:hover { color: #fff; }

.project-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0 0; }
.project-meta dt { color: rgba(255, 255, 255, .7); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.project-meta dd { margin: 4px 0 0; font-weight: 600; }
.project-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-light); }
.project-meta .icon { width: 15px; height: 15px; }

.entry-thumb { margin: 0 0 48px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.entry-thumb img { width: 100%; }
.entry-content { color: var(--text); font-size: 1.075rem; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content h2 { font-size: 1.85rem; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content blockquote { margin-inline: 0; padding-left: 24px; border-left: 4px solid var(--accent); color: var(--ink); font-size: 1.2rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content pre { padding: 20px; overflow-x: auto; border-radius: var(--radius); background: var(--grey); font: .9rem/1.6 var(--font-mono); }
.entry-content code { font-family: var(--font-mono); font-size: .9em; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { overflow: hidden; border-radius: var(--radius); background: var(--grey); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.post-card__body { display: grid; gap: 12px; padding: 24px; color: var(--muted); }
.post-card__meta { color: var(--purple); font-size: .85rem; font-weight: 500; }
.post-card__title { font-size: 1.3rem; }
.post-card__title a:hover { color: var(--purple); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); font-weight: 600; }
.post-nav a:hover { color: var(--purple); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: 999px; background: var(--grey); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--purple); color: #fff; }
.empty { color: var(--muted); text-align: center; }
.search-form { display: flex; gap: 8px; max-width: 480px; margin: 24px auto 0; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 50px; padding: 0 18px; border: 2px solid var(--line); border-radius: 999px; }
.search-submit { padding: 0 24px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 600; }

/* 14b. Portfolio page (/work/) ---------------------------------------------- */
.work-hero {
	position: relative;
	overflow: hidden;
	padding-block: clamp(36px, 4vw, 56px) clamp(56px, 6vw, 88px);
	border-bottom: 1px solid #ebebfa;
	background-color: var(--lavender);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22'%3E%3Ccircle cx='2' cy='2' r='1.4' fill='%235e5ede' fill-opacity='.16'/%3E%3C/svg%3E");
}
.work-hero__crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: clamp(32px, 4vw, 48px); color: var(--muted); font-size: .9rem; }
.work-hero__crumbs a:hover { color: var(--purple); }
.work-hero__crumbs [aria-current] { color: var(--ink); font-weight: 500; }
.work-hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.work-hero__title { max-width: 16ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.08; letter-spacing: -.03em; }
.work-hero__lead { max-width: 56ch; margin-top: 20px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.work-hero__aside { display: grid; gap: 24px; justify-items: start; }
.work-hero__facts { display: flex; width: 100%; margin: 0; border: 1px solid #e7e7f5; border-radius: 20px; background: #fff; }
.work-hero__facts div { display: flex; flex: 1; flex-direction: column-reverse; padding: 18px 22px; }
.work-hero__facts div + div { border-left: 1px solid #ededf7; }
.work-hero__facts dt { color: var(--muted); font-size: .85rem; }
.work-hero__facts dd { margin: 0; color: var(--ink); font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.work-hero__aside .btn .icon { width: 20px; height: 20px; }

.work-list { padding-top: clamp(40px, 4vw, 60px); background: #fff; }
.work-list__filters { justify-content: flex-start; margin: 0 0 clamp(28px, 3vw, 40px); }
.work-list__filters .filter span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--grey); color: var(--muted); font-size: .75rem; }
.work-list__filters .filter.is-active span { background: rgba(255, 255, 255, .18); color: #fff; }
/* Cards sit on white here, so give them a soft lavender frame instead */
.work-list .project { border-color: #ececf8; background: #fafaff; }

.work-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	margin-top: clamp(56px, 6vw, 88px);
	padding: clamp(32px, 4vw, 52px);
	border-radius: 28px;
	background: var(--purple);
	color: rgba(255, 255, 255, .85);
}
.work-cta h2 { color: #fff; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.work-cta p { max-width: 56ch; margin-top: 10px; line-height: 1.7; }
.work-cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.work-cta .btn--light { background: #fff; color: var(--purple); }
.work-cta .btn--light:hover { background: #ededfd; }
.work-cta .btn .icon { width: 20px; height: 20px; }
.work-cta__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .5); }
.work-cta__link:hover { text-decoration-color: #fff; }

@media (max-width: 960px) {
	.work-hero__grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
	.work-hero__facts div { padding: 14px 16px; }
	.work-hero__facts dd { font-size: 1.6rem; }
	.work-cta__actions .btn { width: 100%; }
}

/* 14c. Contact page (/contact/) --------------------------------------------- */
.contact-hero__profiles { display: grid; gap: 14px; padding: 22px 24px; border: 1px solid #e7e7f5; border-radius: 20px; background: #fff; }
.contact-hero__profiles p { color: var(--muted); font-size: .95rem; }
/* Profile buttons on light backgrounds (the footer has its own dark style) */
.contact-hero__profiles .profile { border-color: var(--line); color: var(--ink); }
.contact-hero__profiles .profile .icon { color: var(--purple); }
.contact-hero__profiles .profile:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.contact-hero__profiles .profile:hover .icon { color: #fff; }
/* The form section follows the lavender header, so keep it white here */
.contact-hero + .contact { padding-top: clamp(40px, 4vw, 64px); border-top: 0; background: #fff; }

.contact-faq { background: var(--lavender); border-top: 1px solid #ebebfa; }
.contact-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-faq__grid > header { position: sticky; top: calc(var(--header-h) + 32px); }
.contact-faq__lead { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.contact-faq { overflow: visible; }
.contact-faq__list { display: grid; gap: 12px; }
.faq-item { border: 1px solid #e7e7f5; border-radius: 16px; background: #fff; transition: border-color .25s, box-shadow .25s; }
.faq-item[open] { border-color: rgba(94, 94, 222, .35); box-shadow: 0 14px 34px rgba(60, 60, 160, .08); }
.faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; color: var(--ink); font-size: 1.05rem; font-weight: 600; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__icon { position: relative; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--purple-tint); transition: background-color .25s, transform .3s var(--ease); }
.faq-item__icon::before,
.faq-item__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--purple); transform: translate(-50%, -50%); }
.faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] .faq-item__icon { background: var(--purple); }
.faq-item[open] .faq-item__icon::before,
.faq-item[open] .faq-item__icon::after { background: #fff; }
.faq-item[open] .faq-item__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); line-height: 1.7; }

@media (max-width: 960px) {
	.contact-faq__grid { grid-template-columns: 1fr; }
	.contact-faq__grid > header { position: static; }
}

/* 15. Footer --------------------------------------------------------------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); background: #16162a; color: #a6a6b8; font-size: .96rem; }
.site-footer a { transition: color .2s; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.25fr); gap: clamp(32px, 4vw, 64px); padding-bottom: clamp(48px, 5vw, 64px); }

.site-footer__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.site-footer__logo svg { width: 36px; height: 36px; }
.site-footer__about { max-width: 36ch; margin-top: 18px; line-height: 1.7; }
.site-footer__status { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 6px 14px 6px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 999px; color: #e6e6f0; font-size: .85rem; }
.site-footer__status span { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

.site-footer__title { margin-bottom: 18px; color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.site-footer__links { display: grid; gap: 11px; }
.site-footer__links a:hover { color: #fff; }
.site-footer__details { display: grid; gap: 14px; }
.site-footer__details li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.site-footer__details .icon { width: 18px; height: 18px; margin-top: 2px; color: #7d7df0; }
.site-footer__details a { overflow-wrap: anywhere; }
.site-footer__details a:hover { color: #fff; }
.site-footer__cta { margin-top: 26px; min-height: 48px; padding-inline: 24px; font-size: 1rem; box-shadow: none; }
.site-footer__cta .icon { width: 18px; height: 18px; }

/* Freelance profiles (footer) */
.site-footer__profiles { margin-top: 26px; }
.site-footer__profiles-label { margin-bottom: 12px; color: #fff; font-size: .9rem; font-weight: 600; }
.profiles__list { display: flex; flex-wrap: wrap; gap: 8px; }
.profile {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 16px 6px 12px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 999px;
	color: #e6e6f0;
	font-size: .9rem;
	font-weight: 500;
	transition: border-color .2s, background-color .2s, color .2s;
}
.profile .icon { width: 18px; height: 18px; color: #9d9df5; transition: color .2s; }
.profile:hover { border-color: #fff; background: #fff; color: var(--ink); }
.profile:hover .icon { color: var(--purple); }
.profile--missing { border-style: dashed; color: #8a8aa0; }

.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem; }
.site-footer__top { display: inline-flex; align-items: center; gap: 6px; color: #e6e6f0; }
.site-footer__top:hover { color: var(--accent); }

.to-top {
	position: fixed;
	right: 20px; bottom: 20px;
	z-index: 90;
	display: grid;
	place-items: center;
	width: 50px; height: 50px;
	border: 0;
	border-radius: 50%;
	background: var(--accent-600);
	color: #fff;
	box-shadow: 0 10px 24px rgba(75, 75, 201, .35);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s, transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top .icon { width: 22px; height: 22px; transform: rotate(-90deg); }

/* 15b. Section colour rhythm ------------------------------------------------
   Portfolio + How I Work: soft lavender · Testimonials: deep navy */
.projects { background: var(--lavender); border-block: 1px solid #ebebfa; }
.process { background: var(--lavender); border-block: 1px solid #ebebfa; }
.packages { background: #fff; border-block: 0; }
.projects .filter:not(.is-active) { background: #fff; }

.testimonials { background: var(--navy); border-block: 0; color: #c9c9d8; }
.testimonials .eyebrow { color: var(--accent-light); }
.testimonials .section__title { color: #fff; }
.testimonials__score { color: #a6a6b8; }
.testimonials__score strong { color: #fff; }
.testimonials .slider-arrow { border-color: rgba(255, 255, 255, .16); background: transparent; color: #fff; }
.testimonials .slider-arrow:hover { border-color: #fff; background: #fff; color: var(--navy); }
.testimonials .t-card { border-color: rgba(255, 255, 255, .08); background: #1f1f38; }
.testimonials .t-card:hover { border-color: rgba(255, 255, 255, .18); }
.testimonials .t-card::after { color: rgba(255, 255, 255, .06); }
.testimonials .t-card__text { color: #ececf4; }
.testimonials .t-card__who strong { color: #fff; }
.testimonials .t-card__who small { color: #9a9aae; }
.testimonials .t-card__avatar--initials { background: rgba(125, 125, 240, .22); color: #c4c4fb; }

/* 15c. Polish (only on the preview templates: body.theme-polish) ------------
   Hero backdrop, tech marquee, section label accent, featured package, peek tag */

/* Peek tag is part of the card markup but only shown in the polish view */
.project__peek { display: none; }

/* Section labels: small pill with a dot, uppercase and letter-spaced */
.theme-polish .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 6px 14px 6px 12px;
	border: 1px solid rgba(94, 94, 222, .2);
	border-radius: 999px;
	background: #f3f3fe;
	color: var(--purple);
	font-size: .76rem;
	font-weight: 600;
	letter-spacing: .12em;
	line-height: 1.2;
	text-transform: uppercase;
}
.theme-polish .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(94, 94, 222, .18); }
/* On dark / purple backgrounds */
.theme-polish .contact-card__info .eyebrow { align-self: flex-start; }
.theme-polish .testimonials .eyebrow,
.theme-polish .contact-card__info .eyebrow { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: #fff; }
.theme-polish .testimonials .eyebrow::before,
.theme-polish .contact-card__info .eyebrow::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, .15); }

/* Hero: soft lavender panel + dot pattern behind the photo (spotlight layout) */
.theme-polish .hero--spotlight .hero__visual { isolation: isolate; }
.theme-polish .hero--spotlight .hero__visual::before {
	content: "";
	position: absolute;
	inset: 10% -3% 4% 6%;
	z-index: -1;
	border: 1px solid #ebebfa;
	border-radius: 48px;
	background: #f4f4fe;
}
.theme-polish .hero--spotlight .hero__visual::after {
	content: "";
	position: absolute;
	left: -6px; bottom: 0;
	z-index: -1;
	width: 150px; height: 150px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='3' cy='3' r='2' fill='%235e5ede' fill-opacity='.28'/%3E%3C/svg%3E");
	background-size: 18px 18px;
}

/* Tech marquee (top of the Stats section; rendered only in the polish view) */
.marquee { position: relative; overflow: hidden; margin-bottom: clamp(28px, 3vw, 40px); padding-block: 18px; border-block: 1px solid var(--line); background: #fbfbff; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; gap: 14px; padding-right: 14px; }
.marquee__item { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; padding: 7px 18px 7px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .95rem; font-weight: 500; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Packages: "Most popular" plan as a solid purple card */
.theme-polish .package--featured { border-color: var(--purple); background: var(--purple); color: #fff; box-shadow: 0 30px 60px rgba(94, 94, 222, .3); transform: translateY(-8px); }
.theme-polish .package--featured:hover { border-color: var(--purple); }
.theme-polish .package--featured .package__name,
.theme-polish .package--featured .package__price strong { color: #fff; }
.theme-polish .package--featured .package__summary,
.theme-polish .package--featured .package__price small { color: rgba(255, 255, 255, .8); }
.theme-polish .package--featured .package__badge { background: #fff; color: var(--purple); }
.theme-polish .package--featured .package__cta { background: #fff; color: var(--purple); box-shadow: none; }
.theme-polish .package--featured .package__cta:hover { background: #ededfd; }
.theme-polish .package--featured .package__features { border-color: rgba(255, 255, 255, .2); }
.theme-polish .package--featured .package__features li { color: rgba(255, 255, 255, .92); }
.theme-polish .package--featured .package__features .icon { color: #fff; }

/* Portfolio: "Visit site" tag slides in on hover */
.theme-polish .project__peek {
	position: absolute;
	right: 14px; bottom: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border-radius: 999px;
	background: var(--ink);
	color: #fff;
	font-size: .82rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .3s, transform .3s var(--ease);
	pointer-events: none;
}
.theme-polish .project__peek .icon { width: 14px; height: 14px; }
.theme-polish .project:hover .project__peek { opacity: 1; transform: none; }

@media (max-width: 960px) {
	.theme-polish .hero--spotlight .hero__visual::before { inset: 12% -4% 2% -4%; border-radius: 32px; }
	.theme-polish .package--featured { transform: none; }
}

/* Portfolio — bento cards (polish view only) */
.theme-polish .projects__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(20px, 2.2vw, 28px); }
.theme-polish .project {
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 1px solid #e7e7f5;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 20, 60, .04);
	transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.theme-polish .project:hover { transform: translateY(-6px); border-color: #d9d9f3; box-shadow: 0 28px 60px rgba(60, 60, 160, .14); }
/* Quantity rules: 5 projects = 2 large + 3; 4 = 2 + 2; 2 = side by side; 1 = full width */
.theme-polish .project:first-child:nth-last-child(5),
.theme-polish .project:first-child:nth-last-child(5) + .project,
.theme-polish .project:first-child:nth-last-child(4),
.theme-polish .project:first-child:nth-last-child(4) ~ .project,
.theme-polish .project:first-child:nth-last-child(2),
.theme-polish .project:first-child:nth-last-child(2) ~ .project { grid-column: span 3; }
.theme-polish .project:only-child { grid-column: 1 / -1; }

.theme-polish .project__frame { border: 0; border-radius: 16px; background: var(--grey); box-shadow: none; }
.theme-polish .project:hover .project__frame { transform: none; box-shadow: none; }
.theme-polish .project__bar { display: none; }
.theme-polish .project__media { aspect-ratio: 4 / 3; border-radius: 16px; }
.theme-polish .project:first-child:nth-last-child(5) .project__media,
.theme-polish .project:first-child:nth-last-child(5) + .project .project__media,
.theme-polish .project:first-child:nth-last-child(4) .project__media,
.theme-polish .project:first-child:nth-last-child(4) ~ .project .project__media,
.theme-polish .project:first-child:nth-last-child(2) .project__media,
.theme-polish .project:first-child:nth-last-child(2) ~ .project .project__media { aspect-ratio: 16 / 10; }

.theme-polish .project__body { display: flex; flex: 1; flex-direction: column; padding: 20px 12px 8px; }
.theme-polish .project__meta { order: -1; }
.theme-polish .project__type { padding: 3px 10px; border-radius: 999px; background: var(--purple-tint); font-size: .78rem; }
.theme-polish .project__title { margin-top: 12px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); }
.theme-polish .project:first-child:nth-last-child(5) .project__title,
.theme-polish .project:first-child:nth-last-child(5) + .project .project__title { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
.theme-polish .project__text { -webkit-line-clamp: 2; }
.theme-polish .project__link {
	align-self: stretch;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid var(--line);
}
.theme-polish .project__text + .project__link,
.theme-polish .project__result + .project__link { margin-top: 18px; }

@media (max-width: 960px) {
	.theme-polish .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.theme-polish .projects__grid .project { grid-column: auto; }
	.theme-polish .projects__grid .project .project__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 640px) {
	.theme-polish .projects__grid { grid-template-columns: 1fr; }
}

/* 16. Motion --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }

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

/* 17. Responsive ----------------------------------------------------------- */
@media (max-width: 1200px) {
}

@media (max-width: 1080px) {
	:root { --header-h: 80px; }
	.nav-toggle { display: grid; }
	.nav {
		position: fixed;
		inset: var(--header-h) 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		max-height: calc(100svh - var(--header-h));
		overflow-y: auto;
		padding: 16px var(--gutter) 28px;
		background: #fff;
		box-shadow: 0 20px 40px rgba(33, 33, 60, .12);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .25s, transform .25s var(--ease), visibility .25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
	.nav__list a::after { display: none; }
	.nav__cta { align-self: flex-start; }
	.brand__mark { width: 44px; height: 44px; }
	.brand__name { margin-left: -10px; margin-top: 14px; }
}

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

	.about__grid { grid-template-columns: 1fr; }
	.stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.stat:nth-child(odd) { padding-left: 0; border-left: 0; }
	.stat:nth-child(odd)::before { left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.about__content { grid-template-columns: 1fr; }
	.about__content > *, .about__content > .section__head { grid-column: 1; grid-row: auto; }
	.about__content > .section__head { margin-bottom: 24px; }

	.posts-grid, .projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.projects__head, .packages__head { grid-template-columns: 1fr; align-items: start; }
	.packages__grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
	.package__summary { min-height: 0; }
	.services__layout { grid-template-columns: 1fr; }
	.services__intro { position: static; }
	.services__intro .section__title { max-width: none; }
	.process__head { grid-template-columns: 1fr; align-items: start; }
	.timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.timeline::before { display: none; }
	.t-track { grid-auto-columns: calc((100% - 24px) / 2); }
	.testimonials__head { grid-template-columns: 1fr; align-items: start; }

	.contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 1rem; }

	.projects__grid, .posts-grid, .services__list { grid-template-columns: 1fr; }
	.timeline { grid-template-columns: 1fr; row-gap: 0; }
	.timeline__step { padding: 0 0 36px 64px; }
	.timeline__step::before { content: ""; position: absolute; left: 23px; top: 48px; bottom: 0; width: 1px; background: #dcdce6; }
	.timeline__step:last-child { padding-bottom: 0; }
	.timeline__step:last-child::before { display: none; }
	.timeline__marker { position: absolute; left: 0; top: 0; margin: 0; }
	.timeline__time { margin-top: 12px; }
	.t-track { grid-auto-columns: 88%; gap: 16px; }

	.contact-form { grid-template-columns: 1fr; }
	.stat { padding-block: 24px; padding-right: 14px; }
	.stat:nth-child(even) { padding-left: 16px; }
	.stat:nth-child(even)::before { left: 16px; }
	.stat__note { font-size: .8rem; }
	.tool { padding-right: 14px; font-size: .9rem; }
	.contact-form__foot .btn { width: 100%; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand, .site-footer__contact { grid-column: 1 / -1; }
}
