/* What Webflow didn't cover: block adaptations and the pages built after it. webflow.css holds the design itself. */
:root {
	--mv-ink: #111111;
	--mv-text: #3d3d47;
	--mv-blue: #2f4cf0;
	--mv-blue-hover: #2440d6;
	--mv-soft: #f1f2fe;
	--mv-line: #e4e4ec;
	--mv-bar: #6070e8;
	--mv-yellow: #ffc61a;
}

.mv-page { margin: 0; }
.mv-page :is(h1, h2, h3) em { font-style: normal; color: var(--mv-yellow); }
.wp-block-post-content { margin: 0; padding: 0; }
.admin-bar .mv-head { top: 48px; }

/* Block wrappers that should not change the layout */
.mv-ft-col > p, .mv-ct-side > p { margin: 0; }
.mv-ct-side > .mvl-ct-link { line-height: 1.5; }
.mvl-dl-link > a { display: block; }
.mv-ct-formwrap form > p { margin: 0; }
.mv-page .mv-ct-formwrap label { display: block; margin-bottom: 0; }
.mv-ct-formwrap label br { display: none; }
.mv-ct-formwrap textarea.wpcf7-form-control { height: 180px; }
.mv-ct-formwrap input.wpcf7-form-control:not(.wpcf7-submit), .mv-ct-formwrap textarea.wpcf7-form-control { display: block; width: 100%; margin-top: 8px; font-family: inherit; }
.mv-ct-formwrap input.wpcf7-submit { border: 0; font-family: inherit; cursor: pointer; }
.mv-ct-formwrap .wpcf7-form-control-wrap { display: block; }
.wp-block-mvdm-project-cards { width: 100%; }

/* Menu: a normal WordPress menu, laid out as Webflow's links */
.mv-nav ul, .mv-nav li { display: contents; }
.mv-nav.wp-block-navigation { column-gap: 28px; font-size: 15px; }
.mv-page .mv-nav li.mvn-cta > a { color: #ffffff; }
.mv-nav a { font-size: 15px; line-height: 1.5; }

/* Download button: details and summary instead of Webflow's dropdown */
.mv-dl { position: relative; display: inline-block; }
.mv-dl > summary { display: inline-flex; list-style: none; cursor: pointer; }
.mv-dl > summary::-webkit-details-marker { display: none; }
.mv-dl > summary::after { content: ""; flex-shrink: 0; width: 12px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpolyline fill='none' stroke='%232f4cf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' points='2,4 6,8 10,4'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s; }
.mv-dl[open] > summary::after { transform: rotate(180deg); }
.mv-dl .mv-dl-list { position: absolute; top: 100%; left: 0; z-index: 20; }

/* Timeline: the fill is a tall line attached to the sticky dot, clipped by the rail */
.wp-block-mvdm-timeline-rail { overflow: clip; }
.mv-node-sticky::before { content: ""; position: absolute; bottom: calc(100% + 4px); left: 6px; z-index: -1; width: 4px; height: 500vh; background: var(--mv-blue); }

/* Hero peaks */
.mv-peaks svg { display: block; width: 100%; height: auto; overflow: visible; }
.mv-peaks-l, .mv-peaks-r, .mv-peaks-core { fill: var(--mv-blue); }
.mv-peaks-l { fill-opacity: .5; animation: mv-peak-l 1s cubic-bezier(.2,.7,.2,1) .2s both; }
.mv-peaks-r { fill-opacity: .28; animation: mv-peak-r 1s cubic-bezier(.2,.7,.2,1) .2s both; }
.mv-peaks-core { animation: mv-fade .5s ease-out 1.2s both; }
.mv-peaks-move-c { transform-origin: 126px 177px; }
.mv-peaks-ghost { fill: none; stroke: var(--mv-bar); stroke-width: .8; stroke-linejoin: round; animation: mv-ghost 1.6s ease-out both; }
.mv-peaks-echo { fill: none; stroke: var(--mv-blue); stroke-width: .8; stroke-linejoin: round; opacity: 0; transform-origin: 126px 177px; animation: mv-echo 2s cubic-bezier(.2,.6,.3,1) 1.2s, mv-echo-loop 7.5s cubic-bezier(.2,.6,.3,1) 7s infinite; }
.mv-peaks-echo-b { animation-delay: 1.7s, 7.5s; }
.mv-hfig-labels { animation: mv-fade .6s ease-out 1.7s both; }
.mv-h1-hero { animation: mv-rise .6s ease-out both; }
.mv-hero-extra { animation: mv-rise .6s ease-out .15s both; }
.mv-img-hero { border-radius: 4px; overflow: hidden; }
@keyframes mv-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes mv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mv-peak-l { from { opacity: 0; transform: translateX(-80px); } to { opacity: 1; transform: none; } }
@keyframes mv-peak-r { from { opacity: 0; transform: translateX(80px); } to { opacity: 1; transform: none; } }
@keyframes mv-ghost { 0% { opacity: 0; } 25%, 65% { opacity: 1; } 100% { opacity: 0; } }
@keyframes mv-echo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes mv-echo-loop { 0% { opacity: .7; transform: scale(1); } 27%, 100% { opacity: 0; transform: scale(2.6); } }

/* Footer journey: plays once when it comes into view */
.mv-lead-fill { transform: scaleX(0); }
.mv-lead [class*="mv-ld"] { transform: scale(0); }
.mv-lead [class*="mv-ls"] { opacity: .35; }
.mv-lead-msg { opacity: 0; }
.is-on .mv-lead-fill { animation: mv-j-line 2.1s linear .4s both; }
.is-on [class*="mv-ld"] { animation: mv-j-dot .3s ease-out both; }
.is-on [class*="mv-ls"] { animation: mv-j-label .3s ease-out both; }
.is-on .mv-ld1, .is-on .mv-ls1 { animation-delay: .2s; }
.is-on .mv-ld2, .is-on .mv-ls2 { animation-delay: 1.1s; }
.is-on .mv-ld3, .is-on .mv-ls3 { animation-delay: 1.8s; }
.is-on .mv-ld4, .is-on .mv-ls4 { animation-delay: 2.5s; }
.is-on .mv-lead-msg { animation: mv-j-close .5s ease-out 2.9s both; }
@keyframes mv-j-line { to { transform: scaleX(1); } }
@keyframes mv-j-dot { to { transform: scale(1); } }
@keyframes mv-j-label { to { opacity: 1; } }
@keyframes mv-j-close { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Fade-ins */
.mv-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.mv-reveal.mv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	.mv-h1-hero, .mv-hero-extra, .mv-hfig-labels, .mv-peaks-l, .mv-peaks-r, .mv-peaks-core { animation: none; }
	.mv-peaks-ghost, .mv-peaks-echo { display: none; }
	.mv-lead-fill, .mv-lead [class*="mv-ld"] { transform: none; }
	.mv-lead [class*="mv-ls"], .mv-lead-msg { opacity: 1; }
	.mv-lead * { animation: none !important; }
}

/* Project cards: the link text Webflow didn't have */
.mv-card-link { display: block; margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--mv-blue); }

/* Side projects on the projects page */
.mv-case + .mv-case { margin-top: 48px; }
.mv-case-frame.wp-block-image img { position: absolute; inset: 0; object-fit: cover; }
.mv-case-link { margin-top: 12px; }
.mv-case-link a { color: var(--mv-blue); font-size: 16px; line-height: 1.5; text-decoration: none; transition: color .2s; }
.mv-case-link a:hover { color: var(--mv-blue-hover); }

/* Pages built after Webflow: case studies, privacy, 404 */
.mv-text { max-width: 60ch; margin: 0 0 28px; font-size: 17px; line-height: 1.7; color: var(--mv-text); }
.mv-lead-text { margin: 28px 0 12px; }
.mv-sec { margin: 0 0 72px; padding-top: 0; }
.mv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 48px; }
.mv-img, .mv-img img { display: block; width: 100%; height: auto; border-radius: 4px; }
.mv-grid-2, .mv-grid-3, .mv-grid-side, .mv-grid-control { display: grid; gap: 24px; align-items: start; }
.mv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mv-grid-side { grid-template-columns: minmax(0, 1fr) 260px; }
.mv-grid-control { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
.mv-stack { display: flex; flex-direction: column; gap: 24px; }
.mv-control-text .mv-text { margin-bottom: 0; }
.mv-case-btns { gap: 12px; }
.wp-block-video video { display: block; width: 100%; border-radius: 4px; }
.mv-prose { max-width: 720px; margin: 0 0 36px; }
.mv-prose:first-of-type { margin-top: 48px; }
.mv-prose-title { margin: 0 0 10px; font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--mv-ink); }
.mv-prose .mv-text { max-width: none; margin-bottom: 0; font-size: 16px; }
.mv-note { font-size: 13px; line-height: 1.5; color: #6b6b75; }
.mv-404-btns { margin-top: 32px; gap: 12px; }

/* Password form */
.post-password-form { width: 100%; max-width: 448px; margin: 0 auto; padding: 168px 24px 96px; font: 16px/1.7 Montserrat, sans-serif; color: var(--mv-text); }
.post-password-form label { display: block; font-size: 15px; font-weight: 500; color: var(--mv-ink); }
.post-password-form input[type=password] { display: block; width: 100%; margin-top: 8px; padding: 13px 16px; border: 1px solid #c5c8ee; border-radius: 4px; font: 15px/1.5 Montserrat, sans-serif; }
.post-password-form input[type=submit] { margin-top: 16px; padding: 14px 24px; border: 0; border-radius: 4px; background: var(--mv-blue); font: 400 15px/1.5 Montserrat, sans-serif; color: #ffffff; cursor: pointer; }

@media (max-width: 767px) {
	.mv-nav.wp-block-navigation { column-gap: 18px; }
	.mv-node-sticky::before { bottom: calc(100% + 3px); left: 5px; }
	.mv-sec { margin-bottom: 56px; }
	.mv-grid-2, .mv-grid-3, .mv-grid-side, .mv-grid-control { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.mv-grid-side .mv-img:last-child, .mv-grid-control > .mv-img { max-width: 240px; }
}

/* Changes made after Webflow that stay */
/* Home hero: shorter, with a bigger title and figure */
.mv-hero { padding: 128px 0 64px; }
.mv-hero-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 600px); justify-content: space-between; align-items: center; gap: 40px; }
.mv-hero .mv-h1-hero { max-width: 16ch; margin: 0 0 24px; font-size: 52px; line-height: 1.12; }
.mv-hero .mv-hero-sub { margin: 0 0 32px; font-size: 18px; }
.mv-hero .mv-btn-row { margin-top: 0; }
.mv-hero .mv-hfig { max-width: none; }
.mv-hero .mv-hfig-labels { font-size: 12px; }

/* What I do: centered title and narrower rows, so the icons sit further in */
.mv-page .mv-sec-head { display: flex; flex-direction: column; align-items: center; max-width: 1000px; margin: 0 auto 48px; text-align: center; }
.mv-page .mv-h2-xl { max-width: none; margin: 0 0 12px; font-size: 38px; line-height: 1.2; text-wrap: balance; }
.mv-page .mv-srows { max-width: 1000px; margin: 0 auto; border-top: 1px solid var(--mv-line); }
.mv-page .mv-srow, .mv-page .mv-srow-last { display: grid; grid-template-columns: 96px minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; margin: 0; padding: 36px 0; border-bottom: 1px solid var(--mv-line); }
.mv-page .mv-srow-fig { align-self: center; width: 96px; height: auto; background: none; }
.mv-page .mv-srow-svg { width: 96px; height: auto; }
.mv-page .mv-srow-num { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--mv-blue); }
.mv-page .mv-srow-title { margin: 0 0 8px; font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--mv-ink); }
.mv-page .mv-srow-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--mv-text); }
.mv-page .mv-srow-item { margin: 0 0 8px; padding: 0 0 0 16px; border: 0; border-left: 2px solid #c5c8ee; font-size: 15px; line-height: 1.5; color: var(--mv-ink); }

/* About me: the bigger photo beside the title */
.mv-about-intro { display: flex; align-items: center; justify-content: space-between; gap: 56px; margin: 128px 0 72px; }
.mv-about-intro-text { flex: 1 1 0; min-width: 0; }
.mv-about-intro .mv-h1 { margin: 0 0 28px; }
.mv-about-photo { flex: 0 0 340px; width: 340px; height: 440px; border-radius: 4px; object-fit: cover; }

/* Project cards: quiet tags, so only the link reads as a link */
.mv-page .mv-grid { gap: 32px; }
.mv-page .mv-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--mv-ink); }
.mv-page .mv-card-type { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--mv-ink); }
.mv-page .mv-card-tags { margin-top: 12px; font-size: 11px; font-weight: 600; line-height: 1.5; color: var(--mv-text); }

/* Setup comparison: three cards whose rows line up */
.mv-setups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; margin: 8px 0 56px; }
.mv-setup { display: grid; grid-row: span 8; grid-template-rows: subgrid; padding: 24px; border: 1px solid var(--mv-line); border-radius: 4px; background: #ffffff; }
.mv-setup-current { border-color: var(--mv-soft); background: var(--mv-soft); }
.mv-setup-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 58px; }
.mv-setup-name { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--mv-ink); }
.mv-setup-name span { font-size: 13px; font-weight: 500; color: var(--mv-text); }
.mv-setup-now { padding: 2px 8px; border-radius: 4px; background: var(--mv-blue); font-size: 11px; font-weight: 600; line-height: 1.5; color: #ffffff; }
.mv-setup-verdict { margin: 12px 0 8px; font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--mv-blue); }
.mv-setup-rows { display: grid; grid-row: span 6; grid-template-rows: subgrid; margin: 0; }
.mv-setup-row { padding: 12px 0; border-top: 1px solid var(--mv-line); }
.mv-setup-current .mv-setup-row { border-top-color: #d9dcf8; }
.mv-setup-row dt { margin: 0 0 2px; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: #6b6b75; }
.mv-setup-row dd { margin: 0; font-size: 15px; line-height: 1.45; color: var(--mv-ink); }
.mv-setups:has(> .mv-setup ~ .mv-setup ~ .mv-setup ~ .mv-setup) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mv-setup-name .mv-setup-name-main { font-size: 20px; font-weight: 700; color: var(--mv-ink); }
.editor-styles-wrapper .mv-setup-add { grid-column: 1 / -1; justify-self: start; margin-top: 16px; }
.editor-styles-wrapper .mv-setup-remove { margin-top: 8px; font-size: 12px; }
.mv-setup-now-empty { font-size: 11px; line-height: 1.5; color: #6b6b75; }
/* Case studies: less space above the title */
.mv-case-page > .mv-h1 { margin-top: 120px; }
.mv-case-page .mv-tags { margin-bottom: 40px; }
.mv-case-page .mv-sec { margin-bottom: 56px; }
.mv-case-page .mv-label { margin-bottom: 10px; }
.mv-case-page .mv-text { margin-bottom: 18px; }

@media (max-width: 991px) {
	.mv-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
	.mv-hero .mv-h1-hero { font-size: 40px; }
	.mv-page .mv-h2-xl { font-size: 30px; }
	.mv-page .mv-srow, .mv-page .mv-srow-last { gap: 24px; }
	.mv-about-photo { flex-basis: 240px; width: 240px; height: 300px; }
}
@media (max-width: 767px) {
	.mv-hero { padding: 136px 0 72px; }
	.mv-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
	.mv-hero .mv-h1-hero { font-size: 30px; }
	.mv-hero .mv-hero-sub { font-size: 16px; }
	.mv-page .mv-h2-xl { font-size: 24px; }
	.mv-page .mv-srow, .mv-page .mv-srow-last { grid-template-columns: 72px minmax(0, 1fr); gap: 20px; padding: 28px 0; align-items: start; }
	.mv-page .mv-srow-fig, .mv-page .mv-srow-svg { width: 72px; }
	.mv-page .mv-srow-list { grid-column: 2; }
	.mv-about-intro { flex-direction: column; align-items: stretch; gap: 40px; margin-top: 112px; }
	.mv-about-photo { flex: 0 0 auto; width: 100%; height: auto; aspect-ratio: 4 / 5; }
	.mv-case-page > .mv-h1 { margin-top: 104px; }
	.mv-setups, .mv-setups:has(> .mv-setup ~ .mv-setup ~ .mv-setup ~ .mv-setup) { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.mv-setup, .mv-setup-rows { display: block; }
	.mv-setup-head { min-height: 0; }
	.mv-case-page .mv-sec { margin-bottom: 40px; }
}