/**
 * Claymore Holding Page — front-end styles.
 *
 * Everything is namespaced under .clay-holding so the block goes anywhere.
 * Colour, blur, overlay strength and timings come in as custom properties set
 * inline by the shortcode, so the admin settings drive the look directly.
 */

.clay-holding {
	--clay-ink: #ffffff;
	--clay-ink-dim: rgba(255, 255, 255, 0.66);
	--clay-ink-faint: rgba(255, 255, 255, 0.42);
	--clay-hairline: rgba(255, 255, 255, 0.16);
	--clay-base: #08090b;
	--clay-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: relative;
	isolation: isolate;
	display: flex;
	width: 100%;
	min-height: 100svh;
	overflow: hidden;
	background-color: var(--clay-base);
	color: var(--clay-ink);
	font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------------------
   Full-screen takeover
   The panel is fixed, so it covers the theme's header and footer regardless of
   that theme's markup. Hiding the chrome as well stops a flash before paint.
   --------------------------------------------------------------------------- */

/* Block themes wrap post content in .is-layout-constrained, which applies a
   max-width plus `margin-inline: auto !important`. That still constrains a
   fixed element, so both have to be unset explicitly. */
.clay-holding-active .clay-holding {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.clay-holding-takeover .clay-holding {
	position: fixed;
	inset: 0;
	z-index: 100000;
	min-height: 0;
	/* Nothing scrolls — the panel is exactly the viewport. The escape hatch for
	   very short windows is the max-height media query further down. */
	overflow: hidden;
	overscroll-behavior: none;
}

/* Not taking over: break out of the content column to sit edge to edge. */
.clay-holding-active:not(.clay-holding-takeover) .clay-holding {
	width: 100vw;
	margin-left: calc(50% - 50vw) !important;
	margin-right: calc(50% - 50vw) !important;
}

/* Hard scroll lock on the document itself. Both the root class and the body
   class are written server-side, so this does not depend on :has() support. */
html.clay-holding-html,
html.clay-holding-html body,
body.clay-holding-takeover {
	height: 100%;
	max-height: 100%;
	overflow: hidden !important;
	overscroll-behavior: none;
}

body.clay-holding-takeover > .wp-site-blocks > header,
body.clay-holding-takeover > .wp-site-blocks > footer,
body.clay-holding-takeover .wp-site-blocks > header.wp-block-template-part,
body.clay-holding-takeover .wp-site-blocks > footer.wp-block-template-part,
body.clay-holding-takeover .site-header,
body.clay-holding-takeover .site-footer,
body.clay-holding-takeover #masthead,
body.clay-holding-takeover #colophon,
body.clay-holding-takeover .wp-block-post-title,
body.clay-holding-takeover .entry-header,
body.clay-holding-takeover .wp-block-post-date,
body.clay-holding-takeover .skip-link {
	display: none !important;
}

/* Keep the admin bar usable while previewing. */
body.clay-holding-takeover.admin-bar .clay-holding {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.clay-holding-takeover.admin-bar .clay-holding {
		top: 46px;
	}
}

/* ---------------------------------------------------------------------------
   Background
   --------------------------------------------------------------------------- */

.clay-holding__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.clay-holding__slide {
	position: absolute;
	/* Bleed past the edges so the blur never reveals a soft transparent border. */
	inset: -8%;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(var(--clay-blur, 24px)) saturate(1.12);
	transform: scale(1.06);
	opacity: 0;
	transition: opacity 1600ms var(--clay-ease);
	will-change: opacity, transform;
}

.clay-holding__slide.is-active {
	opacity: 1;
	animation: clay-kenburns calc(var(--clay-slide-dur, 7s) * 2.6) ease-out forwards;
}

/* A single still image still drifts, just far more slowly. */
.clay-holding:not(.clay-holding--slideshow) .clay-holding__slide.is-active {
	animation-duration: 36s;
	animation-direction: alternate;
	animation-iteration-count: infinite;
}

@keyframes clay-kenburns {
	from {
		transform: scale(1.06) translate3d(0, 0, 0);
	}
	to {
		transform: scale(1.16) translate3d(-1.5%, -1%, 0);
	}
}

/* Used when no images have been chosen yet — a deep, moving mesh gradient so
   the page never looks broken or empty. */
.clay-holding__slide--fallback {
	filter: blur(calc(var(--clay-blur, 24px) * 0.5));
	background-color: #0a0b0e;
	background-image:
		radial-gradient(60% 55% at 18% 20%, var(--clay-accent) 0%, transparent 62%),
		radial-gradient(52% 50% at 82% 12%, #2b3a55 0%, transparent 60%),
		radial-gradient(70% 60% at 72% 88%, var(--clay-accent-soft) 0%, transparent 66%),
		radial-gradient(50% 50% at 25% 92%, #1b2430 0%, transparent 60%);
}

/* Vignette + top-to-bottom wash. Legibility without flattening the image. */
.clay-holding__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		radial-gradient(120% 90% at 50% 12%, transparent 0%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0.82) 100%),
		linear-gradient(
			180deg,
			rgba(4, 5, 7, calc(var(--clay-overlay, 0.62) * 0.9)) 0%,
			rgba(4, 5, 7, calc(var(--clay-overlay, 0.62) * 0.55)) 42%,
			rgba(4, 5, 7, calc(var(--clay-overlay, 0.62) * 1.05)) 100%
		);
}

/* Fine film grain — a data-URI SVG, so no extra request. */
.clay-holding__grain {
	position: absolute;
	/* Only needs to cover the drift in clay-grain (max 3%), so keep the bleed
	   small — a large one balloons the scroll width for no visual gain. */
	inset: -6%;
	z-index: 2;
	pointer-events: none;
	opacity: 0.16;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
	animation: clay-grain 700ms steps(3) infinite;
}

@keyframes clay-grain {
	0% { transform: translate3d(0, 0, 0); }
	33% { transform: translate3d(-3%, 2%, 0); }
	66% { transform: translate3d(2%, -3%, 0); }
	100% { transform: translate3d(0, 0, 0); }
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */

.clay-holding__inner {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	gap: clamp(2rem, 5vh, 3.5rem);
	width: 100%;
	max-width: 1180px;
	/* As a flex item this would otherwise refuse to shrink below its
	   min-content width and push the layout wider than the viewport. */
	min-width: 0;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 5vw, 4rem);
	min-height: 100%;
	box-sizing: border-box;
}

.clay-holding__brand {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	animation: clay-rise 900ms var(--clay-ease) both;
}

.clay-holding__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: clamp(1.25rem, 3vh, 2rem);
	max-width: min(46ch, 100%);
	margin: 0 auto;
	min-width: 0;
}

.clay-holding__heading,
.clay-holding__sub {
	overflow-wrap: break-word;
}

.clay-holding__foot {
	flex: 0 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-top: clamp(1.25rem, 3vh, 2rem);
	border-top: 1px solid var(--clay-hairline);
	animation: clay-rise 900ms var(--clay-ease) 700ms both;
}

/* Left-aligned variant */
.clay-holding--align-left .clay-holding__brand {
	justify-content: flex-start;
}

.clay-holding--align-left .clay-holding__content {
	align-items: flex-start;
	text-align: left;
	margin: 0;
	max-width: 52ch;
}

/* ---------------------------------------------------------------------------
   Brand
   --------------------------------------------------------------------------- */

.clay-holding__logo {
	display: block;
	width: auto;
	max-width: min(var(--clay-logo-w, 220px), 72vw);
	height: auto;
	filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

.clay-holding__wordmark {
	display: inline-block;
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	font-weight: 700;
	letter-spacing: 0.34em;
	text-transform: uppercase;
	padding-left: 0.34em; /* optical balance for the trailing letter-space */
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------------------
   Copy
   --------------------------------------------------------------------------- */

.clay-holding__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	padding: 0.55em 1.15em 0.55em 0.9em;
	border: 1px solid var(--clay-hairline);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	font-size: clamp(0.66rem, 1.1vw, 0.78rem);
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--clay-ink-dim);
	animation: clay-rise 900ms var(--clay-ease) 120ms both;
}

.clay-holding__pip {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--clay-accent);
	box-shadow: 0 0 0 0 var(--clay-accent);
	animation: clay-pulse 2.4s ease-out infinite;
}

@keyframes clay-pulse {
	0% { box-shadow: 0 0 0 0 var(--clay-accent-soft); }
	70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.clay-holding__heading {
	margin: 0;
	/* Constrained by height as well as width: the headline runs to three lines,
	   so sizing on vw alone pushes the footer off a short screen. */
	font-size: clamp(2.2rem, min(8.2vw, 10.5vh), 5.6rem);
	line-height: 0.94;
	font-weight: 800;
	letter-spacing: -0.035em;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 10px 50px rgba(0, 0, 0, 0.45);
}

/* Eroded headline — echoes the chipped, distressed lettering in the gym's logo.
   The wide heavy face does the "expanded" part; an SVG noise mask punches chips
   out of the glyphs. The mask SVG is transparent where it erodes (rather than
   dark), so it works with plain alpha masking in every browser — luminance
   masking needs mask-mode, which WebKit does not reliably honour. */
.clay-holding--heading-eroded .clay-holding__heading {
	font-family: "Arial Black", "Arial Bold", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-weight: 900;
	letter-spacing: -0.005em;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='4' seed='11'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='1'/%3E%3CfeFuncG type='discrete' tableValues='1'/%3E%3CfeFuncB type='discrete' tableValues='1'/%3E%3CfeFuncA type='discrete' tableValues='0 0 1 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23e)'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='e'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.05' numOctaves='4' seed='11'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='discrete' tableValues='1'/%3E%3CfeFuncG type='discrete' tableValues='1'/%3E%3CfeFuncB type='discrete' tableValues='1'/%3E%3CfeFuncA type='discrete' tableValues='0 0 1 1 1 1 1 1'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23e)'/%3E%3C/svg%3E");
	-webkit-mask-size: 200px 200px;
	mask-size: 200px 200px;
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
}

.clay-holding__line {
	display: block;
	animation: clay-rise 1000ms var(--clay-ease) both;
	animation-delay: calc(220ms + (var(--clay-line, 0) * 110ms));
}

.clay-holding__sub {
	margin: 0;
	font-size: clamp(1rem, 1.7vw, 1.185rem);
	line-height: 1.6;
	color: var(--clay-ink-dim);
	text-wrap: pretty;
	animation: clay-rise 900ms var(--clay-ease) 460ms both;
}

.clay-holding__sub p {
	margin: 0 0 0.85em;
}

.clay-holding__sub p:last-child {
	margin-bottom: 0;
}

.clay-holding__sub a {
	color: var(--clay-ink);
	text-decoration-color: var(--clay-accent);
	text-underline-offset: 0.2em;
}

/* A list in the supporting-text slot becomes a wrapping row of dotted points,
   echoing the alternating markers used in the gym's social bios. */
.clay-holding__sub ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.55em 1.5em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clay-holding--align-left .clay-holding__sub ul {
	justify-content: flex-start;
}

.clay-holding__sub li {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	margin: 0;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}

.clay-holding__sub li::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--clay-accent);
}

.clay-holding__sub li:nth-child(even)::before {
	background: rgba(255, 255, 255, 0.55);
}

/* ---------------------------------------------------------------------------
   Countdown
   --------------------------------------------------------------------------- */

.clay-holding__countdown {
	animation: clay-rise 900ms var(--clay-ease) 540ms both;
}

.clay-holding__countdown-label {
	margin: 0 0 0.85em;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--clay-ink-faint);
}

.clay-holding__clock {
	display: flex;
	gap: clamp(0.5rem, 1.6vw, 0.9rem);
	justify-content: center;
}

.clay-holding--align-left .clay-holding__clock {
	justify-content: flex-start;
}

.clay-holding__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4em;
	min-width: clamp(3.6rem, 8vw, 4.75rem);
	padding: 0.75em 0.4em 0.6em;
	border: 1px solid var(--clay-hairline);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.clay-holding__digits {
	font-size: clamp(1.5rem, 3.4vw, 2.1rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	font-feature-settings: "tnum" 1;
}

.clay-holding__unit-label {
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--clay-ink-faint);
}

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

.clay-holding__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	animation: clay-rise 900ms var(--clay-ease) 620ms both;
}

.clay-holding--align-left .clay-holding__actions {
	justify-content: flex-start;
}

.clay-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	padding: 1.02em 1.75em;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: clamp(0.85rem, 1.2vw, 0.95rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	line-height: 1;
	cursor: pointer;
	overflow: hidden;
	transition: transform 320ms var(--clay-ease), box-shadow 320ms var(--clay-ease),
		background-color 320ms var(--clay-ease), border-color 320ms var(--clay-ease), color 320ms var(--clay-ease);
}

.clay-btn__label,
.clay-btn__arrow {
	position: relative;
	z-index: 1;
}

.clay-btn__arrow {
	width: 1.1em;
	height: 1.1em;
	flex: 0 0 auto;
	transition: transform 320ms var(--clay-ease);
}

.clay-btn:hover .clay-btn__arrow,
.clay-btn:focus-visible .clay-btn__arrow {
	transform: translateX(3px);
}

.clay-btn--primary {
	background-color: var(--clay-accent);
	color: #fff;
	box-shadow: 0 10px 30px -8px var(--clay-accent), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Sheen that sweeps across on hover. */
.clay-btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.32) 50%, transparent 68%);
	transform: translateX(-120%);
	transition: transform 720ms var(--clay-ease);
}

.clay-btn--primary:hover::after,
.clay-btn--primary:focus-visible::after {
	transform: translateX(120%);
}

.clay-btn--primary:hover,
.clay-btn--primary:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 16px 38px -8px var(--clay-accent), 0 3px 10px rgba(0, 0, 0, 0.35);
}

.clay-btn--ghost {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--clay-hairline);
	color: var(--clay-ink);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}

.clay-btn--ghost:hover,
.clay-btn--ghost:focus-visible {
	background: rgba(255, 255, 255, 0.13);
	border-color: rgba(255, 255, 255, 0.34);
	transform: translateY(-2px);
}

.clay-btn:active {
	transform: translateY(0);
}

.clay-btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* A CTA whose URL has not been filled in yet. */
.clay-btn--placeholder {
	opacity: 0.7;
	cursor: not-allowed;
}

.clay-btn--placeholder:hover {
	transform: none;
}

/* ---------------------------------------------------------------------------
   Instagram follow block
   --------------------------------------------------------------------------- */

.clay-holding__ig {
	display: inline-flex;
	align-items: center;
	gap: 0.7em;
	align-self: center;
	padding: 0.6em 1.15em 0.6em 0.6em;
	border: 1px solid var(--clay-hairline);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.045);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	color: var(--clay-ink);
	text-decoration: none;
	animation: clay-rise 900ms var(--clay-ease) 700ms both;
	transition: background-color 300ms var(--clay-ease), border-color 300ms var(--clay-ease),
		transform 300ms var(--clay-ease);
}

.clay-holding--align-left .clay-holding__ig {
	align-self: flex-start;
}

.clay-holding__ig:hover,
.clay-holding__ig:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.32);
	transform: translateY(-2px);
}

.clay-holding__ig-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	border-radius: 50%;
	color: #fff;
	/* Instagram's own gradient, so the block reads as Instagram at a glance. */
	background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.clay-holding__ig-icon svg {
	width: 18px;
	height: 18px;
}

.clay-holding__ig-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15em;
	line-height: 1.2;
}

.clay-holding__ig-label {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.clay-holding__ig-handle {
	font-size: 0.74rem;
	color: var(--clay-ink-faint);
}

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

.clay-holding__foot-text {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.25rem;
	font-size: 0.82rem;
	color: var(--clay-ink-faint);
}

.clay-holding__note p {
	margin: 0;
}

.clay-holding__contacts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
}

.clay-holding__contact {
	color: var(--clay-ink-dim);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color 240ms var(--clay-ease), border-color 240ms var(--clay-ease);
}

.clay-holding__contact:hover,
.clay-holding__contact:focus-visible {
	color: var(--clay-ink);
	border-bottom-color: var(--clay-accent);
}

.clay-holding__dot {
	color: var(--clay-ink-faint);
	opacity: 0.6;
}

/* Studio credit — sits on its own full-width line beneath the footer row. */
.clay-holding__credit {
	/* width, not flex-basis: the footer is a row on desktop and a column on
	   mobile, and a 100% basis means *height* in column direction. */
	flex: 0 0 auto;
	width: 100%;
	order: 9;
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.clay-holding__credit-link {
	color: inherit;
	text-decoration: none;
	transition: color 260ms var(--clay-ease), border-color 260ms var(--clay-ease);
}

/* Only underline when it actually goes somewhere — the no-URL fallback renders
   as a <span> and should not look clickable. */
a.clay-holding__credit-link {
	display: inline-block;
	padding-bottom: 3px;
	border-bottom: 1px solid var(--clay-accent);
}

a.clay-holding__credit-link:hover,
a.clay-holding__credit-link:focus-visible {
	color: var(--clay-ink);
	border-bottom-color: var(--clay-ink);
}

.clay-holding__social {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.clay-holding__social li {
	margin: 0;
}

.clay-holding__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--clay-hairline);
	border-radius: 50%;
	color: var(--clay-ink-dim);
	text-decoration: none;
	transition: color 260ms var(--clay-ease), border-color 260ms var(--clay-ease),
		background-color 260ms var(--clay-ease), transform 260ms var(--clay-ease);
}

.clay-holding__social-link svg {
	width: 17px;
	height: 17px;
}

.clay-holding__social-link:hover,
.clay-holding__social-link:focus-visible {
	color: #fff;
	border-color: var(--clay-accent);
	background: var(--clay-accent);
	transform: translateY(-2px);
}

.clay-holding .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

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

@keyframes clay-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
		filter: blur(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.clay-holding *,
	.clay-holding *::before,
	.clay-holding *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.clay-holding__grain {
		animation: none;
	}

	.clay-holding__slide.is-active {
		transform: scale(1.08);
	}
}

/* ---------------------------------------------------------------------------
   Small screens
   --------------------------------------------------------------------------- */

@media (max-width: 640px) {
	.clay-holding__inner {
		gap: 2rem;
	}

	.clay-holding__foot {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 0.7rem;
		padding-top: 1rem;
	}

	/* The footer stacks here, so it has to stay compact or the credit line —
	   which is last — gets clipped by the no-scroll panel. */
	.clay-holding__social-link {
		width: 36px;
		height: 36px;
	}

	.clay-holding__credit {
		font-size: 0.72rem;
		letter-spacing: 0.1em;
	}

	.clay-holding--align-left .clay-holding__foot {
		align-items: flex-start;
		text-align: left;
	}

	.clay-holding__actions {
		width: 100%;
	}

	.clay-btn {
		flex: 1 1 100%;
	}
}

/* ---------------------------------------------------------------------------
   Short viewports
   The panel is locked to the viewport, so on a short window the content has to
   compress rather than overflow — otherwise the CTAs become unreachable.
   --------------------------------------------------------------------------- */

@media (max-height: 940px) {
	.clay-holding__inner {
		gap: clamp(1rem, 2.5vh, 2rem);
		padding-top: clamp(1.25rem, 3vh, 2.25rem);
		padding-bottom: clamp(1.25rem, 3vh, 2.25rem);
	}

	.clay-holding__content {
		gap: clamp(0.85rem, 2vh, 1.4rem);
	}
}

@media (max-height: 780px) {
	.clay-holding__heading {
		font-size: clamp(2rem, 8.6vh, 4.4rem);
	}

	.clay-holding__ig {
		padding: 0.5em 1em 0.5em 0.5em;
	}

	.clay-holding__ig-icon {
		width: 30px;
		height: 30px;
	}
}

@media (max-height: 620px) {
	.clay-holding__heading {
		font-size: clamp(1.8rem, 7.6vh, 3.2rem);
	}

	.clay-holding__sub {
		font-size: 0.95rem;
	}

	/* Last resort: below this the layout genuinely cannot fit, so allow the
	   panel itself to scroll rather than clipping the buttons out of reach. */
	.clay-holding-takeover .clay-holding {
		overflow-y: auto;
		overscroll-behavior: contain;
	}
}

/* The editor renders the shortcode as plain text; give it a hint of shape. */
.block-editor-block-list__layout .clay-holding {
	min-height: 60vh;
}
