/**
 * Home composition agreed with MF Marketing on 23/10/2026.
 *
 * Hero stage with two messages (concept + product), Earth highlights band,
 * three Solutions cards, projects carousel, reviews slot and a short About.
 * The process story keeps its own stylesheet.
 */

.ew-home-extra[hidden], .ew-home-extra__media[hidden], .ew-home-extra__media img[hidden] {
	display: none !important;
}

.ew-home-extra__inner {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(2rem, 5vw, 5rem);
	align-items: center;
}

.ew-home-extra__copy h2 {
	margin-top: 0;
}

.ew-home-extra__media {
	margin: 0;
}

.ew-home-extra__media img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 48rem) {
	.ew-home-extra__inner { grid-template-columns: 1fr; }
}

/* Hero stage ------------------------------------------------------------- */

.ew-hero-stage {
	position: relative;
	background: var(--ew-brand-deep-green);
}

/* Both slides share one grid cell, so the stage always takes the height of
   the taller slide and switching never moves the content below. */
.ew-hero-stage__slides {
	display: grid;
}

.ew-hero-stage__slide {
	grid-area: 1 / 1;
	min-width: 0;
	transition:
		opacity 720ms var(--ew-ease-out) 120ms,
		visibility 0s linear 0s;
}

.ew-hero-stage[data-ew-hero-ready="true"] .ew-hero-stage__slide[aria-hidden="true"] {
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 280ms var(--ew-ease-out),
		visibility 0s linear 280ms;
}

/* A quiet photographic hand-off; the comparison itself keeps its geometry. */
.ew-hero-product__media {
	transform: scale(1.025);
	transition: transform 1200ms var(--ew-ease-out);
}

.ew-hero-product[aria-hidden="false"] .ew-hero-product__media {
	transform: none;
}

.ew-hero-product__copy {
	opacity: 0;
	transform: translateY(0.65rem);
	transition: opacity 280ms ease, transform 600ms var(--ew-ease-out);
}

.ew-hero-product[aria-hidden="false"] .ew-hero-product__copy,
.ew-hero-stage:not([data-ew-hero-ready="true"]) .ew-hero-product__copy {
	opacity: 1;
	transform: none;
	transition-delay: 180ms;
}

/* Without JavaScript only the first message shows; the product message stays
   reachable through the navigation and the Products menu. */
.ew-hero-stage:not([data-ew-hero-ready="true"]) .ew-hero-stage__slide[data-ew-hero-slide="1"],
.ew-hero-stage:not([data-ew-hero-ready="true"]) .ew-hero-stage__nav {
	display: none;
}

/* Concept slide: the statement sits in a centred lane between 24% and 76%
   of the width. The default divider positions (22% at night, 78% by day)
   therefore leave the whole statement on one side of the window, so the
   title never reads half light and half dark, while the other side still
   shows enough of the scene to invite a drag. */
@media (min-width: 64em) {
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer {
		padding-inline: 24vw;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__statement {
		max-width: none;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__title {
		max-width: 15ch;
		font-size: clamp(2.75rem, 1.4rem + 3.1vw, 5.25rem);
		line-height: 0.98;
	}

	/* Desktop keeps the lower rail to one quiet line: the long support
	   sentence crossed the window sill and lost contrast there. It still
	   reads on narrow screens, where the copy sits on plain paper. */
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__rail-content {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem 2rem;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy .ew-lede {
		display: none;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__ctas {
		margin-block-start: 0;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__rail {
		margin-block-end: 5rem;
	}
}

/* At the first desktop widths the lane would get too narrow for the title. */
@media (min-width: 64em) and (max-width: 80em) {
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer {
		padding-inline: 23vw;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__title {
		font-size: clamp(2.5rem, 0.9rem + 3.2vw, 3.6rem);
	}

}

/* The daylight copy no longer needs the white halo: inside the lane it sits
   on the bright glazing only, so plain dark type keeps its contrast. */
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day .ew-dn-hero__title,
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day .ew-eyebrow,
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day .ew-dn-hero__rail-label,
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day .ew-dn-hero__secondary,
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day .ew-lede {
	-webkit-text-stroke: 0;
	text-shadow: none;
}

/* A soft, borderless veil behind the lane keeps the daylight statement
   readable over the brightest window panes without reading as a shadow. */
@media (min-width: 64em) {
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--day::before {
		content: "";
		position: absolute;
		inset: 8% 18% 6%;
		z-index: -1;
		background: radial-gradient(closest-side, rgb(250 247 242 / 0.5), rgb(250 247 242 / 0.22) 62%, transparent);
		pointer-events: none;
	}

	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--night::before {
		content: "";
		position: absolute;
		inset: 8% 18% 6%;
		z-index: -1;
		background: radial-gradient(closest-side, rgb(8 14 10 / 0.42), rgb(8 14 10 / 0.16) 62%, transparent);
		pointer-events: none;
	}
}

/* Product slide ------------------------------------------------------------ */

.ew-hero-product {
	position: relative;
	display: grid;
	background: var(--ew-brand-deep-green);
	color: rgb(250 247 242 / 0.98);
	overflow: hidden;
}

.ew-hero-product__media {
	margin: 0;
}

.ew-hero-product__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ew-hero-product__panel {
	display: flex;
	align-items: center;
	padding: clamp(1.5rem, 5vw, 3rem) var(--ew-gutter) clamp(2rem, 5vw, 3rem);
}

.ew-hero-product__copy {
	max-width: 36rem;
}

.ew-hero-product .ew-eyebrow {
	margin: 0 0 1rem;
	color: var(--ew-brand-lime);
	letter-spacing: 0.18em;
}

.ew-hero-product__title {
	margin: 0;
	font-family: var(--ew-font-display);
	font-size: clamp(2.3rem, 1.3rem + 3vw, 4.25rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.03em;
	color: inherit;
	hyphens: manual;
	text-wrap: balance;
}

.ew-hero-product__title [data-ew-edit-key="_ew_home_product_location"] {
	color: var(--ew-brand-lime);
}

.ew-hero-product__tagline {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin: clamp(1rem, 2vw, 1.5rem) 0 0;
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	font-weight: 500;
}

.ew-hero-product__tagline span[aria-hidden="true"] {
	display: block;
	width: 2.5rem;
	height: 1px;
	background: currentColor;
	opacity: 0.7;
}

.ew-hero-product__lede {
	max-width: 32rem;
	margin: 1rem 0 0;
	color: rgb(250 247 242 / 0.86);
	font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
	line-height: 1.55;
}

.ew-hero-product__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.5rem;
	margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.ew-hero-product .ew-btn--primary {
	background: var(--ew-brand-beige);
	border-color: var(--ew-brand-beige);
	color: var(--ew-brand-deep-green);
}

.ew-hero-product .ew-btn--primary:hover {
	background: #ffffff;
	border-color: #ffffff;
}

.ew-hero-product__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}

@media (min-width: 64em) {
	.ew-hero-product {
		grid-template-columns: minmax(0, 1fr);
		min-height: 100vh;
		min-height: 100svh;
	}

	.ew-hero-product__media {
		position: absolute;
		inset: 0 0 0 30%;
	}

	.ew-hero-product::after {
		content: "";
		position: absolute;
		inset: 0 0 auto;
		height: clamp(10rem, 18vh, 13rem);
		background: linear-gradient(180deg, rgb(16 22 18 / 0.82), rgb(16 22 18 / 0.68) 65%, transparent);
		pointer-events: none;
	}

	/* The cover's green/photo relationship remains; its hard cut becomes a
	   soft edge behind the copy, never a clipping mask across the text. */
	.ew-hero-product__panel {
		position: relative;
		z-index: 1;
		isolation: isolate;
		width: min(51%, 48rem);
		min-height: 100%;
		padding: clamp(9.5rem, 16vh, 12rem) clamp(2.5rem, 5vw, 5rem) clamp(9rem, 17vh, 11rem) clamp(1.5rem, 4vw, 4rem);
	}

	.ew-hero-product__panel::before {
		content: "";
		position: absolute;
		inset: 0 -9rem 0 0;
		z-index: -1;
		background: linear-gradient(90deg, #16281c 0%, #16281c 72%, rgb(22 40 28 / 0.96) 80%, rgb(22 40 28 / 0.65) 90%, transparent);
		pointer-events: none;
	}

	.ew-hero-product__copy {
		max-width: 34rem;
	}
}

@media (max-width: 63.9375em) {
	.ew-hero-product__media {
		aspect-ratio: 1672 / 941;
	}
}

/* Stage navigation: two labelled messages with a progress line instead of
   anonymous dots. */
.ew-hero-stage__nav {
	display: flex;
	align-items: stretch;
	gap: 0.25rem;
	padding: 0.75rem var(--ew-gutter) 1rem;
	background: var(--ew-brand-deep-green);
	color: rgb(250 247 242 / 0.95);
}

.ew-hero-stage__tab {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.15rem 0.6rem;
	min-width: 0;
	min-height: 44px;
	padding: 0.4rem 0.75rem 0.65rem 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	opacity: 0.66;
	transition: opacity var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-hero-stage__tab[aria-pressed="true"],
.ew-hero-stage__tab:hover,
.ew-hero-stage__tab:focus-visible {
	opacity: 1;
}

.ew-hero-stage__tab:focus-visible,
.ew-hero-stage__pause:focus-visible {
	outline: 2px solid var(--ew-brand-lime);
	outline-offset: 3px;
}

.ew-hero-stage__tab-num {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
}

.ew-hero-stage__tab-label {
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ew-hero-stage__tab-progress {
	position: absolute;
	right: 0.75rem;
	bottom: 0.2rem;
	left: 0;
	height: 2px;
	background: rgb(250 247 242 / 0.25);
	overflow: hidden;
}

.ew-hero-stage__tab-progress span {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--ew-brand-lime);
	transform: scaleX(var(--ew-hero-progress, 0));
	transform-origin: left center;
}

.ew-hero-stage__tab[aria-pressed="false"] .ew-hero-stage__tab-progress span {
	transform: scaleX(0);
}

.ew-hero-stage__pause {
	display: inline-grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	margin-left: auto;
	border: 1px solid rgb(250 247 242 / 0.35);
	border-radius: 999px;
	background: none;
	color: inherit;
	cursor: pointer;
}

.ew-hero-stage__pause svg {
	width: 1rem;
	height: 1rem;
}

.ew-hero-stage__pause .ew-hero-stage__icon-play,
.ew-hero-stage__pause[aria-pressed="true"] .ew-hero-stage__icon-pause {
	display: none;
}

.ew-hero-stage__pause[aria-pressed="true"] .ew-hero-stage__icon-play {
	display: block;
}

@media (min-width: 64em) {
	/* On desktop the navigation floats in the lower-left corner of the
	   stage, clear of the centred statement lane and the floating dock. */
	.ew-hero-stage__nav {
		position: absolute;
		bottom: clamp(1.25rem, 3vh, 2rem);
		left: clamp(1.25rem, 3.5vw, 4rem);
		z-index: 8;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 44px;
		gap: 0.6rem;
		width: min(29rem, calc(50vw - 15rem));
		padding: 0.65rem 0.75rem;
		border: 1px solid rgb(250 247 242 / 0.2);
		border-radius: 0.75rem;
		background: rgb(16 22 18 / 0.8);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}

	.ew-hero-stage__pause {
		align-self: center;
	}

	.ew-hero-stage__tab {
		padding-right: 0.25rem;
	}
}

/* Highlights band --------------------------------------------------------- */

.ew-highlights {
	scroll-margin-top: 8rem;
	background: var(--ew-brand-deep-green);
	color: rgb(250 247 242 / 0.95);
	border-top: 1px solid rgb(185 192 121 / 0.22);
	border-bottom: 1px solid rgb(185 192 121 / 0.15);
}

.ew-highlights__hint { display: none; }

.ew-highlights__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin-block: 0;
	padding-block: 0;
	list-style: none;
}

.ew-highlights__item {
	position: relative;
	min-width: 0;
	padding: 1.4rem clamp(0.7rem, 1.5vw, 1.4rem) 1rem;
	background: linear-gradient(150deg, rgb(185 192 121 / 0.035), transparent 70%);
	transition: background-color 220ms ease;
}

.ew-highlights__item + .ew-highlights__item { border-left: 1px solid rgb(185 192 121 / 0.16); }

.ew-highlights__item::after {
	content: '';
	position: absolute;
	inset: auto 0 0;
	height: 3px;
	background: var(--ew-brand-lime);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 240ms ease;
}

.ew-highlights__item.is-active { background-color: rgb(185 192 121 / 0.12); }
.ew-highlights__item.is-active::after { transform: scaleX(1); }

.ew-highlights__toggle {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.ew-highlights__toggle:disabled { opacity: 1; cursor: default; }
.ew-highlights__toggle:hover, .ew-highlights__toggle:focus { background: none; color: inherit; }
.ew-highlights__toggle:focus-visible {
	outline: 2px solid var(--ew-brand-lime);
	outline-offset: 6px;
}

.ew-highlights__detail-slot {
	min-height: 3.3rem;
	padding-top: 0.65rem;
}

.ew-highlights__detail {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.4;
}

.ew-highlights__detail[hidden] { display: none !important; }
.ew-highlights__detail a { color: #d4db98; text-decoration: none; }
.ew-highlights__detail a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ew-highlights__detail a:focus-visible { outline: 2px solid var(--ew-brand-lime); outline-offset: 4px; }
.ew-highlights__detail a span { display: inline-block; margin-left: 0.2rem; }

.ew-highlights__item.is-active .ew-highlights__detail {
	animation: ew-highlight-detail 220ms ease-out both;
}

.ew-highlights__icon {
	flex: none;
	display: block;
	width: min(100%, 10rem);
	height: 4.8rem;
	color: var(--ew-brand-lime);
}

.ew-highlights__icon svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ew-highlights__label {
	display: block;
	min-height: 2.7em;
	max-width: 21ch;
	font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.125rem);
	font-weight: 500;
	line-height: 1.35;
}

.ew-highlights__item.is-active .ew-highlight-warm { animation: ew-highlight-thermal 850ms ease-out both; }
.ew-highlights__item.is-active .ew-highlight-calm { animation: ew-highlight-calm 850ms ease-out both; }
.ew-highlights__item.is-active .ew-highlight-sound-in { animation: ew-highlight-wave 850ms ease-out both; }
.ew-highlights__item.is-active .ew-highlight-sound-out { animation: ew-highlight-quiet 850ms ease-out both; }
.ew-highlights__item.is-active .ew-highlight-frame,
.ew-highlights__item.is-active .ew-highlight-shield,
.ew-highlights__item.is-active .ew-highlight-check { animation: ew-highlight-draw 800ms ease-out both; }
.ew-highlights__item.is-active .ew-highlight-check { animation-delay: 180ms; }
.ew-highlights__item.is-active .ew-highlight-conversation {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: ew-highlight-talk 650ms ease-out both;
}

@keyframes ew-highlight-detail { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@keyframes ew-highlight-thermal { from { transform: translateX(-6px); opacity: 0.9; } to { transform: translateX(5px); opacity: 0.5; } }
@keyframes ew-highlight-calm { from { opacity: 0.25; } to { opacity: 0.65; } }
@keyframes ew-highlight-wave { from { transform: translateX(-5px); opacity: 0.5; } to { transform: translateX(3px); opacity: 1; } }
@keyframes ew-highlight-quiet { from { opacity: 0.7; transform: translateX(-2px); } to { opacity: 0.3; transform: translateX(3px); } }
@keyframes ew-highlight-draw { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
@keyframes ew-highlight-talk { from { opacity: 0.15; transform: scale(0.88); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 63.9375em) {
	.ew-highlights__hint {
		display: flex;
		justify-content: space-between;
		margin-block: 0;
		padding-block: 0.8rem 0.2rem;
		color: #d4db98;
		font-size: 0.75rem;
		letter-spacing: 0.04em;
	}

	.ew-highlights__list {
		display: flex;
		width: 100%;
		max-width: none;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		scrollbar-width: thin;
		scrollbar-color: var(--ew-brand-lime) var(--ew-brand-deep-green);
		padding-inline: 1.25rem;
	}

	.ew-highlights__item { flex: 0 0 13.5rem; padding-inline: 1.15rem; }
	.ew-highlights__icon { height: 4.3rem; }
	.ew-highlights__label { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.ew-highlights *, .ew-highlights *::after {
		animation: none !important;
		transition: none !important;
	}
}

/* Solutions ---------------------------------------------------------------- */

.ew-home-solutions__head {
	max-width: 46rem;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.ew-home-solutions__head h2 {
	margin: 0;
}

.ew-home-solutions__list {
	display: grid;
	gap: clamp(1rem, 2vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 52em) {
	.ew-home-solutions__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.ew-home-solutions {
	/* Room below the cards so the floating dock never sits on their links. */
	padding-bottom: clamp(5rem, 9vw, 7.5rem);
}

.ew-home-solutions__list > li {
	display: flex;
}

.ew-home-solution__link {
	display: flex;
	flex: 1;
	flex-direction: column;
	border-radius: 0.75rem;
	background: var(--ew-brand-deep-green);
	color: #ffffff;
	text-decoration: none;
	overflow: hidden;
	box-shadow: 0 1px 0 rgb(22 40 28 / 0.08);
	transition: transform 300ms var(--ew-ease-out), box-shadow 300ms var(--ew-ease-out);
}

.ew-home-solution__link:hover,
.ew-home-solution__link:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -18px rgb(22 40 28 / 0.55);
}

.ew-home-solution__link:focus-visible {
	outline: 2px solid var(--ew-action);
	outline-offset: 3px;
}

/* Clean photograph on top, nothing drawn over it. */
.ew-home-solution__media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
}

.ew-home-solution__media picture,
.ew-home-solution__media img {
	display: block;
	width: 100%;
	height: 100%;
}

.ew-home-solution__media img {
	object-fit: cover;
	transition: transform 700ms var(--ew-ease-out);
}

.ew-home-solution__link:is(:hover, :focus-visible) .ew-home-solution__media img {
	transform: scale(1.04);
}

/* The double glazing diagram lives in its own badge where the photo meets
   the text, so it always reads on a calm, light background. */
.ew-home-solution__badge {
	position: absolute;
	bottom: -3.25rem;
	left: clamp(1.1rem, 2vw, 1.5rem);
	z-index: 1;
	display: grid;
	place-items: center;
	width: 6.5rem;
	height: 6.5rem;
	border: 3px solid var(--ew-brand-deep-green);
	border-radius: 50%;
	background: var(--ew-brand-beige);
	box-shadow: 0 8px 22px -10px rgb(0 0 0 / 0.5);
}

.ew-home-solution__diagram {
	width: 72%;
	height: 72%;
	overflow: visible;
}

.ew-sd-glass {
	fill: rgb(157 183 194 / 0.55);
	stroke: var(--ew-brand-deep-green);
	stroke-width: 3;
}

.ew-sd-frame {
	fill: var(--ew-brand-deep-green);
}

.ew-sd-seal {
	fill: var(--ew-brand-orange);
}

.ew-sd-wave,
.ew-sd-arrow,
.ew-sd-air,
.ew-sd-still {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ew-sd-wave--loud {
	stroke: var(--ew-brand-orange);
	stroke-width: 7;
}

.ew-sd-wave--quiet {
	stroke: var(--ew-brand-deep-green);
	stroke-width: 6;
	opacity: 0.55;
}

.ew-sd-arrow {
	stroke-width: 12;
}

.ew-sd-arrow--heat {
	stroke: var(--ew-brand-orange);
}

.ew-sd-head--heat {
	fill: var(--ew-brand-orange);
}

.ew-sd-arrow--cool,
.ew-sd-arrow--air,
.ew-sd-air {
	stroke: #3f7186;
}

.ew-sd-head--cool,
.ew-sd-head--air {
	fill: #3f7186;
}

.ew-sd-arrow--air {
	stroke-width: 7;
}

.ew-sd-air {
	stroke-width: 6;
	stroke-dasharray: 14 10;
	stroke-dashoffset: 0;
}

.ew-sd-still {
	stroke: var(--ew-brand-deep-green);
	stroke-width: 6;
	opacity: 0.5;
}

/* Animated diagrams (24/10/2026). They play while the card is hovered or
   focused, and on touch screens while the card is in view (.is-playing,
   set by home-v2.js). Reduced motion keeps the static diagram. */
.ew-home-solution__diagram * {
	transform-box: fill-box;
	transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
	/* Noise: loud waves roll in towards the glass; only faint ones reach the room. */
	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-wave--loud {
		animation: ew-sd-wave-in 1.4s ease-in-out infinite;
		animation-delay: calc(var(--i) * -0.18s);
	}

	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-wave--quiet {
		animation: ew-sd-wave-quiet 1.4s ease-in-out infinite;
		animation-delay: calc(var(--i) * -0.25s);
	}

	/* Thermal: summer heat strikes the glass and is turned back; the cool
	   inside air stays put, breathing gently. */
	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-arrow--heat {
		stroke-dasharray: 1;
		animation: ew-sd-draw 2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
	}

	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-head--heat {
		animation: ew-sd-head 2s ease-in-out infinite;
	}

	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-cool {
		animation: ew-sd-breathe 2s ease-in-out infinite;
	}

	/* Draughts: air streams towards the frame, meets the seal and curls back. */
	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-air {
		animation: ew-sd-flow 0.9s linear infinite;
		animation-delay: calc(var(--i) * -0.3s);
	}

	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-arrow--air {
		stroke-dasharray: 1;
		animation: ew-sd-draw 1.8s ease-in-out infinite;
	}

	:is(.ew-home-solution__link:hover, .ew-home-solution__link:focus-visible, .ew-home-solution.is-playing) .ew-sd-head--air {
		animation: ew-sd-head 1.8s ease-in-out infinite;
	}
}

@keyframes ew-sd-wave-in {
	0% {
		transform: translateX(14px) scaleY(0.75);
		opacity: 0.35;
	}

	50% {
		transform: translateX(0) scaleY(1.08);
		opacity: 1;
	}

	100% {
		transform: translateX(14px) scaleY(0.75);
		opacity: 0.35;
	}
}

@keyframes ew-sd-wave-quiet {
	0%,
	100% {
		transform: scaleY(0.6);
		opacity: 0.25;
	}

	50% {
		transform: scaleY(1);
		opacity: 0.6;
	}
}

@keyframes ew-sd-draw {
	0% {
		stroke-dashoffset: 1;
	}

	55%,
	80% {
		stroke-dashoffset: 0;
	}

	100% {
		stroke-dashoffset: -1;
	}
}

@keyframes ew-sd-head {
	0%,
	45% {
		opacity: 0;
		transform: scale(0.6);
	}

	60%,
	80% {
		opacity: 1;
		transform: scale(1);
	}

	100% {
		opacity: 0;
	}
}

@keyframes ew-sd-breathe {
	0%,
	100% {
		transform: translateX(0);
		opacity: 0.75;
	}

	50% {
		transform: translateX(4px);
		opacity: 1;
	}
}

@keyframes ew-sd-flow {
	to {
		stroke-dashoffset: -24;
	}
}

/* Solid body: equal heights, full text visible, CTA pinned to the foot. */
.ew-home-solution__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 4rem clamp(1.1rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.6rem);
}

.ew-home-solution__label {
	font-family: var(--ew-font-display);
	font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem);
	font-weight: 600;
	line-height: 1.1;
	color: #ffffff;
}

.ew-home-solution__problem {
	color: var(--ew-brand-lime);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
}

.ew-home-solution__answer {
	color: rgb(242 237 226 / 0.86);
	font-size: 1rem;
	line-height: 1.55;
}

.ew-home-solution__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgb(242 237 226 / 0.16);
	color: #ffffff;
	font-weight: 600;
}

.ew-home-solution__more svg {
	width: 1.1rem;
	height: 1.1rem;
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-home-solution__link:hover .ew-home-solution__more svg {
	transform: translateX(4px);
}

/* Projects carousel -------------------------------------------------------- */

.ew-home-projects {
	background: var(--ew-surface-muted);
}

.ew-home-projects__head {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.ew-home-projects__head h2 {
	margin: 0;
}

.ew-home-projects__controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ew-home-projects__count {
	margin: 0 0.75rem 0 0;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.08em;
}

.ew-home-projects__arrow {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--ew-border);
	border-radius: 999px;
	background: var(--ew-surface);
	color: var(--ew-text);
	cursor: pointer;
	transition: border-color var(--ew-motion-fast) var(--ew-motion-ease), background-color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-home-projects__arrow:hover,
.ew-home-projects__arrow:focus-visible {
	border-color: var(--ew-action);
	background: var(--ew-action);
	color: var(--ew-on-action);
}

.ew-home-projects__arrow svg {
	width: 1.25rem;
	height: 1.25rem;
}

.ew-home-projects__viewport {
	overflow: hidden;
	border-radius: 0.5rem;
}

.ew-home-projects__track {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
	transform: translateX(calc(var(--ew-projects-index, 0) * -100%));
	transition: transform 650ms var(--ew-ease-out);
}

.ew-home-project {
	flex: 0 0 100%;
	min-width: 0;
}

.ew-home-project__link {
	display: grid;
	color: inherit;
	text-decoration: none;
}

.ew-home-project__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--ew-stone);
}

.ew-home-project__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ew-home-project__sample {
	position: absolute;
	top: 1rem;
	left: 1rem;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgb(16 22 18 / 0.78);
	color: #ffffff;
	font-size: 0.8125rem;
	font-weight: 600;
}

.ew-home-project__caption {
	display: grid;
	gap: 0.35rem;
	padding: clamp(1rem, 2vw, 1.5rem) 0 0;
}

.ew-home-project__location {
	color: var(--ew-accent-text);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ew-home-project__title {
	font-family: var(--ew-font-display);
	font-size: clamp(1.4rem, 1.1rem + 0.9vw, 2rem);
	font-weight: 600;
	line-height: 1.15;
}

.ew-home-project__summary {
	max-width: 46rem;
	color: var(--ew-text-muted);
	line-height: 1.55;
}

.ew-home-project__products {
	color: var(--ew-text);
	font-size: 0.9375rem;
	font-weight: 600;
}

@media (min-width: 64em) {
	.ew-home-project__link {
		grid-template-columns: minmax(0, 3fr) minmax(15rem, 1fr);
		gap: clamp(1.5rem, 3vw, 3rem);
		align-items: end;
	}

	.ew-home-project__caption {
		padding: 0 0 1rem;
	}
}

.ew-home-projects__all {
	margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
}

/* Reviews slot (review build only) ----------------------------------------- */

.ew-home-reviews-slot__note {
	margin: 0;
	padding: 1.25rem 1.5rem;
	border: 1px dashed var(--ew-border);
	border-radius: 0.5rem;
	color: var(--ew-text-muted);
}

/* About -------------------------------------------------------------------- */

.ew-home-about__inner {
	display: grid;
	gap: clamp(1.25rem, 3vw, 3rem);
}

.ew-home-about__inner h2 {
	margin: 0;
	max-width: 18ch;
}

.ew-home-about__copy p {
	max-width: 40rem;
	margin: 0 0 1rem;
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.6;
}

@media (min-width: 52em) {
	.ew-home-about__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
		align-items: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ew-hero-stage__slide,
	.ew-hero-product__media,
	.ew-hero-product__copy,
	.ew-home-projects__track,
	.ew-home-solution__media img {
		transition: none !important;
	}

	.ew-hero-product__media,
	.ew-hero-product__copy {
		transform: none;
	}
}

/* The statement uses the display family so the typeface comparison applies
   to it as well (it previously used the rounded body face). */
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__title {
	font-family: var(--ew-font-display);
	font-weight: 500;
}

/* Both mobile slides remain in the grid, reserving the taller message's
   height so an automatic handoff never moves the content below it. */
@media (max-width: 63.9375em) {
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__copy-layer--night .ew-dn-hero__title {
		text-shadow: none;
	}

	.ew-hero-stage__tab-label {
		white-space: normal;
	}
}

.ew-hero-stage__pause[hidden] {
	display: none;
}

/* Compact, unnamed visual controls; accessible names identify each slide. */
.ew-hero-stage__nav {
	display: flex;
	width: fit-content;
	gap: 0.25rem;
	margin-inline: auto;
	padding: 0.5rem;
}
.ew-hero-stage__tab {
	display: grid;
	place-items: center;
	grid-template-columns: 1fr;
	width: 44px;
	padding: 0;
}
.ew-hero-stage__dot {
	width: 0.5rem;
	height: 0.5rem;
	border: 1px solid currentColor;
	border-radius: 50%;
}
.ew-hero-stage__tab[aria-pressed="true"] .ew-hero-stage__dot { background: currentColor; }
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__title,
.ew-hero-product__title {
	font-size: clamp(2.3rem, 1.3rem + 3vw, 4.25rem);
	line-height: 1.04;
	font-weight: 500;
	letter-spacing: -0.03em;
}
.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__rail-label,
.ew-hero-product__tagline {
	font-family: var(--ew-font-body);
	font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem);
	font-weight: 500;
	letter-spacing: normal;
	text-transform: none;
}
@media (max-width: 63.9375em) {
	.ew-hero-stage .ew-dn-hero--home .ew-dn-hero__title { max-width: 18ch; }
	.ew-hero-stage,
	.ew-hero-stage__slide,
	.ew-hero-product__panel,
	.ew-hero-stage__nav { background: var(--ew-bg); color: var(--ew-text); }
	.ew-hero-product { grid-template-rows: auto 1fr; }
	.ew-hero-product__panel { padding: 1.25rem var(--ew-gutter); align-items: flex-start; }
	.ew-hero-product__copy { max-width: 40rem; }
	.ew-hero-product .ew-eyebrow,
	.ew-hero-product__title [data-ew-edit-key="_ew_home_product_location"] { color: var(--ew-text); }
	.ew-hero-product__lede { color: var(--ew-text-muted); }
	.ew-hero-product .ew-btn--primary { background: var(--ew-brand-deep-green); border-color: var(--ew-brand-deep-green); color: #fff; }
	.ew-hero-product .ew-btn--primary:hover { background: var(--ew-green-dark); }
	.ew-hero-stage__tab:focus-visible,
	.ew-hero-stage__pause:focus-visible { outline-color: currentColor; }
	.ew-hero-stage__pause { border-color: currentColor; }
}
