/* shamagnus: page-level styles that theme.json can't express. Loaded on both sites. */

/* Home hero: four words over a quote box, photo beside on wide screens. */
.sh-hero {
	container-type: inline-size;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 48px);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--60);
}
.sh-hero > * { margin: 0 !important; }

/* The four words: thin caps, flame dividers, one line that scales with the space (max ~87% of the width). */
.sh-eyebrow {
	grid-column: 1 / -1;
	text-align: center;
	white-space: nowrap;
	font-family: var(--wp--preset--font-family--jost);
	font-weight: 200;
	text-transform: uppercase;
	letter-spacing: .2em;
	font-size: min(2rem, 4.2cqi);
	line-height: 1.2;
}
.sh-flame {
	display: inline-block;
	width: .62em;
	height: .78em;
	margin-inline: .32em .5em;
	vertical-align: -.04em;
	background: url("shamagnus-flame.svg") center / contain no-repeat;
}

/* The quote box: tinted panel, flame quotation mark, tagline as its title. */
.sh-quote {
	position: relative;
	background: #e8e0d5;
	padding: clamp(22px, 3vw, 32px) clamp(22px, 3vw, 36px) clamp(20px, 2.6vw, 28px) clamp(3.6rem, 7vw, 4.6rem);
	border-radius: 2px;
}
.sh-quote::before {
	content: "\201C";
	position: absolute;
	left: clamp(14px, 2vw, 20px);
	top: clamp(10px, 1.6vw, 16px);
	font-family: var(--wp--preset--font-family--gloock);
	font-size: clamp(4rem, 8vw, 5.5rem);
	line-height: 1;
	color: var(--wp--preset--color--flame);
}
.sh-quote > * + * { margin-block-start: 16px; }
.sh-quote .sh-quote-title {
	margin: 0 0 .55em;
	font-size: clamp(1.9rem, 3.8vw, 2.7rem);
	line-height: 1.08;
	text-wrap: balance;
}
.sh-quote p { margin: 0; }
.sh-quote p + p { margin-top: 1em; }
.sh-quote .sh-about-sign { margin-top: .6em; }
.sh-sign { font-style: italic; white-space: nowrap; margin-left: .2em; }

/* Photo: natural shape when stacked; beside the box on wide screens it fills the box height, sides cropped. */
.sh-hero-photo { margin: 0; }
.sh-hero-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 761px) {
	.sh-hero:has(.sh-hero-photo) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: stretch; }
	.sh-hero-photo { position: relative; min-height: 320px; }
	.sh-hero-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 52% 40%; }
}

/* Section headings: big Gloock, no ornament (the flame is kept for dividers and the title words). */
.sh-heading {
	margin: 0 0 14px;
	font-size: clamp(2.1rem, 4.2vw, 3rem);
	line-height: 1.05;
}

/* Poetry: text beside the Poetry Oracle screenshot on wide screens. */
.sh-poetry {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(24px, 4vw, 48px);
	align-items: center;
	padding-block: var(--wp--preset--spacing--50);
}
.sh-poetry > * { margin: 0 !important; }
.sh-poetry p { margin: 0; max-width: 40rem; }
@media (min-width: 761px) {
	.sh-poetry { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.sh-oracle a {
	display: block;
	max-width: 380px;
	margin-inline: auto;
	border-radius: 10px;
	overflow: hidden;
	background: #06060c;
	box-shadow: 0 10px 30px rgba(26, 20, 16, .18);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sh-oracle a:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26, 20, 16, .24); }
.sh-oracle a:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 3px; }
.sh-oracle img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .sh-oracle a { transition: none; } }

/* Events and Video Production: tinted boxes side by side. */
.sh-boxes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 24px;
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
}
.sh-boxes > * { margin: 0 !important; }
.sh-box {
	background: #e8e0d5;
	border-radius: 2px;
	padding: clamp(22px, 3vw, 36px);
}
.sh-box p { margin: 0; max-width: 44rem; }

/* Contact page: note under the form, and social links as outlined buttons with logos. */
.sh-form-note {
	margin-top: .75rem !important;
	font-size: .95rem;
	color: var(--wp--preset--color--accent-4);
}
.sh-social {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	margin: var(--wp--preset--spacing--60) 0 0;
	padding: 0;
}
.sh-social a {
	display: inline-flex;
	align-items: center;
	gap: .55em;
	padding: .6em 1.15em .6em .95em;
	border: 1px solid var(--wp--preset--color--contrast);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: color .15s ease, border-color .15s ease;
}
.sh-social a:hover,
.sh-social a:focus-visible { color: var(--wp--preset--color--flame); border-color: var(--wp--preset--color--flame); }
.sh-social a:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 2px; }
.sh-social svg { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }

/* Footer: Substack has no WordPress icon, so the generic link icon is swapped for the Substack logo. */
.wp-block-social-links .wp-social-link-chain svg { visibility: hidden; }
.wp-block-social-links .wp-social-link-chain a { position: relative; }
.wp-block-social-links .wp-social-link-chain a::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M4.5%203h15v2.3h-15zM4.5%207.3h15v2.3h-15zM4.5%2011.6h15V21L12%2016.8%204.5%2021z%27/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M4.5%203h15v2.3h-15zM4.5%207.3h15v2.3h-15zM4.5%2011.6h15V21L12%2016.8%204.5%2021z%27/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Menu: the page you're on gets a thin flame underline. */
.wp-block-navigation .sh-current .wp-block-navigation-item__label {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--flame);
	text-decoration-thickness: 1.5px;
	text-underline-offset: .35em;
}
.wp-block-navigation .sh-current .wp-block-navigation-item__content,
.wp-block-navigation .sh-current .wp-block-navigation-item__content:hover { text-decoration: none; }

/* Video site: boxes are a shade lighter than the ink background. */
.sh-video .sh-quote,
.sh-video .sh-box,
.sh-video .sh-project-thumb { background: #2a231d; }

/* Video front page: showreel, project boxes, then the quote box. */
.sh-video-front {
	--sh-sec-gap: clamp(80px, 9vw, 120px);
	display: grid;
	gap: var(--sh-sec-gap);
	padding-block: var(--wp--preset--spacing--40) var(--wp--preset--spacing--70);
}
.sh-video-front > * { margin: 0 !important; }
.sh-video-front .sh-quote { max-width: 46rem; }
.sh-projects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: clamp(20px, 3vw, 32px);
}
.sh-projects > * { margin: 0 !important; }
.sh-project > * + * { margin-block-start: 10px; }
.sh-project-thumb {
	aspect-ratio: 16 / 9;
	max-width: 100%;
	background: #e8e0d5;
	border-radius: 2px;
}
.sh-project h3 { margin-top: 14px; font-size: clamp(1.25rem, 2vw, 1.5rem); }
.sh-project p { margin: 0; color: var(--wp--preset--color--accent-4); }

/* Text for screen readers and search engines only. */
.sh-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.sh-visually-hidden + * { margin-block-start: 0 !important; }

/* Video Contact: form and Calendly side by side. */
.sh-contact-cols { margin-top: var(--wp--preset--spacing--50) !important; }
.sh-contact-cols .sh-heading { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.sh-calendly { min-width: 320px; height: 700px; border-radius: 2px; overflow: hidden; }

/* Video front: quote box with a photo beside it (stacked on phones). */
.sh-video-about { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.sh-video-about > * { margin: 0 !important; }
.sh-video-front .sh-video-about .sh-quote { max-width: none; }
.sh-video-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.sh-video-photo figcaption { margin-top: .6em; font-size: .9rem; line-height: 1.45; color: var(--wp--preset--color--accent-4); text-align: center; }
@media (min-width: 761px) {
	.sh-video-about { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}

/* Project boxes: the whole box is clickable via the title link. */
.sh-project { position: relative; }
.sh-project h3 a { color: inherit; text-decoration: none; }
.sh-project h3 a::after { content: ""; position: absolute; inset: 0; }
.sh-project:hover h3 a, .sh-project h3 a:focus-visible { text-decoration: underline; text-decoration-color: var(--wp--preset--color--flame); text-underline-offset: .2em; }
.sh-project .sh-project-thumb { transition: opacity .2s ease; }
.sh-project:hover .sh-project-thumb { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .sh-project .sh-project-thumb { transition: none; } }
.sh-project-thumb { overflow: hidden; }
.sh-project-thumb > * { margin: 0 !important; height: 100%; }
.sh-project-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Video front: a small flame centred in the gap between sections. */
.sh-video-front > * { position: relative; }
.sh-video-front > * + *::before {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--sh-sec-gap) / -2);
	width: 210px;
	max-width: 70%;
	height: 46px;
	transform: translate(-50%, -50%);
	background: url("divider-tapered-lines-3.png") center / contain no-repeat;
}

/* Video front: title over the solo projects, and the MISE section at the bottom. */
.sh-solo { display: grid; gap: clamp(18px, 2.6vw, 28px); }
.sh-solo > * { margin: 0 !important; }
.sh-solo-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); line-height: 1.1; }
.sh-mise { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.sh-mise > * { margin: 0 !important; }
.sh-mise-text { display: grid; gap: 16px; }
.sh-mise-text > * { margin: 0 !important; }
.sh-mise-text p { max-width: 36rem; font-size: var(--wp--preset--font-size--large); line-height: 1.5; }
.sh-mise-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; }
.sh-mise-title a { color: inherit; text-decoration: none; }
.sh-mise-title a:hover, .sh-mise-title a:focus-visible { text-decoration: underline; text-decoration-color: var(--wp--preset--color--flame); text-underline-offset: .15em; }
.sh-mise-photo a { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s ease; }
.sh-mise-photo a:hover { transform: translateY(-3px); }
.sh-mise-photo a:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 3px; }
.sh-mise-photo img { display: block; width: 100%; height: auto; }
@media (min-width: 761px) {
	.sh-mise { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.sh-mise-photo { order: -1; }
}
@media (prefers-reduced-motion: reduce) { .sh-mise-photo a { transition: none; } }

/* Client logo wall: a small slider, click or swipe. */
.sh-video-front > .sh-wall { justify-self: center; }
.sh-wall { width: 100%; max-width: 856px; display: grid; gap: 14px; }
.sh-wall-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; }
.sh-wall-track::-webkit-scrollbar { display: none; }
.sh-wall-track:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 4px; }
.sh-wall-track img { display: block; width: 100%; height: auto; scroll-snap-align: start; }
.sh-wall-ui { display: flex; align-items: center; justify-content: center; gap: 12px; }
.sh-wall-ui button { all: unset; box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; cursor: pointer; }
.sh-wall-ui button:hover { color: var(--wp--preset--color--flame); }
.sh-wall-ui button:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 2px; }
.sh-wall-ui button:disabled { opacity: .3; cursor: default; }
.sh-wall-dots { display: flex; gap: 7px; }
.sh-wall-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .3; display: block; }
.sh-wall-dots i.on { background: var(--wp--preset--color--flame); opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sh-wall-track { scroll-behavior: auto; } }

/* Rounded corners everywhere: the same radius as the MISE screenshot. */
:root { --sh-radius: 10px; }
.sh-quote, .sh-box, .sh-project-thumb, .sh-calendly { border-radius: var(--sh-radius); }
.wp-block-image img, .sh-hero-photo img, .sh-video-photo img { border-radius: var(--sh-radius); }
.sh-video-front > div[style*="padding:56.25%"] { border-radius: var(--sh-radius); overflow: hidden; }

/* Opening sentence of a quote box as a hook: headline font, larger. */
.sh-quote .sh-hook {
	font-family: var(--wp--preset--font-family--gloock);
	font-size: clamp(1.4rem, 2.35vw, 1.85rem);
	line-height: 1.2;
	letter-spacing: -.005em;
	text-wrap: balance;
}

/* Main home: title words nearer the top and further from the box and photo. */
.sh-hero { padding-top: 30px; }
.sh-eyebrow { padding-bottom: clamp(14px, 2.4vw, 26px); }

/* Main home: a divider centred in the gap between the three sections. */
:root { --sh-home-gap: clamp(80px, 10vw, 120px); }
.sh-hero { padding-bottom: 0; }
.sh-poetry,
.sh-boxes { position: relative; padding-top: 0; margin-top: var(--sh-home-gap) !important; }
.sh-poetry { padding-bottom: 0; }
.sh-poetry::before,
.sh-boxes::before {
	content: "";
	position: absolute;
	left: 50%;
	top: calc(var(--sh-home-gap) / -2);
	width: 210px;
	max-width: 70%;
	height: 46px;
	transform: translate(-50%, -50%);
	background: url("divider-tapered-lines-3.png") center / contain no-repeat;
}

/* Poetry: text starts level with the top of the (tall) Oracle card instead of floating in the middle. */
.sh-poetry { align-items: start; }

/* About: bio box with the photo beside it and the PS under the box; photo first on phones. */
.sh-about-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.sh-about-split > * { margin: 0 !important; }
.sh-about-split .sh-quote { max-width: none; }
.sh-about-photo img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .sh-about-photo { order: -1; } }
@media (min-width: 761px) {
	.sh-about-split { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.sh-about-split .sh-quote, .sh-about-split .sh-about-ps { grid-column: 1; }
	.sh-about-split .sh-about-photo { grid-column: 2; grid-row: 2; }
}

/* Contact intro: a tinted box with the first sentence as the hook. */
.sh-contact-intro {
	background: #e8e0d5;
	border-radius: var(--sh-radius);
	padding: clamp(24px, 3.5vw, 44px) clamp(22px, 4vw, 48px);
}
.sh-contact-intro > * { margin: 0 !important; max-width: 44rem; }
.sh-contact-intro > * + * { margin-top: 14px !important; }
.sh-contact-intro .sh-hook {
	font-family: var(--wp--preset--font-family--gloock);
	font-size: clamp(1.5rem, 2.7vw, 2.1rem);
	line-height: 1.2;
	letter-spacing: -.005em;
	text-wrap: balance;
}
.sh-video .sh-contact-intro { background: #2a231d; }

/* About: the four title words from the front page, smaller, above the bio and photo. */
.sh-about-split { container-type: inline-size; }
.sh-about-split .sh-eyebrow { font-size: min(1.4rem, 4.2cqi); }
@media (max-width: 760px) { .sh-about-split .sh-eyebrow { order: -2; } }

/* Showreel: own control bar (see site.js). Title top left, controls bottom right, both fade while playing. */
.sh-reel { color: #f2ede6; }
.sh-reel-hit { position: absolute; inset: 0; background: none; border: 0; padding: 0; cursor: pointer; }
.sh-reel-title { position: absolute; top: 0; left: 0; right: 0; margin: 0; padding: 18px 22px 40px; font-size: 1.05rem; pointer-events: none; background: linear-gradient(rgba(0,0,0,.55), transparent); transition: opacity .3s; }
.sh-reel-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); transition: opacity .3s; }
.sh-reel-row { display: flex; align-items: center; }
.sh-reel-gap { flex: 1; }
.sh-reel button:not(.sh-reel-hit) { background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; line-height: 0; border-radius: 0; }
.sh-reel button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-reel button svg .f { fill: currentColor; stroke: none; }
.sh-reel-volwrap { display: flex; align-items: center; }
.sh-reel-slider { -webkit-appearance: none; appearance: none; width: 0; opacity: 0; height: 14px; margin: 0; background: none; cursor: pointer; transition: width .2s, opacity .2s; }
.sh-reel-volwrap:hover .sh-reel-slider, .sh-reel-volwrap:focus-within .sh-reel-slider { width: 80px; opacity: 1; margin-right: 4px; }
.sh-reel-slider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, #D9482B var(--v, 100%), rgba(242,237,230,.35) var(--v, 100%)); }
.sh-reel-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #f2ede6; border: 0; }
.sh-reel-slider::-moz-range-track { height: 2px; background: rgba(242,237,230,.35); }
.sh-reel-slider::-moz-range-progress { height: 2px; background: #D9482B; }
.sh-reel-slider::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #f2ede6; border: 0; }
@media (hover: none) { .sh-reel-slider { display: none; } }
.sh-reel button:focus-visible, .sh-reel-progress:focus-visible { outline: 2px solid #D9482B; outline-offset: 2px; }
.sh-reel-progress { position: relative; height: 14px; margin: 0 10px; display: flex; align-items: center; cursor: pointer; }
.sh-reel-progress::before { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(242,237,230,.35); }
.sh-reel-progress i { position: relative; display: block; width: 0; height: 2px; background: #D9482B; }
.sh-reel.is-playing .sh-reel-title, .sh-reel.is-playing .sh-reel-bar { opacity: 0; }
.sh-reel.is-playing.is-shown .sh-reel-title, .sh-reel.is-playing.is-shown .sh-reel-bar { opacity: 1; }
@media (hover: hover) {
	.sh-reel.is-playing:hover .sh-reel-title, .sh-reel.is-playing:hover .sh-reel-bar, .sh-reel.is-playing:focus-within .sh-reel-bar { opacity: 1; }
}
.sh-reel:fullscreen { border-radius: 0; background: #000; }

.sh-reel.sh-reel-fs { aspect-ratio: auto !important; position: fixed !important; inset: 0; z-index: 99999; width: 100vw; height: 100vh; height: 100dvh; padding: 0 !important; border-radius: 0; background: #000; }
html.sh-reel-lock, html.sh-reel-lock body { overflow: hidden; }

/* Social Media Reels page: each reel stands alone (video + text box), flame divider between them. */
.sh-reels { --sh-sec-gap: clamp(80px, 9vw, 120px); display: grid; gap: var(--sh-sec-gap); grid-template-columns: minmax(0, 1fr); margin-top: var(--wp--preset--spacing--40) !important; }
.sh-reels > * { margin: 0 !important; position: relative; }
.sh-reels > * + *::before { content: ""; position: absolute; left: 50%; top: calc(var(--sh-sec-gap) / -2); width: 210px; max-width: 70%; height: 46px; transform: translate(-50%, -50%); background: url("divider-tapered-lines-3.png") center / contain no-repeat; }
.sh-reel-card { display: grid; gap: 20px clamp(24px, 4vw, 48px); grid-template-columns: minmax(0, 1fr); align-items: center; }
.sh-reel-card > * { margin: 0 !important; }
@media (min-width: 761px) {
	.sh-reel-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
	.sh-reel-tall { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
	.sh-reel-tall .sh-reel-embed { order: 2; }
}
@media (max-width: 760px) { .sh-reel-tall .sh-reel-embed { max-width: 360px; margin-inline: auto !important; } }
.sh-reel-text .sh-quote-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.sh-reel-embed { position: relative; width: 100%; border-radius: var(--sh-radius); overflow: hidden; background: #000; }
.sh-reel-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Reels page: the title sits under each video, so the overlay title is only for the showreel. */
.sh-reels .sh-reel-title { display: none; }

/* Case films and recommendations: a row that scrolls sideways (arrows, swipe, or arrow keys). */
.sh-rail { display: grid; gap: 16px; }
.sh-rail-track { display: flex; gap: clamp(16px, 2.4vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline: none; align-items: stretch; }
.sh-rail-track::-webkit-scrollbar { display: none; }
.sh-rail-track:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 4px; }
.sh-case { flex: 0 0 min(430px, 82%); scroll-snap-align: start; }
.sh-case h3 { margin: 14px 0 0; font-size: 1.2rem; line-height: 1.2; }
.sh-rec { flex: 0 0 min(440px, 86%); scroll-snap-align: start; box-sizing: border-box; display: flex; flex-direction: column; }
.sh-rec .sh-rec-by { margin-top: auto; padding-top: 1em; font-size: .9rem; color: var(--wp--preset--color--accent-4); }
.sh-rail-ui { display: flex; gap: 12px; justify-content: flex-end; }
.sh-rail-ui button { all: unset; box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid currentColor; cursor: pointer; }
.sh-rail-ui button:hover { color: var(--wp--preset--color--flame); }
.sh-rail-ui button:focus-visible { outline: 2px solid var(--wp--preset--color--flame); outline-offset: 2px; }
.sh-rail-ui button:disabled { opacity: .3; cursor: default; }
.sh-cases .sh-reel-title { display: none; }
@media (prefers-reduced-motion: reduce) { .sh-rail-track { scroll-behavior: auto; } }

/* Solo Productions page: anchored cards, link under the text, placeholder box until the video is in. */
.sh-reel-card { scroll-margin-top: 24px; }
.sh-reel-text .sh-reel-link { margin-top: 1em !important; font-size: .95rem; }
.sh-reel-ph { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: var(--wp--preset--color--accent-4); }

/* Main home: Video Production section with the showreel at about half width; no title overlay. */
.sh-vidhome { align-items: center; }
.sh-vidhome .sh-reel-title { display: none; }
.sh-boxes-one .sh-box { max-width: min(100%, 36rem); }
@media (min-width: 761px) { .sh-vidhome .sh-reel-embed { order: -1; } }

/* Flame dividers: smaller on phones. */
@media (max-width: 760px) {
	.sh-video-front > * + *::before,
	.sh-poetry::before,
	.sh-boxes::before,
	.sh-reels > * + *::before { width: 130px; height: 28px; }
}

/* Main home: latest Substack posts. */
.sh-substack-box .sh-substack { margin-top: 18px; }
.sh-substack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sh-substack-list a { display: grid; gap: 2px; padding: 12px 0; text-decoration: none; color: inherit; border-top: 1px solid rgba(26, 20, 16, .15); }
.sh-substack-list li:first-child a { border-top: 0; padding-top: 0; }
.sh-substack-date { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent-4); }
.sh-substack-title { font-family: var(--wp--preset--font-family--gloock); font-size: 1.35rem; line-height: 1.2; }
.sh-substack-desc { font-size: .95rem; }
.sh-substack-list a:hover .sh-substack-title, .sh-substack-list a:focus-visible .sh-substack-title { text-decoration: underline; text-decoration-color: var(--wp--preset--color--flame); text-underline-offset: .15em; }
.sh-substack-sub { margin: 14px 0 0 !important; }
