/**
 * MEMOT theme styles.
 *
 * Presentational layer for the block patterns. Everything keys off the CSS
 * custom properties WordPress generates from theme.json (--wp--preset--*),
 * so colour, type and spacing stay defined in a single place. Class hooks
 * (memot-*) are applied via the "Additional CSS class" field on blocks
 * inside the patterns.
 */

/* -------------------------------------------------------------------------- *
 * Fonts (self-hosted, buildless — variable woff2 in ../fonts)
 *
 * Inter carries body + UI (industrial clarity); Fraunces carries the display
 * headings (an optical serif that gives the plantation-heritage warmth the old
 * system-font stack could never express). Both are single variable files.
 * -------------------------------------------------------------------------- */

@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
}

@font-face {
	font-family: Fraunces;
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url(../fonts/fraunces-latin-full-normal.woff2) format("woff2");
}

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

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

/* Let Fraunces resolve its optical-size axis at display sizes. */
h1,
h2,
h3,
.wp-block-heading,
.memot-stat-number {
	font-optical-sizing: auto;
}

:lang(km),
[lang="km"] body {
	font-family: "Noto Sans Khmer", "Khmer OS Siemreap", "Khmer OS Battambang", Hanuman, var(--wp--preset--font-family--body);
	line-height: 1.8;
}

:lang(km) h1,
:lang(km) h2,
:lang(km) h3,
:lang(km) h4,
:lang(km) h5,
:lang(km) h6 {
	font-family: "Noto Serif Khmer", "Noto Sans Khmer", "Khmer OS Muol Light", "Khmer OS Siemreap", var(--wp--preset--font-family--display);
	line-height: 1.35;
}

:root {
	--memot-shadow-sm: 0 1px 2px rgba(22, 22, 15, 0.04), 0 2px 8px rgba(22, 22, 15, 0.05);
	--memot-shadow-md: 0 6px 20px rgba(22, 22, 15, 0.08), 0 2px 6px rgba(22, 22, 15, 0.05);
	--memot-shadow-lg: 0 24px 60px rgba(22, 22, 15, 0.16);
	--memot-radius: 16px;
	--memot-radius-lg: 24px;

	/* Distance from the viewport top to the bottom edge of the resting nav
	   capsule — i.e. the first y a page may put content at. Consumers add their
	   own step of air on top (see "Fixed-header clearance"), so this is a
	   floor, not a finished gap. Keep it in step with .memot-header's padding
	   plus the capsule's own height. Declared at :root, not on .memot-header,
	   because the consumers (<main>, hero bands) are siblings of the header,
	   not descendants. */
	--memot-header-space: 6.5rem;
}

/* Slightly tighter measure for lead paragraphs. */
.memot-lead {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--slate);
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- *
 * Section intro — the shared rhythm every marketing section opens with:
 * amber-tick eyebrow → display heading → capped lead. Left-aligned to the
 * same wide-container edge as the grid beneath it, so nothing "floats".
 * -------------------------------------------------------------------------- */
.memot-section-head > * {
	margin-top: 0;
	margin-bottom: 0;
}

.memot-section-head > .wp-block-heading {
	margin-top: 0.75rem;
	max-width: 22ch;
}

.memot-section-head > .memot-lead {
	margin-top: 0.9rem;
	max-width: 52ch;
}

/* Space the intro from the grid it introduces (pillars / products). */
.wp-block-group.alignfull > .memot-section-head {
	margin-bottom: var(--wp--preset--spacing--70);
}

/* Eyebrow label — small uppercase green kicker above headings. */
.is-style-memot-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leaf);
	margin-bottom: 0.5rem;
}

/* Arrow links ("View Operations ->"). */
.memot-link-arrow a,
a.memot-link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

.memot-link-arrow a::after,
a.memot-link-arrow::after {
	content: "\2192";
	transition: transform 0.18s ease;
}

.memot-link-arrow a:hover::after,
a.memot-link-arrow:hover::after {
	transform: translateX(4px);
}

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

/*
 * The header starts as a fully transparent shell integrated with the hero —
 * no background, border or shadow — and only grows the floating "capsule"
 * (.memot-nav) chrome once `.is-scrolled` is toggled by the motion layer
 * (see memot-motion.js). Keeping the shell itself transparent (no
 * backdrop-filter here) avoids establishing a containing block for the
 * navigation block's fixed-position mobile overlay, which would otherwise
 * clip it to the header's height instead of the viewport.
 *
 * Nav foreground colour is themeable per page via custom properties: the
 * front page opens on a dark hero scrim, so its unscrolled header reads in
 * `paper`; every other template opens on light content, so it keeps the
 * default `ink`. See the `body.home` override below.
 */
.memot-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent;
	padding: 1.35rem clamp(1rem, 4vw, 2.5rem);
	pointer-events: none;
	transition: padding 0.3s ease-in-out;
	--memot-nav-fg: var(--wp--preset--color--ink);
	--memot-nav-fg-hover: var(--wp--preset--color--brand);
	--memot-nav-brand-fg: var(--wp--preset--color--brand);
	--memot-nav-icon-fg: var(--wp--preset--color--brand);

	/* Capsule chrome. Split into "rest" and "strong" so the scroll state only
	   has to deepen values rather than switch a component on. */
	--memot-nav-surface: rgb(255 255 255 / 66%);
	--memot-nav-surface-strong: rgb(255 255 255 / 94%);
	--memot-nav-edge: rgb(27 94 58 / 9%);
	--memot-nav-edge-strong: rgb(27 94 58 / 14%);
	--memot-nav-item-bg: rgb(27 94 58 / 7%);
}

/* Front page only: transparent state sits on a dark hero scrim, so flip the
   nav to light text/icons until the white capsule takes over on scroll. */
body.home .memot-header:not(.is-scrolled) {
	--memot-nav-fg: var(--wp--preset--color--paper);
	--memot-nav-fg-hover: var(--memot-harvest, var(--wp--preset--color--harvest));
	--memot-nav-brand-fg: var(--wp--preset--color--paper);
	--memot-nav-icon-fg: var(--wp--preset--color--paper);
	--memot-nav-item-bg: rgb(255 255 255 / 14%);
}

/*
 * The floating capsule. Centre it on its own terms (box-sizing + auto margins)
 * so it never inherits WordPress's root-padding alignment maths, which pushed
 * it past the right edge on narrow viewports.
 *
 * At rest on inner pages the capsule is a real object — a light glass wash
 * with a hairline edge and a low shadow — so the menu reads as chrome sitting
 * over the page rather than loose text dropped onto the hero, and the header
 * gets a definite bottom edge to separate it from the content below. The
 * scroll state (see "Header scroll state") only deepens those same values.
 * The front page opts out: its dark hero image is the composition, and a pale
 * pill drawn across it would cut the image in half.
 */
.memot-header .memot-nav {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-left: auto;
	margin-right: auto;
	position: relative;
	isolation: isolate;
	pointer-events: auto;
	gap: 0.75rem;
	padding: 0.5rem 0.5rem 0.5rem 1.25rem;
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(22, 22, 15, 0.04), 0 10px 26px rgba(22, 22, 15, 0.06);
	border: 1px solid var(--memot-nav-edge);
	transition: box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

body.home .memot-header:not(.is-scrolled) .memot-nav {
	box-shadow: none;
	border-color: transparent;
}

/*
 * The frosted glass fill lives on a pseudo-element, NOT on .memot-nav itself.
 * A backdrop-filter (or filter) on the capsule would make it the containing
 * block for the navigation block's position:fixed mobile overlay, clipping
 * that full-screen menu to the capsule. Keeping the blur here avoids that.
 */
.memot-header .memot-nav::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background: var(--memot-nav-surface);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Front page at rest: fade the fill back out so the header is a transparent
   shell over the hero, and let it slide in as one move on scroll. */
body.home .memot-header:not(.is-scrolled) .memot-nav::before {
	opacity: 0;
	transform: translateY(-6px);
}

/* Brand lock-up: logo tile + wordmark ------------------------------------- */
.memot-header .memot-brand {
	gap: 0.6rem;
	flex-shrink: 0;
}

.memot-brand__mark {
	margin: 0;
	flex-shrink: 0;
	line-height: 0;
}

.memot-brand__mark a {
	display: block;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.28rem;
	border-radius: 50%;
	background: var(--wp--preset--color--sand);
	box-shadow: 0 1px 2px rgba(22, 22, 15, 0.06);
	transition: transform 0.25s var(--memot-ease-out), background-color 0.25s ease;
}

.memot-brand__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.memot-header .memot-brand__word {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.4rem;
	letter-spacing: -0.01em;
	line-height: 1;
}

.memot-brand__word a {
	color: var(--memot-nav-brand-fg, var(--wp--preset--color--brand));
	text-decoration: none;
	transition: color 0.3s ease-in-out;
}

/* Centre menu — grows to fill the space between brand and CTA -------------- */
.memot-header .memot-nav__menu {
	flex: 1 1 auto;
	font-weight: 500;
	font-size: 0.9375rem;
}

/* Links carry their own pill padding (see "Header scroll state"), so the gap
   here only has to cover the space *between* pills, not inside them. */
.memot-header .memot-nav__menu .wp-block-navigation__container {
	gap: clamp(0.15rem, 1.1vw, 0.85rem);
}

/* Header/footer brand & nav link colours (and their hovers) are defined lower
   down, right after the footer's generic anchor rules, so the file's `a`-group
   specificity ascends monotonically (stylelint no-descending-specificity). */

/* Hamburger toggle: fixed, comfortably tappable square. */
.memot-header .wp-block-navigation__responsive-container-open {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: var(--memot-nav-icon-fg, var(--wp--preset--color--brand));
	transition: background-color 0.18s ease, color 0.3s ease-in-out;
}

.memot-header .wp-block-navigation__responsive-container-open:hover,
.memot-header .wp-block-navigation__responsive-container-open:focus-visible {
	background-color: var(--wp--preset--color--sand);
}

/* Contact CTA pill — never shrink below its content. ---------------------- */
.memot-header .memot-nav__cta {
	flex-shrink: 0;
}

.memot-header .memot-nav__cta .wp-block-button,
.memot-header .memot-nav__cta .wp-block-button__link {
	flex-shrink: 0;
	white-space: nowrap;
}

.memot-header .memot-nav__cta .wp-block-button__link {
	box-shadow: 0 6px 16px rgba(46, 158, 92, 0.28);
}

/*
 * Language switcher — a flag + code trigger that opens a card listing every
 * language, with a check on the one currently being viewed. Built on
 * <details>/<summary> so opening/closing needs no JS at all; the companion
 * memot-language-switcher.js only adds outside-click/Escape dismissal and
 * keeps two instances (header + footer) from being open at once. Colour is
 * inherited (`currentcolor`) so the trigger follows --memot-nav-fg in the
 * header and the footer's own translucent-white link colour; the popover
 * menu itself is always an opaque paper card regardless of context. The
 * hover/open background always lightens (sand in the header, a faint white
 * wash in the footer), so --memot-lang-switcher-hover-fg pins the text to a
 * colour that stays legible against that lighter fill even when the resting
 * state was white-on-dark (e.g. the unscrolled homepage hero).
 */
.memot-language-switcher {
	--memot-lang-switcher-hover: var(--wp--preset--color--sand);
	--memot-lang-switcher-hover-fg: var(--wp--preset--color--ink);
	color: currentcolor;
	display: inline-flex;
	position: relative;
}

/* `currentcolor` only reaches --memot-nav-fg if something in the header
   actually sets `color` to it -- .memot-header itself never does (only
   individual nav-item rules read the var explicitly), so without this the
   trigger silently fell back to the page's default ink, even when nav-fg
   was paper (e.g. the unscrolled homepage hero). */
.memot-header .memot-language-switcher {
	color: var(--memot-nav-fg);
}

.memot-footer .memot-language-switcher {
	--memot-lang-switcher-hover: rgb(255 255 255 / 10%);
	--memot-lang-switcher-hover-fg: currentcolor;
}

.memot-language-switcher__trigger {
	align-items: center;
	border-radius: 999px;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	gap: 0.4rem;
	line-height: 1;
	list-style: none;
	padding: 0.4rem 0.65rem;
	transition: background-color 0.18s ease;
	user-select: none;
	white-space: nowrap;
}

.memot-language-switcher__trigger::-webkit-details-marker {
	display: none;
}

.memot-language-switcher__trigger:hover,
.memot-language-switcher__trigger:focus-visible,
.memot-language-switcher__details[open] > .memot-language-switcher__trigger {
	background-color: var(--memot-lang-switcher-hover);
	color: var(--memot-lang-switcher-hover-fg);
}

.memot-language-switcher__flag {
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgb(22 22 15 / 12%);
	display: block;
	flex-shrink: 0;
	height: 14px;
	object-fit: cover;
	width: 20px;
}

.memot-language-switcher__chevron {
	flex-shrink: 0;
	width: 0.875rem;
	height: 0.875rem;
	transition: transform 0.2s var(--memot-ease-out);
}

.memot-language-switcher__details[open] > .memot-language-switcher__trigger .memot-language-switcher__chevron {
	transform: rotate(180deg);
}

.memot-language-switcher__menu {
	background: var(--wp--preset--color--paper);
	border-radius: var(--memot-radius);
	box-shadow: var(--memot-shadow-lg);
	color: var(--wp--preset--color--ink);
	list-style: none;
	margin: 0.5rem 0 0;
	min-width: 11rem;
	padding: 0.4rem;
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 20;
}

/* The footer sits at the bottom of the viewport, so a menu opening downward
   from it would be clipped by the window edge -- open upward instead. */
.memot-footer .memot-language-switcher__menu {
	bottom: 100%;
	margin: 0 0 0.5rem;
	top: auto;
}

.memot-language-switcher__option {
	align-items: center;
	border-radius: 10px;
	color: var(--wp--preset--color--ink);
	display: flex;
	gap: 0.6rem;
	padding: 0.55rem 0.65rem;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.memot-language-switcher__option:hover,
.memot-language-switcher__option:focus-visible {
	background-color: var(--wp--preset--color--sand);
}

.memot-language-switcher__option-name {
	flex: 1 1 auto;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	white-space: nowrap;
}

.memot-language-switcher__option.is-active .memot-language-switcher__option-name {
	color: var(--wp--preset--color--brand);
}

.memot-language-switcher__check {
	color: var(--wp--preset--color--brand-bright);
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
}

/* Ghost button variation (dark pill used on the sustainability panel). */
.wp-block-button.is-style-memot-ghost .wp-block-button__link {
	background-color: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--paper);
}

.wp-block-button.is-style-memot-ghost .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--brand);
}

/* -------------------------------------------------------------------------- *
 * Fixed-header clearance
 * -------------------------------------------------------------------------- */

/*
 * The header is fixed, so every template has to open below it — and until now
 * nothing actually enforced that. Each opening band carried its own
 * editor-authored top padding that merely *happened* to land near the header's
 * height: heroes used spacing 90/100 (96–128px) and scraped past, while plain
 * pages and archives used spacing 80 (81px) and started *behind* the capsule,
 * so a page's eyebrow read as a tagline hanging off the logo.
 *
 * Pinning both cases to --memot-header-space (the distance from the viewport
 * top to the bottom of the nav capsule) plus one step of air makes the
 * relationship explicit and identical on every template.
 *
 * !important throughout: block spacing is emitted as an inline style, and no
 * class selector can outrank that.
 */

/*
 * Two shapes need it, and they take the clearance in different places:
 *
 * - A full-bleed hero paints its background from y=0 on purpose, so the header
 *   sits *on* the hero rather than above a seam. Only its content moves down,
 *   so the clearance goes in the band's own padding.
 * - Everything else (legal pages, the blog index, the IR document archive)
 *   opens straight into content with no band to protect, so it goes on <main>.
 *
 * `:has(.memot-page-hero, .memot-hero)` keeps <main> out of it whenever a hero
 * is already handling the clearance — which matters because one template serves
 * both shapes: page-no-title renders the hero-led Newsroom page *and* the
 * plain-prose legal pages. `:not(:has(main))` handles page content authored
 * with its own `<main>` group nested inside the template's: only the inner one
 * carries the opening padding, and padding both would double the gap.
 */
.memot-page-hero,
main:not(:has(main)):not(:has(.memot-page-hero, .memot-hero)) {
	padding-top: calc(var(--memot-header-space) + var(--wp--preset--spacing--60)) !important;
}

/* -------------------------------------------------------------------------- *
 * Compact header: collapse the capsule, keep secondary actions inside the menu
 * -------------------------------------------------------------------------- */

@media (max-width: 1120px) {

	.memot-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.memot-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}

	.memot-header .memot-nav {
		gap: 0.45rem;
		padding: 0.4rem 0.45rem 0.4rem 0.75rem;
	}

	.memot-header .memot-brand {
		gap: 0.45rem;
		min-width: 0;
		flex: 1 1 auto;
	}

	.memot-header .memot-brand__mark a {
		width: 2rem;
		height: 2rem;
		padding: 0.22rem;
	}

	/* Menu (now just the hamburger) stops growing and sits at the far right. */
	.memot-header .memot-nav__menu {
		flex: 0 0 auto;
		order: 3;
	}

	.memot-header .memot-nav__cta,
	.memot-header .memot-language-switcher {
		display: none;
	}

	.memot-header .memot-nav__cta .wp-block-button__link {
		text-align: center;
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-nav__cta,
	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-language-switcher {
		display: flex;
		position: fixed;
		z-index: 100001;
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-nav__cta {
		left: clamp(1.5rem, 8vw, 2.25rem);
		right: clamp(1.5rem, 8vw, 2.25rem);
		bottom: calc(max(1.5rem, env(safe-area-inset-bottom)) + 4rem);
		margin-left: auto;
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-nav__cta .wp-block-button,
	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-nav__cta .wp-block-button__link {
		width: 100%;
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-language-switcher {
		left: clamp(1.5rem, 8vw, 2.25rem);
		right: clamp(1.5rem, 8vw, 2.25rem);
		bottom: max(1.5rem, env(safe-area-inset-bottom));
		color: var(--wp--preset--color--ink);
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-language-switcher__trigger {
		background-color: var(--wp--preset--color--sand);
		color: var(--wp--preset--color--ink);
		justify-content: center;
		min-height: 2.75rem;
		width: 100%;
	}

	.memot-header .memot-nav:has(.wp-block-navigation__responsive-container.is-menu-open) .memot-language-switcher__menu {
		bottom: calc(100% + 0.5rem);
		margin: 0;
		top: auto;
	}

	.memot-header .memot-brand__word {
		font-size: clamp(0.95rem, 4.2vw, 1.1rem);
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

@media (max-width: 380px) {

	.memot-header {
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.memot-header .memot-nav {
		gap: 0.35rem;
		padding-left: 0.6rem;
		padding-right: 0.35rem;
	}

	.memot-header .memot-brand__mark a {
		width: 1.75rem;
		height: 1.75rem;
		padding: 0.18rem;
	}

	.memot-header .memot-brand__word {
		font-size: 0.9rem;
	}
}

/* -------------------------------------------------------------------------- *
 * Mobile navigation overlay
 * -------------------------------------------------------------------------- */

.memot-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--paper);
	padding-bottom: 10.75rem;
}

.memot-header .wp-block-navigation__responsive-dialog {
	width: 100%;
}

.memot-header .wp-block-navigation__responsive-container-close {
	width: 2.75rem;
	height: 2.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	color: var(--wp--preset--color--brand);
	transition: background-color 0.18s ease;
}

.memot-header .wp-block-navigation__responsive-container-close:hover,
.memot-header .wp-block-navigation__responsive-container-close:focus-visible {
	background-color: var(--wp--preset--color--sand);
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	width: 100%;
	gap: 0 !important;
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	padding: 1rem 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--x-large);
	font-weight: 700;
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--brand);
}

/* -------------------------------------------------------------------------- *
 * Stat badge (legacy section "10+ countries")
 * -------------------------------------------------------------------------- */

.memot-stat {
	background: var(--wp--preset--color--sand);
	border-radius: var(--memot-radius-lg);
	text-align: center;
	min-width: 200px;
}

.memot-stat .memot-stat-number {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	line-height: 1;
	color: var(--wp--preset--color--brand);
	font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.memot-stat .memot-stat-label {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

/* -------------------------------------------------------------------------- *
 * Cards (Group block style: is-style-memot-card)
 * -------------------------------------------------------------------------- */

.wp-block-group.is-style-memot-card {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--memot-radius);
	box-shadow: var(--memot-shadow-sm);
	height: 100%;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wp-block-group.is-style-memot-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--memot-shadow-md);
}

/* Icon chip inside a pillar card. */
.memot-icon-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--wp--preset--color--sand);
	color: var(--wp--preset--color--brand);
}

.memot-icon-chip svg,
.memot-icon-chip img {
	width: 24px;
	height: 24px;
}

/* Make equal-height columns behave for card rows. */
.wp-block-columns.is-style-memot-cards {
	align-items: stretch;
}

.wp-block-columns.is-style-memot-cards > .wp-block-column {
	display: flex;
}

/* -------------------------------------------------------------------------- *
 * Floating panel (sustainability split: is-style-memot-panel)
 * -------------------------------------------------------------------------- */

.wp-block-group.is-style-memot-panel {
	background: var(--wp--preset--color--paper);
	border-radius: var(--memot-radius-lg);
	box-shadow: var(--memot-shadow-lg);
}

.memot-split .memot-split-layout {
	gap: 0;
}

.memot-split .wp-block-media-text__media {
	margin: 0;
	min-height: 420px;
	border-radius: 16px;
	background: var(--wp--preset--color--sand);
	overflow: hidden;
}

.memot-split :where(.wp-block-media-text__media img, .wp-block-media-text__media video) {
	width: 100%;
	min-height: 420px;
	object-fit: cover;
}

@media (min-width: 782px) {

	/* Pull the panel over the adjacent image for the overlap look. */
	.memot-split .wp-block-media-text__content .is-style-memot-panel {
		margin-left: -12%;
	}
}

/* -------------------------------------------------------------------------- *
 * Products grid
 * -------------------------------------------------------------------------- */

.memot-product {
	background: var(--wp--preset--color--paper);
	border-radius: var(--memot-radius);
	overflow: hidden;
	height: 100%;
}

.memot-product .wp-block-image,
.memot-product figure {
	margin: 0;
}

.memot-product .memot-product-body {
	padding-top: 1rem;
}

.memot-product h3 {
	font-size: var(--wp--preset--font-size--large);
}

.memot-product .memot-product-meta {
	color: var(--wp--preset--color--slate);
	font-size: 0.9375rem;
}

.memot-product .memot-product-desc {
	margin-top: 0.5rem;
	color: var(--wp--preset--color--slate);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.memot-product-range__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--70);
}

.memot-product-range__item {
	display: flex;
}

/*
 * Shared card anatomy for every real product link — the homepage teaser grid
 * (patterns/products.php) and the archive's range grid
 * (patterns/products-page.php): icon chip, optional grade tag, title,
 * excerpt, and a "View specification" row pinned to the card's bottom edge.
 * Scoped to .memot-product-link rather than the bare .memot-product class so
 * the manually-placed memot/product-card editor block (no link wrapper, no
 * icon/CTA markup) is unaffected.
 */
.memot-product-link .memot-product {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
}

/* Amber tick along the top edge — the same signature mark as .memot-specs,
   here signalling that the card leads through to a certified specification. */
.memot-product-link .memot-product::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--wp--preset--color--harvest);
}

.memot-product-link :where(.wp-block-image img) {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.memot-product-link :where(.wp-block-cover) {
	aspect-ratio: 4 / 3;
}

.memot-product-link .memot-product-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--40);
}

.memot-product-link :where(.memot-icon-chip) {
	transition: transform 0.2s var(--memot-ease-out), background-color 0.2s var(--memot-ease-out), color 0.2s var(--memot-ease-out);
}

.memot-product-link:hover :where(.memot-icon-chip) {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	transform: rotate(-6deg);
}

.memot-product-link :where(.memot-product h3) {
	margin: 0;
}

.memot-product-link .memot-product-meta {
	margin: 0;
}

.memot-product-cta {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	width: 100%;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--preset--color--line);
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--wp--preset--color--brand);
}

.memot-product-cta-icon {
	width: 1rem;
	height: 1rem;
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.25s var(--memot-ease-out);
}

.memot-product-link:hover .memot-product-cta-icon {
	transform: translateX(4px);
}

@media (max-width: 781px) {

	.memot-product-range__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------- *
 * Latest Insights
 * -------------------------------------------------------------------------- */

.memot-insight {
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--memot-radius);
	overflow: hidden;
	height: 100%;
	box-shadow: var(--memot-shadow-sm);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.memot-insight:hover {
	transform: translateY(-3px);
	box-shadow: var(--memot-shadow-md);
}

.memot-insight :where(figure, .wp-block-image) img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	width: 100%;
	background: var(--wp--preset--color--sand);
}

.memot-product :where(.wp-block-image) img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	background: var(--wp--preset--color--sand);
}

.memot-logos figure:hover,
.memot-logos img:where(:hover) {
	filter: grayscale(0);
	opacity: 1;
}

.memot-insight .memot-insight-body {
	padding: 1.25rem;
}

.memot-insight h3 {
	font-size: var(--wp--preset--font-size--large);
}

/* Tag / category pill. */
.memot-tag,
.is-style-memot-tag,
.is-style-memot-tag a {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--brand);
	background: #e9f2ea;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	text-decoration: none;
}

.memot-meta-date {
	color: var(--wp--preset--color--slate);
	font-size: 0.8125rem;
}

/* -------------------------------------------------------------------------- *
 * CTA banner
 *
 * A two-column band: copy on the left, action stack on the right. The panel
 * owns its own geometry rather than reading it from each instance, so it fills
 * the wide column instead of stranding a short centred stack in a tall box.
 *
 * The `!important` resets are for instances that already live in post content
 * with the older inline padding/margins and a constrained inner layout (whose
 * generated rules centre children with `!important` of their own). They pick up
 * the new proportions without a content migration.
 * -------------------------------------------------------------------------- */

/* Bring the surrounding band back to the standard section rhythm (6rem). */
.wp-block-group:has(> .memot-cta) {
	padding-block: var(--wp--preset--spacing--90) !important;
}

.memot-cta {
	align-items: center;
	background:
		radial-gradient(80% 130% at 100% 0%, rgba(46, 158, 92, 0.16) 0%, rgba(46, 158, 92, 0) 62%),
		var(--wp--preset--gradient--brand-soft, linear-gradient(180deg, #e9f2ea 0%, #f5f3ee 100%));
	border: 1px solid rgba(27, 94, 58, 0.1);
	border-radius: var(--memot-radius-lg);
	box-shadow: var(--memot-shadow-sm);
	column-gap: var(--wp--preset--spacing--80);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 18rem);
	overflow: hidden;
	padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--80) !important;
	position: relative;
	row-gap: 0;
	text-align: left;
}

/* Decorative corner watermark — a vendored icon, not hand-drawn path data (see
   docs/DESIGN.md "Icons"). Negative z-index paints it above the gradient
   background but below the (non-positioned) copy/action columns. */
.memot-cta__leaf {
	bottom: -2rem;
	color: var(--wp--preset--color--leaf);
	height: clamp(9rem, 16vw, 13rem);
	opacity: 0.16;
	pointer-events: none;
	position: absolute;
	right: -2rem;
	transform: rotate(-18deg);
	width: clamp(9rem, 16vw, 13rem);
	z-index: -1;
}

.memot-cta__leaf svg {
	height: 100%;
	width: 100%;
}

/* The component owns its own spacing; per-instance margins are neutralised. */
.memot-cta > * {
	margin: 0 !important;
	max-width: none;
}

/* Copy rhythm is margin-based, not row-gap, so the action column can span every
   copy row (see below) without the empty rows it creates adding any gap. */
.memot-cta > h2 {
	margin-block-start: var(--wp--preset--spacing--20) !important;
}

.memot-cta > p {
	margin-block-start: var(--wp--preset--spacing--30) !important;
}

.memot-cta > :first-child {
	margin-block-start: 0 !important;
}

.memot-cta > .memot-cta__copy {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.memot-cta__copy > * {
	margin: 0;
}

.memot-cta h2 {
	max-width: 20ch;
}

.memot-cta p {
	color: var(--wp--preset--color--slate);
	max-width: 48ch;
}

/* Instances saved while this banner was centred still carry
   `.has-text-align-center`, which core ships as `:root .has-text-align-center`
   — so the override needs the same `:root` prefix to outrank it. */
:root .memot-cta .has-text-align-center {
	text-align: left;
}

/* Action column. The generous row span covers instances whose copy blocks are
   still flat siblings of the buttons rather than wrapped in .memot-cta__copy —
   spanning every copy row is what keeps the stack vertically centred against
   them. Harmless because row-gap is 0, so the empty rows have no height. */
.memot-cta > .memot-cta__actions,
.memot-cta > .wp-block-buttons {
	align-self: center;
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-column: 2;
	grid-row: 1 / span 20;
	grid-template-columns: minmax(0, 1fr);
}

.memot-cta__actions > * {
	margin: 0;
}

.memot-cta .wp-block-buttons {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: minmax(0, 1fr);
}

.memot-cta .wp-block-buttons .wp-block-button,
.memot-cta .wp-block-buttons .wp-block-button .wp-block-button__link {
	width: 100%;
}

.memot-cta .wp-block-buttons .wp-block-button .wp-block-button__link {
	text-align: center;
}

:root .memot-cta .memot-cta__note {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

.memot-cta__note a {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* Between the split and the stack, give the headline back the width the action
   column would otherwise take. */
@media (min-width: 901px) and (max-width: 1100px) {

	.memot-cta {
		column-gap: var(--wp--preset--spacing--60);
		grid-template-columns: minmax(0, 1fr) minmax(11rem, 13rem);
		padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--70) !important;
	}
}

@media (max-width: 900px) {

	.memot-cta {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--wp--preset--spacing--70) var(--wp--preset--spacing--60) !important;
	}

	.memot-cta > .memot-cta__actions,
	.memot-cta > .wp-block-buttons {
		grid-column: 1;
		grid-row: auto;
		justify-self: start;
		margin-block-start: var(--wp--preset--spacing--50) !important;
		max-width: 18rem;
		width: 100%;
	}

	.memot-cta h2,
	.memot-cta p {
		max-width: 100%;
	}

	/* Stacked, the note reads as part of the left-aligned column. */
	:root .memot-cta .memot-cta__note {
		text-align: left;
	}
}

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

.memot-footer {
	background: var(--wp--preset--color--ink);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
}

/* Column headings: quiet uppercase labels. */
.memot-footer .wp-block-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.5);
	margin-bottom: 1.1rem;
}

/* Wordmark — logo tile + display-face word. */
.memot-footer .memot-footer-brand {
	gap: 0.7rem;
	margin-bottom: 1rem;
}

.memot-footer-brand__mark {
	margin: 0;
	flex-shrink: 0;
	line-height: 0;
}

.memot-footer-brand__mark a {
	display: block;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0.3rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	transition: background-color 0.25s ease;
}

.memot-footer-brand__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.memot-footer .memot-footer-brand__word {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.75rem;
	letter-spacing: 0.01em;
	line-height: 1;
}

.memot-footer-brand__word a {
	color: var(--wp--preset--color--paper);
	text-decoration: none;
}

.memot-footer .memot-footer-mission {
	max-width: 34ch;
	color: rgba(255, 255, 255, 0.56);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.memot-footer .memot-footer-contact {
	color: rgba(255, 255, 255, 0.7);
	margin: 0 0 0.35rem;
}

/* Footer link lists — no bullets, generous line rhythm. */
.memot-footer .memot-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.memot-footer .memot-footer-list li {
	margin: 0;
}

.memot-footer a {
	color: rgba(255, 255, 255, 0.72);
	text-decoration: none;
	transition: color 0.18s ease;
}

.memot-footer a:hover {
	color: var(--wp--preset--color--paper);
}

.memot-pillar-card .memot-link-arrow a,
.memot-pillar-card a.memot-link-arrow {
	color: var(--wp--preset--color--paper);
	border-bottom: 2px solid var(--wp--preset--color--harvest);
	padding-bottom: 0.2em;
}

/* Social icons: muted white, warm on hover. */
.memot-footer .memot-footer-social a,
.memot-footer .memot-footer-social svg {
	color: var(--wp--preset--color--paper);
	fill: currentcolor;
}

.memot-footer .memot-footer-social a {
	opacity: 0.65;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Prefix dropped on purpose: matches the specificity of the link rules that
   follow, so source order stays non-descending. */
.memot-footer-social a:hover {
	opacity: 1;
	transform: translateY(-2px);
}

/* Bottom bar — hairline divider, copyright + legal links. */
.memot-footer .memot-footer-bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	gap: 1rem 1.5rem;
}

.memot-footer .memot-legal {
	color: rgba(255, 255, 255, 0.45);
	font-size: 0.8125rem;
	margin: 0;
}

.memot-footer-legal-links p {
	margin: 0;
	font-size: 0.8125rem;
}

.memot-footer .memot-footer-legal-links a {
	color: rgba(255, 255, 255, 0.55);
}

/* The switcher sits inside .memot-footer-legal-links, whose `a` rule above
   would otherwise paint its popover options (an opaque paper card) in the
   same translucent white as "Legal"/"Privacy policy" -- invisible on white. */
.memot-footer .memot-footer-legal-links .memot-language-switcher__option,
.memot-footer .memot-footer-legal-links .memot-language-switcher__option:hover,
.memot-footer .memot-footer-legal-links .memot-language-switcher__option:focus-visible {
	color: var(--wp--preset--color--ink);
}

/* Footer links measure well under the WCAG 2.5.8 (Level AA) 24px / mobile-
   usability 44px tap-target floor at narrow widths, since their hit area is
   just the text's own line-height. Widen it with padding rather than an
   invisible hit-box, per the audit's own recommendation, and pull the
   surrounding spacing back in with a negative margin so the visible layout
   rhythm is unchanged — only the tappable area grows. Desktop is left alone;
   pointer precision isn't the problem there. */
@media (max-width: 781px) {

	.memot-footer .memot-footer-list a,
	.memot-footer .memot-footer-legal-links a {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		margin: -0.5rem 0;
	}
}

/*
 * Brand hovers + nav link colours. Deliberately placed here, after the footer's
 * generic anchor rules, so the whole file's `a`-group specificity ascends in
 * source order (stylelint no-descending-specificity). The header link colour
 * itself is set on .memot-brand__word a / .memot-brand__mark a earlier.
 */
.memot-brand__mark a:hover {
	transform: rotate(-6deg) scale(1.05);
	background: #e9f2ea;
}

.memot-footer-brand__mark a:hover {
	background: rgba(255, 255, 255, 0.16);
}

/* Core's navigation block CSS doubles up `.wp-block-navigation-item__content`
   to boost its specificity for `color: inherit`. Match that trick here so the
   themeable nav colour actually wins over it. */
.memot-header .memot-nav__menu .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--memot-nav-fg, var(--wp--preset--color--ink));
	transition: color 0.3s ease-in-out;
}

.memot-header .memot-nav__menu .wp-block-navigation-item__content.wp-block-navigation-item__content:hover {
	color: var(--memot-nav-fg-hover, var(--wp--preset--color--brand));
}

/* Current page indicator: core's navigation-link render adds
   aria-current="page" to whichever link's target matches the queried
   object (wp-includes/blocks/navigation-link.php), so the "you are here"
   state is styled off that attribute rather than a bespoke class. It
   permanently takes the same colour/weight as the hover state. */
.memot-header .memot-nav__menu .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--memot-nav-fg-hover, var(--wp--preset--color--brand));
	font-weight: 600;
}

/* The fullscreen mobile overlay always has a paper background regardless of
   scroll state or template, so its links must stay dark ink even when the
   themed --memot-nav-fg is paper (e.g. the front page before scrolling). */
.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content {
	color: var(--wp--preset--color--ink);
}

.memot-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content.wp-block-navigation-item__content[aria-current="page"] {
	color: var(--wp--preset--color--brand);
}

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

@media (max-width: 781px) {

	.memot-split .wp-block-column:last-child .is-style-memot-panel {
		margin-left: 0;
	}
}

/* -------------------------------------------------------------------------- *
 * Page hero (About / Social / Investors / Contact)
 * -------------------------------------------------------------------------- */

/* The bottom padding is trimmed one step below what the editor authored so the
   fixed-header clearance added on top (see "Fixed-header clearance") doesn't
   simply make every hero band taller: the copy ends up sitting inside the band
   rather than riding its top edge, which is what made the space beneath it read
   as dead. !important for the same inline-style reason as the clearance. */
.memot-page-hero {
	background: var(--wp--preset--gradient--brand-soft, linear-gradient(180deg, #e9f2ea 0%, #f5f3ee 100%));
	padding-bottom: var(--wp--preset--spacing--80) !important;
}

.memot-page-hero h1 {
	max-width: 20ch;
}

.memot-page-hero .memot-lead {
	max-width: 60ch;
}

@media (max-width: 781px) {

	.memot-page-hero h1 {
		max-width: 100%;
	}
}

/* Single-post (article) hero: a headline can run longer than a page title. */
.memot-article-hero h1 {
	max-width: 13ch;
}

/* -------------------------------------------------------------------------- *
 * Timeline (About history) — a scroll-drawn rail with lighting dots
 * -------------------------------------------------------------------------- */

.memot-timeline {
	position: relative;
	padding-left: 2.5rem;
}

/* The rail track + its scroll-driven fill. */
.memot-timeline-track {
	position: absolute;
	top: 0.5rem;
	bottom: 0.5rem;
	left: 5px;
	width: 2px;
	border-radius: 2px;
	background: var(--wp--preset--color--line);
	overflow: hidden;
}

.memot-timeline-progress {
	position: absolute;
	inset: 0;
	transform-origin: top center;
	background: linear-gradient(180deg, var(--wp--preset--color--brand-bright) 0%, var(--wp--preset--color--brand) 100%);
}

.memot-timeline-item {
	position: relative;
	padding-bottom: var(--wp--preset--spacing--80);
}

.memot-timeline-item:last-child {
	padding-bottom: 0;
}

/* Dot on the rail — a paper ring keeps it clear of the fill behind it. */
.memot-timeline-item::before {
	content: "";
	position: absolute;
	top: 0.2rem;
	left: -2.5rem;
	width: 12px;
	height: 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--brand-bright);
	box-shadow: 0 0 0 4px var(--wp--preset--color--paper);
	transition: box-shadow 0.4s var(--memot-ease-out), transform 0.4s var(--memot-ease-out);
}

.memot-timeline-item.is-active::before {
	box-shadow: 0 0 0 4px var(--wp--preset--color--paper), 0 0 0 8px rgba(46, 158, 92, 0.16);
	transform: scale(1.15);
}

.memot-timeline-year {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--leaf);
	margin-bottom: 0.35rem;
}

.memot-timeline-title {
	font-size: var(--wp--preset--font-size--large);
	margin-bottom: 0.4rem;
}

.memot-timeline-label {
	color: var(--wp--preset--color--slate);
	margin: 0;
	max-width: 54ch;
}

@media (max-width: 600px) {

	.memot-timeline {
		padding-left: 2rem;
	}

	.memot-timeline-item::before {
		left: -2rem;
	}
}

/* -------------------------------------------------------------------------- *
 * Contact info grid
 * -------------------------------------------------------------------------- */

.memot-contact-grid {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--50);
}

.memot-contact-item {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--40);
}

.memot-contact-item .memot-icon-chip {
	flex: 0 0 auto;
}

.memot-contact-grid .memot-contact-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
	margin-bottom: 0.4rem;
}

.memot-contact-grid .memot-contact-value {
	color: var(--wp--preset--color--ink);
	margin: 0;
}

/* -------------------------------------------------------------------------- *
 * Investor documents list
 * -------------------------------------------------------------------------- */

.memot-doc {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30);
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.memot-doc:last-child {
	border-bottom: none;
}

.memot-doc-meta {
	color: var(--wp--preset--color--slate);
	font-size: 0.8125rem;
}

/* ========================================================================== *
 * MOTION + INTERACTION LAYER
 *
 * Progressive enhancement for the marketing pages. Everything in this block is
 * additive: the site is fully readable with JavaScript disabled, and every
 * animation collapses to its finished state under prefers-reduced-motion.
 *
 * Reveal orchestration: an early inline script adds `.memot-anim` to <html>
 * before first paint (only when motion is allowed). The rules below use that
 * class to pre-hide reveal targets so there is no flash of un-animated content;
 * memot-motion.js then animates them in and the class is a no-op afterwards.
 *
 * This layer is deliberately additive: it re-opens base component selectors and
 * relies on higher-specificity `.memot-anim` pre-hide rules preceding their
 * lower-specificity resting state. Both patterns are intentional here.
 * ========================================================================== */

/* stylelint-disable no-duplicate-selectors, no-descending-specificity */

:root {
	--memot-harvest: var(--wp--preset--color--harvest, #c9a15a);
	--memot-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Give the display face a touch more optical presence at large sizes. */
:where(h1, h2) {
	letter-spacing: -0.018em;
}

/* Amber tick before every eyebrow — the small recurring signature that ties
   the sections together (tapped-latex amber against the plantation green). */
.is-style-memot-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.is-style-memot-eyebrow::before {
	content: "";
	width: 1.75rem;
	height: 2px;
	background: var(--memot-harvest);
	flex: none;
}

.has-text-align-center.is-style-memot-eyebrow {
	justify-content: center;
}

/* -------------------------------------------------------------------------- *
 * Scroll-reveal utilities (JS-gated; safe without JS / reduced motion)
 * -------------------------------------------------------------------------- */

.memot-anim .memot-hero .memot-line-inner,
.memot-anim .memot-hero .memot-hero-eyebrow,
.memot-anim .memot-hero .memot-hero-copy,
.memot-anim .memot-hero .wp-block-buttons,
.memot-anim .memot-hero .memot-hero-cue,
.memot-anim .memot-hero .memot-hero-media {
	opacity: 0;
	will-change: transform, opacity;
}

.memot-anim .memot-news-hero :where(.memot-news-hero__topline, .memot-news-hero__eyebrow, h1, .memot-news-hero__lead, .memot-news-hero__actions, .memot-news-hero__stage, .memot-news-hero__stat) {
	opacity: 0;
	will-change: transform, opacity;
}

.memot-anim .memot-contact-hero :where(.memot-contact-hero__eyebrow, h1, .memot-contact-hero__lead, .memot-contact-hero__actions, .memot-contact-hero__facts, .memot-contact-hero__stage) {
	opacity: 0;
	will-change: transform, opacity;
}

.memot-anim .wp-block-group.alignfull h2.wp-block-heading,
.memot-anim .memot-lead,
.memot-anim .memot-stat,
.memot-anim .is-style-memot-card,
.memot-anim .is-style-memot-panel,
.memot-anim .memot-pillar-card,
.memot-anim .memot-product,
.memot-anim .memot-job,
.memot-anim .memot-reach-map,
.memot-anim .memot-reach-item,
.memot-anim .memot-contact-item,
.memot-anim .memot-insight,
.memot-anim .memot-map,
.memot-anim .memot-cta {
	opacity: 0;
	transform: translateY(30px);
	will-change: transform, opacity;
}

/* -------------------------------------------------------------------------- *
 * Refined depth on the gradient placeholders + interaction states
 *
 * This additive layer intentionally re-opens base component selectors
 * (.memot-product, .memot-header, cards, …) to layer hover/scroll behaviour
 * on top of them in source order.
 * -------------------------------------------------------------------------- */

.memot-product .wp-block-cover,
.memot-insight .wp-block-cover {
	position: relative;
	overflow: hidden;
}

.memot-product .wp-block-cover::after,
.memot-insight .wp-block-cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
		radial-gradient(90% 70% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
}

.memot-product {
	border: 1px solid var(--wp--preset--color--line);
	box-shadow: var(--memot-shadow-sm);
	transition: transform 0.35s var(--memot-ease-out), box-shadow 0.35s var(--memot-ease-out);
}

.memot-product:hover {
	transform: translateY(-6px);
	box-shadow: var(--memot-shadow-md);
}

.memot-product .wp-block-cover__background {
	transition: transform 0.5s var(--memot-ease-out);
}

.memot-product:hover .wp-block-cover__background {
	transform: scale(1.06);
}

.memot-product .wp-block-image img {
	transition: transform 0.5s var(--memot-ease-out);
}

.memot-product:hover .wp-block-image img {
	transform: scale(1.06);
}

/*
 * Whole-card link wrapper around .memot-product (products grid). Height is
 * explicit (not just display:block) so the card fills a stretched flex/grid
 * parent — e.g. .wp-block-columns on the homepage teaser — instead of
 * shrinking to its own excerpt length and leaving cards uneven when one
 * grade's excerpt wraps to an extra line.
 */
.memot-product-link {
	display: block;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.memot-product-link:focus-visible {
	outline: 2px solid var(--wp--preset--color--brand-bright);
	outline-offset: 4px;
	border-radius: var(--memot-radius);
}

.memot-reach-map {
	position: relative;
	overflow: hidden;
	transition: transform 0.4s var(--memot-ease-out);
}

.memot-reach-item {
	transition: border-color 0.25s ease;
}

.memot-reach-item:hover {
	border-top-color: var(--memot-harvest);
}

/* Card lift easing upgrade (matches the new motion vocabulary). */
.wp-block-group.is-style-memot-card {
	transition: transform 0.35s var(--memot-ease-out), box-shadow 0.35s var(--memot-ease-out), border-color 0.35s var(--memot-ease-out);
}

.wp-block-group.is-style-memot-card:hover {
	transform: translateY(-6px);
	border-color: color-mix(in srgb, var(--wp--preset--color--brand-bright) 40%, var(--wp--preset--color--line));
}

.memot-icon-chip {
	transition: transform 0.35s var(--memot-ease-out), background-color 0.3s ease, color 0.3s ease;
}

.is-style-memot-card:hover .memot-icon-chip {
	transform: translateY(-2px) rotate(-6deg);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
}

/* Primary buttons get a soft press + sheen on hover. */
.wp-element-button {
	transition: transform 0.25s var(--memot-ease-out), background-color 0.25s ease, box-shadow 0.25s ease;
}

.wp-element-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(27, 94, 58, 0.28);
}

.wp-element-button:active {
	transform: translateY(0);
}

/* -------------------------------------------------------------------------- *
 * Header scroll state
 * -------------------------------------------------------------------------- */

/* On scroll the resting capsule firms up rather than appearing: the glass fill
   goes near-opaque, the hairline and shadow deepen, and the header itself
   tightens for a more compact bar. `.is-scrolled` is toggled on .memot-header
   by the motion layer (see memot-motion.js) once the page has scrolled past
   the 50–100px threshold. */
.memot-header.is-scrolled {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.memot-header.is-scrolled .memot-nav {
	border-color: var(--memot-nav-edge-strong);
	box-shadow:
		0 4px 10px rgba(22, 22, 15, 0.08),
		0 18px 40px rgba(22, 22, 15, 0.12);
}

.memot-header.is-scrolled .memot-nav::before {
	opacity: 1;
	transform: translateY(0);
	background: var(--memot-nav-surface-strong);
}

/*
 * Desktop nav items. Each link is a pill-shaped hit area that fills on hover —
 * the same gesture the language switcher already uses, so the capsule's
 * interactive parts behave as one family. The amber underline is reserved for
 * the current page, which keeps hover and "you are here" as two distinct
 * signals instead of stacking on the same element.
 * Scoped to the closed (horizontal) menu so the mobile overlay is untouched.
 */
.memot-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	position: relative;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.3s ease-in-out;
}

.memot-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover,
.memot-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:focus-visible {
	background-color: var(--memot-nav-item-bg);
}

.memot-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.2rem;
	height: 2px;
	border-radius: 2px;
	background: var(--memot-harvest);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.25s var(--memot-ease-out);
}

.memot-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content[aria-current="page"]::after {
	transform: scaleX(1);
}

/* -------------------------------------------------------------------------- *
 * Reduced motion — collapse everything to the finished state
 * -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.memot-anim .memot-hero .memot-line-inner,
	.memot-anim .memot-hero .memot-hero-eyebrow,
	.memot-anim .memot-hero .memot-hero-copy,
	.memot-anim .memot-hero .wp-block-buttons,
	.memot-anim .memot-hero .memot-hero-cue,
	.memot-anim .memot-hero .memot-hero-media,
	.memot-anim .wp-block-group.alignfull h2.wp-block-heading,
	.memot-anim .memot-lead,
	.memot-anim .memot-stat,
	.memot-anim .is-style-memot-card,
	.memot-anim .is-style-memot-panel,
	.memot-anim .memot-pillar-card,
	.memot-anim .memot-product,
	.memot-anim .memot-reach-map,
	.memot-anim .memot-reach-item,
	.memot-anim .memot-contact-item,
	.memot-anim .memot-insight,
	.memot-anim .memot-map,
	.memot-anim .memot-cta {
		opacity: 1;
		transform: none;
	}

	.memot-header,
	.memot-header .memot-nav,
	.memot-header .memot-nav::before {
		transition-duration: 0.01ms;
	}
}

/* ========================================================================== *
 * ABOUT PAGE
 *
 * Self-contained components for the company story page. Built on the shared
 * tokens and the same `.memot-anim` reveal contract used across the theme.
 * ========================================================================== */

/* -------------------------------------------------------------------------- *
 * About hero — proof strip beneath the headline
 * -------------------------------------------------------------------------- */

.memot-hero-stats {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80);
	margin: var(--wp--preset--spacing--80) 0 0;
	padding-top: var(--wp--preset--spacing--60);
	border-top: 1px solid var(--wp--preset--color--line);
}

.memot-hero-stats dt,
.memot-hero-stats dd {
	margin: 0;
}

.memot-hero-stat {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.memot-hero-stat-num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 2.75rem);
	line-height: 1;
	color: var(--wp--preset--color--brand);
}

.memot-hero-stat-label {
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

/* Shared check-list used in Mission / Vision. */
.memot-checklist {
	list-style: none;
	margin: var(--wp--preset--spacing--50) 0 0;
	padding: 0;
	display: grid;
	gap: 0.85rem;
}

.memot-checklist li {
	position: relative;
	padding-left: 2rem;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
}

.memot-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 1.3rem;
	height: 1.3rem;
	border-radius: 999px;
	background-color: rgba(46, 158, 92, 0.14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E9E5C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.8rem;
}

/* Inverted variant for dark backgrounds (Mission panel). */
.memot-checklist--invert li {
	color: rgba(255, 255, 255, 0.9);
}

.memot-checklist--invert li::before {
	background-color: rgba(255, 255, 255, 0.16);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238FE0AB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------------- *
 * Core values — icon card grid
 * -------------------------------------------------------------------------- */

.memot-value-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: var(--wp--preset--spacing--50);
	margin-top: var(--wp--preset--spacing--70);
}

.memot-value-card {
	padding: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--memot-radius);
	box-shadow: var(--memot-shadow-sm);
	transition: transform 0.2s var(--memot-ease-out), box-shadow 0.2s var(--memot-ease-out), border-color 0.2s var(--memot-ease-out);
}

.memot-value-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--memot-shadow-md);
	border-color: transparent;
}

.memot-value-card .memot-icon-chip {
	margin-bottom: var(--wp--preset--spacing--40);
	transition: transform 0.2s var(--memot-ease-out), background-color 0.2s var(--memot-ease-out), color 0.2s var(--memot-ease-out);
}

.memot-value-card:hover .memot-icon-chip {
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	transform: rotate(-6deg);
}

.memot-value-title {
	margin: 0 0 0.4rem;
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--large);
}

.memot-value-text {
	margin: 0;
	color: var(--wp--preset--color--slate);
	font-size: 0.9375rem;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------- *
 * Corporate profile — details list beneath the stat row
 * -------------------------------------------------------------------------- */

.memot-profile-stats {
	margin-top: var(--wp--preset--spacing--70);
}

.memot-profile-details {
	margin: var(--wp--preset--spacing--80) 0 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	border-top: 1px solid var(--wp--preset--color--line);
}

.memot-profile-detail {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding: var(--wp--preset--spacing--50) 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.memot-profile-detail:nth-child(odd) {
	padding-right: var(--wp--preset--spacing--60);
}

.memot-profile-detail:nth-child(even) {
	padding-left: var(--wp--preset--spacing--60);
	border-left: 1px solid var(--wp--preset--color--line);
}

.memot-profile-detail__term {
	margin: 0;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--wp--preset--color--leaf);
}

.memot-profile-detail__value {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--ink);
}

@media (max-width: 600px) {

	.memot-profile-details {
		grid-template-columns: 1fr;
	}

	.memot-profile-detail:nth-child(odd) {
		padding-right: 0;
	}

	.memot-profile-detail:nth-child(even) {
		padding-left: 0;
		border-left: 0;
	}
}

/* -------------------------------------------------------------------------- *
 * Reveal contract for About-specific targets (JS-gated, safe without it)
 * -------------------------------------------------------------------------- */

.memot-anim .memot-hero-stat,
.memot-anim .memot-timeline-item,
.memot-anim .memot-mission__panel,
.memot-anim .memot-vision__goal,
.memot-anim .memot-vision__banner,
.memot-anim .memot-value-card,
.memot-anim .memot-leader-card,
.memot-anim .memot-profile-detail,
.memot-anim .memot-industry-tile {
	opacity: 0;
	transform: translateY(28px);
	will-change: transform, opacity;
}

.memot-anim .memot-timeline-progress {
	transform: scaleY(0);
}

@media (prefers-reduced-motion: reduce) {

	.memot-anim .memot-hero-stat,
	.memot-anim .memot-timeline-item,
	.memot-anim .memot-mission__panel,
	.memot-anim .memot-vision__goal,
	.memot-anim .memot-vision__banner,
	.memot-anim .memot-value-card,
	.memot-anim .memot-leader-card,
	.memot-anim .memot-profile-detail,
	.memot-anim .memot-industry-tile {
		opacity: 1;
		transform: none;
	}

	.memot-anim .memot-timeline-progress {
		transform: none;
	}
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

:root :where(a:where(:not(.wp-element-button)):hover) {
	text-decoration: none;
}

/* -------------------------------------------------------------------------- *
 * Scroll to top
 * -------------------------------------------------------------------------- */

/*
 * Printed once via wp_footer (functions.php) so it's present on every
 * template without editing each one. Hidden by default; memot-scroll-top.js
 * adds `.is-visible` once the page has scrolled past a full viewport and the
 * document is actually long enough to warrant it — pages that don't scroll
 * never see the button at all.
 */
.memot-to-top {
	position: fixed;
	right: clamp(1.25rem, 4vw, 2rem);
	bottom: clamp(1.25rem, 4vw, 2rem);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background: var(--wp--preset--color--paper);
	color: var(--wp--preset--color--ink);
	box-shadow: var(--memot-shadow-md);
	cursor: pointer;
	opacity: 0;
	transform: translateY(0.75rem);
	pointer-events: none;
	transition:
		opacity 0.3s var(--memot-ease-out),
		transform 0.3s var(--memot-ease-out),
		background-color 0.25s ease,
		border-color 0.25s ease,
		color 0.25s ease;
}

.memot-to-top svg {
	width: 1.35rem;
	height: 1.35rem;
}

.memot-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.memot-to-top:hover,
.memot-to-top:focus-visible {
	border-color: var(--wp--preset--color--brand);
	background: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--paper);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {

	.memot-to-top {
		transition: opacity 0.15s ease;
	}

	.memot-to-top.is-visible,
	.memot-to-top:hover,
	.memot-to-top:focus-visible {
		transform: none;
	}
}

@media (max-width: 480px) {

	.memot-to-top {
		width: 2.85rem;
		height: 2.85rem;
	}

	.memot-to-top svg {
		width: 1.2rem;
		height: 1.2rem;
	}
}

/* Shared between News single (single.html) and Product single
   (single-memot_product.html) — both templates reuse .memot-page-hero
   .memot-article-hero for their opening band and .memot-article-back for the
   "back" link, so these live here rather than in pages/news.css to avoid
   forcing the News bundle onto the Product single template. */
.memot-article-hero {
	position: relative;
	overflow: hidden;
}

.memot-article-hero .memot-lead {
	max-width: 44ch;
}

.memot-article-back :where(a) {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
	text-decoration: none;
}

.memot-article-back :where(a:hover, a:focus-visible) {
	text-decoration: underline;
}

@media (max-width: 781px) {

	.memot-article-hero h1,
	.memot-article-hero .memot-lead {
		max-width: 100%;
	}
}

