/* =========================================================================
   SMH Portfolio: design system
   Neo-brutalist bento: paper background, ink borders, hard shadows,
   lime accent, coral + violet supporting colours. Light & dark (system).
   ========================================================================= */

@font-face {
	font-family: "Space Grotesk";
	src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
	font-weight: 300 700;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2");
	font-weight: 700;
	font-display: swap;
}

:root {
	color-scheme: light dark;
	--paper: #f4f1ea;
	--tile: #fffdf8;
	--tile-2: #ece8de;
	--ink: #111111;
	--text: #111111;
	--muted: #57554f;
	--line: #111111;
	--shadow: #111111;
	--accent: #c8f031;
	--on-accent: #111111;
	--coral: #ff7a59;
	--violet: #6d4dff;
	--inv-bg: #111111;
	--inv-fg: #f4f1ea;
	--grid-line: rgb(17 17 17 / 0.07);

	--font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--maxw: 1320px;
	--gutter: clamp(16px, 3vw, 28px);
	/* Spacing. Named --smh-* because Elementor containers define their own --gap. */
	--smh-gap: clamp(14px, 1.8vw, 24px);     /* between tiles / columns / rows */
	--smh-space: clamp(24px, 3.4vw, 44px);     /* between page sections */
	--pad: clamp(22px, 3.2vw, 44px);
	--bw: 2px;
	--radius: 4px;
	--sh: 5px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0e0e0c;
		--tile: #171714;
		--tile-2: #201f1b;
		--text: #f1eee6;
		--muted: #a9a59b;
		--line: #3a3933;
		--shadow: #000000;
		--inv-bg: #f1eee6;
		--inv-fg: #111111;
		--grid-line: rgb(241 238 230 / 0.05);
	}
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.smh {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.smh *, .smh *::before, .smh *::after { box-sizing: border-box; }
/* :where() keeps these at zero class specificity so button/link components can set their own colours */
:where(.smh) a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
:where(.smh) a:hover { color: inherit; }
.smh img { max-width: 100%; height: auto; }
.smh :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.smh p { margin: 0 0 0.9em; }
.smh p:last-child { margin-bottom: 0; }
.smh h1, .smh h2, .smh h3, .smh h4 { font-family: var(--font); color: inherit; margin: 0; }
.smh mark {
	/* Highlight only the line's own band so it never covers the line above */
	background: linear-gradient(transparent 14%, var(--accent) 14%, var(--accent) 94%, transparent 94%);
	color: var(--on-accent); padding: 0 .1em; margin-inline: -.04em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.smh .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.smh ::selection { background: var(--accent); color: var(--on-accent); }

.smh-skip {
	position: absolute; left: 12px; top: -100px; z-index: 1000;
	background: var(--accent); color: var(--on-accent); padding: 10px 16px;
	border: var(--bw) solid var(--ink); font-weight: 700;
}
.smh-skip:focus { top: 12px; }
#smh-content:focus { outline: none; }

/* ---------- page frame ---------- */
.smh .elementor > .e-con,
.smh-main,
.smh-header__bar,
.smh-footer {
	width: min(var(--maxw), 100% - 2 * var(--gutter));
	margin-inline: auto;
}
/* Section rhythm. Elementor writes per-element margins, so these need to win. */
.smh .elementor > .e-con.e-con,
.smh-main > * { --margin-top: var(--smh-space); margin-top: var(--smh-space) !important; }
.smh .elementor > .e-con.e-con:first-child,
.smh-main > :first-child { --margin-top: var(--smh-gap); margin-top: var(--smh-gap) !important; }
/* A thin strip (the tech marquee) sits closer to the block above it. */
.smh .elementor > .e-con.e-con.smh-marquee-w { margin-top: var(--smh-gap) !important; }
.smh .elementor { padding-bottom: var(--smh-space); }
.smh-main { display: flex; flex-direction: column; padding-bottom: var(--smh-space); }
.smh-main > * { margin-bottom: 0; }

/* Neutralise Elementor container defaults on our own containers */
.smh .e-con[class*="smh-"] {
	--padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
	padding: 0;
	gap: 18px;
	min-height: 0;
	flex-wrap: nowrap;
}
.smh .e-con[class*="smh-"] > .elementor-widget,
.smh .e-con[class*="smh-"] > .e-con { margin: 0; max-width: 100%; }
.smh .elementor-widget-html, .smh .elementor-widget-shortcode { width: 100%; }

/* ---------- tiles & bento ---------- */
.smh-tile,
.smh .e-con.smh-tile,
.smh .e-con.smh-section:not(.smh-bento) {
	background: var(--tile);
	border: var(--bw) solid var(--line);
	border-radius: var(--radius);
	padding: var(--pad);
	position: relative;
	min-width: 0;
}
.smh .e-con.smh-tile { display: flex; flex-direction: column; justify-content: flex-start; }
.smh-tile .smh-tile:not([class*="smh-tile--"]),
.smh .e-con.smh-section:not(.smh-bento) .e-con.smh-tile:not([class*="smh-tile--"]) { background: var(--paper); }
.smh-tile--paper, .smh .e-con.smh-tile--paper { background: var(--tile-2); }
.smh-tile--grid, .smh .e-con.smh-tile--grid {
	background-color: var(--tile);
	background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 32px 32px;
}
.smh-tile--accent, .smh .e-con.smh-tile--accent { background: var(--accent); color: var(--on-accent); --muted: #2f3a07; }
.smh-tile--coral, .smh .e-con.smh-tile--coral { background: var(--coral); color: #111; --muted: #3d1a10; }
.smh-tile--violet, .smh .e-con.smh-tile--violet { background: var(--violet); color: #fff; --muted: #ffffff; }
.smh-tile--ink, .smh .e-con.smh-tile--ink { background: var(--inv-bg); color: var(--inv-fg); --muted: color-mix(in srgb, var(--inv-fg) 70%, transparent); }
.smh-tile--accent .smh-tile, .smh-tile--coral .smh-tile { background: var(--tile); color: var(--text); }

.smh-bento, .smh .e-con.smh-bento {
	display: grid;
	gap: var(--smh-gap);
	grid-template-columns: repeat(12, minmax(0, 1fr));
	background: none; border: 0; padding: 0;
}
.smh .e-con.smh-bento > * { grid-column: span 12; }
.smh .e-con.smh-bento--2 > * { grid-column: span 6; }
.smh .e-con.smh-bento--3 > * { grid-column: span 4; }
.smh .e-con.smh-bento--4 > * { grid-column: span 3; }
.smh .e-con.smh-bento--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.smh .e-con.smh-bento--5 > * { grid-column: span 1; }
.smh .e-con.smh-bento--split > :first-child { grid-column: span 5; }
.smh .e-con.smh-bento--split > :last-child { grid-column: span 7; }
.smh .e-con.smh-bento--split-r > :first-child { grid-column: span 4; }
.smh .e-con.smh-bento--split-r > :last-child { grid-column: span 8; }
.smh .e-con.smh-pagehead.smh-bento--split > * { grid-column: span 6; }

@media (max-width: 1024px) {
	.smh .e-con.smh-bento--4 > * { grid-column: span 6; }
	.smh .e-con.smh-bento--3 > * { grid-column: span 6; }
	.smh .e-con.smh-bento--split > *, .smh .e-con.smh-bento--split-r > * { grid-column: span 12 !important; }
	.smh .e-con.smh-bento--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.smh .e-con.smh-bento--5 > * { grid-column: span 2; }
	.smh .e-con.smh-bento--5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (max-width: 700px) {
	.smh .e-con.smh-bento > * { grid-column: span 12 !important; }
	.smh .e-con.smh-bento--5 > * { grid-column: span 3 !important; }
	.smh .e-con.smh-bento--5 > :last-child { grid-column: span 6 !important; }
}

/* ---------- typography ---------- */
.smh-display, .smh .smh-display .elementor-heading-title {
	font-family: var(--font);
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.06;
	font-size: clamp(2.2rem, 4.6vw, 4rem);
	color: inherit;
	text-wrap: balance;
	margin: 0;
}
.smh .smh-display--xl .elementor-heading-title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.04; }
.smh .smh-display--lg .elementor-heading-title { font-size: clamp(2.3rem, 5vw, 4.3rem); }
.smh .smh-display--md .elementor-heading-title { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.smh .smh-h2 .elementor-heading-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: inherit; }
.smh .smh-h3 .elementor-heading-title, .smh-h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: inherit; font-family: var(--font); }
.smh .elementor-widget-text-editor { color: inherit; font-family: var(--font); font-size: inherit; line-height: inherit; }
.smh-lead, .smh .smh-lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.smh .smh-text { color: var(--muted); }
.smh .smh-text--invert { color: color-mix(in srgb, currentColor 78%, transparent); }
.smh-tile--ink .smh-text, .smh-tile--violet .smh-text { color: var(--muted); }

.smh-eyebrow, .smh-label {
	font-family: var(--mono);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	display: inline-flex; align-items: center; gap: 8px;
}
.smh-eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; display: inline-block; }
.smh-label { color: var(--muted); }
.smh-num { font-family: var(--mono); font-weight: 700; font-size: 13px; color: var(--muted); }
.smh-accent-dot { color: var(--violet); }
.smh-tile--accent .smh-accent-dot { color: var(--ink); }

/* ---------- buttons ---------- */
.smh-btn,
.smh .smh-ebtn .elementor-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--mono); font-weight: 700; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase;
	line-height: 1.1;
	padding: 14px 20px;
	background: var(--tile);
	color: var(--text);
	border: var(--bw) solid var(--ink);
	border-radius: var(--radius);
	box-shadow: var(--sh) var(--sh) 0 var(--ink);
	text-decoration: none;
	cursor: pointer;
	transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
	white-space: nowrap;
	fill: currentColor;
}
@media (prefers-color-scheme: dark) {
	.smh-btn, .smh .smh-ebtn .elementor-button { border-color: var(--text); box-shadow: var(--sh) var(--sh) 0 #000; }
}
.smh-btn:hover, .smh .smh-ebtn .elementor-button:hover,
.smh-btn:focus-visible, .smh .smh-ebtn .elementor-button:focus-visible {
	transform: translate(-2px, -2px);
	box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 var(--ink);
	color: var(--text);
}
.smh-btn:active, .smh .smh-ebtn .elementor-button:active { transform: translate(var(--sh), var(--sh)); box-shadow: 0 0 0 var(--ink); }
.smh-btn--accent, .smh .smh-ebtn--accent .elementor-button { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
.smh-btn--accent:hover, .smh .smh-ebtn--accent .elementor-button:hover { color: var(--on-accent); }
.smh-btn--ink, .smh .smh-ebtn--ink .elementor-button { background: var(--ink); color: #f4f1ea; border-color: var(--ink); }
.smh-btn--ink:hover, .smh .smh-ebtn--ink .elementor-button:hover { color: #f4f1ea; }
.smh .smh-ebtn--ghost-invert .elementor-button { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; text-transform: none; }
.smh .smh-ebtn--ghost-invert .elementor-button:hover { color: inherit; box-shadow: none; background: color-mix(in srgb, currentColor 10%, transparent); }
.smh-btn--lg, .smh .smh-ebtn--lg .elementor-button { padding: 17px 24px; font-size: 14.5px; }
.smh-btn--sm { padding: 9px 13px; font-size: 12px; box-shadow: 3px 3px 0 #111; }
.smh-btn--sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.smh-tile--ink .smh-btn--accent, .smh .smh-tile--ink .smh-ebtn--accent .elementor-button { box-shadow: var(--sh) var(--sh) 0 var(--accent); border-color: var(--accent); }
.smh-tile--ink .smh-btn--accent { box-shadow: none; }
.smh .smh-tile--ink .smh-ebtn--accent .elementor-button { box-shadow: none; }
.smh .smh-tile--ink .smh-ebtn--accent .elementor-button:hover { box-shadow: var(--sh) var(--sh) 0 color-mix(in srgb, var(--accent) 45%, transparent); }
.smh .elementor-button .elementor-button-content-wrapper { gap: 8px; }

.smh-actions, .smh .e-con.smh-actions { display: flex; flex-flow: row wrap; gap: 14px; align-items: center; }
.smh .e-con.smh-actions > .elementor-widget { width: auto; }

.smh-tag {
	display: inline-flex; align-items: center; gap: 6px;
	font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	padding: 6px 10px; border: 1.5px dashed currentColor; border-radius: var(--radius); color: var(--muted);
}
.smh-i { flex: none; }

/* ---------- chips ---------- */
.smh-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.smh-chip {
	font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
	padding: 4px 8px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--tile); color: var(--text); line-height: 1.3;
}
.smh-chips--lg .smh-chip { font-size: 13px; padding: 7px 11px; }
.smh-tile--accent .smh-chip, .smh-tile--coral .smh-chip { border-color: var(--ink); background: rgb(255 255 255 / .55); color: #111; }

/* ---------- availability badge ---------- */
.smh-badge {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	padding: 8px 12px; background: var(--ink); color: #f4f1ea; border-radius: var(--radius);
}
@media (prefers-color-scheme: dark) { .smh-badge { background: var(--tile-2); border: 1.5px solid var(--line); } }
.smh-badge__dot { width: 9px; height: 9px; border-radius: 50%; background: #3ee06c; box-shadow: 0 0 0 0 rgb(62 224 108 / .6); }
@media (prefers-reduced-motion: no-preference) { .smh-badge__dot { animation: smh-ping 2s infinite; } }
@keyframes smh-ping { 70% { box-shadow: 0 0 0 9px rgb(62 224 108 / 0); } 100% { box-shadow: 0 0 0 0 rgb(62 224 108 / 0); } }

/* ---------- header ---------- */
.smh-header {
	position: sticky; top: 0; z-index: 100;
	padding-top: var(--smh-gap);
	background: linear-gradient(var(--paper) 70%, transparent);
}
.admin-bar .smh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .smh-header { top: 0; } }
.smh-header__bar {
	display: flex; align-items: stretch;
	background: var(--tile);
	border: var(--bw) solid var(--line);
	border-radius: var(--radius);
	min-height: 64px;
}
.smh-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.smh-header .smh-logo { padding: 0 18px 0 0; border-right: var(--bw) solid var(--line); }
.smh-logo__mark {
	display: grid; place-items: center; align-self: stretch;
	min-width: 64px; padding: 0 14px;
	background: var(--accent); color: var(--on-accent);
	font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.smh-header .smh-logo__mark { border-right: var(--bw) solid var(--line); }
.smh-footer .smh-logo__mark { min-height: 44px; border: var(--bw) solid var(--ink); border-radius: var(--radius); }
.smh-logo__text { font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }

.smh-nav { flex: 1; display: flex; align-items: center; justify-content: center; }
.smh-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.smh-nav__list a {
	display: block; padding: 10px 14px; text-decoration: none;
	font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
	border-radius: var(--radius); border: 1.5px solid transparent;
}
.smh-nav__list a:hover { border-color: var(--line); }
.smh-nav__list .current-menu-item > a,
.smh-nav__list .current_page_item > a { background: var(--ink); color: #f4f1ea; }
@media (prefers-color-scheme: dark) { .smh-nav__list .current-menu-item > a, .smh-nav__list .current_page_item > a { background: var(--accent); color: var(--on-accent); } }
.smh-nav__cta { display: none; }

.smh-header__actions { display: flex; align-items: center; gap: 10px; padding: 0 10px; border-left: var(--bw) solid var(--line); }
.smh-header__cta { box-shadow: none; padding: 11px 16px; }
.smh-header__cta:hover { box-shadow: 3px 3px 0 #111; }
.smh .smh-iconbtn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
	background: var(--tile); color: var(--text); border: var(--bw) solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.smh .smh-iconbtn:hover, .smh .smh-iconbtn:focus { background: var(--accent); color: var(--on-accent); }
.smh-burger { display: none !important; }

@media (max-width: 900px) {
	.smh-burger { display: inline-grid !important; }
	.smh-header__cta { display: none; }
	.smh-header__bar { position: relative; justify-content: space-between; }
	.smh-header__actions { border-left: 0; }
	.smh-header .smh-logo { border-right: 0; }
	.smh-nav {
		position: absolute; top: calc(100% + 8px); left: -2px; right: -2px;
		display: none; flex-direction: column; align-items: stretch; gap: 14px;
		padding: 16px; background: var(--tile); border: var(--bw) solid var(--line); border-radius: var(--radius);
		box-shadow: var(--sh) var(--sh) 0 var(--shadow);
	}
	.smh-nav.is-open { display: flex; }
	.smh-nav__list { flex-direction: column; }
	.smh-nav__list a { padding: 14px; font-size: 15px; border-color: var(--line); }
	.smh-nav__cta { display: inline-flex; }
}
@media (max-width: 420px) { .smh-logo__text { font-size: 12.5px; } .smh-logo__mark { min-width: 52px; } }

/* ---------- hero ---------- */
.smh .e-con.smh-hero > .smh-hero__main { grid-column: span 7; gap: 24px; justify-content: center; padding-block: clamp(32px, 5vw, 64px); }
.smh .e-con.smh-hero > .smh-hero__side { grid-column: span 5; justify-content: center; align-items: center; overflow: hidden; }
@media (max-width: 1024px) { .smh .e-con.smh-hero > * { grid-column: span 12 !important; } }
.smh .e-con.smh-hero__connect { flex-direction: row; align-items: center; gap: 14px; margin-top: 6px; }
.smh .e-con.smh-hero__connect > .elementor-widget { width: auto; }
.smh .smh-hero__main .elementor-widget-shortcode:first-child { width: auto; }

.smh-socials { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; }
.smh-socials a {
	display: grid; place-items: center; width: 42px; height: 42px;
	border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--tile);
	box-shadow: 3px 3px 0 var(--shadow); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.smh-socials a:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--shadow); background: var(--accent); color: var(--on-accent); }

.smh-code {
	width: 100%; max-width: 460px;
	background: #15131f; color: #e8e6f5;
	border: var(--bw) solid var(--ink); border-radius: var(--radius);
	box-shadow: 10px 10px 0 var(--ink);
	font-family: var(--mono); font-size: clamp(12px, 1.1vw, 14px); line-height: 1.75;
	transform: rotate(-1.5deg);
}
.smh-code__bar { display: flex; gap: 7px; align-items: center; padding: 10px 14px; border-bottom: 1px solid #2c2940; }
.smh-code__bar i, .smh-browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.smh-code__bar i:nth-child(2), .smh-browser__bar i:nth-child(2) { background: #febc2e; }
.smh-code__bar i:nth-child(3), .smh-browser__bar i:nth-child(3) { background: #28c840; }
.smh-code__bar span { margin-left: 8px; color: #8e89ad; font-size: 12px; }
.smh-code pre { margin: 0; padding: 18px 20px 22px; background: none; color: inherit; font: inherit; white-space: pre; overflow-x: auto; border: 0; }
.smh-code code { font: inherit; background: none; color: inherit; padding: 0; }
.smh-code .k { color: #c792ea; } .smh-code .v { color: #82aaff; } .smh-code .s { color: #c8f031; } .smh-code .g { color: #3ee06c; }
.smh-caret { display: inline-block; width: 8px; height: 1.1em; background: #c8f031; vertical-align: text-bottom; margin-left: 4px; }
@media (prefers-reduced-motion: no-preference) { .smh-caret { animation: smh-blink 1.1s steps(1) infinite; } }
@keyframes smh-blink { 50% { opacity: 0; } }
.smh-hero__side .elementor-widget-html { position: relative; display: grid; place-items: center; padding: 20px 10px 40px; }
.smh-sticker {
	position: absolute; right: 4%; bottom: 0;
	display: flex; gap: 8px; align-items: center;
	background: var(--violet); color: #fff; border: var(--bw) solid var(--ink); border-radius: var(--radius);
	padding: 10px 14px; font-family: var(--mono); font-weight: 700; font-size: 13px; letter-spacing: .06em;
	box-shadow: 4px 4px 0 var(--ink); transform: rotate(3deg);
}

/* ---------- marquee ---------- */
.smh .e-con.smh-marquee-w { padding: 0; }
.smh-marquee {
	display: flex; overflow: hidden;
	background: var(--ink); color: #f4f1ea;
	border: var(--bw) solid var(--ink); border-radius: var(--radius);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
@media (prefers-color-scheme: dark) { .smh-marquee { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } }
.smh-marquee__track { list-style: none; margin: 0; padding: 16px 0; display: flex; flex: none; gap: 0; min-width: 100%; justify-content: space-around; }
.smh-marquee__track li { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: 15px; letter-spacing: .06em; white-space: nowrap; padding: 0 22px; display: flex; align-items: center; gap: 44px; }
.smh-marquee__track li::after { content: "✦"; color: var(--accent); }
@media (prefers-color-scheme: dark) { .smh-marquee__track li::after { color: var(--ink); } }
@media (prefers-reduced-motion: no-preference) {
	.smh-marquee__track { animation: smh-marquee 40s linear infinite; }
	.smh-marquee:hover .smh-marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
	.smh-marquee__track { flex-wrap: wrap; justify-content: center; min-width: 0; }
	.smh-marquee__track[aria-hidden] { display: none; }
}
@keyframes smh-marquee { to { transform: translateX(-100%); } }

/* ---------- stats ---------- */
.smh .e-con.smh-stat { gap: 6px; justify-content: space-between; padding: clamp(18px, 2.2vw, 28px); }
.smh .smh-stat__num .elementor-heading-title, .smh-stat__num {
	font-family: var(--font); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-size: clamp(2.1rem, 3.8vw, 3.4rem); color: inherit; display: block;
}
.smh .smh-stat__label, .smh-stat__label { font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); line-height: 1.4; }
.smh .e-con.smh-stats > .smh-stat:nth-child(1) { background: var(--accent); color: var(--on-accent); --muted: #2f3a07; }
.smh .e-con.smh-stats > .smh-stat:nth-child(4) { background: var(--violet); color: #fff; --muted: #ffffff; }

/* ---------- section heads ---------- */
.smh .e-con.smh-sechead { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; }
.smh .e-con.smh-sechead__text { gap: 12px; width: auto; flex: 1 1 320px; }
.smh .e-con.smh-sechead > .elementor-widget-button { width: auto; }
.smh .e-con.smh-section:not(.smh-bento) { gap: 24px; }

/* ---------- project cards ---------- */
.smh-grid { display: grid; gap: clamp(18px, 2.4vw, 32px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.smh-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }

.smh-card {
	position: relative;
	display: flex; flex-direction: column;
	background: var(--tile);
	border: var(--bw) solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--sh) var(--sh) 0 var(--shadow);
	transition: transform .2s var(--ease), box-shadow .2s var(--ease);
	container-type: inline-size;
}
.smh-card:has(.smh-card__link:hover), .smh-card:has(.smh-card__link:focus-visible) {
	transform: translate(-3px, -3px);
	box-shadow: calc(var(--sh) + 4px) calc(var(--sh) + 4px) 0 var(--shadow);
}
.smh-card:has(.smh-card__link:focus-visible) { outline: 3px solid var(--violet); outline-offset: 4px; }
.smh-card__link { text-decoration: none; }
.smh-card__link:focus-visible { outline: none; }
.smh-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
/* Independent actions stay above the stretched link */
.smh-card a:not(.smh-card__link), .smh-card button { position: relative; z-index: 2; }

.smh-browser { border-bottom: var(--bw) solid var(--line); background: var(--tile-2); overflow: hidden; }
.smh-card .smh-browser { border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0; }
.smh-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1.5px solid var(--line); background: var(--tile); }
.smh-browser__bar i { width: 9px; height: 9px; }
.smh-browser__bar span {
	margin-left: 8px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	font-family: var(--mono); font-size: 11px; color: var(--muted);
	background: var(--tile-2); border-radius: 999px; padding: 3px 10px;
}
.smh-card .smh-browser__screen { aspect-ratio: 16 / 10; overflow: hidden; }
.smh-card .smh-scrollshot {
	display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 0%;
	transition: object-position 1.2s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
	.smh-card:hover .smh-scrollshot { object-position: 50% 100%; transition-duration: 6s; transition-timing-function: linear; }
}
.smh-card__body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px; flex: 1; }
.smh-card__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.smh-card__year { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 4px; }
.smh-card__title { font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; margin: 0; }
.smh-card__text { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.smh-card__actions { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.smh-card__more { font-family: var(--mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; display: inline-flex; align-items: center; gap: 6px; }
.smh-card__more .smh-i { transition: transform .2s var(--ease); }
.smh-card:hover .smh-card__more .smh-i { transform: translateX(4px); }
.smh-card__nda { font-size: 10.5px; }
@container (min-width: 520px) {
	.smh-card__title { font-size: 1.6rem; }
}

/* filters */
.smh-filters ul { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smh-filter {
	display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
	padding: 9px 14px; border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--tile);
	font-family: var(--mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.smh-filter span { font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--tile-2); }
.smh-filter:hover { background: var(--tile-2); }
.smh .smh-filter.is-active { background: var(--ink); color: #f4f1ea; border-color: var(--ink); }
@media (prefers-color-scheme: dark) { .smh .smh-filter.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); } }
.smh-filter.is-active span { background: rgb(255 255 255 / .18); }
.smh-card[hidden] { display: none; }

/* ---------- accordion (details) ---------- */
.smh-acc { display: flex; flex-direction: column; gap: 10px; }
.smh-acc__item { border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--tile); }
.smh-tile .smh-acc__item { background: var(--paper); }
.smh-acc__item[open] { background: var(--accent); color: var(--on-accent); --muted: #2f3a07; }
.smh-acc__item[open] .smh-chip { background: rgb(255 255 255 / .55); border-color: var(--ink); color: #111; }
.smh-acc__item summary {
	list-style: none; cursor: pointer;
	display: flex; align-items: center; gap: 14px;
	padding: 18px 20px;
	font-weight: 700; font-size: clamp(1.05rem, 1.5vw, 1.3rem); letter-spacing: -.01em;
}
.smh-acc__item summary::-webkit-details-marker { display: none; }
.smh-acc__item summary:hover .smh-acc__title { text-decoration: underline; text-underline-offset: 4px; }
.smh-acc__icon {
	position: relative; flex: none; width: 28px; height: 28px; border: var(--bw) solid currentColor; border-radius: var(--radius);
}
.smh-acc__icon::before, .smh-acc__icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; background: currentColor; }
.smh-acc__icon::after { rotate: 90deg; }
.smh-acc__item[open] .smh-acc__icon::after { rotate: 0deg; }
@media (prefers-reduced-motion: no-preference) { .smh-acc__icon::after { transition: rotate .2s; } }
.smh-acc__body { padding: 0 20px 20px 62px; }
.smh-acc__body p { color: var(--muted); }
.smh-acc__body .smh-chips { margin-top: 12px; }
.smh-acc__item::details-content { interpolate-size: allow-keywords; overflow: clip; contain: layout; }
.smh-acc__item:not([open])::details-content { block-size: 0; }
@media (prefers-reduced-motion: no-preference) {
	.smh-acc__item::details-content { transition: block-size .3s ease-in-out, content-visibility .3s allow-discrete, display .3s allow-discrete; }
}
@media (max-width: 600px) { .smh-acc__body { padding-left: 20px; } }

/* ---------- services intro / steps ---------- */
.smh .e-con.smh-services__intro, .smh .e-con.smh-exp__intro { gap: 20px; }
.smh .e-con.smh-services__intro > .elementor-widget-button,
.smh .e-con.smh-exp__intro > .elementor-widget-button,
.smh .e-con.smh-tile > .elementor-widget-button { width: auto; align-self: flex-start; margin-top: 8px; }
.smh .e-con.smh-step, .smh .e-con.smh-svc { gap: 12px; }
.smh .e-con.smh-step .smh-num, .smh .e-con.smh-svc .smh-num {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--bw) solid var(--line);
	border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: 14px;
}
.smh .e-con.smh-process .smh-step:nth-child(2) .smh-num { background: var(--coral); }
.smh .e-con.smh-process .smh-step:nth-child(3) .smh-num { background: var(--violet); color: #fff; }
.smh .e-con.smh-process .smh-step:nth-child(4) .smh-num { background: var(--ink); color: #f4f1ea; }
.smh .smh-step .elementor-widget-text-editor, .smh .smh-svc .elementor-widget-text-editor { color: var(--muted); font-size: 15.5px; }

/* ---------- experience timeline ---------- */
.smh .e-con.smh-tl { gap: 0; padding-left: calc(var(--pad) + 18px); }
.smh .e-con.smh-tl::before { content: ""; position: absolute; left: calc(var(--pad) + 4px); top: calc(var(--pad) + 8px); bottom: calc(var(--pad) + 8px); width: 2px; height: auto; background: var(--line); }
.smh .e-con.smh-tl__item { gap: 6px; padding: 0 0 26px 18px; position: relative; }
.smh .e-con.smh-tl__item:last-child { padding-bottom: 0; }
.smh .e-con.smh-tl__item::before { content: ""; position: absolute; left: -20px; top: 6px; width: 14px; height: 14px; background: var(--accent); border: var(--bw) solid var(--ink); border-radius: 50%; }
.smh-tl__at { color: var(--muted); font-weight: 500; }
.smh .smh-tl__item .elementor-widget-text-editor { color: var(--muted); font-size: 15.5px; }
.smh .smh-tl__when { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 6px; }

/* ---------- CTA band ---------- */
.smh .e-con.smh-cta-band, .smh-cta-band {
	align-items: flex-start; gap: 22px;
	padding-block: clamp(40px, 6vw, 80px);
	background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
	background-size: 32px 32px;
	overflow: hidden;
}
@media (prefers-color-scheme: dark) { .smh .e-con.smh-cta-band, .smh-cta-band { background-image: linear-gradient(rgb(0 0 0 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(0 0 0 / .05) 1px, transparent 1px); } }
.smh .e-con.smh-cta-band::after, .smh-cta-band::after {
	content: ""; position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; background: var(--accent);
	clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.smh .smh-cta-band .elementor-heading-title, .smh-cta-band h2 { max-width: 16ch; }
.smh .smh-cta-band .elementor-widget-text-editor, .smh-cta-band p { max-width: 56ch; font-size: 1.1rem; }

/* ---------- page heads ---------- */
.smh .e-con.smh-pagehead > :first-child, .smh-pagehead { gap: 22px; padding-block: clamp(36px, 5vw, 64px); }
.smh .e-con.smh-pagehead__aside { justify-content: center; }
.smh-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.smh-checklist li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--tile); color: var(--text); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--ink); }
.smh-checklist li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; flex: none; background: var(--ink); color: var(--accent); font-size: 14px; border-radius: 3px; }

.smh-mono { display: grid; gap: 22px; }
.smh-mono__initials {
	display: grid; place-items: center; aspect-ratio: 1; width: min(100%, 220px);
	background: var(--ink); color: var(--accent); border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--ink);
	font-family: var(--mono); font-weight: 700; font-size: clamp(4rem, 9vw, 6.5rem); letter-spacing: -.06em; rotate: -2deg;
}
.smh-mono__facts { margin: 0; display: grid; gap: 0; border: var(--bw) solid var(--ink); border-radius: var(--radius); background: var(--tile); color: var(--text); }
.smh-mono__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1.5px solid var(--line); }
.smh-mono__facts div:last-child { border-bottom: 0; }
.smh-mono__facts dt { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.smh-mono__facts dd { margin: 0; font-weight: 600; }

.smh-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.smh-list li { display: grid; gap: 2px; padding-left: 16px; border-left: 4px solid var(--accent); }
.smh-list strong { font-size: 1.15rem; }
.smh-list span { color: var(--muted); font-size: 15px; }

/* ---------- contact ---------- */
.smh-contact { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 0; border: var(--bw) solid var(--line); border-radius: var(--radius); background: var(--tile); }
.smh-contact li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1.5px solid var(--line); overflow-wrap: break-word; min-width: 0; }
.smh-contact li:last-child { border-bottom: 0; }
.smh-contact a { font-weight: 700; }
@media (max-width: 480px) { .smh-contact li { grid-template-columns: 1fr; gap: 2px; } }
.smh .e-con.smh-contact__form { gap: 18px; }

/* Elementor Pro form */
.smh .smh-form .elementor-form-fields-wrapper { margin: 0 -8px; }
.smh .smh-form .elementor-field-group { padding: 0 8px; margin-bottom: 16px; }
.smh .smh-form .elementor-field-label { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--on-accent); margin-bottom: 6px; }
.smh .smh-form .elementor-field-textual,
.smh .smh-form .elementor-select-wrapper select {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font-family: var(--font); font-size: 16px; color: #111;
	background: #fffdf8; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: none;
}
.smh .smh-form textarea.elementor-field-textual { min-height: 140px; }
.smh .smh-form .elementor-field-textual:focus, .smh .smh-form select:focus { outline: 3px solid var(--violet); outline-offset: 1px; box-shadow: 4px 4px 0 var(--ink); }
.smh .smh-form .elementor-select-wrapper .select-caret-down-wrapper { color: #111; }
.smh .smh-form .elementor-field-type-submit { margin-top: 6px; }
.smh .smh-form .elementor-button[type="submit"] {
	width: 100%; min-height: 54px; justify-content: center;
	font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 14.5px;
	background: var(--ink); color: #f4f1ea; border: var(--bw) solid var(--ink); border-radius: var(--radius);
	box-shadow: var(--sh) var(--sh) 0 rgb(17 17 17 / .35); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.smh .smh-form .elementor-button[type="submit"]:hover { transform: translate(-2px, -2px); box-shadow: calc(var(--sh) + 2px) calc(var(--sh) + 2px) 0 rgb(17 17 17 / .45); }
.smh .smh-form .elementor-message {
	position: relative; margin: 14px 0 0; padding: 14px 16px 14px 52px;
	font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.45; color: #111;
	background: #fffdf8; border: var(--bw) solid #111; border-radius: var(--radius); box-shadow: 4px 4px 0 #111;
}
.smh .smh-form .elementor-message::before {
	content: "!"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
	width: 28px; height: 28px; display: grid; place-items: center; margin: 0;
	font: 700 15px/1 var(--mono); color: #111; background: var(--coral); border: 2px solid #111; border-radius: 4px;
}
.smh .smh-form .elementor-message-success::before { content: "✓"; background: var(--accent); }
.smh .smh-form .elementor-message-danger, .smh .smh-form .elementor-message.elementor-help-inline { background: #ffe9e2; }
.smh .smh-form .elementor-field-group .elementor-message { margin-top: 8px; padding: 8px 12px 8px 44px; font-size: 13.5px; box-shadow: 3px 3px 0 #111; }
.smh .smh-form .elementor-field-group .elementor-message::before { width: 22px; height: 22px; left: 10px; font-size: 12px; }
.smh .smh-form .elementor-button[type="submit"]:disabled { opacity: .7; cursor: progress; }

/* Post-submit panel (built by portfolio.js) */
.smh-sent {
	display: grid; justify-items: start; gap: 10px; padding: clamp(22px, 3vw, 32px);
	background: #fffdf8; color: #111; border: var(--bw) solid #111; border-radius: var(--radius);
	box-shadow: var(--sh) var(--sh) 0 #111; outline: 0; animation: smh-sent-in .45s var(--ease) both;
}
.smh-sent__icon { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: #111; border: var(--bw) solid #111; border-radius: var(--radius); box-shadow: 4px 4px 0 #111; margin-bottom: 6px; }
.smh-sent__eyebrow { margin: 0; color: #111; font: 700 12px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.smh-sent__title { margin: 0; color: #111; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.08; letter-spacing: -.02em; }
.smh-sent__text { margin: 0; color: #4a4842; font-size: 16px; line-height: 1.6; max-width: 46ch; }
.smh-sent__text strong { color: #111; overflow-wrap: anywhere; }
.smh-sent__steps { list-style: none; margin: 8px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.smh-sent__steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font: 700 12.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: #111; border: 2px solid #111; border-radius: 999px; background: #fff; }
.smh-sent__steps b { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; background: var(--accent); border: 2px solid #111; border-radius: 999px; font-size: 11px; }
.smh-sent__again {
	margin-top: 6px; min-height: 48px; padding: 0 18px; cursor: pointer;
	font: 700 13.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
	background: #111; color: #f4f1ea; border: var(--bw) solid #111; border-radius: var(--radius);
	box-shadow: 4px 4px 0 rgb(17 17 17 / .35); transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.smh-sent__again:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 rgb(17 17 17 / .45); }
.smh-sent__again:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
@keyframes smh-sent-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .smh-sent { animation: none; } }

/* ---------- single project ---------- */
.smh-case__hero { align-items: stretch; }
.smh-case__intro { grid-column: span 6; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding-block: clamp(36px, 5vw, 64px); }
.smh-case__preview { grid-column: span 6; display: grid; place-items: center; }
.smh-case__title { font-weight: 700; letter-spacing: -.035em; font-size: clamp(2.3rem, 5vw, 4.2rem); text-wrap: balance; line-height: 1.06; }
.smh-crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.smh-crumbs a { text-decoration: none; border-bottom: 2px solid var(--accent); }
.smh-crumbs span { color: var(--muted); }

.smh-browser--lg { width: 100%; max-width: 620px; border: var(--bw) solid var(--ink); border-radius: var(--radius); box-shadow: 10px 10px 0 var(--ink); background: #fff; }
.smh-browser--lg .smh-browser__bar { background: #fffdf8; border-color: var(--ink); }
.smh-browser--lg .smh-browser__bar span { background: #ece8de; color: #57554f; }
.smh-browser--lg .smh-browser__screen { --frame-h: clamp(300px, 42vw, 520px); height: var(--frame-h); overflow: hidden; position: relative; }
.smh-browser--lg .smh-scrollshot {
	display: block; width: 100%; height: auto;
	min-height: 100%; object-fit: cover; object-position: 50% 0; /* short screenshots still fill the frame */
	transition: transform 1.2s var(--ease);
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
	.smh-browser--lg:hover .smh-scrollshot, .smh-browser--lg .smh-browser__screen:focus-visible .smh-scrollshot {
		transform: translateY(calc(-100% + var(--frame-h))); transition-duration: 9s; transition-timing-function: linear;
	}
}
@media (hover: none) { .smh-browser--lg .smh-browser__screen { overflow-y: auto; overscroll-behavior: contain; } }

.smh-case__facts > .smh-facts { grid-column: span 7; }
.smh-case__facts > .smh-stack { grid-column: span 5; display: flex; flex-direction: column; gap: 14px; }
.smh-case__facts > :only-child { grid-column: span 12; }
.smh-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.smh-facts dt { font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.smh-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.35; }

.smh-results > .smh-stat { grid-column: span 4; display: flex; flex-direction: column; gap: 8px; }
.smh-results > .smh-stat:first-child { background: var(--accent); color: var(--on-accent); --muted: #2f3a07; }
.smh-results > .smh-stat:nth-child(2) { background: var(--inv-bg); color: var(--inv-fg); --muted: color-mix(in srgb, var(--inv-fg) 70%, transparent); }

.smh-story > .smh-tile { grid-column: span 6; }
.smh-prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; margin: 10px 0 14px; }
.smh-prose p, .smh-prose li { color: var(--muted); font-size: 1.05rem; }
.smh-prose strong { color: var(--text); }
.smh .smh-prose .elementor-widget-text-editor strong { color: var(--text); }

.smh-gallery { display: flex; flex-direction: column; gap: 18px; }
.smh-gallery__grid { display: grid; gap: var(--smh-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.smh-gallery__item { margin: 0; border: var(--bw) solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--tile-2); }
.smh-gallery__item:first-child { grid-column: 1 / -1; }
.smh-gallery__item a { display: block; }
.smh-gallery__item img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.smh-gallery__item:not(:first-child) img { aspect-ratio: 1103 / 726; object-fit: cover; object-position: top; }
@media (hover: hover) { .smh-gallery__item a:hover img { transform: scale(1.03); } }
@media (max-width: 700px) { .smh-gallery__grid { grid-template-columns: 1fr; } }

.smh-quote { margin: 0; }
.smh-quote blockquote { margin: 0 0 18px; font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.smh-quote blockquote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--accent); }

.smh-case__end > .smh-next { grid-column: span 7; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; transition: background .2s; }
.smh-case__end > .smh-next:hover { background: var(--tile-2); }
.smh-case__end > :only-child { grid-column: span 12; }
.smh-next__title { font-size: clamp(1.6rem, 3.2vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; display: flex; align-items: center; gap: 14px; }
.smh-next__title .smh-i { width: 32px; height: 32px; transition: transform .2s var(--ease); }
.smh-next:hover .smh-next__title .smh-i { transform: translateX(6px); }
.smh-case__end > .smh-cta-mini { grid-column: span 5; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 22px; }
.smh-cta-mini h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.1; }

/* archive */
.smh-pagehead { display: flex; flex-direction: column; align-items: flex-start; }
.smh-archive__body { padding: clamp(20px, 3vw, 36px); }
.smh-cta-band { display: flex; flex-direction: column; }

@media (max-width: 900px) {
	.smh-case__intro, .smh-case__preview, .smh-case__facts > *, .smh-story > .smh-tile, .smh-case__end > * { grid-column: span 12 !important; }
	.smh-results > .smh-stat { grid-column: span 12; }
	.smh-gallery__grid { grid-template-columns: 1fr; }
}
@media (min-width: 560px) and (max-width: 900px) { .smh-results > .smh-stat { grid-column: span 4; } }

.smh .nav-links { display: flex; gap: 8px; margin-top: 28px; }
.smh .page-numbers { padding: 8px 12px; border: var(--bw) solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--mono); font-weight: 700; }
.smh .page-numbers.current { background: var(--accent); color: var(--on-accent); }

/* ---------- footer ---------- */
.smh-footer {
	margin-top: var(--smh-gap); margin-bottom: var(--smh-gap);
	background: var(--tile); border: var(--bw) solid var(--line); border-radius: var(--radius);
	padding: var(--pad) var(--pad) 0; overflow: hidden;
}
.smh-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.smh-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.smh-footer__brand p { color: var(--muted); max-width: 42ch; margin: 0; }
.smh-footer__h { font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.smh-footer__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.smh-footer__list a { text-decoration: none; font-weight: 600; }
.smh-footer__list a:hover { text-decoration: underline; }
.smh-footer__word {
	margin: 40px 0 0 !important; font-weight: 700; letter-spacing: -.06em; line-height: .78; white-space: nowrap;
	font-size: clamp(3.4rem, 11.4vw, 10.5rem); color: transparent; -webkit-text-stroke: 2px var(--text); text-transform: uppercase;
	user-select: none; translate: 0 .09em;
}
.smh-footer__bottom {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin: 0 calc(-1 * var(--pad)); padding: 16px var(--pad);
	border-top: var(--bw) solid var(--line); background: var(--accent); color: var(--on-accent);
	font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.smh-footer__bottom a { text-decoration: none; }
@media (max-width: 800px) { .smh-footer__grid { grid-template-columns: 1fr 1fr; } .smh-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .smh-footer__grid { grid-template-columns: 1fr; } }

.smh-empty { padding: 20px; border: 2px dashed var(--line); }

/* ---------- scroll reveal (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
	@supports ((animation-timeline: view()) and (animation-range: entry)) {
		@keyframes smh-rise { from { opacity: 0; translate: 0 28px; } }
		.smh .elementor > .e-con:not(.smh-hero):not(.smh-marquee-w),
		.smh-card,
		.smh-main > :not(:first-child) {
			animation: smh-rise auto linear backwards;
			animation-timeline: view();
			animation-range: entry 0% entry 45%;
		}
	}
}

@media print {
	.smh-header, .smh-footer, .smh-marquee { display: none; }
}

/* Fact lists sit on a neutral tile inside coloured tiles: restore readable muted text */
.smh-mono__facts, .smh-contact { --muted: color-mix(in srgb, var(--text) 62%, transparent); }

/* ---------- credits disclaimer ---------- */
.smh-note { scroll-margin-top: 120px; max-width: 72ch; margin-top: 6px; padding: 14px 18px; border: var(--bw) dashed var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--tile); font-size: .95rem; color: var(--muted); }
.smh-note strong { display: block; font-family: var(--mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text); margin-bottom: 4px; }
.smh-note p { margin: 0; }
.smh-case__credit { margin: 0; font-size: .875rem; color: var(--muted); max-width: 60ch; }
.smh-case__credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
