/*
 * IMERA 2026 visual layer.
 * Layout, colour and motion for the home page sections, header, footer and
 * shared components. Loaded by functions.php after the global styles.
 * Motion is decoration only: everything is readable with animation off.
 */

:root {
	--im-ink: #0b0e13;
	--im-ink-2: #121821;
	--im-blue: #0093dd;
	--im-blue-lit: #2fb4ff;
	--im-blue-deep: #00679b;
	--im-grey: #5a6470;
	--im-line: #e3e8ee;
	--im-surface: #f4f6f8;
	--im-radius: 20px;
	--im-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
	--im-gutter: clamp(20px, 4vw, 40px);
	--im-box: 1240px;
	--im-edge: clamp(8px, 1.4vw, 20px);
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection {
	background: var(--im-blue);
	color: #fff;
}

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

.wp-site-blocks > header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	border-bottom: 1px solid transparent;
	transition: border-color 0.3s, box-shadow 0.3s;
}

/*
 * The blur sits on a layer behind the header content, not on the header
 * itself: a backdrop-filter on the header would trap the full-screen mobile
 * menu (position: fixed) inside the header bar.
 */
.wp-site-blocks > header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	backdrop-filter: saturate(160%) blur(14px);
	pointer-events: none;
}

.wp-site-blocks > header.is-stuck {
	border-bottom-color: var(--im-line);
	box-shadow: 0 10px 30px -24px rgba(11, 14, 19, 0.5);
}

.imera-header {
	padding: 14px var(--im-gutter);
}

.imera-header > *,
.imera-footer > * {
	max-width: 1200px !important;
	margin-inline: auto !important;
}

.imera-header .wp-block-navigation {
	font-size: 0.9375rem;
	font-weight: 500;
}

.imera-header .wp-block-navigation a {
	text-decoration: none;
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	position: relative;
	padding: 6px 0;
	color: var(--im-ink);
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.5px;
	background: var(--im-blue);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.35s var(--im-ease);
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover::after,
.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:focus-visible::after {
	transform: scaleX(1);
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .imera-nav-cta > .wp-block-navigation-item__content {
	padding: 8px 18px;
	border: 1px solid rgba(11, 14, 19, 0.22);
	border-radius: 999px;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .imera-nav-cta > .wp-block-navigation-item__content::after {
	display: none;
}

.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .imera-nav-cta > .wp-block-navigation-item__content:hover,
.imera-header .wp-block-navigation__responsive-container:not(.is-menu-open) .imera-nav-cta > .wp-block-navigation-item__content:focus-visible {
	background: var(--im-ink);
	border-color: var(--im-ink);
	color: #fff;
}

/* Mobile menu, open: full screen, large left-aligned links. */
.imera-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 20px var(--im-gutter) 32px;
	background: #fff;
	color: var(--im-ink);
}

.imera-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 72px;
}

.imera-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.imera-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.imera-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: stretch;
	border-bottom: 1px solid var(--im-line);
}

.imera-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 18px 0;
	color: var(--im-ink);
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: -0.015em;
}

/* ---------- Shared pieces ---------- */

.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

.imera-hero,
.imera-section,
.imera-cta {
	margin-block: 0 !important;
	max-width: none !important;
}

.imera-wrap {
	max-width: 1200px !important;
	margin-inline: auto !important;
	padding-inline: var(--im-gutter);
}

.imera-section {
	padding-block: clamp(72px, 10vw, 136px);
	overflow: hidden;
}

.imera-section [id],
.imera-section[id] {
	scroll-margin-top: 72px;
}

.is-style-mono,
.imera-label {
	font-family: var(--wp--preset--font-family--fira-code);
	font-size: 0.8125rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.imera-label::before {
	content: "";
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-right: 0.8em;
	border: 1.5px solid var(--im-blue);
	vertical-align: 0.02em;
}

.imera-section h2,
.imera-cta h2 {
	margin-block: 0.4em 0.7em;
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
}

main .wp-block-post-title {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 500;
	letter-spacing: -0.022em;
	line-height: 1.08;
}

/* Buttons */

.wp-block-button > .wp-block-button__link.wp-element-button {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	padding: 0.8em 1.4em;
	border: 1px solid var(--im-ink);
	border-radius: 999px;
	background: var(--im-ink);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	/* Labels stay on one line: without this, phones break them mid-word. */
	white-space: nowrap;
	word-break: normal;
	transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--im-ease);
}

.wp-block-button {
	flex: none;
	max-width: 100%;
}

.wp-block-button > .wp-block-button__link.wp-element-button::after {
	flex: none;
	content: "\2192";
	font-family: var(--wp--preset--font-family--fira-code);
	font-weight: 400;
	transition: transform 0.3s var(--im-ease);
}

.wp-block-button > .wp-block-button__link.wp-element-button:hover,
.wp-block-button > .wp-block-button__link.wp-element-button:focus-visible {
	background: var(--im-blue-deep);
	border-color: var(--im-blue-deep);
	color: #fff;
}

.wp-block-button > .wp-block-button__link.wp-element-button:hover::after,
.wp-block-button > .wp-block-button__link.wp-element-button:focus-visible::after {
	transform: translateX(4px);
}

.wp-block-button > .wp-block-button__link.wp-element-button:active {
	transform: scale(0.98);
}

.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: transparent;
	border-color: rgba(11, 14, 19, 0.24);
	color: var(--im-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible {
	background: var(--im-ink);
	border-color: var(--im-ink);
	color: #fff;
}

.wp-block-buttons {
	gap: 12px;
}

/* Buttons on dark panels */

.imera-dark .wp-block-button > .wp-block-button__link.wp-element-button {
	background: #fff;
	border-color: #fff;
	color: var(--im-ink);
}

.imera-dark .wp-block-button > .wp-block-button__link.wp-element-button:hover,
.imera-dark .wp-block-button > .wp-block-button__link.wp-element-button:focus-visible {
	background: var(--im-blue-lit);
	border-color: var(--im-blue-lit);
	color: var(--im-ink);
}

.imera-dark .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.imera-dark .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:hover,
.imera-dark .wp-block-button.is-style-outline > .wp-block-button__link.wp-element-button:focus-visible {
	background: #fff;
	border-color: #fff;
	color: var(--im-ink);
}

.imera-dark :where(a:focus-visible, button:focus-visible) {
	outline-color: #fff;
}

/* Dark panel surface: used by the hero and the closing panel */

.imera-dark {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: clamp(18px, 2.4vw, 32px);
	background:
		radial-gradient(60% 70% at 82% 28%, rgba(0, 147, 221, 0.26), transparent 70%),
		radial-gradient(40% 50% at 8% 100%, rgba(0, 147, 221, 0.12), transparent 70%),
		var(--im-ink);
	color: #fff;
}

.imera-dark::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(75% 85% at 75% 35%, #000 10%, transparent 75%);
	mask-image: radial-gradient(75% 85% at 75% 35%, #000 10%, transparent 75%);
}

.imera-dark :where(h1, h2, h3) {
	color: #fff;
}

.imera-dark .imera-label {
	color: rgba(255, 255, 255, 0.66) !important;
}

.imera-dark .imera-label::before {
	border-color: var(--im-blue-lit);
}

/* ---------- Hero ---------- */

.imera-hero {
	padding: 8px clamp(8px, 1.4vw, 20px) 0;
}

.imera-hero__panel {
	display: flex;
	align-items: center;
	min-height: min(720px, calc(100vh - 110px));
	max-width: var(--im-box) !important;
	margin-inline: auto !important;
	padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 96px);
}

.imera-hero__text {
	position: relative;
	z-index: 1;
	max-width: 640px;
}

.imera-hero__text > * {
	margin-block: 0;
}

.imera-hero h1 {
	margin-block: 0.38em 0.5em;
	font-size: clamp(2.6rem, 5.4vw, 4.6rem);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.02;
	text-wrap: balance;
}

/* The outlined word: the same rectangular box the product draws. */
.imera-hero h1 mark {
	position: relative;
	display: inline-block;
	padding: 0 0.14em;
	margin: 0 -0.04em;
	background: none;
	color: #fff !important;
	white-space: nowrap;
}

.imera-hero h1 mark::before {
	content: "";
	position: absolute;
	inset: 0.06em 0 -0.02em;
	border: 2px solid var(--im-blue-lit);
	border-radius: 4px;
	animation: im-outline 1.1s 0.9s var(--im-ease) both;
}

.imera-hero h1 mark::after {
	content: "";
	position: absolute;
	top: calc(0.06em - 4px);
	left: -4px;
	width: 7px;
	height: 7px;
	background: var(--im-blue-lit);
	animation: im-pop 0.4s 1.7s var(--im-ease) both;
}

.imera-lede {
	max-width: 34em;
	margin-bottom: 2em !important;
	color: rgba(255, 255, 255, 0.76);
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.55;
}

.imera-hero__text > * {
	animation: im-rise 0.9s var(--im-ease) both;
}

.imera-hero__text > :nth-child(2) { animation-delay: 0.08s; }
.imera-hero__text > :nth-child(3) { animation-delay: 0.18s; }
.imera-hero__text > :nth-child(4) { animation-delay: 0.28s; }

/* The field: a canvas behind the text, drawn by imera.js. */

.imera-field {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.6s;
}

.imera-field.is-ready {
	opacity: 1;
}

.imera-field canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* Keeps the text readable where the shape runs behind it. */
.imera-hero__panel::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(11, 14, 19, 0.82) 0%, rgba(11, 14, 19, 0.5) 34%, rgba(11, 14, 19, 0) 58%);
	pointer-events: none;
}

.imera-box {
	position: absolute;
	border: 1.5px solid var(--im-blue-lit);
	border-radius: 3px;
	box-shadow: 0 0 22px rgba(47, 180, 255, 0.4);
	opacity: 0;
	will-change: opacity, transform;
}

.imera-box i {
	position: absolute;
	left: -1.5px;
	bottom: calc(100% + 5px);
	padding: 3px 7px;
	border-radius: 2px;
	background: var(--im-blue-lit);
	color: #04121c;
	font: 500 0.625rem/1.2 var(--wp--preset--font-family--fira-code);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}

/* ---------- Relook MSK ---------- */

/*
 * One grid for the whole section. The two column groups are flattened
 * (display: contents) so the claim block's own paragraphs and list can be
 * placed directly:
 *   row 1-3  label, heading, lede            full width
 *   row 4    category list | example deck
 *   row 5-6  MHRA line, note                 left column
 *   row 7-8  body regions / how it fits, buttons   full width
 */
.imera-split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: clamp(32px, 6vw, 88px);
	row-gap: 0;
	align-items: start;
}

.imera-split__text,
.imera-split__aside {
	display: contents;
}

.imera-split__text > *,
.imera-split__aside > * {
	grid-column: 1 / -1;
}

.imera-split__text > :first-child {
	margin-top: 0;
}

.imera-split__text > ol {
	grid-column: 1;
	grid-row: 4;
}

.imera-split__text > ol + * {
	grid-column: 1;
	grid-row: 5;
}

.imera-split__text > ol + * + * {
	grid-column: 1;
	grid-row: 6;
}

.imera-split__aside > .imera-strip {
	grid-column: 2;
	grid-row: 4;
	align-self: center;
	margin-block: 28px !important;
}

.imera-split__aside > .imera-specs {
	grid-row: 7;
	margin-top: clamp(40px, 5vw, 64px) !important;
}

.imera-split__aside > .wp-block-buttons {
	grid-row: 8;
}

/* Category list from the shared claim block, shown as numbered chips. */
.imera-relook ol.wp-block-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	margin-block: 28px;
	padding: 0;
	list-style: none;
	counter-reset: im-cat;
}

.imera-relook ol.wp-block-list > li {
	--cat: var(--wp--preset--color--cat-01);
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 11px 14px;
	border: 1px solid var(--im-line);
	border-radius: 12px;
	background: #fff;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.3;
	counter-increment: im-cat;
	transition: border-color 0.3s, transform 0.3s var(--im-ease);
}

.imera-relook ol.wp-block-list > li::before {
	content: counter(im-cat);
	flex: none;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 5px;
	background: var(--im-ink);
	box-shadow: inset 0 0 0 2px var(--cat);
	color: var(--cat);
	font: 500 0.75rem/1 var(--wp--preset--font-family--fira-code);
}

.imera-relook ol.wp-block-list > li:nth-child(2) { --cat: var(--wp--preset--color--cat-02); }
.imera-relook ol.wp-block-list > li:nth-child(3) { --cat: var(--wp--preset--color--cat-03); }
.imera-relook ol.wp-block-list > li:nth-child(4) { --cat: var(--wp--preset--color--cat-04); }
.imera-relook ol.wp-block-list > li:nth-child(5) { --cat: var(--wp--preset--color--cat-05); }
.imera-relook ol.wp-block-list > li:nth-child(6) { --cat: var(--wp--preset--color--cat-06); }

.imera-relook ol.wp-block-list > li:hover {
	border-color: #c5ced8;
	transform: translateY(-2px);
}

.imera-specs {
	margin-block: 0 32px;
	border-top: 1px solid var(--im-line);
}

.imera-specs > p {
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	gap: 16px;
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--im-line);
	font-size: 0.9375rem;
}

.imera-specs > p > strong {
	color: var(--im-grey);
	font: 400 0.75rem/1.9 var(--wp--preset--font-family--fira-code);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Deck: demo outputs stacked in depth. A teaser for the Demo page. */

.imera-relook {
	padding-bottom: clamp(8px, 1.4vw, 20px);
}

.imera-strip {
	margin: 0 0 clamp(20px, 2.4vw, 32px) !important;
	padding: clamp(18px, 2vw, 26px);
	border-radius: clamp(16px, 2vw, 24px);
}

.imera-strip.imera-dark {
	background:
		radial-gradient(60% 90% at 70% 55%, rgba(0, 147, 221, 0.3), transparent 72%),
		var(--im-ink);
}

.imera-strip.imera-dark::before {
	-webkit-mask-image: radial-gradient(60% 110% at 72% 50%, #000 10%, transparent 75%);
	mask-image: radial-gradient(60% 110% at 72% 50%, #000 10%, transparent 75%);
}

.imera-strip > *,
.imera-strip figure {
	margin: 0 !important;
	max-width: none !important;
}

.imera-strip figure {
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: #000;
}

/* Without the script (or with motion off): a plain row of small cards. */
.imera-strip:not(.is-ready) {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.imera-strip:not(.is-ready) figure img {
	display: block;
	width: auto;
	height: clamp(110px, 13vw, 160px);
}

.imera-strip:not(.is-ready) > p {
	flex-basis: 100%;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
}

/* With the script */
.imera-strip.is-ready {
	--cw: clamp(150px, 13vw, 190px);
	display: grid;
	grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
	align-items: center;
	gap: 16px;
}

.imera-deck__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.imera-deck__count {
	display: flex;
	align-items: baseline;
	gap: 0.18em;
	margin-top: 14px;
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	font-weight: 200;
	letter-spacing: -0.04em;
	line-height: 0.95;
	font-variant-numeric: tabular-nums;
}

.imera-deck__num {
	display: inline-block;
}

.imera-deck__num.is-new {
	animation: im-count 0.7s var(--im-ease) both;
}

.imera-deck__of {
	color: rgba(255, 255, 255, 0.4);
	font: 400 0.8125rem/1 var(--wp--preset--font-family--fira-code);
	letter-spacing: 0.12em;
}

.imera-deck__bar {
	width: min(100%, 120px);
	height: 2px;
	margin-top: 14px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.16);
	overflow: hidden;
}

.imera-deck__bar i {
	display: block;
	height: 100%;
	background: var(--im-blue-lit);
	transform: scaleX(0);
	transform-origin: left;
}

.imera-deck__stage {
	position: relative;
	justify-self: center;
	width: calc(var(--cw) * 1.36);
	height: calc(var(--cw) * 0.8 * 1.36);
	perspective: 1300px;
	cursor: pointer;
}

.imera-deck__stage figure {
	position: absolute;
	left: 0;
	bottom: 0;
	width: var(--cw);
	aspect-ratio: 5 / 4;
	opacity: 0;
	visibility: hidden;
	transform: translate3d(46%, -46%, -360px);
	transition: transform 0.9s var(--im-ease), opacity 0.7s ease, filter 0.9s ease, visibility 0s 0.9s, border-color 0.6s, box-shadow 0.9s;
}

.imera-deck__stage figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.imera-deck__stage figure[data-pos="0"],
.imera-deck__stage figure[data-pos="1"],
.imera-deck__stage figure[data-pos="2"],
.imera-deck__stage figure[data-pos="3"],
.imera-deck__stage figure[data-pos="out"] {
	visibility: visible;
	transition: transform 0.9s var(--im-ease), opacity 0.7s ease, filter 0.9s ease, border-color 0.6s, box-shadow 0.9s;
}

.imera-deck__stage figure[data-pos="0"] {
	z-index: 4;
	opacity: 1;
	transform: none;
	border-color: rgba(47, 180, 255, 0.75);
	box-shadow: 0 44px 70px -34px rgba(0, 147, 221, 0.85), 0 0 0 5px rgba(47, 180, 255, 0.08);
}

.imera-deck__stage figure[data-pos="1"] {
	z-index: 3;
	opacity: 1;
	transform: translate3d(13%, -13%, -90px);
	filter: brightness(0.78) saturate(0.75);
}

.imera-deck__stage figure[data-pos="2"] {
	z-index: 2;
	opacity: 1;
	transform: translate3d(25%, -25%, -180px);
	filter: brightness(0.56) saturate(0.55);
}

.imera-deck__stage figure[data-pos="3"] {
	z-index: 1;
	opacity: 0.9;
	transform: translate3d(36%, -36%, -270px);
	filter: brightness(0.36) saturate(0.4);
}

.imera-deck__stage figure[data-pos="out"] {
	z-index: 5;
	opacity: 0;
	transform: translate3d(-46%, 8%, 140px) rotate(-9deg);
}

/* The scan line that passes over each card as it reaches the front. */
.imera-deck__stage figure::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 34%;
	border-bottom: 1.5px solid rgba(140, 216, 255, 0.95);
	background: linear-gradient(transparent, rgba(47, 180, 255, 0.28));
	opacity: 0;
	pointer-events: none;
}

.imera-deck__stage figure[data-pos="0"]::after {
	animation: im-sweep 1.5s 0.45s cubic-bezier(0.5, 0, 0.4, 1) both;
}

@media (max-width: 700px) {
	.imera-strip.is-ready {
		--cw: min(44vw, 190px);
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	.imera-deck__stage {
		order: -1;
		margin-top: 8px;
	}
}

/* ---------- Data licensing ---------- */

.imera-data {
	padding: var(--im-edge);
}

.imera-data > .imera-wrap {
	max-width: var(--im-box) !important;
	padding: clamp(44px, 6vw, 88px) clamp(22px, 5vw, 72px);
	border-radius: clamp(18px, 2.4vw, 32px);
	background: var(--im-surface);
}

.imera-data .imera-wrap > * {
	margin-inline: 0 !important;
}

.imera-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	max-width: none !important;
	margin-block: clamp(32px, 4vw, 56px) !important;
	counter-reset: im-card;
}

.imera-card {
	position: relative;
	margin: 0 !important;
	padding: clamp(24px, 3vw, 40px);
	border: 1px solid var(--im-line);
	border-radius: var(--im-radius);
	background: #fff;
	counter-increment: im-card;
	transition: transform 0.45s var(--im-ease), box-shadow 0.45s var(--im-ease), border-color 0.3s;
}

.imera-card:hover {
	transform: translateY(-5px);
	border-color: #c9d6e2;
	box-shadow: 0 34px 60px -40px rgba(11, 14, 19, 0.4);
}

.imera-card::before {
	content: "0" counter(im-card);
	display: block;
	margin-bottom: clamp(48px, 7vw, 96px);
	color: var(--im-grey);
	font: 400 0.75rem/1 var(--wp--preset--font-family--fira-code);
	letter-spacing: 0.12em;
}

.imera-card::after {
	content: "";
	position: absolute;
	top: clamp(20px, 2.6vw, 34px);
	right: clamp(20px, 2.6vw, 34px);
	width: clamp(64px, 8vw, 96px);
	aspect-ratio: 1;
	background: center / contain no-repeat;
	transition: transform 0.6s var(--im-ease);
}

.imera-card:hover::after {
	transform: translateY(-3px) scale(1.04);
}

/* Glyph 1: a frame with boxes drawn on it (annotated). */
.imera-card--annot::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none'%3E%3Crect x='10' y='10' width='76' height='76' rx='8' stroke='%23c5ced8' stroke-width='1.5'/%3E%3Crect x='24' y='26' width='26' height='22' rx='2' stroke='%230093dd' stroke-width='2'/%3E%3Crect x='46' y='54' width='24' height='18' rx='2' stroke='%230093dd' stroke-width='2' stroke-dasharray='4 3'/%3E%3Crect x='21' y='23' width='6' height='6' fill='%230093dd'/%3E%3C/svg%3E");
}

/* Glyph 2: a stack of plates (database). */
.imera-card--db::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96' fill='none' stroke-width='1.5' stroke-linejoin='round'%3E%3Cpath d='M48 50 12 66l36 16 36-16z' stroke='%23c5ced8'/%3E%3Cpath d='M48 34 12 50l36 16 36-16z' stroke='%23c5ced8' fill='%23fff'/%3E%3Cpath d='M48 18 12 34l36 16 36-16z' stroke='%230093dd' stroke-width='2' fill='%23fff'/%3E%3C/svg%3E");
}

.imera-card h3 {
	margin: 0 0 0.5em;
	font-size: clamp(1.25rem, 2vw, 1.5rem);
	font-weight: 500;
	letter-spacing: -0.012em;
}

.imera-card p {
	margin: 0;
	color: #3a424c;
}

.imera-data__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 40px;
	max-width: none !important;
}

.imera-data__foot > * {
	margin: 0 !important;
}

.imera-data__foot > p {
	max-width: 36em;
}

/* ---------- Closing panel ---------- */

.imera-cta {
	padding: 0 var(--im-edge) var(--im-edge);
}

.imera-cta__panel {
	max-width: var(--im-box) !important;
	margin-inline: auto !important;
	padding: clamp(48px, 8vw, 112px) clamp(24px, 6vw, 96px);
}

.imera-cta__panel > * {
	max-width: 640px;
	margin-inline: 0 !important;
}

.imera-cta__panel > p {
	margin-bottom: 2em;
	color: rgba(255, 255, 255, 0.76);
	font-size: 1.125rem;
}

/*
 * Message card: a decorative, tilted "new message" that writes itself,
 * switching topic between the two things people contact us about.
 * The static state (no animation) is the finished message.
 */
.imera-cta__panel > .imera-msg {
	position: absolute;
	right: clamp(24px, 8vw, 120px);
	top: 50%;
	z-index: -1;
	width: clamp(240px, 26vw, 330px);
	max-width: none;
	margin: 0 !important;
	padding: 16px 18px 18px;
	border: 1.5px solid rgba(47, 180, 255, 0.7);
	border-radius: 10px;
	background: linear-gradient(160deg, rgba(18, 24, 33, 0.92), rgba(11, 14, 19, 0.96));
	box-shadow: 0 0 60px rgba(47, 180, 255, 0.25), -28px 28px 0 0 rgba(255, 255, 255, 0.07);
	color: #fff;
	font-size: 0.8125rem;
	line-height: 1.3;
	transform: translateY(-50%) perspective(900px) rotateY(-24deg) rotateX(8deg);
	animation: im-float 9s ease-in-out infinite;
	pointer-events: none;
	user-select: none;
}

.imera-msg__head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imera-msg__head i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
}

.imera-msg__head span,
.imera-msg__row > span {
	color: rgba(255, 255, 255, 0.5);
	font: 400 0.625rem/1 var(--wp--preset--font-family--fira-code);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.imera-msg__head span {
	margin-left: auto;
}

.imera-msg__row {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.imera-msg__row > span {
	width: 3.6em;
}

.imera-msg__row b {
	font-weight: 500;
	letter-spacing: 0.02em;
}

.imera-msg__chip {
	padding: 4px 9px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.6875rem;
	font-style: normal;
	white-space: nowrap;
}

.imera-msg__chip--a {
	border-color: var(--im-blue-lit);
	background: rgba(47, 180, 255, 0.16);
	color: #fff;
	animation: im-chip-a 16s ease infinite;
}

.imera-msg__chip--b {
	animation: im-chip-b 16s ease infinite;
}

.imera-msg__body {
	display: grid;
	gap: 9px;
	padding: 16px 0 4px;
}

.imera-msg__body i {
	height: 6px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.2);
	transform-origin: left;
	animation: im-type-1 8s ease-out infinite;
}

.imera-msg__body i:nth-child(2) {
	width: 86%;
	animation-name: im-type-2;
}

.imera-msg__body i:nth-child(3) {
	width: 52%;
	animation-name: im-type-3;
}

@keyframes im-type-1 {
	0%, 4% { transform: scaleX(0); }
	18%, 88% { transform: scaleX(1); opacity: 1; }
	96%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes im-type-2 {
	0%, 18% { transform: scaleX(0); }
	32%, 88% { transform: scaleX(1); opacity: 1; }
	96%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes im-type-3 {
	0%, 32% { transform: scaleX(0); }
	42%, 88% { transform: scaleX(1); opacity: 1; }
	96%, 100% { transform: scaleX(1); opacity: 0; }
}

@keyframes im-chip-a {
	0%, 47% { border-color: var(--im-blue-lit); background: rgba(47, 180, 255, 0.16); color: #fff; }
	50%, 97% { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.6); }
	100% { border-color: var(--im-blue-lit); background: rgba(47, 180, 255, 0.16); color: #fff; }
}

@keyframes im-chip-b {
	0%, 47% { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.6); }
	50%, 97% { border-color: var(--im-blue-lit); background: rgba(47, 180, 255, 0.16); color: #fff; }
	100% { border-color: rgba(255, 255, 255, 0.2); background: transparent; color: rgba(255, 255, 255, 0.6); }
}

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

.imera-footer {
	padding: 40px var(--im-gutter) 48px;
	background: #fff !important;
	color: var(--im-grey);
}

.imera-footer .wp-block-navigation a,
.imera-footer a {
	color: var(--im-ink);
	text-decoration: none;
}

.imera-footer a:hover,
.imera-footer a:focus-visible {
	color: var(--im-blue-deep);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------- Reveal on scroll (added by imera.js) ---------- */

.im-reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.9s var(--im-ease), transform 0.9s var(--im-ease);
	transition-delay: calc(var(--im-i, 0) * 70ms);
}

.im-reveal.is-in {
	opacity: 1;
	transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes im-rise {
	from { opacity: 0; transform: translateY(26px); }
}

@keyframes im-float {
	50% { translate: 0 -10px; }
}

@keyframes im-outline {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(-6px); }
}

@keyframes im-pop {
	from { transform: scale(0); }
}

@keyframes im-sweep {
	0% { transform: translateY(-100%); opacity: 0; }
	12% { opacity: 1; }
	85% { opacity: 1; }
	100% { transform: translateY(300%); opacity: 0; }
}

@keyframes im-count {
	from { opacity: 0; transform: translateY(0.35em); }
}

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

@media (max-width: 900px) {
	.imera-hero__text {
		max-width: 58%;
	}

	.imera-split {
		grid-template-columns: minmax(0, 1fr);
	}

	.imera-split__text > *,
	.imera-split__aside > * {
		grid-column: 1 !important;
		grid-row: auto !important;
	}

	.imera-cta__panel > .imera-msg {
		display: none;
	}
}

@media (max-width: 640px) {
	.imera-hero__panel {
		align-items: flex-start;
		min-height: 0;
		padding-bottom: min(124vw, 570px);
	}

	.imera-hero__text {
		max-width: none;
	}

	.imera-hero__panel::after {
		background: linear-gradient(rgba(11, 14, 19, 0.8) 0%, rgba(11, 14, 19, 0.45) 40%, rgba(11, 14, 19, 0) 60%);
	}

	.imera-cards,
	.imera-relook ol.wp-block-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.imera-specs > p {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}

	.imera-card::before {
		margin-bottom: 56px;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.im-reveal {
		opacity: 1;
		transform: none;
	}
}
