/*
Theme Name: Michael Christo
Theme URI: https://michaelchristo.com
Author: Michael Christo
Description: A portfolio theme with case studies, a sideways-scrolling project row, expanding project pages, a credits panel, an archive with live previews, an Info panel and light/dark modes.
Version: 2.3.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: michaelchristo
*/

/* Google Sans (SIL Open Font License, see assets/fonts/OFL.txt). Self-hosted, so no visitor data goes to Google. */
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/google-sans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/google-sans-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Google Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/google-sans-italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: italic; font-weight: 400 700; font-display: swap; src: url("assets/fonts/google-sans-italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


/* ==========================================================================
   1. Settings — change colours, fonts and sizes here
   ========================================================================== */
:root {
	--bg: #f9f9f9;
	--ink: #000;
	--ink-70: rgba(0, 0, 0, .7);
	--ink-45: rgba(0, 0, 0, .45);
	--ink-20: rgba(0, 0, 0, .2);
	--line: rgba(0, 0, 0, .08);
	--glass: rgba(194, 194, 194, .3);
	--glass-hover: rgba(170, 170, 170, .42);
	--glass-panel: rgba(235, 235, 235, .62);
	--placeholder: #e4e4e4;
	--blur: 16px;
	--font: "Google Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--gap: 12px;
	--radius: 12px;
	--radius-sm: 8px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--nav-h: 28px;
}
html.dark {
	--bg: #0e0e0e;
	--ink: #fff;
	--ink-70: rgba(255, 255, 255, .72);
	--ink-45: rgba(255, 255, 255, .5);
	--ink-20: rgba(255, 255, 255, .24);
	--line: rgba(255, 255, 255, .1);
	--glass: rgba(90, 90, 90, .35);
	--glass-hover: rgba(120, 120, 120, .45);
	--glass-panel: rgba(38, 38, 38, .66);
	--placeholder: #1f1f1f;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
	font: 400 14px/1.4 var(--font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
::selection { background: var(--ink); color: var(--bg); }

/* Media frames: rounded corners, cover the box */
.mc-media { width: 100%; height: 100%; object-fit: cover; }
.mc-media--empty {
	display: flex; align-items: center; justify-content: center;
	background: var(--placeholder);
}
.mc-media__hint { font-size: 12px; color: var(--ink-45); }

/* Light grey boxes where a case study has no cover image yet */
.mc-card.mc-card--empty { color: var(--ink); }
.mc-card.mc-card--empty::after { display: none; }
.mc-card.mc-card--empty .mc-card__desc { color: var(--ink-70); opacity: 1; }

/* "Draft" label: only shown when you're logged in */
.mc-badge {
	display: inline-block; padding: 3px 7px; border-radius: 6px;
	background: var(--ink); color: var(--bg);
	font-size: 11px; font-weight: 500; line-height: 1.2; letter-spacing: .01em;
}
.mc-card .mc-badge { position: absolute; z-index: 2; top: var(--gap); left: var(--gap); }
.mc-row .mc-badge { margin-right: 6px; padding: 1px 6px; font-size: 10px; }
.mc-project__info .mc-badge { margin-bottom: 10px; }

/* ==========================================================================
   3. Pills (all buttons)
   ========================================================================== */
.mc-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: .35em;
	height: var(--nav-h); padding: 0 10px;
	border: 0; border-radius: var(--radius-sm);
	background: var(--glass);
	-webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
	color: var(--ink); font-size: 12px; line-height: 1; white-space: nowrap;
	text-decoration: none; cursor: pointer;
	transition: background-color .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.mc-pill:hover, .mc-pill.is-current { background: var(--glass-hover); }
.mc-pill:active { transform: scale(.96); }

/* ==========================================================================
   4. Navigation
   ========================================================================== */
.mc-nav {
	position: fixed; z-index: 80; top: var(--gap); left: var(--gap); right: var(--gap);
	display: flex; justify-content: space-between; align-items: flex-start;
	pointer-events: none;
}
.mc-nav > *, .mc-nav__right > * { pointer-events: auto; }
.mc-nav__mark { font-weight: 500; letter-spacing: .04em; min-width: var(--nav-h); }
.mc-nav__right { display: flex; gap: 4px; }
.mc-nav__email { max-width: 0; padding: 0; opacity: 0; overflow: hidden; pointer-events: none !important; transition: max-width .5s var(--ease), padding .5s var(--ease), opacity .3s; }
.mc-nav__info-close { display: none; }
html.info-open .mc-nav__email { max-width: 260px; padding: 0 10px; opacity: 1; pointer-events: auto !important; }
html.info-open .mc-nav__info-open { display: none; }
html.info-open .mc-nav__info-close { display: inline; }

/* Light/dark switch: a small pill with a sliding dot */
.mc-theme-toggle { width: 18px; padding: 0; position: relative; }
.mc-theme-toggle span {
	position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
	border-radius: 50%; background: var(--ink); transform: translateY(4px);
	transition: transform .5s var(--ease);
}
html.dark .mc-theme-toggle span { transform: translateY(-4px); }

/* ==========================================================================
   5. Loader and page transitions
   ========================================================================== */
.mc-loader {
	position: fixed; inset: 0; z-index: 200; display: none;
	align-items: center; justify-content: center; background: var(--bg);
	font-weight: 500; letter-spacing: .04em; font-size: 14px;
}
html.js.is-first .mc-loader { display: flex; }
html.is-loaded .mc-loader { opacity: 0; visibility: hidden; transition: opacity .7s var(--ease) .2s, visibility 0s .9s; }
.mc-loader span { animation: mc-pulse 1.2s ease-in-out infinite; }
@keyframes mc-pulse { 50% { opacity: .3; } }

html.js .mc-main { animation: mc-in .8s var(--ease) both; }
html.is-leaving .mc-main { opacity: 0; transition: opacity .35s var(--ease); }
/* Opacity only: a transform here would break the fixed menus inside the page. */
@keyframes mc-in { from { opacity: 0; } to { opacity: 1; } }

/* The growing image when a project card is clicked */
.mc-expand {
	position: fixed; z-index: 70; overflow: hidden; border-radius: var(--radius);
	background: var(--glass) center / cover no-repeat;
	transition: top .75s var(--ease), left .75s var(--ease), width .75s var(--ease), height .75s var(--ease);
	pointer-events: none;
}

/* Scroll reveals */
html.js .mc-reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.js .mc-reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   6. Homepage
   ========================================================================== */
.mc-home { position: relative; }
.mc-home__sticky {
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
	min-height: 100vh; min-height: 100svh;
	padding: calc(var(--gap) * 2 + var(--nav-h) + 8px) var(--gap) var(--gap);
}
.mc-home.is-pinned .mc-home__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.mc-home__intro {
	margin: 0; max-width: 21em;
	font-size: clamp(26px, 4.4vw, 68px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em;
	color: var(--ink-20);
}
.mc-home__intro strong { color: var(--ink); font-weight: inherit; }

.mc-strip {
	display: flex; gap: var(--gap);
	height: min(56vh, 760px); min-height: 300px;
	margin: 0 calc(var(--gap) * -1); padding: 0 var(--gap);
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.mc-strip::-webkit-scrollbar { display: none; }
.mc-home.is-pinned .mc-strip { overflow: visible; will-change: transform; }
.mc-card {
	position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 4 / 5;
	border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
	color: #fff; text-decoration: none; background: var(--glass);
}
.mc-card__media { position: absolute; inset: 0; display: block; }
.mc-card__media .mc-media { transition: transform 1.2s var(--ease); }
.mc-card:hover .mc-card__media .mc-media { transform: scale(1.04); }
.mc-card::after {
	content: ""; position: absolute; inset: 50% 0 0; pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, .42), transparent);
}
.mc-card__info { position: absolute; z-index: 1; left: var(--gap); right: var(--gap); bottom: var(--gap); font-size: 12px; line-height: 1.3; }
.mc-card__title { margin: 0 0 2px; font-weight: 500; }
.mc-card__desc { margin: 0; max-width: 28ch; opacity: .85; }
.mc-empty { max-width: 420px; color: var(--ink-45); }

/* ==========================================================================
   7. Case study page
   ========================================================================== */
.mc-project { padding-top: calc(var(--gap) + var(--nav-h) + 98px); }

/* Row of project thumbnails, stays at the top */
.mc-thumbs {
	position: fixed; z-index: 60; top: calc(var(--gap) + var(--nav-h) + 10px); left: 50%;
	transform: translateX(-50%);
	display: flex; gap: 6px; max-width: calc(100vw - 24px); padding: 4px;
	overflow-x: auto; scrollbar-width: none;
	transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.mc-thumbs::-webkit-scrollbar { display: none; }
html.thumbs-hidden .mc-thumbs { transform: translate(-50%, -140%); opacity: 0; }
.mc-thumb {
	flex: 0 0 auto; width: 60px; height: 80px; border-radius: 6px; overflow: hidden;
	background: var(--glass); opacity: .72;
	transition: transform .5s var(--ease), opacity .3s var(--ease), box-shadow .3s;
}
.mc-thumb:hover { opacity: 1; transform: translateY(-3px); }
.mc-thumb.is-current { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--ink); }

.mc-project__hero {
	margin: 0 var(--gap); border-radius: var(--radius); overflow: hidden; background: var(--glass);
	height: min(calc((100vw - 24px) * .5625), calc(100vh - 120px - var(--nav-h)));
}

.mc-project__info { max-width: 640px; margin: 0 auto; padding: clamp(64px, 12vw, 140px) var(--gap); text-align: center; }
.mc-project__title { margin: 0 0 20px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.mc-project__summary { margin: 0 0 16px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.35; color: var(--ink-45); letter-spacing: -.01em; }
.mc-project__meta { margin: 0 0 20px; font-size: 12px; color: var(--ink-45); }
.mc-project__buttons { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }

/* Case study content made in the editor */
.mc-content { padding: 0 var(--gap); }
.mc-content > * { margin-top: 0; margin-bottom: var(--gap); }
.mc-content img, .mc-content video, .mc-content iframe { border-radius: var(--radius); }
.mc-content .wp-block-image, .mc-content .wp-block-video, .mc-content .wp-block-embed, .mc-content .wp-block-gallery, .mc-content .wp-block-cover { margin-left: 0; margin-right: 0; }
.mc-content .wp-block-image img, .mc-content .wp-block-video video { width: 100%; height: auto; object-fit: cover; }
.mc-content .wp-block-image figcaption, .mc-content .wp-element-caption { font-size: 12px; color: var(--ink-45); text-align: center; margin-top: 8px; }
.mc-content .wp-block-columns { display: flex; gap: var(--gap) !important; margin-bottom: var(--gap); }
.mc-content .wp-block-column { flex: 1 1 0; min-width: 0; }
.mc-content .wp-block-column > * { margin-bottom: var(--gap); }
.mc-content .wp-block-column > *:last-child { margin-bottom: 0; }
.mc-content .wp-block-column .wp-block-image { margin: 0; height: 100%; }
.mc-content .wp-block-column .wp-block-image img { height: 100%; }
.mc-content .wp-block-gallery { gap: var(--gap) !important; --wp--style--unstable-gallery-gap: var(--gap); }
.mc-content .wp-block-embed__wrapper { border-radius: var(--radius); overflow: hidden; }

.mc-content > p, .mc-content > h2, .mc-content > h3, .mc-content > h4, .mc-content > ul, .mc-content > ol {
	max-width: 640px; margin: clamp(48px, 9vw, 120px) auto; text-align: center;
}
.mc-content > p { font-size: clamp(16px, 1.6vw, 20px); line-height: 1.35; color: var(--ink-45); letter-spacing: -.01em; }
.mc-content > h2, .mc-content > h3 { font-size: 13px; font-weight: 500; margin-bottom: 14px; color: var(--ink); }
.mc-content > h2 + p, .mc-content > h3 + p { margin-top: 0; }
.mc-content > ul, .mc-content > ol { list-style-position: inside; padding: 0; color: var(--ink-45); }

.mc-content .wp-block-quote, .mc-content .wp-block-pullquote {
	max-width: 900px; margin: clamp(64px, 10vw, 140px) auto; padding: 0 var(--gap);
	border: 0; text-align: center;
}
.mc-content .wp-block-quote p, .mc-content .wp-block-pullquote p {
	font-size: clamp(22px, 3vw, 40px); line-height: 1.12; letter-spacing: -.02em; font-weight: 500; margin: 0 0 20px;
}
.mc-content .wp-block-quote cite, .mc-content .wp-block-pullquote cite { font-size: 12px; font-style: normal; color: var(--ink-45); }

/* Impact numbers panel */
.mc-content .mc-kpis, .mc-kpis {
	padding: clamp(24px, 5vw, 56px); border-radius: var(--radius); background: var(--glass);
}
.mc-kpis .mc-kpis__label { font-size: 12px; color: var(--ink-45); margin-bottom: 32px; }
.mc-kpis .wp-block-columns { margin: 0; }
.mc-kpis .mc-kpis__value { font-size: clamp(40px, 6vw, 88px); font-weight: 500; line-height: 1; letter-spacing: -.04em; margin: 0 0 10px; }
.mc-kpis .mc-kpis__text { font-size: 12px; color: var(--ink-45); margin: 0; }

/* Next project */
.mc-next {
	display: block; margin: clamp(80px, 12vw, 160px) var(--gap) 0; padding-bottom: 96px;
	text-align: center; text-decoration: none;
}
.mc-next__label { display: block; font-size: 12px; color: var(--ink-45); margin-bottom: 8px; }
.mc-next__title { display: block; font-size: clamp(28px, 4.4vw, 64px); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; margin-bottom: 32px; }
.mc-next__media { position: relative; display: block; height: 52vh; border-radius: var(--radius); overflow: hidden; background: var(--glass); }
.mc-next__media .mc-media { transition: transform 1.2s var(--ease); }
.mc-next:hover .mc-next__media .mc-media { transform: scale(1.03); }

/* Floating bottom menu */
.mc-bar {
	position: fixed; z-index: 65; left: 50%; bottom: var(--gap);
	display: flex; gap: 4px;
	transform: translate(-50%, calc(100% + 24px));
	transition: transform .7s var(--ease);
}
.mc-bar.is-visible { transform: translate(-50%, 0); }

/* Credits panel */
.mc-credits {
	position: fixed; z-index: 75; right: var(--gap); bottom: var(--gap);
	width: min(440px, calc(100vw - 24px)); max-height: min(72vh, 640px); overflow-y: auto;
	padding: 16px 16px 4px; border-radius: var(--radius);
	background: var(--glass-panel);
	-webkit-backdrop-filter: blur(28px) saturate(1.2); backdrop-filter: blur(28px) saturate(1.2);
	transform: translateY(calc(100% + 32px)); visibility: hidden;
	transition: transform .7s var(--ease), visibility 0s .7s;
}
.mc-credits.is-open { transform: none; visibility: visible; transition: transform .7s var(--ease); }
.mc-credits__close { position: sticky; top: 0; float: right; margin-left: 8px; }
.mc-credits__block { margin-bottom: 18px; }
.mc-credits__label { font-size: 12px; color: var(--ink-45); margin: 0 0 4px; }
.mc-credits__names { font-size: 16px; line-height: 1.3; margin: 0; letter-spacing: -.005em; }

/* ==========================================================================
   8. Archive
   ========================================================================== */
.mc-archive { position: relative; min-height: 100vh; }
.mc-archive__bgs { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.mc-archive__bg {
	position: absolute; inset: -12%; background-size: cover; background-position: center;
	filter: blur(70px) saturate(1.15); opacity: 0; transform: scale(1.05);
	transition: opacity 1s var(--ease), transform 1.6s var(--ease);
}
.mc-archive__bg.is-active { opacity: .9; transform: none; }
.mc-archive__bgs::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: .35; }

.mc-archive__preview {
	position: fixed; left: var(--gap); bottom: var(--gap); z-index: 1;
	width: min(46vw, 640px); aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
}
.mc-archive__media { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.mc-archive__media.is-active { opacity: 1; }

.mc-archive__list {
	list-style: none; margin: 0 var(--gap) 0 auto; padding: 46vh 0 40vh;
	width: clamp(280px, 34vw, 480px); position: relative; z-index: 2;
	display: flex; flex-direction: column; gap: 6px;
}
.mc-row {
	display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
	padding: 10px 12px; border-radius: var(--radius-sm);
	background: var(--glass-panel);
	-webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
	font-size: 12px; line-height: 1.3; text-decoration: none; opacity: .55;
	transition: opacity .4s var(--ease), background-color .4s var(--ease);
}
.mc-row.is-active { opacity: 1; }
.mc-row__title { font-weight: 500; }
.mc-row__year { color: var(--ink-45); }
.mc-row__tags { grid-column: 1 / -1; color: var(--ink-70); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   9. Info panel
   ========================================================================== */
.mc-info {
	position: fixed; inset: 0; z-index: 78; visibility: hidden; opacity: 0;
	transition: opacity .6s var(--ease), visibility 0s .6s;
}
.mc-info:target, html.info-open .mc-info { visibility: visible; opacity: 1; transition: opacity .6s var(--ease); }
.mc-info__backdrop {
	position: absolute; inset: 0; display: block;
	background: color-mix(in srgb, var(--bg) 45%, transparent);
	-webkit-backdrop-filter: blur(34px); backdrop-filter: blur(34px);
}
.mc-info__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; pointer-events: none; }
.mc-info__inner {
	pointer-events: auto; max-width: 560px; margin: calc(var(--gap) * 2 + var(--nav-h)) auto 80px; padding: 0 var(--gap);
	transform: translateY(40px); transition: transform .8s var(--ease);
}
.mc-info:target .mc-info__inner, html.info-open .mc-info__inner { transform: none; }
.mc-info__inner > * { margin: 0 0 6px; border-radius: var(--radius); }
.mc-info__inner > p, .mc-info__inner > .wp-block-group, .mc-info__inner > ul, .mc-info__inner > h2, .mc-info__inner > h3 {
	padding: 16px; background: var(--glass-panel);
	-webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
}
.mc-info__inner img { width: 100%; border-radius: var(--radius); }
.mc-info__inner .wp-block-image { margin: 0 0 6px; }
.mc-info__inner .mc-info-bio, .mc-info__inner > p { font-size: 17px; line-height: 1.32; letter-spacing: -.01em; }
.mc-info__inner .mc-info-label, .mc-info-label { font-size: 12px; color: var(--ink-45); margin-bottom: 10px; }
.mc-info__inner .wp-block-columns { gap: 12px; margin: 0; }
.mc-info__inner .wp-block-group p { margin: 0; }
.mc-info__inner .wp-block-group p + p { margin-top: 8px; }
.mc-info__inner a { text-decoration: none; }
.mc-info__inner a:hover { text-decoration: underline; }

/* ==========================================================================
   10. Ordinary pages
   ========================================================================== */
.mc-page { padding: calc(var(--gap) * 2 + var(--nav-h) + 72px) 0 96px; }
.mc-page__title { max-width: 640px; margin: 0 auto 48px; padding: 0 var(--gap); font-size: clamp(26px, 4vw, 52px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; text-align: center; }
.mc-page__title a { text-decoration: none; }
.mc-page--center { text-align: center; min-height: 80vh; }
.mc-pagination { text-align: center; }

/* ==========================================================================
   11. Small screens
   ========================================================================== */
@media (max-width: 767px) {
	.mc-strip { height: 62vh; }
	.mc-card { aspect-ratio: auto; width: 78vw; }
	.mc-thumbs { left: var(--gap); right: var(--gap); transform: none; justify-content: flex-start; max-width: none; }
	html.thumbs-hidden .mc-thumbs { transform: translateY(-140%); }
	.mc-thumb { width: 44px; height: 58px; }
	.mc-project { padding-top: calc(var(--gap) + var(--nav-h) + 78px); }
	.mc-project__hero { height: 62vh; }
	.mc-bar { width: max-content; max-width: calc(100vw - 24px); }
	.mc-archive__preview { display: none; }
	.mc-archive__list { width: auto; margin: 0 var(--gap); padding-top: 30vh; }
	.mc-archive__bg.is-active { opacity: .7; }
	.mc-content .wp-block-columns { flex-direction: column; }
}

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

/* Grey box for an empty image block (only shown when you're logged in) */
.mc-image-placeholder .mc-media--empty { aspect-ratio: 16 / 10; height: auto; border-radius: var(--radius); }
.wp-block-column .mc-image-placeholder .mc-media--empty { aspect-ratio: 4 / 5; }

/* ==========================================================================
   12. Case study layouts (v2.3)
   Add these as block patterns from the inserter → Patterns → Portfolio.
   ========================================================================== */
:root { --serif: var(--font); --band: #0f3b2c; }
.mc-content .mc-serif, .mc-content .mc-statement, .mc-marquee__item { font-family: var(--serif); font-weight: 400; font-optical-sizing: auto; }

/* Classic themes wrap Group contents in an extra box; let the layout see straight through it. */
.mc-content .mc-meta > .wp-block-group__inner-container,
.mc-content .mc-rail > .wp-block-group__inner-container,
.mc-content .mc-marquee > .wp-block-group__inner-container,
.mc-content .mc-band > .wp-block-group__inner-container,
.mc-content .mc-panel > .wp-block-group__inner-container { display: contents; }

/* Small section label, e.g. "01 — Key visuals" */
.mc-content > p.mc-label, .mc-content .mc-label {
	max-width: none; margin: clamp(72px, 11vw, 160px) 0 var(--gap); text-align: left;
	font-family: var(--font); font-size: 12px; line-height: 1.3; color: var(--ink-45); letter-spacing: 0;
	display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 10px;
}

/* Project facts strip */
.mc-content .mc-meta {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px var(--gap);
	margin: clamp(24px, 5vw, 64px) 0 clamp(64px, 10vw, 140px); padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mc-content .mc-meta p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.mc-content .mc-meta p strong { display: block; font-weight: 400; color: var(--ink-45); margin-bottom: 4px; font-size: 12px; }

/* Big statement line */
.mc-content > p.mc-statement, .mc-content .mc-statement {
	max-width: 1180px; margin: clamp(80px, 13vw, 200px) auto; text-align: center; color: var(--ink);
	font-size: clamp(34px, 5.6vw, 92px); line-height: 1.02; letter-spacing: -.03em;
}
.mc-content .mc-statement em { font-style: italic; }
.mc-content .mc-statement + p.mc-statement-cite { margin-top: calc(-1 * clamp(56px, 10vw, 160px)); font-size: 12px; }

/* Challenge / Idea / What we made */
.mc-content .mc-chapters.wp-block-columns { gap: clamp(24px, 4vw, 64px) !important; margin: 0 0 clamp(72px, 11vw, 160px); }
.mc-content .mc-chapters h3 { margin: 0 0 14px; font-size: 12px; font-weight: 400; color: var(--ink-45); padding-top: 10px; border-top: 1px solid var(--line); }
.mc-content .mc-chapters p { margin: 0 0 12px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }

/* Scrolling headline marquee */
.mc-content .mc-marquee { overflow: hidden; margin: clamp(72px, 11vw, 160px) calc(-1 * var(--gap)); padding: 8px 0; white-space: nowrap; }
.mc-marquee__track { display: inline-flex; gap: clamp(32px, 5vw, 80px); will-change: transform; }
.mc-content .mc-marquee p, .mc-marquee__item { flex: 0 0 auto; margin: 0; font-size: clamp(30px, 5vw, 76px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); }
.mc-marquee__item em { font-style: italic; }
.mc-marquee--dim .mc-marquee__item { color: var(--ink-20); }

/* Draggable image rail */
.mc-content .mc-rail {
	display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
	margin: 0 calc(-1 * var(--gap)) var(--gap); padding: 0 var(--gap); cursor: grab;
}
.mc-content .mc-rail::-webkit-scrollbar { display: none; }
.mc-content .mc-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.mc-content .mc-rail .wp-block-image { flex: 0 0 clamp(260px, 34vw, 560px); margin: 0; scroll-snap-align: start; }
.mc-content .mc-rail img { pointer-events: none; user-select: none; }
.mc-rail-hint { font-size: 12px; color: var(--ink-45); text-align: right; margin: 0 0 var(--gap); }

/* Colour band: a full-width coloured section */
.mc-content .mc-band {
	margin: clamp(72px, 11vw, 160px) 0; padding: clamp(20px, 4vw, 56px) clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px);
	border-radius: var(--radius); background: var(--band); color: #fff;
	--ink: #fff; --ink-70: rgba(255,255,255,.75); --ink-45: rgba(255,255,255,.6); --ink-20: rgba(255,255,255,.3); --line: rgba(255,255,255,.2); --placeholder: rgba(255,255,255,.08);
}
.mc-content .mc-band .wp-block-group__inner-container > *:last-child, .mc-content .mc-band > *:last-child { margin-bottom: 0; }
.mc-content .mc-band .mc-label { margin-top: 0; }
.mc-content .mc-band .mc-statement { margin: clamp(48px, 8vw, 120px) auto; }

/* Light grey panel for flat artwork (banners, display ads) */
.mc-content .mc-panel { padding: clamp(24px, 6vw, 96px); border-radius: var(--radius); background: var(--glass); margin-bottom: var(--gap); }
.mc-content .mc-panel img { border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.mc-content .mc-panel .wp-block-columns { align-items: center; }
.mc-content .mc-panel .wp-block-column .wp-block-image, .mc-content .mc-panel .wp-block-column .wp-block-image img { height: auto; }

/* Images ease in as they arrive, and "zoom" images settle as you scroll */
html.js .mc-content .mc-reveal img, html.js .mc-content .mc-reveal video { transform: scale(1.06); transition: transform 1.6s var(--ease); }
html.js .mc-content .mc-reveal.is-in img, html.js .mc-content .mc-reveal.is-in video { transform: none; }
.mc-content .wp-block-image { overflow: hidden; border-radius: var(--radius); }
.mc-content .mc-zoom img { transform-origin: 50% 50%; will-change: transform; }

@media (max-width: 767px) {
	.mc-content .mc-chapters.wp-block-columns { gap: 32px !important; }
	.mc-content .mc-rail .wp-block-image { flex-basis: 78vw; }
	.mc-content .mc-band { margin-left: calc(-1 * var(--gap)); margin-right: calc(-1 * var(--gap)); border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.mc-marquee__track { transform: none !important; flex-wrap: wrap; white-space: normal; }
	html.js .mc-content .mc-reveal img { transform: none; transition: none; }
}

/* Behind the scenes: note cards from the brainstorm */
.mc-content > p.mc-notes-intro { max-width: 760px; margin: 0 0 clamp(24px, 4vw, 48px); text-align: left; color: var(--ink); font-size: clamp(18px, 2vw, 26px); line-height: 1.25; letter-spacing: -.015em; }
.mc-content .mc-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); margin-bottom: var(--gap); }
.mc-content .mc-notes > .wp-block-group__inner-container { display: contents; }
.mc-content .mc-notes p {
	margin: 0; padding: clamp(18px, 2.4vw, 28px); min-height: 200px; border-radius: var(--radius);
	background: var(--glass); font-size: 15px; line-height: 1.4; color: var(--ink-70);
	transition: transform .6s var(--ease), background-color .4s var(--ease);
}
.mc-content .mc-notes p:hover { transform: translateY(-4px) rotate(-.4deg); background: var(--glass-hover); }
.mc-content .mc-notes p strong { display: block; margin-bottom: 28px; font-weight: 500; font-size: 12px; color: var(--ink-45); }
.mc-content .mc-notes p:nth-child(5) { background: var(--band); color: rgba(255,255,255,.85); }
.mc-content .mc-notes p:nth-child(5) strong { color: rgba(255,255,255,.6); }

/* Hover: case study images ease in slightly, like the homepage cards */
.mc-content .wp-block-image:not(.mc-zoom) img { transition: transform 1.2s var(--ease); }
.mc-content .mc-band .wp-block-image:not(.mc-zoom):hover img,
.mc-content .wp-block-columns .wp-block-image:not(.mc-zoom):hover img,
.mc-content > .wp-block-image.is-in:not(.mc-zoom):hover img { transform: scale(1.03); }
.mc-content .mc-rail .wp-block-image:hover img { transform: scale(1.02); }
.mc-content .mc-panel .wp-block-image:hover img { transform: translateY(-4px); }
.mc-rail-hint::after { content: " →"; }

/* Thought process: numbered steps with sticky text beside the visuals */
.mc-content .mc-step.wp-block-columns { gap: clamp(20px, 4vw, 64px) !important; margin: 0 0 clamp(56px, 9vw, 120px); align-items: flex-start; }
.mc-content .mc-step > .wp-block-column:first-child { flex: 0 0 32%; position: sticky; top: calc(var(--nav-h) + 120px); }
.mc-content .mc-step > .wp-block-column:last-child { flex: 1 1 0; min-width: 0; }
.mc-content .mc-step h3 { margin: 0 0 14px; font-size: clamp(20px, 2vw, 28px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.mc-content .mc-step p { margin: 0 0 14px; font-size: 16px; line-height: 1.45; color: var(--ink-70); }
.mc-content .mc-step p.mc-step__num { font-size: 12px; color: var(--ink-45); margin-bottom: 10px; }
.mc-content .mc-step p.mc-step__quote { font-style: italic; color: var(--ink); border-left: 2px solid var(--band); padding-left: 12px; }
.mc-content .mc-step .mc-rail { margin-left: 0; margin-right: calc(-1 * var(--gap)); padding-left: 0; }
.mc-content .mc-step .mc-rail .wp-block-image { flex-basis: clamp(240px, 26vw, 420px); }
.mc-content .mc-step .wp-block-column .wp-block-image img { height: auto; }
.mc-content .mc-step .wp-block-columns { margin-bottom: 0; }

/* Miro-style sticky notes */
.mc-content .mc-notes--sticky { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 0 0 var(--gap); }
.mc-content .mc-notes--sticky p {
	min-height: 150px; background: #f4ecbe; color: #2b2a22; font-size: 15px; line-height: 1.35;
	box-shadow: 0 10px 24px rgba(0,0,0,.08); transform: rotate(-1.2deg); border-radius: 4px;
}
.mc-content .mc-notes--sticky p:nth-child(even) { transform: rotate(1deg); background: #ece4b3; }
.mc-content .mc-notes--sticky p:nth-child(3n) { transform: rotate(-.4deg); background: #d9e6cf; }
.mc-content .mc-notes--sticky p:hover { transform: rotate(0) translateY(-4px); background: #f7f0c9; }
.mc-content .mc-notes--sticky p strong { display: block; margin-bottom: 10px; color: #2b2a22; font-size: 13px; }
.mc-content .mc-notes--sticky p:nth-child(5) { background: #f4ecbe; color: #2b2a22; }
html.dark .mc-content .mc-notes--sticky p { background: #3a3726; color: #efe8c6; }
html.dark .mc-content .mc-notes--sticky p:nth-child(3n) { background: #2e3a2b; }
html.dark .mc-content .mc-notes--sticky p strong { color: #efe8c6; }
.mc-content .mc-step .mc-notes--sticky { margin-bottom: 20px; }
.mc-content .mc-notes--sticky > .wp-block-group__inner-container { display: contents; }

@media (max-width: 767px) {
	.mc-content .mc-step > .wp-block-column:first-child { position: static; flex-basis: auto; }
	.mc-content .mc-step.wp-block-columns { align-items: stretch; }
	.mc-content .mc-step > .wp-block-column { width: 100%; max-width: 100%; }
	.mc-content .mc-notes--sticky { grid-template-columns: repeat(2, 1fr); }
	.mc-content .mc-notes--sticky p { min-height: 120px; }
}
