/* ==========================================================================
   Msizi Portfolio
   Layout: fixed left sidebar + one-page main column (after the Simone template).
   Everything is namespaced .msz-* so it never fights Twenty Twenty-Five styles.
   ========================================================================== */

:root {
	--msz-accent: #3858e9;
	--msz-accent-ink: #2541c8;
	--msz-accent-soft: rgba(56, 88, 233, 0.1);
	--msz-ink: #1b1f24;
	--msz-text: #4f5560;
	--msz-muted: #7a808a;
	--msz-line: #e6e8ec;
	--msz-bg: #ffffff;
	--msz-alt: #f5f6f9;
	--msz-dark: #0f1216;
	--msz-dark-2: #171b21;
	--msz-sidebar-w: 270px;
	--msz-radius: 10px;
	--msz-shadow: 0 10px 30px -12px rgba(15, 18, 22, 0.18);
	--msz-font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--msz-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- One-page reset of parent theme spacing ---------- */
body.msz-onepage {
	background: var(--msz-bg);
	color: var(--msz-text);
	font-family: var(--msz-font);
	font-size: 16px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
body.msz-onepage .wp-site-blocks { padding: 0 !important; }
body.msz-onepage .wp-site-blocks > *,
body.msz-onepage .msz-main > * { margin-block: 0 !important; }
html:has(body.msz-onepage) { scroll-behavior: smooth; scroll-padding-top: 0; }
@media (prefers-reduced-motion: reduce) { html:has(body.msz-onepage) { scroll-behavior: auto; } }

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

[class*="msz-"] { box-sizing: border-box; }
[class*="msz-"] h1, [class*="msz-"] h2, [class*="msz-"] h3, [class*="msz-"] h4 {
	font-family: var(--msz-font); color: var(--msz-ink); letter-spacing: -0.01em; margin: 0;
}
[class*="msz-"] p { margin: 0; }
[class*="msz-"] ul, [class*="msz-"] ol, [class*="msz-"] dl { list-style: none; margin: 0; padding: 0; }
[class*="msz-"] a { color: var(--msz-accent); text-decoration: none; transition: color .2s; }
[class*="msz-"] a:hover { color: var(--msz-accent-ink); }
[class*="msz-"] :focus-visible { outline: 2px solid var(--msz-accent); outline-offset: 3px; border-radius: 4px; }
.msz-icon { flex: none; vertical-align: middle; }
.msz-accent { color: var(--msz-accent); }

.msz-main { min-height: 100vh; }
.msz-container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
.msz-section { padding-block: clamp(72px, 9vw, 110px); background: var(--msz-bg); position: relative; }
.msz-section--alt { background: var(--msz-alt); }
.msz-lead { max-width: 640px; margin: -16px auto 48px !important; text-align: center; color: var(--msz-muted); }
.msz-center { text-align: center; margin-top: 48px !important; }

/* ---------- Buttons ---------- */
.msz-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 13px 30px; border-radius: 999px; border: 2px solid transparent;
	font: 500 15px/1.2 var(--msz-font); cursor: pointer;
	transition: background .25s var(--msz-ease), color .25s, border-color .25s, transform .25s var(--msz-ease), box-shadow .25s;
}
.msz-btn:hover { transform: translateY(-2px); }
[class*="msz-"] a.msz-btn--primary, .msz-btn--primary { background: var(--msz-accent); color: #fff; box-shadow: 0 8px 22px -10px var(--msz-accent); }
[class*="msz-"] a.msz-btn--primary:hover, .msz-btn--primary:hover { background: var(--msz-accent-ink); color: #fff; }
[class*="msz-"] a.msz-btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
[class*="msz-"] a.msz-btn--ghost:hover { background: #fff; color: var(--msz-ink); }
[class*="msz-"] a.msz-btn--outline { border-color: var(--msz-accent); color: var(--msz-accent); }
[class*="msz-"] a.msz-btn--outline:hover { background: var(--msz-accent); color: #fff; }

/* ---------- Section heading (watermark + title) ---------- */
.msz-heading { position: relative; text-align: center; margin-bottom: 64px; }
.msz-heading__watermark {
	display: block; font-weight: 700; text-transform: uppercase; line-height: 1;
	font-size: clamp(3.2rem, 9vw, 7.5rem); letter-spacing: 0.02em;
	color: rgba(27, 31, 36, 0.055); white-space: nowrap; user-select: none;
}
.msz-heading__title {
	position: absolute; inset: 50% 0 auto; transform: translateY(-50%);
	font-size: clamp(1.6rem, 3vw, 2.25rem) !important; font-weight: 600 !important;
}
.msz-heading__title::after {
	content: ""; display: block; width: 72px; height: 3px; margin: 14px auto 0;
	background: var(--msz-accent); border-radius: 2px;
}
.msz-heading--light .msz-heading__watermark { color: rgba(255,255,255,.06); }
.msz-heading--light .msz-heading__title { color: #fff; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.msz-sidebar { background: var(--msz-dark); color: rgba(255,255,255,.7); }
body.msz-onepage .msz-sidebar {
	position: fixed; inset: 0 auto 0 0; width: var(--msz-sidebar-w); z-index: 100;
	overflow-y: auto; scrollbar-width: none;
}
body.msz-onepage .msz-main { margin-left: var(--msz-sidebar-w); }
.msz-sidebar__bar { display: none; }
.msz-sidebar__panel { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; padding: 48px 24px; }

.msz-profile { text-align: center; }
.msz-profile__photo {
	display: grid; place-items: center; width: 168px; height: 168px; margin: 0 auto 20px;
	border-radius: 50%; overflow: hidden; border: 6px solid rgba(255,255,255,.12);
	background: linear-gradient(135deg, var(--msz-accent), #12b5cb);
}
.msz-profile__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msz-profile__initials { color: #fff; font-size: 52px; font-weight: 600; letter-spacing: .02em; }
.msz-profile__name { color: #fff; font-size: 22px; font-weight: 600; line-height: 1.3; }
.msz-profile__title { color: rgba(255,255,255,.6); font-size: 14px; }
.msz-profile__status {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important;
	font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.06); color: rgba(255,255,255,.75);
}
.msz-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fd47f; box-shadow: 0 0 0 0 rgba(47,212,127,.6); animation: msz-pulse 2s infinite; }
@keyframes msz-pulse { 70% { box-shadow: 0 0 0 8px rgba(47,212,127,0); } 100% { box-shadow: 0 0 0 0 rgba(47,212,127,0); } }

.msz-nav ul { display: grid; gap: 4px; text-align: center; }
.msz-sidebar .msz-nav a { display: inline-block; padding: 6px 4px; color: rgba(255,255,255,.62); font-size: 16px; font-weight: 500; position: relative; }
.msz-sidebar .msz-nav a:hover,
.msz-sidebar .msz-nav a.is-active { color: #fff; }
.msz-nav a::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px; background: var(--msz-accent); transition: width .3s var(--msz-ease), left .3s var(--msz-ease); }
.msz-nav a.is-active::after { width: 100%; left: 0; }

.msz-social { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.msz-social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: background .2s, color .2s, transform .2s; }
.msz-social--sidebar a { color: rgba(255,255,255,.65); background: rgba(255,255,255,.06); }
.msz-social--sidebar a:hover { color: #fff; background: var(--msz-accent); transform: translateY(-2px); }
.msz-social--contact { justify-content: flex-start; margin-top: 24px !important; }
.msz-social--contact a { color: var(--msz-ink); background: #fff; border: 1px solid var(--msz-line); }
.msz-social--contact a:hover { color: #fff; background: var(--msz-accent); border-color: var(--msz-accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.msz-hero {
	position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center;
	padding: 100px clamp(16px, 4vw, 48px); text-align: center; overflow: hidden; color: rgba(255,255,255,.82);
	background:
		radial-gradient(60% 50% at 75% 20%, rgba(56,88,233,.42), transparent 70%),
		radial-gradient(45% 45% at 15% 85%, rgba(18,181,203,.25), transparent 70%),
		var(--msz-dark-2);
}
.msz-hero.has-image { background: linear-gradient(rgba(10,12,16,.72), rgba(10,12,16,.72)), var(--msz-hero-img) center / cover no-repeat; }
.msz-hero__grid {
	position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.msz-hero.has-image .msz-hero__grid { display: none; }
.msz-hero__inner { position: relative; max-width: 900px; }
.msz-hero__greeting { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500; color: #fff; margin-bottom: 8px !important; }
.msz-hero h1.msz-hero__title {
	color: #fff; font-weight: 600; line-height: 1.15; min-height: 2.3em;
	font-size: clamp(2.2rem, 6.2vw, 4.6rem); letter-spacing: -0.02em;
	display: flex; align-items: center; justify-content: center;
}
.msz-typed__caret { display: inline-block; width: 3px; height: .9em; margin-left: 6px; background: var(--msz-accent); vertical-align: -0.08em; animation: msz-blink 1s steps(1) infinite; }
@keyframes msz-blink { 50% { opacity: 0; } }
.msz-hero__sub { font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 18px auto 0 !important; max-width: 620px; }
.msz-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 40px; }
.msz-hero a.msz-hero__scroll {
	position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 2px solid rgba(255,255,255,.35); color: #fff; animation: msz-bob 2.2s ease-in-out infinite;
}
@keyframes msz-bob { 50% { transform: translate(-50%, 8px); } }

/* ==========================================================================
   About
   ========================================================================== */
.msz-about { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.msz-about h3.msz-about__headline { font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 600; line-height: 1.4; margin-bottom: 20px; }
.msz-about__text p + p { margin-top: 16px; }
.msz-portrait { position: relative; margin: 0 0 32px; isolation: isolate; }
.msz-portrait::before {
	content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
	border-radius: 16px; background: linear-gradient(135deg, var(--msz-accent), #12b5cb);
}
.msz-portrait img { display: block; width: 100%; height: auto; border-radius: 16px; background: #f1f2f4; box-shadow: var(--msz-shadow); }
@media (max-width: 991px) { .msz-portrait { max-width: 420px; margin-right: 18px; } }
.msz-about__facts dl { display: grid; margin-bottom: 28px; }
.msz-about__facts dl > div { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--msz-line); flex-wrap: wrap; }
.msz-about__facts dt { font-weight: 600; color: var(--msz-ink); min-width: 64px; }
.msz-about__facts dd { margin: 0; overflow-wrap: anywhere; }

.msz-stats { display: grid; grid-template-columns: repeat(var(--msz-cols, 4), 1fr); margin-top: 72px !important; border-top: 1px solid var(--msz-line); }
.msz-stat { text-align: center; padding: 32px 12px 0; border-right: 1px solid var(--msz-line); }
.msz-stat:last-child { border-right: 0; }
.msz-stat__value { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 600; color: var(--msz-ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.msz-stat__suffix { color: var(--msz-accent); }
.msz-stat__label { display: block; margin-top: 8px; font-size: 14px; color: var(--msz-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.msz-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 44px; }
.msz-service { display: flex; gap: 22px; align-items: flex-start; padding: 8px 0; }
.msz-service__icon {
	display: grid; place-items: center; width: 64px; height: 64px; flex: none;
	border-radius: 14px; background: #fff; color: var(--msz-accent); box-shadow: var(--msz-shadow);
	transition: background .3s var(--msz-ease), color .3s, transform .3s var(--msz-ease);
}
.msz-service:hover .msz-service__icon { background: var(--msz-accent); color: #fff; transform: rotate(-6deg); }
.msz-service h3.msz-service__title { font-size: 19px; font-weight: 600; margin: 4px 0 6px; }
.msz-service__text { font-size: 15px; }

/* ==========================================================================
   Resume
   ========================================================================== */
.msz-resume { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.msz-subhead { display: flex; align-items: center; gap: 12px; font-size: 22px !important; font-weight: 600 !important; margin-bottom: 28px !important; }
.msz-subhead .msz-icon { color: var(--msz-accent); }
.msz-subhead--center { justify-content: center; margin-top: 80px !important; }
.msz-timeline { display: grid; gap: 22px; }
.msz-timeline__item {
	position: relative; padding: 24px 26px; border-radius: var(--msz-radius);
	background: #fff; border: 1px solid var(--msz-line);
	transition: box-shadow .3s var(--msz-ease), transform .3s var(--msz-ease), border-color .3s;
}
.msz-timeline__item:hover { box-shadow: var(--msz-shadow); transform: translateY(-3px); border-color: transparent; }
.msz-timeline__item::before { content: ""; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 3px; border-radius: 0 3px 3px 0; background: var(--msz-accent); }
.msz-badge { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--msz-accent); color: #fff; font-size: 12.5px; font-weight: 500; margin-bottom: 12px; }
.msz-timeline h4.msz-timeline__title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.msz-timeline__org { color: var(--msz-accent); font-weight: 500; font-size: 14.5px; margin: 2px 0 10px !important; }
.msz-timeline__text { font-size: 15px; }

.msz-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 56px; }
.msz-skill { display: grid; grid-template-columns: 1fr auto; row-gap: 8px; }
.msz-skill__name { font-weight: 500; color: var(--msz-ink); }
.msz-skill__pct { font-weight: 500; color: var(--msz-muted); font-size: 14px; }
.msz-skill__track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--msz-line); overflow: hidden; }
.msz-skill__fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--msz-accent), #12b5cb); transform-origin: left; }
.msz-js .msz-skill__fill { transform: scaleX(0); transition: transform 1.2s var(--msz-ease); }
.msz-js .is-visible .msz-skill__fill { transform: scaleX(1); }

/* ==========================================================================
   Projects
   ========================================================================== */
.msz-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; margin-bottom: 40px; }
.msz-filter button {
	font: 500 15px var(--msz-font); padding: 8px 18px; border-radius: 999px; cursor: pointer;
	border: 0; background: transparent; color: var(--msz-text); transition: background .2s, color .2s;
}
.msz-filter button:hover { color: var(--msz-accent); }
.msz-filter button[aria-pressed="true"] { background: var(--msz-accent); color: #fff; }

.msz-work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.msz-card[hidden] { display: none; }
.msz-card { animation: msz-fade .45s var(--msz-ease); }
@keyframes msz-fade { from { opacity: 0; transform: translateY(10px); } }
.msz-card__btn {
	all: unset; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; width: 100%; height: 100%; cursor: pointer; position: relative;
	background: #fff; border-radius: var(--msz-radius); overflow: hidden; border: 1px solid var(--msz-line);
	transition: box-shadow .3s var(--msz-ease), transform .3s var(--msz-ease);
}
.msz-card__btn:hover, .msz-card__btn:focus-visible { box-shadow: var(--msz-shadow); transform: translateY(-4px); }
.msz-card__btn:focus-visible { outline: 2px solid var(--msz-accent); outline-offset: 3px; }
.msz-shot { display: block; position: relative; overflow: hidden; }
.msz-card__overlay {
	position: absolute; inset: 0 0 auto; aspect-ratio: 1; display: grid; place-items: center;
	background: rgba(15,18,22,.45); color: #fff; opacity: 0; transition: opacity .3s;
}
.msz-card__btn:hover .msz-card__overlay, .msz-card__btn:focus-visible .msz-card__overlay { opacity: 1; }
.msz-card__meta { display: block; padding: 18px 20px 22px; }
.msz-card__cat { display: block; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--msz-accent); }
.msz-card__title { display: block; font-size: 18px; font-weight: 600; color: var(--msz-ink); line-height: 1.35; margin-top: 4px; }
.msz-card__summary { display: block; font-size: 14.5px; color: var(--msz-muted); margin-top: 6px; line-height: 1.6; }

/* ---------- Device mockup thumbnails (laptop + tablet + phone) ---------- */
.msz-devices {
	position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; container-type: inline-size;
	background: radial-gradient(120% 90% at 50% 0%, #fbfcfe 0%, #f1f3f9 55%, #e6ebf5 100%);
	--c1: #3858e9; --c2: #12b5cb;
}
.msz-devices[data-variant="1"] { --c1: #1b1f24; --c2: #3858e9; }
.msz-devices[data-variant="2"] { --c1: #6e3ce6; --c2: #e64c8b; }
.msz-devices[data-variant="3"] { --c1: #0f8a6b; --c2: #12b5cb; }
.msz-devices--image { background: #f6f7fb; }
.msz-devices--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .6s var(--msz-ease); }
.msz-card__btn:hover .msz-devices--image img { transform: scale(1.04); }

.msz-dev {
	position: absolute; display: block; background: #121826; box-sizing: border-box;
	box-shadow: 0 2.2cqw 5cqw -1.6cqw rgba(15, 23, 42, .5), inset 0 0 0 .25cqw #232b3b;
	transition: transform .6s var(--msz-ease);
}
.msz-dev__screen { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #fff; }
.msz-dev__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.msz-dev--laptop { left: 10%; top: 8%; width: 80%; aspect-ratio: 16 / 10.4; padding: 1.5cqw 1.5cqw 1.8cqw; border-radius: 2.4cqw 2.4cqw .5cqw .5cqw; }
.msz-dev--laptop .msz-dev__screen { border-radius: .6cqw; }
.msz-dev__base { position: absolute; left: -7%; right: -7%; bottom: -2.3cqw; height: 2.3cqw; border-radius: .3cqw .3cqw 1.8cqw 1.8cqw; background: linear-gradient(#232b3b, #0c111a); }
.msz-dev__base::after { content: ""; position: absolute; left: 43%; right: 43%; top: 0; height: .5cqw; border-radius: 0 0 .5cqw .5cqw; background: #2b8f9b; }

.msz-dev--tablet { left: 3%; top: 55%; width: 46%; aspect-ratio: 4 / 3; padding: 1.4cqw; border-radius: 2.8cqw; transform: rotate(-7deg); }
.msz-dev--tablet .msz-dev__screen { border-radius: 1.2cqw; }

.msz-dev--phone { right: 8%; top: 47%; width: 24%; aspect-ratio: 9 / 18.5; padding: 1cqw; border-radius: 3.8cqw; transform: rotate(5deg); }
.msz-dev--phone .msz-dev__screen { border-radius: 2.9cqw; }

.msz-card__btn:hover .msz-dev--laptop { transform: translateY(-1cqw); }
.msz-card__btn:hover .msz-dev--tablet { transform: rotate(-9deg) translateY(-1.2cqw); }
.msz-card__btn:hover .msz-dev--phone { transform: rotate(7deg) translateY(-1.6cqw); }

/* Placeholder screen until screenshots exist */
.msz-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 1.2cqw; padding: 9%; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; text-align: left; }
.msz-ph__nav { position: absolute; top: 5%; left: 6%; right: 6%; display: flex; gap: 2%; justify-content: flex-end; }
.msz-ph__nav i { width: 10%; height: .5cqw; border-radius: 1cqw; background: rgba(255,255,255,.5); }
.msz-ph__nav i:first-child { margin-right: auto; width: 16%; height: .9cqw; background: #fff; }
.msz-ph b { font-weight: 600; line-height: 1.15; font-size: 3.6cqw; }
.msz-ph__lines { display: grid; gap: .7cqw; }
.msz-ph__lines i { display: block; height: .6cqw; border-radius: 1cqw; background: rgba(255,255,255,.4); }
.msz-ph__lines i:nth-child(1) { width: 80%; } .msz-ph__lines i:nth-child(2) { width: 60%; }
.msz-ph__lines i:nth-child(3) { width: 30%; height: 1.6cqw; margin-top: .6cqw; background: rgba(255,255,255,.85); }
.msz-ph small { position: absolute; left: 9%; bottom: 6%; font-size: 1.5cqw; opacity: .75; letter-spacing: .02em; }
.msz-ph--tablet b { font-size: 2.3cqw; } .msz-ph--tablet { gap: .8cqw; }
.msz-ph--phone { padding: 14% 12%; justify-content: flex-start; padding-top: 38%; }
.msz-ph--phone b { font-size: 2cqw; }
.msz-ph--phone .msz-ph__nav i:not(:first-child) { display: none; }
.msz-ph--phone .msz-ph__nav i:first-child { width: 34%; height: .8cqw; }

/* Project dialog */
.msz-dialog {
	width: min(1000px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
	border-radius: 14px; background: #fff; color: var(--msz-text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
	font-family: var(--msz-font); line-height: 1.7;
}
.msz-dialog::backdrop { background: rgba(10,12,16,.75); backdrop-filter: blur(3px); }
.msz-dialog[open] { animation: msz-pop .3s var(--msz-ease); }
@keyframes msz-pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.msz-dialog__close {
	position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--msz-ink); box-shadow: var(--msz-shadow);
}
.msz-dialog__close:hover { background: var(--msz-accent); color: #fff; }
.msz-project { display: grid; grid-template-columns: 1.15fr 1fr; }
.msz-project__visual { background: #f1f3f9; display: flex; align-items: center; }
.msz-project__info { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.msz-project h3.msz-project__title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 600; line-height: 1.25; }
.msz-project__desc p + p { margin-top: 12px; }
.msz-project__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; width: 100%; padding: 14px 0; border-block: 1px solid var(--msz-line); }
.msz-project__facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--msz-muted); }
.msz-project__facts dd { margin: 0; font-weight: 500; color: var(--msz-ink); font-size: 14.5px; }
.msz-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.msz-tags li { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--msz-accent-soft); color: var(--msz-accent-ink); }

/* ==========================================================================
   Organisations strip
   ========================================================================== */
.msz-clients { background: var(--msz-dark); padding-block: 48px; text-align: center; }
.msz-clients h2.msz-clients__title { color: rgba(255,255,255,.55); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.msz-clients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; }
.msz-clients__list li { color: rgba(255,255,255,.88); font-weight: 600; font-size: clamp(15px, 1.6vw, 18px); letter-spacing: -.01em; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.msz-slider { position: relative; }
.msz-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 14px); gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 24px; }
.msz-slider__track::-webkit-scrollbar { display: none; }
.msz-quote { scroll-snap-align: start; }
.msz-quote figure { margin: 0; height: 100%; padding: 32px; border-radius: var(--msz-radius); background: var(--msz-alt); display: flex; flex-direction: column; gap: 18px; position: relative; }
.msz-quote figure::before { content: "\201C"; position: absolute; top: 4px; right: 24px; font-size: 96px; line-height: 1; color: var(--msz-accent); opacity: .18; font-family: Georgia, serif; }
.msz-quote__stars { display: flex; gap: 3px; color: #f5b301; }
.msz-quote__text { margin: 0; padding: 0; border: 0; font-size: 16.5px; color: var(--msz-ink); font-style: italic; flex: 1; }
.msz-quote__by { display: flex; align-items: center; gap: 14px; }
.msz-quote__by strong { display: block; color: var(--msz-ink); }
.msz-quote__by span span { font-size: 14px; color: var(--msz-muted); }
.msz-quote__photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.msz-slider__nav { display: flex; justify-content: center; gap: 10px; }
.msz-slider__nav button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--msz-line); background: #fff; cursor: pointer; color: var(--msz-ink); transition: background .2s, color .2s; }
.msz-slider__nav button:hover { background: var(--msz-accent); color: #fff; border-color: var(--msz-accent); }

/* ==========================================================================
   Contact
   ========================================================================== */
.msz-reach { display: grid; grid-template-columns: repeat(var(--msz-cols, 3), minmax(0, 1fr)); gap: 24px; max-width: 980px; margin-inline: auto; }
.msz-reach li { display: flex; }
[class*="msz-"] a.msz-reach__card {
	flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 36px 24px 30px; border-radius: 16px; background: #fff; color: var(--msz-text);
	border: 1px solid var(--msz-line); box-shadow: 0 1px 0 rgba(15,18,22,.03);
	transition: transform .3s var(--msz-ease), box-shadow .3s var(--msz-ease), border-color .3s;
}
[class*="msz-"] a.msz-reach__card:hover { transform: translateY(-4px); box-shadow: var(--msz-shadow); border-color: transparent; color: var(--msz-text); }
.msz-reach__icon {
	display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 50%;
	background: var(--msz-accent-soft); color: var(--msz-accent); transition: background .3s, color .3s;
}
.msz-reach__card:hover .msz-reach__icon { background: var(--msz-accent); color: #fff; }
.msz-reach__label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--msz-muted); }
.msz-reach__value { font-size: 18px; font-weight: 600; color: var(--msz-ink); overflow-wrap: anywhere; }
.msz-reach__action { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14.5px; font-weight: 500; color: var(--msz-accent); }
.msz-reach__card--whatsapp .msz-reach__icon { background: #e6f6ed; color: #1f9d55; }
.msz-reach__card--whatsapp:hover .msz-reach__icon { background: #1f9d55; color: #fff; }
.msz-reach__card--whatsapp .msz-reach__action { color: #1f9d55; }
.msz-reach__meta { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 40px; text-align: center; }
.msz-reach__loc { display: inline-flex; align-items: center; gap: 8px; color: var(--msz-muted); font-size: 15px; }
.msz-reach__loc .msz-icon { color: var(--msz-accent); }
.msz-reach__meta .msz-social--contact { justify-content: center; margin-top: 16px !important; }

/* ==========================================================================
   Footer
   ========================================================================== */
.msz-footer { background: var(--msz-dark); color: rgba(255,255,255,.6); padding-block: 26px; font-size: 14px; }
.msz-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.msz-footer a { color: #fff; }
.msz-footer a.msz-footer__top { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); }
.msz-footer a.msz-footer__top:hover { background: var(--msz-accent); color: #fff; }

/* ==========================================================================
   Reveal on scroll (only when JS is running)
   ========================================================================== */
.msz-js .msz-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--msz-ease), transform .8s var(--msz-ease); }
.msz-js .msz-reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199px) {
	.msz-work { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
	body.msz-onepage .msz-sidebar { inset: 0 0 auto 0; width: 100%; height: auto; max-height: 100vh; overflow: visible; }
	body.msz-onepage .msz-main { margin-left: 0; }
	.msz-sidebar__bar { display: flex; align-items: center; justify-content: space-between; height: 64px; padding-inline: 16px; }
	.msz-sidebar a.msz-sidebar__brand { color: #fff; font-weight: 600; font-size: 18px; }
	.msz-sidebar__toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
	.msz-sidebar__toggle-close, .msz-sidebar.is-open .msz-sidebar__toggle-open { display: none; }
	.msz-sidebar.is-open .msz-sidebar__toggle-close { display: inline; }
	body.msz-onepage .msz-sidebar__panel { display: none; min-height: 0; max-height: calc(100vh - 64px); overflow-y: auto; padding: 24px 16px 32px; gap: 24px; border-top: 1px solid rgba(255,255,255,.08); }
	body.msz-onepage .msz-sidebar.is-open .msz-sidebar__panel { display: flex; }
	.msz-profile__photo { width: 96px; height: 96px; border-width: 4px; margin-bottom: 12px; }
	.msz-profile__initials { font-size: 32px; }
	html:has(body.msz-onepage) { scroll-padding-top: 64px; }
	.msz-hero { padding-top: 120px; }

	.msz-about, .msz-resume { grid-template-columns: 1fr; }
	.msz-reach { grid-template-columns: 1fr; max-width: 460px; }
	.msz-project { grid-template-columns: 1fr; }
	.msz-project__visual .msz-devices { max-width: 420px; margin-inline: auto; }
	.msz-slider__track { grid-auto-columns: 85%; }
}

@media (max-width: 767px) {
	.msz-services, .msz-skills, .msz-work { grid-template-columns: 1fr; }
	.msz-stats { grid-template-columns: 1fr 1fr; }
	.msz-stat { border-right: 0; padding-bottom: 8px; }
	.msz-stat:nth-child(odd) { border-right: 1px solid var(--msz-line); }
	.msz-hero h1.msz-hero__title { min-height: 3.5em; }
	.msz-heading { margin-bottom: 44px; }
	.msz-heading__watermark { font-size: clamp(2.6rem, 14vw, 4rem); }
	.msz-footer__inner { flex-direction: column; text-align: center; }
	.msz-dialog { max-height: calc(100vh - 24px); width: calc(100vw - 24px); }
}

@media (prefers-reduced-motion: reduce) {
	[class*="msz-"], [class*="msz-"]::before, [class*="msz-"]::after { animation: none !important; transition: none !important; }
	.msz-js .msz-reveal { opacity: 1; transform: none; }
	.msz-js .msz-skill__fill { transform: none; }
}

/* Editor: blocks preview inline rather than as a fixed sidebar */
.editor-styles-wrapper .msz-sidebar__panel { min-height: 0; }
.editor-styles-wrapper .msz-hero { min-height: 560px; }
