.wp-block-tv-base-site-hero.hero {
	position: relative;
	min-height: calc(100vh - var(--nav-height));
	background: var(--color-primary);
	overflow: hidden;
}

.wp-block-tv-base-site-hero .hero__content {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	min-height: calc(100vh - var(--nav-height));
	margin-inline: auto;
}

.wp-block-tv-base-site-hero .hero__text {
	width: 50%;
	color: var(--color-on-primary);
}

.wp-block-tv-base-site-hero .hero__heading {
	color: var(--color-on-primary);
	margin-bottom: 1.5rem;
}

.wp-block-tv-base-site-hero .hero__text p {
	font-size: clamp(1rem, 1.5vw, 1.25rem);
	line-height: 1.6;
	opacity: 0.92;
	max-width: 46ch;
	margin: 0 0 2.25rem;
}

.wp-block-tv-base-site-hero .hero__buttons {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.wp-block-tv-base-site-hero .share-price {
	--share-price-text: var(--color-on-primary);
	--share-price-muted: color-mix(in srgb, var(--color-on-primary) 70%, transparent);
	--share-price-bg: color-mix(in srgb, var(--color-on-primary) 8%, transparent);
	position: absolute;
	left: 0;
	bottom: 56px;
	z-index: 3;
	background: var(--share-price-bg);
	color: var(--share-price-text);
	padding: 20px 56px 20px 40px;
	border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* Dark scheme: dark text on a light panel, for bright images behind it. */
.wp-block-tv-base-site-hero .share-price--dark {
	--share-price-text: var(--color-text);
	--share-price-muted: color-mix(in srgb, var(--color-text) 70%, transparent);
	--share-price-bg: color-mix(in srgb, var(--color-on-primary) 85%, transparent);
}

/* Right placement mirrors the left one. */
.wp-block-tv-base-site-hero .share-price--right {
	left: auto;
	right: 0;
	padding: 20px 40px 20px 56px;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.wp-block-tv-base-site-hero .share-price__label {
	font-size: 0.85rem;
	color: var(--share-price-muted);
	margin-bottom: 4px;
}

/* Share price: the MFN ticker, styled like the price and time it replaced. Symbol and change are hidden. */
.wp-block-tv-base-site-hero .share-price .tv-base-ticker [id^="mf-ticker-"] {
	gap: 0;
}

.wp-block-tv-base-site-hero .share-price .tv-base-ticker .stock-symbol,
.wp-block-tv-base-site-hero .share-price .tv-base-ticker .delta-today,
.wp-block-tv-base-site-hero .share-price .tv-base-ticker .delta-today-currency {
	display: none;
}

.wp-block-tv-base-site-hero .share-price .tv-base-ticker .latest-price {
	color: var(--share-price-text);
	font-size: 1.75rem;
	font-weight: var(--font-weight-bold);
	line-height: 1.2;
	margin-bottom: 4px;
}

.wp-block-tv-base-site-hero .share-price .tv-base-ticker .latest-date-time {
	color: var(--share-price-muted);
	font-size: 0.8rem;
	line-height: 1.4;
}

/* Smaller screens (narrower than 1280px, or shorter than 800px): the share price box is smaller and sits
 * lower, so it stays clear of the CTA buttons. Desktop sizes keep the full size. */
@media (min-width: 901px) and (max-width: 1280px), (min-width: 901px) and (max-height: 800px) {
	.wp-block-tv-base-site-hero .share-price {
		bottom: 24px;
		padding: 14px 36px 14px 28px;
	}

	.wp-block-tv-base-site-hero .share-price--right {
		padding: 14px 28px 14px 36px;
	}

	.wp-block-tv-base-site-hero .share-price__label {
		font-size: 0.75rem;
		margin-bottom: 2px;
	}

	.wp-block-tv-base-site-hero .share-price .tv-base-ticker .latest-price {
		font-size: 1.25rem;
	}

	.wp-block-tv-base-site-hero .share-price .tv-base-ticker .latest-date-time {
		font-size: 0.7rem;
	}
}

.wp-block-tv-base-site-hero .hero__picture {
	position: absolute;
	top: 0;
	left: 60%;
	width: 40%;
	height: 100%;
	z-index: 1;
	margin: 0;
}

.wp-block-tv-base-site-hero .hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wp-block-tv-base-site-hero .hero__curve {
	position: absolute;
	top: 0;
	left: 60%;
	height: 100%;
	width: auto;
	z-index: 2;
}

/* Clean edge: no zigzag. The image becomes an inset, rounded panel on the right. */
.wp-block-tv-base-site-hero.hero--clean .hero__picture {
	top: 40px;
	bottom: 40px;
	left: 54%;
	width: auto;
	right: 40px;
	height: auto;
	border-radius: var(--radius-lg, 24px);
	overflow: hidden;
}

.wp-block-tv-base-site-hero.hero--clean .hero__curve {
	display: none;
}

.wp-block-tv-base-site-hero.hero--clean .share-price--right {
	right: 40px;
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* Layered edge: the main image and up to two smaller ones float at different depths. site-motion/hero-layers.js
 * moves them on scroll and pointer movement; the CSS here handles the entrance and a slow idle drift. */
.wp-block-tv-base-site-hero.hero--layered .hero__picture,
.wp-block-tv-base-site-hero.hero--layered .hero__curve {
	display: none;
}

.hero__stage {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 52%;
	right: 0;
	z-index: 2;
	pointer-events: none;
}

.hero__ring {
	position: absolute;
	right: 4%;
	top: 50%;
	width: min(34vw, 520px);
	aspect-ratio: 1;
	margin-top: calc(min(34vw, 520px) / -2);
	border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--color-on-primary) 28%, transparent);
	background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--color-on-primary) 12%, transparent), transparent 70%);
	will-change: transform;
}

.hero__layer {
	position: absolute;
	will-change: transform;
}

.hero__layer-inner {
	width: 100%;
	height: 100%;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--color-on-primary) 14%, transparent);
	opacity: 0;
	animation: tv-base-hero-layer-in 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) var(--layer-delay, 150ms) forwards,
		tv-base-hero-layer-drift var(--layer-drift, 9s) ease-in-out calc(var(--layer-delay, 150ms) + 1100ms) infinite alternate;
}

.hero__layer-inner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero__layer--main {
	right: 6%;
	top: 12%;
	width: 56%;
	height: 72%;
	--layer-delay: 150ms;
	--layer-drift: 11s;
}

.hero__layer--a {
	left: 2%;
	bottom: 9%;
	width: 36%;
	height: 27%;
	--layer-delay: 420ms;
	--layer-drift: 8s;
}

.hero__layer--a .hero__layer-inner,
.hero__layer--b .hero__layer-inner {
	border: 5px solid color-mix(in srgb, var(--color-on-primary) 92%, transparent);
}

.hero__layer--b {
	right: 2%;
	top: 7%;
	width: 22%;
	height: 22%;
	--layer-delay: 680ms;
	--layer-drift: 10s;
}

@keyframes tv-base-hero-layer-in {
	from {
		opacity: 0;
		translate: 0 40px;
		scale: 0.94;
	}
	to {
		opacity: 1;
		translate: 0 0;
		scale: 1;
	}
}

@keyframes tv-base-hero-layer-drift {
	from { transform: translateY(0); }
	to { transform: translateY(-12px); }
}

@media (max-width: 768px) {
	.hero__stage {
		display: none;
	}

	.wp-block-tv-base-site-hero.hero--layered .hero__picture {
		display: block;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero__layer-inner {
		animation: none;
		opacity: 1;
	}
}

@media (max-width: 768px) {
	.wp-block-tv-base-site-hero.hero {
		min-height: 480px;
	}

	.wp-block-tv-base-site-hero .hero__content {
		align-items: flex-start;
		min-height: 480px;
		padding-top: 48px;
		padding-bottom: 40px;
	}

	.wp-block-tv-base-site-hero .hero__text {
		width: 100%;
	}

	.wp-block-tv-base-site-hero .hero__picture,
	.wp-block-tv-base-site-hero.hero--clean .hero__picture {
		top: 0;
		bottom: auto;
		left: 0;
		right: auto;
		width: 100%;
		height: 100%;
		border-radius: 0;
		opacity: 0.3;
	}

	.wp-block-tv-base-site-hero .hero__curve {
		display: none;
	}

	.wp-block-tv-base-site-hero .share-price {
		position: static;
		margin: 0 24px 40px;
		padding: 16px 28px 16px 24px;
		border-radius: var(--radius-md);
		width: fit-content;
	}
}

/* The optional background video sits over the image. Phones and reduced-motion visitors keep the image. */
@media (max-width: 768px), (prefers-reduced-motion: reduce) {
	.wp-block-tv-base-site-hero .hero__video-wrap {
		display: none;
	}
}

.wp-block-tv-base-site-hero .hero__accent {
	color: var(--color-accent);
}

/* Soft edge: a calm, dark hero. A gradient continues the blue header into ink, a slow aura glows behind a framed,
 * softly lit images. Colour stays in the brand's forest green and mint. */
.wp-block-tv-base-site-hero.hero--soft {
	--hero-glow: color-mix(in srgb, var(--color-primary) 80%, transparent);
	background-color: var(--color-dark);
	background-image:
		linear-gradient(105deg, transparent 38%, var(--hero-glow) 100%),
		linear-gradient(180deg, var(--color-primary) 0, color-mix(in srgb, var(--color-primary) 38%, var(--color-dark)) 22%, var(--color-dark) 78%);
	background-size: 140% 140%, 100% 100%;
	background-position: 30% 30%, 0 0;
	animation: tv-base-hero-aura 22s ease-in-out infinite alternate;
}

@keyframes tv-base-hero-aura {
	to { background-position: 80% 60%, 0 0; }
}

.wp-block-tv-base-site-hero.hero--soft .hero__picture {
	top: 56px;
	bottom: 56px;
	left: 56%;
	right: max(40px, calc((100vw - var(--content-width, 1320px)) / 2));
	width: auto;
	height: auto;
	border-radius: 24px;
	overflow: hidden;
	background: var(--color-dark);
	box-shadow: 0 40px 80px -30px rgba(0, 28, 18, 0.7), 0 0 0 1px color-mix(in srgb, var(--color-on-primary) 16%, transparent);
	clip-path: inset(0 0 0 0 round 24px);
	animation: tv-base-hero-panel-in 1100ms cubic-bezier(0.16, 1, 0.3, 1) 150ms backwards;
}

.wp-block-tv-base-site-hero.hero--soft .hero__image {
	filter: saturate(0.82) contrast(1.04);
	transform: scale(1.04);
	animation: tv-base-hero-image-settle 1800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms backwards;
}

/* Light falls from the upper left; the lower part melts into the page's ink. */
.wp-block-tv-base-site-hero.hero--soft .hero__picture::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(0deg, color-mix(in srgb, var(--color-dark) 78%, transparent) 0, transparent 42%),
		linear-gradient(105deg, color-mix(in srgb, var(--color-primary) 38%, transparent) 0, transparent 55%);
	mix-blend-mode: normal;
}

.wp-block-tv-base-site-hero.hero--soft .hero__curve {
	display: none;
}

.wp-block-tv-base-site-hero.hero--soft .hero__text {
	width: 46%;
}

.wp-block-tv-base-site-hero.hero--soft .hero__text p {
	color: color-mix(in srgb, var(--color-on-primary) 86%, var(--color-primary));
	opacity: 1;
}

@keyframes tv-base-hero-panel-in {
	from { opacity: 0; clip-path: inset(8% 0 0 0 round 24px); translate: 0 24px; }
}

@keyframes tv-base-hero-image-settle {
	from { transform: scale(1.14); }
}

@media (max-width: 768px) {
	.wp-block-tv-base-site-hero.hero--soft .hero__content {
		min-height: 0;
		padding-bottom: 32px;
	}

	.wp-block-tv-base-site-hero.hero--soft .hero__text {
		width: 100%;
	}

	.wp-block-tv-base-site-hero.hero--soft .hero__picture {
		display: block;
		position: relative;
		inset: auto;
		width: auto;
		height: 320px;
		margin: 0 24px 40px;
		opacity: 1;
		border-radius: 20px;
		clip-path: inset(0 round 20px);
	}

	.wp-block-tv-base-site-hero.hero--soft .hero__picture::after {
		background: linear-gradient(0deg, color-mix(in srgb, var(--color-dark) 45%, transparent) 0, transparent 30%);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-tv-base-site-hero.hero--soft,
	.wp-block-tv-base-site-hero.hero--soft .hero__picture,
	.wp-block-tv-base-site-hero.hero--soft .hero__image {
		animation: none;
	}
}

/* Mosaic: the main image plus up to two more, as three quiet tiles. Nobody looks into the lens; the people are at work. */
.wp-block-tv-base-site-hero.hero--mosaic .hero__mosaic {
	position: absolute;
	top: 56px;
	bottom: 56px;
	left: 54%;
	right: max(40px, calc((100vw - var(--content-width, 1320px)) / 2));
	z-index: 1;
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	grid-template-rows: 1.1fr 1fr;
	gap: 14px;
}

.wp-block-tv-base-site-hero.hero--mosaic .hero__picture,
.wp-block-tv-base-site-hero.hero--mosaic .hero__tile {
	position: relative;
	inset: auto;
	width: auto;
	height: auto;
	min-height: 0;
	border-radius: 20px;
	overflow: hidden;
	clip-path: none;
	box-shadow: 0 24px 50px -28px rgba(0, 28, 18, 0.7), 0 0 0 1px color-mix(in srgb, var(--color-on-primary) 14%, transparent);
	animation: tv-base-hero-tile-in 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.wp-block-tv-base-site-hero.hero--mosaic .hero__picture {
	grid-row: 1 / span 2;
	display: block;
	animation-delay: 120ms;
}

.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--a { animation-delay: 300ms; }
.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--b { animation-delay: 480ms; }

.wp-block-tv-base-site-hero.hero--mosaic .hero__tile img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(0.82) contrast(1.04);
}

.wp-block-tv-base-site-hero.hero--mosaic .hero__picture::after {
	background: linear-gradient(0deg, color-mix(in srgb, var(--color-dark) 55%, transparent) 0, transparent 38%);
}

/* After arriving, the two small tiles drift a few pixels in opposite directions. */
.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--a { --drift: -7px; }
.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--b { --drift: 7px; }

@keyframes tv-base-hero-tile-in {
	from { opacity: 0; translate: 0 28px; }
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-tv-base-site-hero.hero--mosaic .hero__tile {
		animation: tv-base-hero-tile-in 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards, tv-base-hero-tile-drift 10s ease-in-out 1.4s infinite alternate;
	}
	.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--a { animation-delay: 300ms, 1.4s; }
	.wp-block-tv-base-site-hero.hero--mosaic .hero__tile--b { animation-delay: 480ms, 1.6s; animation-duration: 900ms, 12s; }
}

@keyframes tv-base-hero-tile-drift {
	to { transform: translateY(var(--drift, 6px)); }
}

@media (max-width: 768px) {
	.wp-block-tv-base-site-hero.hero--mosaic .hero__mosaic {
		position: relative;
		inset: auto;
		height: 300px;
		margin: 0 24px 40px;
	}

	.wp-block-tv-base-site-hero.hero--mosaic .hero__picture {
		margin: 0;
		height: auto;
		border-radius: 16px;
	}

	.wp-block-tv-base-site-hero.hero--mosaic .hero__tile {
		border-radius: 16px;
	}
}

/* Inner pages: a shorter hero. Only the home page fills the screen. */
@media (min-width: 769px) {
	body:not(.home) .wp-block-tv-base-site-hero.hero--soft,
	body:not(.home) .wp-block-tv-base-site-hero.hero--soft .hero__content {
		min-height: clamp(460px, 62vh, 600px);
	}

	body:not(.home) .wp-block-tv-base-site-hero.hero--mosaic .hero__mosaic {
		top: 40px;
		bottom: 40px;
	}
}
