/*
Theme Name: RJE Creative 2026
Theme URI: https://www.rjecreative.co.uk/
Author: RJE Creative
Author URI: https://www.rjecreative.co.uk/
Description: Editorial block theme for RJE Creative. Paper, ink and fine rules, Fraunces headings and Instrument Sans text. Every section is a block pattern, editable with drag and drop.
Version: 1.0.6
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rje-creative-2026
Fonts: Fraunces, Instrument Sans and Michroma, SIL Open Font License 1.1.
*/

:root {
	--rje-ink: var(--wp--preset--color--ink);
	--rje-paper: var(--wp--preset--color--paper);
	--rje-rule: var(--wp--preset--color--rule);
	--rje-accent: var(--wp--preset--color--accent);
	--rje-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B84F00' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	--rje-tick-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234CC26A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
	--rje-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2545' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { text-wrap: balance; }
p { text-wrap: pretty; }
a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
:where(h1, h2, h3, h4) em { font-style: italic; font-weight: 400; color: var(--wp--preset--color--highlight); }
:focus-visible { outline: 3px solid var(--wp--preset--color--orange); outline-offset: 2px; }
img { height: auto; }
.has-small-font-size { line-height: 1.55; }
.screen-reader-text:focus { background: #fff; color: var(--rje-ink); }

/* ---------- Header ---------- */

.rje-header { border-bottom: 1px solid var(--rje-rule); background: var(--rje-paper); }
.rje-header .wp-block-site-logo img { width: auto; max-height: 52px; }
@media (min-width: 960px) { .rje-header .wp-block-site-logo img { max-height: 64px; } }
.rje-header .wp-block-navigation a { text-decoration: none; }
.rje-header .wp-block-navigation a:hover { text-decoration: underline; }
.rje-header .rje-header-cta .wp-block-button__link { min-height: 48px; padding-inline: 24px; font-size: 16px; }
@media (max-width: 599px) { .rje-header .rje-header-cta { display: none; } }
.wp-block-navigation__responsive-container.is-menu-open { background: var(--rje-paper) !important; color: var(--rje-ink) !important; padding: 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { gap: 20px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-family: var(--wp--preset--font-family--display); font-size: 28px; font-weight: 600; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item { font-family: var(--wp--preset--font-family--body); font-size: 18px; font-weight: 500; }
.wp-block-navigation .wp-block-navigation__submenu-container { border: 1px solid var(--rje-rule) !important; border-radius: 10px; padding: 8px 0; background: #fff !important; }
.wp-block-navigation__responsive-container-open, .wp-block-navigation__responsive-container-close { min-width: 44px; min-height: 44px; justify-content: center; }

/* ---------- Buttons ---------- */

.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; text-decoration: none; transition: transform .2s ease, filter .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); filter: brightness(1.08); }
.wp-block-button.is-style-accent .wp-block-button__link { background: var(--wp--preset--color--orange); color: var(--rje-ink); }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: currentColor; border: 1.5px solid currentColor; }
.wp-block-button.is-style-text .wp-block-button__link { background: transparent; color: inherit; padding-inline: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 6px; }
.wp-block-button.is-style-text .wp-block-button__link::after { content: "\2192"; margin-left: 8px; text-decoration: none; display: inline-block; }
.wp-block-button.is-style-text .wp-block-button__link:hover { transform: none; color: var(--rje-accent); }
@media (max-width: 479px) {
	.wp-block-buttons:not(.rje-header-cta) > .wp-block-button:not(.is-style-text) { width: 100%; }
	.wp-block-buttons:not(.rje-header-cta) > .wp-block-button:not(.is-style-text) .wp-block-button__link { width: 100%; }
}

/* ---------- Paragraph styles ---------- */

.is-style-eyebrow { font-size: 13px !important; line-height: 1.4; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; color: var(--rje-accent); }
.is-style-numeral { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 20px; line-height: 1.2; color: var(--rje-accent); }
.is-style-row-num { font-size: 16px; font-weight: 600; color: var(--rje-accent); white-space: nowrap; word-break: normal; flex-shrink: 0; min-width: 2ch; }
.is-style-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: #DDE7D9; color: #1E5E2E; font-size: 13px; font-weight: 600; width: fit-content; }

/* ---------- Lists ---------- */

ul.is-style-ticks { list-style: none; padding-left: 0; display: grid; gap: 14px; }
ul.is-style-ticks li { position: relative; padding-left: 34px; }
ul.is-style-ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: var(--rje-tick) no-repeat center / 22px; }

ol.is-style-index, ul.is-style-index { list-style: none; padding-left: 0; margin: 0; counter-reset: rje-index; border-bottom: 1px solid var(--rje-rule); }
.is-style-index li { counter-increment: rje-index; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-top: 1px solid var(--rje-rule); font-family: var(--wp--preset--font-family--display); font-size: clamp(22px, 1vw + 16px, 26px); font-weight: 600; line-height: 1.2; }
.is-style-index li::after { content: counter(rje-index, decimal-leading-zero); white-space: nowrap; flex-shrink: 0; font-family: var(--wp--preset--font-family--body); font-size: 14px; font-weight: 600; color: var(--rje-accent); }
.is-style-index li a { text-decoration: none; }
.is-style-index li a:hover { text-decoration: underline; }

/* ---------- Group styles ---------- */

.is-style-ink { background: var(--rje-ink); color: var(--rje-paper); }
.is-style-ink p, .is-style-ink li { color: var(--wp--preset--color--ink-body); }
.is-style-ink :where(h1, h2, h3, h4) { color: var(--rje-paper); }
.is-style-ink :where(h1, h2, h3, h4) em { color: var(--wp--preset--color--ink-accent); }
.is-style-ink .is-style-eyebrow, .is-style-ink .is-style-numeral, .is-style-ink .is-style-row-num { color: var(--wp--preset--color--ink-accent); }
.is-style-ink a:not(.wp-block-button__link) { color: var(--rje-paper); }
.is-style-ink .wp-block-button:not(.is-style-outline):not(.is-style-text) .wp-block-button__link { background: var(--wp--preset--color--orange); color: var(--rje-ink); }
.is-style-ink ul.is-style-ticks li::before { background-image: var(--rje-tick-ink); }
.is-style-ink .wp-block-separator, .is-style-ink .wp-block-columns.is-style-ruled > .wp-block-column { border-color: var(--wp--preset--color--ink-line); }

.is-style-alt { background: var(--wp--preset--color--surface-alt); }
.is-style-band { background: var(--wp--preset--color--band); border-top: 1px solid var(--rje-rule); border-bottom: 1px solid var(--rje-rule); }

.is-style-outline-box { border: 1.5px solid var(--rje-ink); border-radius: 4px; padding: clamp(24px, 3.5vw, 44px); }
.is-style-panel { background: #fff; border: 1px solid var(--rje-rule); border-radius: 10px; padding: clamp(20px, 3vw, 32px); }

.is-style-service-row { display: grid; grid-template-columns: 44px 1fr; gap: 8px 12px; align-items: baseline; padding: 28px 0; border-top: 1px solid var(--rje-rule); transition: transform .25s ease; }
.is-style-service-row > * { margin: 0 !important; }
.is-style-service-row > :nth-child(3) { grid-column: 2; }
.is-style-service-row h3 { font-size: var(--wp--preset--font-size--x-large); letter-spacing: -0.5px; }
.is-style-service-row h3 a { text-decoration: none; }
.is-style-service-row h3 a::after { content: ""; position: absolute; inset: 0; }
.is-style-service-row { position: relative; }
.is-style-service-row p:last-child { color: var(--wp--preset--color--body); }
@media (min-width: 860px) {
	.is-style-service-row { grid-template-columns: 70px .9fr 1.1fr 40px; gap: 32px; align-items: center; padding: 32px 0; }
	.is-style-service-row > :nth-child(3) { grid-column: auto; }
	.is-style-service-row::after { content: ""; width: 28px; height: 28px; background: var(--rje-arrow) no-repeat center / 28px; }
	.is-style-service-row:hover { transform: translateX(12px); }
}
.rje-service-list { border-bottom: 1px solid var(--rje-rule); }

.is-style-browser { background: #fff; border: 1px solid var(--rje-rule); border-radius: 10px; overflow: hidden; box-shadow: var(--wp--preset--shadow--paper); padding: 0 !important; }
.is-style-browser::before { content: ""; display: block; height: 40px; background:
	radial-gradient(circle at 20px 20px, #B9AF98 5px, transparent 6px),
	radial-gradient(circle at 38px 20px, #B9AF98 5px, transparent 6px),
	radial-gradient(circle at 56px 20px, #B9AF98 5px, transparent 6px),
	var(--wp--preset--color--surface-alt); }
.is-style-browser > * { margin-left: 0 !important; margin-right: 0 !important; }

.wp-block-image.is-style-paper img { border-radius: 4px; box-shadow: var(--wp--preset--shadow--paper); }
.wp-block-image img, .wp-block-post-featured-image img { border-radius: 4px; }

/* ---------- Columns ---------- */

.wp-block-columns.is-style-ruled { gap: 0 !important; }
.wp-block-columns.is-style-ruled > .wp-block-column { border-top: 1px solid var(--rje-rule); padding: 24px 0 8px; }
@media (min-width: 782px) {
	.wp-block-columns.is-style-ruled > .wp-block-column { border-top: 0; border-left: 1px solid var(--rje-rule); padding: 0 clamp(20px, 2.5vw, 36px); }
}

/* ---------- Google rating ---------- */

.rje-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: 15px; }
.rje-rating-score { font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 600; color: var(--rje-ink); }
.rje-rating-stars { color: #B7791F; letter-spacing: 2px; font-size: 17px; }
.rje-rating-label { color: var(--wp--preset--color--body); }

/* ---------- Client scroller ---------- */

.rje-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rje-marquee .wp-block-post-template { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 0; list-style: none; margin: 0 auto; padding: 0; }
.rje-marquee.is-ready .wp-block-post-template { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: rje-marquee var(--rje-marquee-duration, 40s) linear infinite; }
.rje-marquee.is-ready:hover .wp-block-post-template, .rje-marquee.is-ready:focus-within .wp-block-post-template { animation-play-state: paused; }
.rje-marquee .wp-block-post-template > li { display: flex; align-items: center; gap: 44px; padding-right: 44px; margin: 0; white-space: nowrap; }
.rje-marquee .wp-block-post-template > li::after { content: ""; flex-shrink: 0; width: 8px; height: 8px; transform: rotate(45deg); border: 2px solid var(--wp--preset--color--orange); }
.rje-marquee .wp-block-post-title { margin: 0; font-family: var(--wp--preset--font-family--display); font-style: italic; font-weight: 400; font-size: clamp(19px, 1vw + 14px, 23px); letter-spacing: 0; color: var(--wp--preset--color--body); }
.rje-marquee .wp-block-post-featured-image { margin: 0; }
.rje-marquee .wp-block-post-featured-image img { height: 48px !important; width: auto !important; max-width: 160px; object-fit: contain; border-radius: 0; filter: grayscale(1); opacity: .8; transition: filter .3s ease, opacity .3s ease; }
.rje-marquee li:hover .wp-block-post-featured-image img { filter: none; opacity: 1; }
.rje-marquee li:has(.wp-block-post-featured-image img) .wp-block-post-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes rje-marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */

.rje-testimonials .wp-block-post-template > li { border-top: 1px solid var(--rje-rule); padding-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.rje-testimonials .wp-block-post-content { font-family: var(--wp--preset--font-family--display); font-style: italic; font-size: 22px; line-height: 1.4; color: var(--rje-ink); }
.rje-testimonials .wp-block-post-content p { color: inherit; margin: 0; }
.rje-testimonials .wp-block-post-content > p:first-child::before { content: "\201C"; }
.rje-testimonials .wp-block-post-content > p:last-child::after { content: "\201D"; }
.rje-testimonials .rje-attrib { margin-top: auto; display: grid; gap: 2px; }
.rje-testimonials .rje-attrib > * { margin: 0; font-size: 15px; }
.rje-testimonials .wp-block-post-title { font-family: var(--wp--preset--font-family--body); font-weight: 600; letter-spacing: 0; font-size: 15px; }
.is-style-ink.rje-testimonials .wp-block-post-content { color: var(--rje-paper); }

/* ---------- Case studies ---------- */

.rje-case-grid .wp-block-post-template > li { border-top: 1px solid var(--rje-rule); padding-top: 24px; }
.rje-case-grid .wp-block-post-title a { text-decoration: none; }

/* ---------- Quote form ---------- */

.rje-quote-form { display: grid; gap: 18px; }
.rje-quote-form .rje-fields { display: grid; gap: 16px; }
@media (min-width: 640px) { .rje-quote-form .rje-fields { grid-template-columns: 1fr 1fr; } }
.rje-quote-form label, .rje-quote-form legend { font-size: 14px; font-weight: 600; color: var(--rje-ink); }
.rje-quote-form .rje-field { display: grid; gap: 8px; }
.rje-quote-form input[type="text"], .rje-quote-form input[type="email"], .rje-quote-form input[type="tel"], .rje-quote-form textarea {
	width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--rje-ink);
	background: #fff; border: 1.5px solid var(--wp--preset--color--rule-strong); border-radius: 10px; box-sizing: border-box;
}
.rje-quote-form textarea { min-height: 140px; resize: vertical; }
.rje-quote-form fieldset { border: 0; padding: 0; margin: 0; }
.rje-quote-form .rje-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rje-quote-form .rje-options label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--wp--preset--color--rule-strong); border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; }
.rje-quote-form .rje-options input, .rje-quote-form .rje-consent input { accent-color: var(--rje-ink); width: 18px; height: 18px; }
.rje-quote-form .rje-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; }
.rje-quote-form .rje-consent input { margin-top: 3px; flex-shrink: 0; }
.rje-quote-form button { min-height: 60px; border: 0; border-radius: 999px; background: var(--rje-ink); color: var(--rje-paper); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .2s ease; }
.rje-quote-form button:hover { transform: translateY(-2px); }
.rje-quote-form .rje-hint { font-size: 14px; color: var(--wp--preset--color--muted); margin: 0; }
.rje-quote-form .rje-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rje-notice { padding: 18px 20px; border-radius: 10px; border: 1.5px solid var(--rje-ink); background: #fff; }
.rje-notice.is-error { border-color: #8A3B00; background: #FFE3CC; color: #8A3B00; }
.rje-notice.is-success { border-color: #1E5E2E; background: #DDE7D9; color: #1E5E2E; }

/* ---------- Footer ---------- */

.rje-footer .wp-block-site-logo img { width: auto; max-height: 48px; }
.rje-footer a { text-decoration: none; }
.rje-footer a:hover { text-decoration: underline; }
.rje-footer .rje-wordmark { font-family: var(--wp--preset--font-family--wordmark); text-transform: uppercase; letter-spacing: 1px; font-size: 13px; }

/* ---------- Motion ---------- */

@keyframes rje-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
body:not(.wp-admin):not(.editor-styles-wrapper) .rje-hero > * { animation: rje-rise .9s cubic-bezier(.2,.7,.2,1) both; }
body:not(.wp-admin):not(.editor-styles-wrapper) .rje-hero > *:nth-child(2) { animation-delay: .1s; }
body:not(.wp-admin):not(.editor-styles-wrapper) .rje-hero > *:nth-child(3) { animation-delay: .25s; }
body:not(.wp-admin):not(.editor-styles-wrapper) .rje-hero > *:nth-child(n+4) { animation-delay: .4s; }
.editor-styles-wrapper .rje-hero > * { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Sticky header ---------- */

html { scroll-padding-top: 110px; }
header.wp-block-template-part { position: sticky; top: 0; z-index: 50; }
body.admin-bar header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { body.admin-bar header.wp-block-template-part { top: 0; } }
.rje-header { transition: box-shadow .2s ease; }
.rje-is-scrolled .rje-header { box-shadow: 0 10px 24px -20px rgba(11,37,69,.45); }

/* ---------- Enquiry nudge (bottom right) ---------- */

.rje-nudge {
	position: fixed; right: 16px; bottom: 16px; z-index: 60;
	width: min(340px, calc(100vw - 32px)); margin: 0 !important;
	background: #fff; border: 1px solid var(--rje-rule); border-radius: 10px;
	box-shadow: var(--wp--preset--shadow--paper);
	padding: 20px 20px 18px !important;
	opacity: 0; visibility: hidden; transform: translateY(16px);
	transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.rje-nudge.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .3s ease; }
.rje-nudge > * { margin: 0 !important; }
.rje-nudge > * + * { margin-top: 10px !important; }
.rje-nudge .rje-nudge-title { font-family: var(--wp--preset--font-family--display); font-size: 22px; font-weight: 600; line-height: 1.2; padding-right: 32px; color: var(--rje-ink); }
.rje-nudge p { font-size: 15px; line-height: 1.5; color: var(--wp--preset--color--body); }
.rje-nudge .wp-block-button__link { min-height: 44px; font-size: 15px; padding-inline: 20px; }
.rje-nudge .wp-block-buttons > .wp-block-button { width: auto !important; }
.rje-nudge-close {
	position: absolute; top: 8px; right: 8px; width: 40px; height: 40px;
	border: 0; border-radius: 999px; background: transparent; color: var(--rje-ink);
	font-size: 24px; line-height: 1; cursor: pointer;
}
.rje-nudge-close:hover { background: var(--wp--preset--color--surface-alt); }
@media (max-width: 600px) {
	.rje-nudge { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.rje-nudge p:not(.rje-nudge-title) { display: none; }
}
.editor-styles-wrapper .rje-nudge { position: relative; right: auto; bottom: auto; opacity: 1; visibility: visible; transform: none; margin: 24px 0 0 auto !important; }

/* ---------- Client logo and website link ---------- */

.rje-client-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.rje-client-link .rje-client-logo { width: auto; max-width: 160px; max-height: 48px; object-fit: contain; border-radius: 0; }
.rje-client-link .rje-client-site { font-size: 15px; font-weight: 600; color: var(--rje-accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Scroll reveal ---------- */
/* Only hidden once the script has confirmed it can reveal them again. */

.rje-anim .rje-reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rje-delay, 0s); will-change: opacity, transform; }
.rje-anim .rje-reveal.rje-reveal-side { transform: translateX(-28px); }
.rje-anim .rje-reveal.rje-reveal-scale { transform: scale(.97) translateY(16px); }
.rje-anim .rje-reveal.is-in { opacity: 1; transform: none; }

/* Section headings: a short orange rule draws in under the eyebrow. */
.rje-anim .is-style-eyebrow { position: relative; }
.rje-anim .rje-reveal .is-style-eyebrow::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 10px; background: var(--wp--preset--color--orange); transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2,.7,.2,1) .3s; }
.rje-anim .rje-reveal.is-in .is-style-eyebrow::after { transform: scaleX(1); }

/* Header tightens a little once you scroll. */
.rje-header { transition: box-shadow .2s ease, padding .25s ease; }
.rje-is-scrolled .rje-header { padding-top: 8px !important; padding-bottom: 8px !important; }
.rje-header .wp-block-site-logo img { transition: max-height .25s ease; }
@media (min-width: 960px) { .rje-is-scrolled .rje-header .wp-block-site-logo img { max-height: 50px; } }

@media (prefers-reduced-motion: reduce) {
	.rje-anim .rje-reveal { opacity: 1 !important; transform: none !important; }
	.rje-marquee.is-ready .wp-block-post-template { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ---------- Case study cards: equal height, button aligned at the bottom ---------- */

.rje-case-grid .wp-block-post-template > li { display: flex; flex-direction: column; gap: 16px; }
.rje-case-grid .wp-block-post-template > li > * { margin: 0; }
.rje-case-grid .wp-block-read-more {
	margin-top: auto !important; align-self: flex-start; display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px;
	border: 1.5px solid var(--rje-ink); border-radius: 999px; color: var(--rje-ink); text-decoration: none; font-size: 16px; font-weight: 600;
	transition: background .2s ease, color .2s ease;
}
.rje-case-grid .wp-block-read-more:hover { background: var(--rje-ink); color: var(--rje-paper); }
.rje-case-grid .wp-block-post-title { min-height: 2.2em; }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }

/* Keep client names on one line inside the scroller. */
.rje-marquee .wp-block-post-template > li { flex-shrink: 0; }
.rje-marquee .wp-block-post-title, .rje-marquee .wp-block-post-featured-image { flex-shrink: 0; white-space: nowrap; word-break: normal; overflow-wrap: normal; }

/* ---------- Client scroller: round logo frame above each name ---------- */

.rje-marquee .wp-block-post-template { align-items: flex-start; }
.rje-marquee .wp-block-post-template > li { position: relative; flex-direction: column; align-items: center; gap: 12px; padding: 0 clamp(24px, 3vw, 40px); }
.rje-marquee .wp-block-post-template > li::after { position: absolute; right: -5px; top: 33px; }
.rje-marquee .rje-client-avatar {
	display: flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 76px; height: 76px; margin: 0; border-radius: 50%; overflow: hidden;
	background: #fff; border: 1px solid var(--rje-rule); box-shadow: 0 10px 20px -16px rgba(11,37,69,.45);
	transition: transform .3s ease, box-shadow .3s ease;
}
.rje-marquee .rje-client-avatar img { width: 100% !important; height: 100% !important; max-width: none; object-fit: contain; padding: 12px; box-sizing: border-box; filter: none; opacity: 1; border-radius: 0; }
.rje-marquee li:hover .rje-client-avatar { transform: translateY(-3px); box-shadow: 0 16px 26px -16px rgba(11,37,69,.5); }
.rje-marquee li:has(.wp-block-post-featured-image img) .wp-block-post-title { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
.rje-marquee .wp-block-post-title { font-size: clamp(16px, .6vw + 13px, 19px); text-align: center; }
.rje-client-initials { font-family: var(--wp--preset--font-family--display); font-size: 24px; font-weight: 600; color: var(--rje-ink); letter-spacing: .5px; }
@media (max-width: 600px) {
	.rje-marquee .rje-client-avatar { width: 64px; height: 64px; }
	.rje-marquee .wp-block-post-template > li::after { top: 27px; }
}
