/* Abid Portfolio — main stylesheet
   Concept: the page reads like a search results page for its own subject.
   Pages are built from core blocks; the class names below are set on those blocks.
   -------------------------------------------------------------------- */

:root {
	--paper: #fbfaff;
	--tint: #f1eeff;
	--ink: #1b1647;
	--ink-2: #4a4670;
	--violet: #5b3df5;
	--cyan: #12c4db;
	--magenta: #f2398f;
	--yellow: #ffc72c;
	--burgundy: #7b1e3c;
	--line: rgba(27, 22, 71, 0.14);

	--display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--text: "Newsreader", Georgia, "Times New Roman", serif;

	--radius: 18px;
	--radius-sm: 10px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--text);
	font-size: 1.1875rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

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

.skip-link {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--ink); color: #fff; padding: 0.6rem 1rem;
	border-radius: var(--radius-sm); font-family: var(--display);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons ------------------------------------------------------------ */

.btn {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.85rem 1.4rem;
	border: 2px solid var(--violet); border-radius: 999px;
	background: var(--violet); color: #fff;
	font-family: var(--display); font-size: 1rem; font-weight: 600;
	letter-spacing: -0.005em; line-height: 1.1; text-decoration: none; cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--small { padding: 0.6rem 1.05rem; font-size: 0.95rem; }

/* Core button blocks use the same look */

.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.wp-block-buttons.hero__actions { margin: 2rem 0 0; }

body .wp-block-button .wp-block-button__link {
	display: inline-flex; align-items: center; gap: 0.55rem;
	padding: 0.85rem 1.4rem;
	border: 2px solid var(--violet); border-radius: 999px;
	background: var(--violet); color: #fff;
	font-family: var(--display); font-size: 1rem; font-weight: 600;
	letter-spacing: -0.005em; line-height: 1.1; text-decoration: none;
	transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
body .wp-block-button .wp-block-button__link:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-2px); }
body .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
body .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: var(--ink); color: #fff; }

body .ai .wp-block-button .wp-block-button__link { background: #fff; border-color: #fff; color: var(--ink); }
body .ai .wp-block-button .wp-block-button__link:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
body .ai .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background) { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
body .ai .wp-block-button.is-style-outline > .wp-block-button__link:not(.has-background):hover { background: #fff; border-color: #fff; color: var(--ink); }

/* Header ------------------------------------------------------------- */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(251, 250, 255, 0.86);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent; transition: border-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }

.brand {
	display: inline-flex; align-items: center; gap: 0.65rem;
	color: var(--ink); font-family: var(--display); font-size: 1.05rem; font-weight: 700;
	letter-spacing: -0.01em; text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
	display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 0.6rem;
	background: linear-gradient(135deg, var(--violet), var(--magenta));
	color: #fff; font-size: 0.85rem; font-weight: 800; letter-spacing: 0;
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list, .nav ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; }
.nav a:not(.btn) { position: relative; color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 500; text-decoration: none; }
.nav a:not(.btn)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -0.3rem; height: 2px;
	background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav a:not(.btn):hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }

.nav-toggle { display: none; padding: 0.5rem; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }

@media (max-width: 52rem) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.25rem var(--gutter) 1.5rem;
		background: var(--paper); border-bottom: 1px solid var(--line);
		visibility: hidden; opacity: 0; transform: translateY(-0.5rem);
		transition: opacity 0.2s, transform 0.2s var(--ease), visibility 0s 0.2s;
	}
	.nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
	.nav__list, .nav ul { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
	.nav a:not(.btn) { font-size: 1.15rem; }
	.nav .btn { justify-content: center; }
}

/* Hero --------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem); }
.hero > .wrap, .section > .wrap, .ai > .wrap { position: relative; z-index: 1; }

.hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
}
.hero__copy { min-width: 0; }

/* Colour beams behind the profile card (pure CSS, nothing to edit) */
.hero::before {
	content: ""; position: absolute; inset: -30% -40% -30% 28%; z-index: 0;
	transform: rotate(-24deg); pointer-events: none;
	background: linear-gradient(180deg,
		transparent 0 330px,
		var(--cyan) 330px 402px, transparent 402px 470px,
		var(--magenta) 470px 522px, transparent 522px 590px,
		var(--yellow) 590px 678px, transparent 678px 750px,
		var(--violet) 750px 806px, transparent 806px);
}
.hero::after {
	/* keeps the left half calm so the text stays readable */
	content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background: linear-gradient(90deg, var(--paper) 0%, var(--paper) 46%, rgba(251, 250, 255, 0) 70%);
}

.searchpill {
	display: flex; align-items: center; gap: 0.75rem; max-width: 34rem;
	padding: 0.4rem 0.4rem 0.4rem 1.2rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
	background: #fff; border: 1px solid var(--line); border-radius: 999px;
	box-shadow: 0 8px 30px rgba(91, 61, 245, 0.12); color: var(--ink-2);
	transition: box-shadow 0.25s, border-color 0.25s;
}
.searchpill:focus-within { border-color: var(--violet); box-shadow: 0 8px 36px rgba(91, 61, 245, 0.22); }
.searchpill svg { flex: none; }
.searchpill input {
	flex: 1; min-width: 0; padding: 0.6rem 0; border: 0; background: transparent;
	color: var(--ink); font-family: var(--display); font-size: 1.05rem;
}
.searchpill input::placeholder { color: var(--ink-2); opacity: 1; }
.searchpill input:focus { outline: none; }
.searchpill button {
	padding: 0.7rem 1.3rem; border: 0; border-radius: 999px; background: var(--violet); color: #fff;
	font-family: var(--display); font-size: 0.98rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.searchpill button:hover { background: var(--ink); }

.hero__title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; max-width: 14em; }
.hero__text { max-width: 33rem; margin: 1.5rem 0 0; color: var(--ink-2); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.55; }

/* Profile card */

.panel {
	position: relative; justify-self: end; width: min(100%, 25rem); padding: 0;
	background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
	box-shadow: 0 30px 70px rgba(27, 22, 71, 0.22);
}
.panel__photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--tint); }
.panel__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.panel__body { padding: 1.25rem 1.4rem 1.4rem; }
.panel__name { margin: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.panel__role { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 1rem; }

.panel__facts { margin: 1.1rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.panel__facts li {
	display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0;
	border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.95rem; line-height: 1.35;
}
.panel__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.panel__facts strong { color: var(--ink); font-family: var(--display); font-weight: 600; text-align: right; }

@media (max-width: 52rem) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.panel { justify-self: start; width: min(100%, 22rem); }
	.hero::before { inset: -10% -90% -10% -10%; }
	.hero::after { background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 52%, rgba(251, 250, 255, 0) 85%); }
}

/* Hero entrance: one orchestrated moment, only when JS is available */

.js .panel { opacity: 0; transform: translateY(28px) scale(0.97); }
.js .hero::before { opacity: 0; translate: 25% 0; }
.js.is-revealed .panel { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease); }
.js.is-revealed .hero::before { opacity: 0.92; translate: 0 0; transition: opacity 0.7s, translate 1.1s var(--ease); }

/* Sections ----------------------------------------------------------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tint { background: var(--tint); }

.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__title { margin-top: 0; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; letter-spacing: -0.03em; }
.section__text { margin: 0.9rem 0 0; color: var(--ink-2); font-size: 1.2rem; }
.section__more.wp-block-buttons { margin-top: clamp(2rem, 4vw, 3rem); }

.tag {
	display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px;
	background: var(--tint); color: var(--ink);
	font-family: var(--display); font-size: 0.82rem; font-weight: 600; line-height: 1.4; text-decoration: none;
}
.tag--violet { background: color-mix(in srgb, var(--violet) 14%, #fff); color: var(--violet); }
.tag--magenta { background: color-mix(in srgb, var(--magenta) 14%, #fff); color: #b3135f; }
.tag--cyan { background: color-mix(in srgb, var(--cyan) 20%, #fff); color: #0a6f7d; }
.tag--yellow { background: color-mix(in srgb, var(--yellow) 30%, #fff); color: #7a5600; }
.tag--burgundy { background: color-mix(in srgb, var(--burgundy) 13%, #fff); color: var(--burgundy); }

/* Work: search results ---------------------------------------------- */

.serp { list-style: none; max-width: 52rem; }
.result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: start; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.result:last-child { border-bottom: 1px solid var(--line); }
.result__crumb { display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.35rem; color: var(--ink-2); font-family: var(--display); font-size: 0.92rem; }
.result__fav { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--tint); color: var(--violet); font-size: 0.78rem; font-weight: 700; }
.result__path { opacity: 0.8; }
.result__title { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
.result__title a {
	color: var(--violet); text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
	transition: background-size 0.3s var(--ease);
}
.result__title a:hover, .result__title a:focus-visible { color: var(--violet); background-size: 100% 2px; }
.result__snippet { margin: 0.5rem 0 0.7rem; color: var(--ink-2); font-size: 1.08rem; line-height: 1.55; }
.result__date { color: var(--ink); font-family: var(--display); font-size: 0.92rem; font-weight: 500; }
.result__date::after { content: " — "; color: var(--ink-2); }
.result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0; color: var(--ink-2); font-family: var(--display); font-size: 0.9rem; }

.result__thumb {
	display: grid; place-items: center; width: 9.5rem; aspect-ratio: 1; overflow: hidden;
	border-radius: var(--radius); color: #fff;
	font-family: var(--display); font-size: 3.4rem; font-weight: 800; text-decoration: none;
	transition: transform 0.35s var(--ease);
}
.result:hover .result__thumb { transform: rotate(-2deg) scale(1.03); }
.result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.result__thumb--violet { background: linear-gradient(135deg, var(--violet), var(--cyan)); }
.result__thumb--magenta { background: linear-gradient(135deg, var(--magenta), var(--yellow)); }
.result__thumb--cyan { background: linear-gradient(135deg, var(--cyan), var(--violet)); }
.result__thumb--yellow { background: linear-gradient(135deg, var(--yellow), var(--magenta)); color: var(--ink); }
.result__thumb--burgundy { background: linear-gradient(135deg, var(--burgundy), var(--magenta)); }

@media (max-width: 40rem) {
	.result { grid-template-columns: 1fr; }
	.result__thumb { order: -1; width: 100%; aspect-ratio: 16 / 7; }
}

/* Experience: timeline ----------------------------------------------- */

.timeline { --tl: 0; position: relative; list-style: none; padding-left: 2.25rem; max-width: 60rem; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0.6rem; top: 0.5rem; bottom: 0.5rem; width: 3px; border-radius: 3px; }
.timeline::before { background: var(--line); }
.timeline::after { background: linear-gradient(180deg, var(--violet), var(--magenta)); transform-origin: top; transform: scaleY(var(--tl)); }

.job { position: relative; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 1rem 2.5rem; padding-bottom: clamp(2rem, 4vw, 3rem); }
.job:last-child { padding-bottom: 0; }
.job__dot { position: absolute; left: -2.25rem; top: 0.35rem; width: 1.45rem; height: 1.45rem; border: 3px solid var(--violet); border-radius: 50%; background: var(--tint); }
.job--now .job__dot { background: var(--yellow); border-color: var(--ink); animation: pulse 2.4s ease-out 3; }
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 199, 44, 0.7); }
	100% { box-shadow: 0 0 0 16px rgba(255, 199, 44, 0); }
}
.job__company { font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; }
.job__when { margin: 0.4rem 0 0; font-family: var(--display); font-size: 0.98rem; font-weight: 500; }
.job__dur { display: block; color: var(--ink-2); font-weight: 400; }
.job__sub { margin: 0.2rem 0 0; color: var(--ink-2); font-size: 1rem; }

.role + .role { margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.role__title { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.role__when { margin: 0.15rem 0 0; color: var(--ink-2); font-family: var(--display); font-size: 0.92rem; }
.role__list { margin: 0.7rem 0 0; padding-left: 1.15rem; color: var(--ink-2); font-size: 1.05rem; line-height: 1.55; }
.role__list li { margin-bottom: 0.35rem; }
.role__list li::marker { color: var(--violet); }

@media (max-width: 46rem) { .job { grid-template-columns: 1fr; } }

/* Services ------------------------------------------------------------ */

.services { border-top: 2px solid var(--ink); }
.service {
	--accent: var(--violet);
	display: grid; grid-template-columns: 1.1rem minmax(0, 1.2fr) minmax(0, 1fr);
	gap: 1.25rem 2rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.service--magenta { --accent: var(--magenta); }
.service--cyan { --accent: var(--cyan); }
.service--yellow { --accent: var(--yellow); }
.service--burgundy { --accent: var(--burgundy); }
.service__dot { width: 1.1rem; height: 1.1rem; margin-top: 0.4rem; border-radius: 50%; background: var(--accent); transition: transform 0.35s var(--ease); }
.service:hover .service__dot { transform: scale(1.7); }
.service__title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; letter-spacing: -0.025em; }
.service__desc { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 1.1rem; }
.service__points { display: grid; gap: 0.55rem; list-style: none; margin-top: 0.3rem; font-size: 1.05rem; }
.service__points li { display: flex; gap: 0.6rem; align-items: flex-start; }
.service__points svg { flex: none; margin-top: 0.25em; color: var(--ink); background: var(--accent); border-radius: 50%; padding: 3px; width: 1.3rem; height: 1.3rem; }

@media (max-width: 52rem) {
	.service { grid-template-columns: 1.1rem minmax(0, 1fr); }
	.service__points { grid-column: 2; }
}

/* Skills -------------------------------------------------------------- */

.skills__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.skills__tab {
	padding: 0.5rem 1rem; border: 2px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink);
	font-family: var(--display); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.skills__tab:hover { background: #fff; }
.skills__tab.is-on { background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 0.65rem; list-style: none; }
.chip {
	--c: var(--violet);
	padding: 0.35em 0.9em; border-radius: 999px;
	background: color-mix(in srgb, var(--c) 13%, #fff);
	border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent);
	color: var(--ink); font-family: var(--display); font-weight: 600; line-height: 1.25;
	transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s;
}
.chip:hover { transform: translateY(-3px) rotate(-1.5deg); background: color-mix(in srgb, var(--c) 24%, #fff); border-color: var(--c); }
.chip--violet { --c: var(--violet); }
.chip--magenta { --c: var(--magenta); }
.chip--cyan { --c: #0fa9bd; }
.chip--yellow { --c: #e0a400; }
.chip--burgundy { --c: var(--burgundy); }
.chip--w1 { font-size: 0.9rem; }
.chip--w2 { font-size: 1.02rem; }
.chip--w3 { font-size: 1.2rem; }
.chip--w4 { font-size: 1.5rem; }
.chip--w5 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); padding: 0.3em 0.95em; background: var(--c); border-color: var(--c); color: #fff; }
.chip--w5:hover { background: var(--ink); border-color: var(--ink); }
.chip--yellow.chip--w5 { color: var(--ink); }
.chip.is-hidden { display: none; }

.certs { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.certs__title { margin: 0; font-size: 1.25rem; font-weight: 600; }
.certs__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 0.8rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.certs__list li { position: relative; display: block; padding-left: 1.8rem; font-size: 1.05rem; }
.certs__list li::before {
	content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; background: var(--violet);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* AI SEO band --------------------------------------------------------- */

.ai { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6rem) 0; background: var(--ink); color: #fff; }
.ai::before { content: ""; position: absolute; right: -8rem; top: -8rem; width: 28rem; height: 28rem; border-radius: 50%; background: radial-gradient(circle, rgba(18, 196, 219, 0.5), rgba(18, 196, 219, 0) 65%); }
.ai::after { content: ""; position: absolute; left: -6rem; bottom: -10rem; width: 26rem; height: 26rem; border-radius: 50%; background: radial-gradient(circle, rgba(242, 57, 143, 0.4), rgba(242, 57, 143, 0) 65%); }
.ai__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ai__title { margin-top: 0; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }
.ai__text { max-width: 36rem; margin: 1.2rem 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.2rem; }
.ai a { color: inherit; }
.ai__copy .wp-block-buttons { margin-top: 2rem; }

.course {
	padding: 1.75rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 22px;
	background: rgba(255, 255, 255, 0.07); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transform: rotate(1.5deg);
}
.course__kicker {
	display: inline-block; margin: 0 0 0.9rem; padding: 0.2rem 0.7rem; border-radius: 999px;
	background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 0.85rem; font-weight: 700;
}
.course__title { margin: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.course__text { margin: 0.8rem 0 0; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }

@media (max-width: 52rem) {
	.ai__grid { grid-template-columns: 1fr; }
	.course { transform: none; }
}

/* About --------------------------------------------------------------- */

.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__photos { position: relative; padding: 0 0 3.5rem; }
.about__photo { margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(27, 22, 71, 0.18); }
.about__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about__photo--a { width: 80%; aspect-ratio: 4 / 4.6; transform: rotate(-2.5deg); }
.about__photo--b { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 3 / 4; border: 6px solid var(--paper); transform: rotate(3deg); }
.about__copy p { max-width: 34rem; font-size: 1.2rem; }
.about__copy .section__title { margin-bottom: 1.2rem; }

@media (max-width: 52rem) { .about { grid-template-columns: 1fr; } }

/* Contact ------------------------------------------------------------- */

.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact__copy .section__text { max-width: 33rem; }
.contact__photo { justify-self: end; width: min(100%, 22rem); aspect-ratio: 4 / 5; margin: 0; overflow: hidden; border-radius: 28px 28px 120px 28px; box-shadow: 0 24px 60px rgba(27, 22, 71, 0.2); }
.contact__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; margin: 1.6rem 0 0; padding: 0; font-family: var(--display); font-weight: 500; }

@media (max-width: 52rem) {
	.contact__grid { grid-template-columns: 1fr; }
	.contact__photo { justify-self: start; width: min(100%, 18rem); }
}

/* Footer -------------------------------------------------------------- */

.site-footer { padding: 2rem 0; background: var(--ink); color: rgba(255, 255, 255, 0.8); font-family: var(--display); font-size: 0.95rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer__text { margin: 0; }
.site-footer a { color: #fff; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; }
.social { display: flex; gap: 0.5rem; list-style: none; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; transition: background 0.2s, color 0.2s; }
.social a:hover { background: #fff; color: var(--ink); }

/* Blog and pages ------------------------------------------------------ */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head__title { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.03em; }
.page-head__text { max-width: 36rem; margin-top: 0.8rem; color: var(--ink-2); font-size: 1.2rem; }

.searchform { display: flex; gap: 0.6rem; max-width: 28rem; margin-top: 1.5rem; }
.searchform input { flex: 1; min-width: 0; padding: 0.65rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-family: var(--display); font-size: 1rem; }
.searchform input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.2); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 2rem; padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(27, 22, 71, 0.12); }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--violet), var(--cyan) 55%, var(--yellow)); }
.card__body { padding: 1.25rem 1.4rem 1.5rem; }
.card__meta { display: flex; gap: 0.9rem; margin: 0 0 0.5rem; color: var(--ink-2); font-family: var(--display); font-size: 0.88rem; }
.card__title { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--violet); }
.card__text { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 1.02rem; }
.empty { padding: 2rem 0 4rem; color: var(--ink-2); }

.navigation.pagination { padding-bottom: 4rem; font-family: var(--display); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.page-numbers { padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.page-numbers.current, a.page-numbers:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.notfound { padding: clamp(3rem, 8vw, 6rem) 0; }
.notfound__code {
	margin: 0; background: linear-gradient(90deg, var(--violet), var(--magenta), var(--yellow));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	font-family: var(--display); font-size: clamp(5rem, 16vw, 11rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
}

/* Single post and text pages */

.prose-wrap { max-width: 46rem; }
.post-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem; }
.post-head__title { margin-top: 0.9rem; font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -0.03em; }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 1.1rem 0 0; color: var(--ink-2); font-family: var(--display); font-size: 0.95rem; }
.post-cover { margin: 0 0 2rem; }
.post-cover img { width: 100%; border-radius: var(--radius); }

.prose { font-size: 1.25rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2em; font-size: 2rem; }
.prose h3 { margin-top: 1.7em; font-size: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.4em; }
.prose blockquote { margin-inline: 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 4px solid var(--magenta); color: var(--ink-2); font-style: italic; }
.prose img { border-radius: var(--radius-sm); }
.prose pre { overflow-x: auto; padding: 1.1rem 1.3rem; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: 0.95rem; }
.prose :not(pre) > code { padding: 0.1em 0.4em; border-radius: 6px; background: var(--tint); font-size: 0.9em; }

.post-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.post-tags a { display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.2rem 0.7rem; border-radius: 999px; background: var(--tint); color: var(--ink); font-family: var(--display); font-size: 0.88rem; text-decoration: none; }
.author-box { display: flex; gap: 1rem; align-items: center; margin: 1.5rem 0; padding: 1.25rem; border-radius: var(--radius); background: var(--tint); }
.author-box img { border-radius: 50%; }
.author-box__name { margin: 0; font-family: var(--display); font-weight: 700; }
.author-box__bio { margin: 0.1rem 0 0; color: var(--ink-2); font-size: 1rem; }
.post-navigation .nav-links { justify-content: space-between; font-family: var(--display); }
.related { padding-top: 3rem; }
.related__title { margin-bottom: 1.5rem; font-size: 1.8rem; }

.comments { margin-top: 3rem; font-size: 1.05rem; }
.comments__title { font-size: 1.6rem; }
.comments__list { margin: 1.5rem 0; list-style: none; }
.comments__list .comment { margin-bottom: 1.5rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font: inherit;
}
.comment-form .submit { padding: 0.8rem 1.4rem; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font-family: var(--display); font-weight: 600; cursor: pointer; }

.read-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 4px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--magenta), var(--yellow)); transform-origin: left; transform: scaleX(0); }

/* Single post: contents on the left, share on the right ---------------- */

.post-head--single { max-width: 46rem; margin-inline: auto; }
.post-cover--single { max-width: 56rem; margin-inline: auto; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 1rem; }
.post-layout .post-main { min-width: 0; max-width: 46rem; margin-inline: auto; width: 100%; }

.toc__box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 0.9rem 1.1rem; }
.toc__title { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 1rem; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: "+"; float: right; color: var(--violet); }
.toc__box[open] .toc__title::after { content: "\2212"; }
.toc__list { margin: 0.8rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.1rem; }
.toc__item a {
	display: block; padding: 0.3rem 0 0.3rem 0.8rem; border-left: 2px solid var(--line); color: var(--ink-2);
	font-family: var(--display); font-size: 0.9rem; line-height: 1.35; text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}
.toc__item--h3 a { padding-left: 1.5rem; font-size: 0.85rem; }
.toc__item a:hover { color: var(--violet); }
.toc__item a.is-active { color: var(--violet); border-left-color: var(--violet); font-weight: 600; }

.share__label { margin: 0 0 0.6rem; color: var(--ink-2); font-family: var(--display); font-size: 0.9rem; font-weight: 600; }
.share__list { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.share__btn {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; padding: 0;
	border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer;
	transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.share__btn:hover, .share__btn:focus-visible { background: var(--violet); border-color: var(--violet); color: #fff; transform: translateY(-2px); }
.share__tip { position: absolute; left: 50%; bottom: calc(100% + 0.5rem); transform: translateX(-50%); padding: 0.2rem 0.55rem; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 0.78rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.share__tip.is-on { opacity: 1; }

.share { margin: 0 auto; width: 100%; max-width: 46rem; }

@media (max-width: 74.99rem) {
	.post-layout .toc { order: -1; max-width: 46rem; margin-inline: auto; width: 100%; }
}

@media (min-width: 75rem) {
	.post-layout.has-toc,
	.post-layout { grid-template-columns: 12rem minmax(0, 46rem) 12rem; gap: 2rem; justify-content: center; align-items: start; }
	.post-layout .toc { grid-column: 1; grid-row: 1; position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; }
	.post-layout .post-main { grid-column: 2; grid-row: 1; }
	.post-layout .share { grid-column: 3; grid-row: 1; position: sticky; top: 6.5rem; margin: 0; }
	.share__list { flex-direction: column; flex-wrap: nowrap; }
	.toc__title { cursor: default; }
	.toc__title::after { display: none; }
}

.related { padding-bottom: 1rem; }

/* Single post, card layout: image and title in the middle ---------------- */

.post-layout { width: min(100% - 2 * var(--gutter), 84rem); max-width: none; margin-inline: auto; gap: 1.5rem; align-items: start; padding-top: clamp(1.25rem, 3vw, 2.25rem); }
.post-top, .post-layout .post-main, .post-layout .share, .post-layout .toc { min-width: 0; width: 100%; max-width: 48rem; margin-inline: auto; }
.post-top .post-cover { max-width: none; margin: 0 0 2rem; }
.post-top .post-cover img { display: block; width: 100%; height: auto; border-radius: 28px; box-shadow: 0 26px 54px -30px rgba(27, 22, 71, 0.45); }
.post-top .post-head { max-width: none; margin: 0; padding: 0 0 1.5rem; }
.post-top .post-head__title { margin-top: 0.8rem; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; }
.post-top .post-head__meta { align-items: center; gap: 0.6rem 0.9rem; margin-top: 1rem; }
.post-head__meta a { color: var(--violet); text-decoration: none; font-weight: 600; }
.post-head__meta a:hover { text-decoration: underline; }
.post-head__pill { padding: 0.15rem 0.7rem; border-radius: 999px; background: var(--tint); color: var(--violet); font-size: 0.85rem; font-weight: 600; }

.toc__box, .share__card { padding: 1.35rem 1.2rem; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 16px 40px -30px rgba(27, 22, 71, 0.4); }
.toc__title, .share__label { margin: 0; color: var(--violet); font-family: var(--display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.toc__title { padding: 0 0.4rem 0.9rem; }
.toc__list { margin: 0; gap: 0.15rem; }
.toc__item a { padding: 0.55rem 0.7rem; border: 0; border-radius: 10px; color: var(--ink); font-size: 0.95rem; font-weight: 500; line-height: 1.35; }
.toc__item--h3 a { padding-left: 1.6rem; color: var(--ink-2); font-size: 0.9rem; }
.toc__item a:hover, .toc__item a.is-active { background: var(--tint); color: var(--violet); }
.toc__item a.is-active { font-weight: 600; }

.share__meta { display: flex; align-items: center; gap: 0.9rem; padding-bottom: 1.25rem; }
.share__icon { display: grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 14px; background: var(--tint); color: var(--violet); }
.share__time { margin: 0; font-family: var(--display); font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.share__words { margin: 0.15rem 0 0; color: var(--ink-2); font-size: 0.95rem; }
.share__label { margin-bottom: 0.9rem; }
.share__list { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.share__btn { width: 3rem; height: 3rem; border: 0; background: var(--tint); color: var(--violet); }
.share__btn:hover, .share__btn:focus-visible { background: var(--violet); color: #fff; }

@media (max-width: 74.99rem) {
	.post-layout .toc { order: 0; }
	.post-layout .share { order: 3; }
}

@media (min-width: 75rem) {
	.post-layout, .post-layout.has-toc { grid-template-columns: minmax(13rem, 16.5rem) minmax(0, 48rem) minmax(13rem, 16.5rem); gap: 0 2.5rem; justify-content: center; }
	.post-top { grid-column: 2; grid-row: 1; }
	.post-layout .post-main { grid-column: 2; grid-row: 2; }
	.post-layout .toc { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 6.5rem; margin: 0; max-width: none; }
	.post-layout .share { grid-column: 3; grid-row: 1 / span 2; align-self: start; position: sticky; top: 6.5rem; margin: 0; max-width: none; }
	.toc__list { max-height: calc(100vh - 15rem); overflow: auto; scrollbar-width: thin; }
	.share__list { display: grid; grid-template-columns: repeat(3, 1fr); justify-items: center; }
}

/* Page wrapper for block-built pages */

.entry--blocks { overflow-x: clip; }

/* Header: Services dropdown ------------------------------------------- */

.nav .has-sub { position: relative; }
.sub-toggle {
	display: inline-flex; align-items: center; gap: 0.3rem; padding: 0; border: 0; background: none;
	color: var(--ink); font-family: var(--display); font-size: 1rem; font-weight: 500; cursor: pointer;
}
.sub-toggle svg { transition: transform 0.2s var(--ease); }
.has-sub:hover .sub-toggle svg, .has-sub.is-open .sub-toggle svg { transform: rotate(180deg); }
.nav .sub {
	display: block; position: absolute; left: -1rem; top: calc(100% + 0.7rem); z-index: 5; min-width: 15rem; padding: 0.5rem;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(27, 22, 71, 0.14);
	opacity: 0; visibility: hidden; transform: translateY(-0.4rem);
	transition: opacity 0.18s, transform 0.2s var(--ease), visibility 0s 0.2s;
}
.nav .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -0.8rem; height: 0.8rem; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav .sub li { display: block; }
.nav .sub a { display: block; padding: 0.65rem 0.85rem; border-radius: 10px; white-space: nowrap; }
.nav .sub a::after { display: none; }
.nav .sub a:hover { background: var(--tint); }

@media (max-width: 52rem) {
	.nav .sub {
		position: static; display: none; min-width: 0; padding: 0.4rem 0 0 1rem; background: none; border: 0; box-shadow: none;
		opacity: 1; visibility: visible; transform: none;
	}
	.has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
	.has-sub.is-open .sub { display: block; }
	.nav .sub a { padding: 0.4rem 0; font-size: 1.05rem; }
	.nav .sub a:hover { background: none; }
	.sub-toggle { font-size: 1.15rem; }
}

/* Work: wider rows with article thumbnails on the right ---------------- */

.serp { max-width: none; }
.result { grid-template-columns: minmax(0, 1fr) minmax(0, 19rem); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center; padding: 1.9rem 0; }
.result__thumb {
	width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; font-size: 3rem;
	box-shadow: 0 14px 34px rgba(27, 22, 71, 0.16); transform-origin: center;
}
.result__thumb img { transition: transform 0.6s var(--ease); }
.result:hover .result__thumb { transform: translateY(-3px); }
.result:hover .result__thumb img { transform: scale(1.05); }
@media (max-width: 44rem) {
	.result { grid-template-columns: minmax(0, 1fr); }
	.result__thumb { order: -1; width: 100%; aspect-ratio: 16 / 9; }
}

/* Experience: the line now starts and ends at a dot centre ----------- */

.timeline::before, .timeline::after { left: calc(0.725rem - 1.5px); top: 1.075rem; bottom: var(--end, 0.5rem); }
.job__dot { z-index: 1; outline: 6px solid var(--timeline-bg, var(--tint)); }

/* Certificates as cards ---------------------------------------------- */

.certs { border-top: 0; padding-top: 0; }
.certs__title { margin-bottom: 1.1rem; font-size: 1.4rem; }
.certs__list { grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1rem; margin: 0; }
.certs__list li {
	--c: var(--violet);
	position: relative; display: flex; align-items: flex-start; gap: 0.85rem; min-height: 6.2rem; padding: 1.15rem 1.2rem;
	background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
	font-family: var(--display); font-size: 1.05rem; font-weight: 600; line-height: 1.3;
	box-shadow: 0 8px 22px rgba(27, 22, 71, 0.06); transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.certs__list li::before {
	position: static; flex: none; width: 2.4rem; height: 2.4rem; margin: 0; border-radius: 50%;
	background-color: color-mix(in srgb, var(--c) 16%, #fff);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1647' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E");
	background-position: center; background-repeat: no-repeat; background-size: 1.3rem;
	-webkit-mask: none; mask: none;
}
.certs__list li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.certs__list li:nth-child(4n+2) { --c: var(--magenta); }
.certs__list li:nth-child(4n+3) { --c: var(--cyan); }
.certs__list li:nth-child(4n+4) { --c: var(--yellow); }
.certs__list li:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(27, 22, 71, 0.12); }

/* Rate My CV page ------------------------------------------------------ */

.about__text { max-width: 44rem; margin: 0; font-size: 1.2rem; }
.certs__list + .certs__title { margin-top: 2.2rem; }
.rate-section { background: linear-gradient(180deg, var(--paper), var(--tint)); padding-bottom: clamp(4rem, 9vw, 7rem); }
.rate-section .section__head { margin-bottom: 1.5rem; }

.cv-hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 6vw, 4.5rem); background: linear-gradient(180deg, var(--paper), var(--tint)); overflow: hidden; }
.cv-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.cv-hero__title { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.sheet {
	position: relative; justify-self: end; width: min(100%, 26rem); padding: 2rem 1.75rem 1.5rem;
	background: #fff; border: 1px solid var(--line); border-radius: 8px; transform: rotate(1.6deg);
	box-shadow: 0 30px 60px rgba(27, 22, 71, 0.2); overflow: hidden;
}
.sheet::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(90deg, var(--violet) 0 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--cyan) 75%); }
.sheet__name { margin: 0; font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.025em; }
.sheet__role { margin: 0.2rem 0 0; color: var(--ink-2); }
.sheet .panel__facts { margin-top: 1.2rem; }

.cv-roles__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin-bottom: 1.5rem; }
.cv-roles__filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cv-roles__all { padding: 0.4rem 0; border: 0; background: none; color: var(--violet); font-family: var(--display); font-size: 0.98rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.cv-list { display: grid; gap: 0.9rem; list-style: none; max-width: 56rem; }
.cv-role { --c: var(--violet); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c); border-radius: 14px; box-shadow: 0 8px 22px rgba(27, 22, 71, 0.05); transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.cv-role.is-current { --c: var(--magenta); }
.cv-role:hover { box-shadow: 0 16px 34px rgba(27, 22, 71, 0.1); }
.cv-role.is-hidden { display: none; }
.cv-role__head {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 0.4rem 1rem; width: 100%;
	padding: 1.1rem 1.25rem; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer;
}
.cv-role__dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--c); }
.cv-role.is-current .cv-role__dot { animation: pulse 2.4s ease-out 3; }
.cv-role__title { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.cv-role__co { display: block; margin-top: 0.15rem; color: var(--ink-2); font-size: 1rem; }
.cv-role__when { font-family: var(--display); font-size: 0.95rem; font-weight: 500; text-align: right; }
.cv-role__when small { display: block; color: var(--ink-2); font-size: 0.85rem; font-weight: 400; }
.cv-role__chev { color: var(--ink-2); transition: transform 0.25s var(--ease); }
.cv-role.is-open .cv-role__chev { transform: rotate(180deg); }
.cv-role__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.35s var(--ease); }
.js .cv-role:not(.is-open) .cv-role__body { grid-template-rows: 0fr; }
.cv-role__inner { overflow: hidden; padding: 0 1.25rem 0 3.05rem; }
.cv-role.is-open .cv-role__inner { padding-bottom: 1.2rem; }
.cv-role__meta { margin: 0 0 0.4rem; color: var(--ink-2); font-family: var(--display); font-size: 0.92rem; }
.cv-role__inner .role__list { margin-top: 0.3rem; }
@media (max-width: 40rem) {
	.cv-role__head { grid-template-columns: auto minmax(0, 1fr) auto; }
	.cv-role__when { grid-column: 2; grid-row: 2; text-align: left; }
	.cv-role__when small { display: inline; margin-left: 0.4rem; }
	.cv-role__chev { grid-column: 3; grid-row: 1 / span 2; }
	.cv-role__inner { padding-left: 1.25rem; }
}

.section__head--center { margin-inline: auto; text-align: center; }
.rate { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; text-align: center; }
.rate__stars { display: flex; justify-content: center; gap: 0.3rem; }
.rate__star { padding: 0.2rem; border: 0; background: none; color: #d6d1f3; cursor: pointer; transition: transform 0.2s var(--ease), color 0.15s; }
.rate__star.is-on { color: var(--yellow); }
.rate__star.is-pop { animation: starpop 0.45s var(--ease); }
.rate__star:hover { transform: scale(1.18) rotate(-6deg); }
@keyframes starpop { 0% { transform: scale(0.6); } 60% { transform: scale(1.35) rotate(8deg); } 100% { transform: none; } }
.rate__emoji { margin: 0.6rem 0 0; min-height: 3.6rem; font-size: 3rem; line-height: 1.2; }
.rate__label { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.rate__note { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.98rem; }
.rate__cta { margin: 1.2rem 0 0; }
.rate__reset { margin-top: 0.8rem; padding: 0.3rem 0; border: 0; background: none; color: var(--violet); font-family: var(--display); font-size: 0.98rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.confetti { position: absolute; left: 50%; top: 2.5rem; width: 9px; height: 13px; border-radius: 2px; pointer-events: none; z-index: 3; }

@media (max-width: 52rem) {
	.cv-hero__grid { grid-template-columns: minmax(0, 1fr); }
	.sheet { justify-self: start; transform: none; }
}

@media print {
	@page { margin: 14mm; }
	body { background: #fff; font-size: 11pt; }
	.site-header, .site-footer, .skip-link, .cv-hero .wp-block-buttons, .cv-roles__bar, .rate-section, .skills__tabs, .cv-role__chev, .read-progress { display: none !important; }
	.section, .cv-hero { padding: 1rem 0; background: none !important; }
	.wrap { width: 100%; }
	.cv-hero__grid { grid-template-columns: 1fr; }
	.sheet { transform: none; box-shadow: none; width: 100%; }
	.cv-role { break-inside: avoid; box-shadow: none; }
	.cv-role__body { grid-template-rows: 1fr !important; }
	.cv-role__inner { padding-bottom: 0.8rem; }
	.chip { break-inside: avoid; }
	.chip.is-hidden { display: inline-block; }
	a { color: inherit; text-decoration: none; }
}

/* Service page: Reddit marketing -------------------------------------- */

.panel__facts a,
.sheet a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

.brand__mark { overflow: hidden; padding: 0; background: var(--tint); }
.brand__img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: inherit; }

.thread { position: relative; justify-self: end; width: min(100%, 26rem); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.35rem 1.4rem; box-shadow: 0 30px 60px -30px rgba(27, 22, 71, 0.5); transform: rotate(1.6deg); }
.thread::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 6px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, var(--violet) 25%, var(--magenta) 25% 50%, var(--yellow) 50% 75%, var(--cyan) 75%); }
.thread__meta { margin: 0 0 0.5rem; font-size: 0.88rem; color: var(--ink-2); }
.thread__meta strong { color: var(--ink); font-family: var(--display); }
.thread__title { margin: 0 0 0.5rem; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.thread__stats { margin: 0 0 1rem; font-size: 0.88rem; color: var(--magenta); font-family: var(--display); font-weight: 600; }
.thread__reply { display: grid; grid-template-columns: 2.2rem 1fr auto; grid-template-areas: "av who pts" "av say pts"; column-gap: 0.7rem; align-items: start; padding: 0.8rem 0.9rem; margin-top: 0.6rem; border-radius: var(--radius-sm); background: var(--tint); }
.thread__reply--you { background: #fff; border: 2px solid var(--violet); box-shadow: 0 10px 24px -16px rgba(91, 61, 245, 0.7); }
.thread__avatar { grid-area: av; margin: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--cyan); color: var(--ink); font-family: var(--display); font-weight: 700; }
.thread__reply--you .thread__avatar { background: var(--violet); color: #fff; }
.thread__who { grid-area: who; margin: 0; font-family: var(--display); font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.thread__say { grid-area: say; margin: 0.1rem 0 0; font-size: 0.98rem; line-height: 1.35; color: var(--ink-2); }
.thread__pts { grid-area: pts; margin: 0; font-family: var(--display); font-size: 0.85rem; font-weight: 700; color: var(--violet); }
.thread__badge { position: absolute; margin: 0; padding: 0.4rem 0.85rem; border-radius: 999px; font-family: var(--display); font-size: 0.88rem; font-weight: 700; color: var(--ink); box-shadow: 0 12px 24px -12px rgba(27, 22, 71, 0.5); }
.thread__badge--g { top: -1rem; right: -1rem; background: var(--yellow); transform: rotate(4deg); }
.thread__badge--a { bottom: -1rem; left: -1.2rem; background: var(--cyan); transform: rotate(-3deg); }
@media (max-width: 52rem) {
	.thread { justify-self: stretch; transform: none; width: 100%; margin-top: 0.5rem; }
	.thread__badge--g { right: 0.5rem; }
	.thread__badge--a { left: 0.5rem; }
}

.hero-stats { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.hero-stats li { display: grid; grid-template-columns: 5.2rem 1fr; align-items: center; column-gap: 1rem; padding: 0.85rem 0; border-top: 1px solid var(--line); font-size: 0.98rem; line-height: 1.35; color: var(--ink-2); }
.hero-stats strong { font-family: var(--display); font-size: 2.1rem; line-height: 1; letter-spacing: -0.02em; color: var(--violet); }
.hero-stats li:nth-child(2) strong { color: var(--magenta); }
.hero-stats li:nth-child(3) strong { color: #d99a00; }
.hero-stats li:nth-child(4) strong { color: #0aa5ba; }
.hero-stats br { display: none; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stats li { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--violet); border-radius: var(--radius); padding: 1.4rem 1.25rem 1.3rem; font-size: 1.02rem; line-height: 1.35; color: var(--ink-2); box-shadow: 0 10px 28px -18px rgba(27, 22, 71, 0.35); }
.stats li:nth-child(2) { border-top-color: var(--magenta); }
.stats li:nth-child(3) { border-top-color: var(--yellow); }
.stats li:nth-child(4) { border-top-color: var(--cyan); }
.stats strong { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.5rem; }
.stats br, .steps br, .cards br, .included br { display: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.steps li { position: relative; counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.3rem 4rem; color: var(--ink-2); line-height: 1.45; }
.steps li::before { content: counter(step); position: absolute; left: 1.1rem; top: 1.2rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; background: var(--violet); }
.steps li:nth-child(3n+2)::before { background: var(--magenta); }
.steps li:nth-child(3n+3)::before { background: var(--cyan); color: var(--ink); }
.steps strong, .cards strong, .included strong { display: block; font-family: var(--display); font-size: 1.12rem; line-height: 1.25; color: var(--ink); margin-bottom: 0.3rem; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cards li { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--violet); border-radius: var(--radius); padding: 1.3rem 1.4rem; color: var(--ink-2); line-height: 1.45; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.cards li:nth-child(2) { border-left-color: var(--magenta); }
.cards li:nth-child(3) { border-left-color: var(--yellow); }
.cards li:nth-child(4) { border-left-color: var(--cyan); }
.cards li:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -20px rgba(27, 22, 71, 0.45); }

.included { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.25rem 2.5rem; }
.included li { position: relative; padding: 1.1rem 0 1.1rem 2.4rem; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.45; }
.included li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 62% no-repeat; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: 2rem 1.9rem; }
.plan--featured { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 24px 50px -26px rgba(27, 22, 71, 0.7); }
.plan__name { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.1; margin: 0 0 0.6rem; color: inherit; }
.plan__for { margin: 0 0 1.2rem; color: var(--ink-2); line-height: 1.45; }
.plan--featured .plan__for, .plan--featured .plan__plus { color: rgba(255, 255, 255, 0.82); }
.plan__plus { margin: 0 0 0.6rem; font-family: var(--display); font-weight: 600; color: var(--ink); }
.plan__list { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.plan__list li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-top: 1px solid var(--line); line-height: 1.4; }
.plan--featured .plan__list li { border-top-color: rgba(255, 255, 255, 0.18); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.8rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--magenta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 64% no-repeat; }
.plan--featured .plan__list li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b1647' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.plan__cta { margin-top: auto; }
.plan--featured .wp-block-button .wp-block-button__link { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.plan--featured .wp-block-button .wp-block-button__link:hover { background: #fff; border-color: #fff; }

.cta-band { background: linear-gradient(120deg, var(--violet), var(--magenta)); color: #fff; padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band__inner { text-align: center; }
.cta-band__title { font-family: var(--display); font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 auto 0.8rem; max-width: 22ch; color: #fff; }
.cta-band__text { margin: 0 auto 1.6rem; font-size: 1.15rem; color: rgba(255, 255, 255, 0.9); }
.cta-band .hero__actions { justify-content: center; }
.cta-band .wp-block-button .wp-block-button__link { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .wp-block-button .wp-block-button__link:hover { background: var(--yellow); border-color: var(--yellow); }
.cta-band .cta-band__text { color: #fff; }

@media (max-width: 960px) {
	.stats { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
	.steps, .cards, .included, .plans { grid-template-columns: 1fr; }
	.included { gap: 0; }
	.plan { padding: 1.6rem 1.35rem; }
}
@media (max-width: 420px) {
	.stats { grid-template-columns: 1fr; }
}

/* Newsletter page ------------------------------------------------------ */
.nl-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:30px 28px 26px;box-shadow:0 18px 44px -24px rgba(91,61,245,.35);overflow:hidden;align-self:center}
.nl-card::before{content:"";position:absolute;inset:0 0 auto 0;height:6px;background:linear-gradient(90deg,#5B3DF5,#12C4DB,#F2398F,#FFC72C)}
.nl-card .nl-card__kicker{font-family:var(--display);font-weight:700;font-size:1.05rem;margin:0 0 14px;color:var(--ink,#1B1647)}
.nl-card ul{list-style:none;margin:0;padding:0}
.nl-card li{padding:12px 0;border-top:1px solid var(--line);color:#4A4670;font-size:.95rem}
.nl-card li:first-child{border-top:0}
.nl-card li strong{display:block;font-family:var(--display);font-size:1.08rem;color:#1B1647}
.serp__empty{padding:28px 0;color:#4A4670}
.tag--yellow{background:#FFF1C2;color:#7A5600}
@media (max-width:720px){.nl-card{padding:26px 22px 22px}}

/* Reduced motion ------------------------------------------------------ */

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