/* Earth Windows — editorial component layer.
   Architectural Editorial Sydney: flat surfaces, hairline structure,
   photography-dominant compositions, restrained brand colour. */

.ew-container {
	max-width: var(--ew-container-max);
	margin-inline: auto;
	padding-inline: var(--ew-gutter);
}

.ew-section {
	padding-block: var(--ew-space-lg);
}

.ew-section--stone {
	background-color: var(--ew-stone);
}

.ew-section--tight {
	padding-block: var(--ew-space-md);
}

/* Projects neutra: single lede, no cases or proof by decision D1=A.
   Tighten the rhythm so the page reads as intentional editorial, not void:
   no new content, only spacing from existing tokens. */
.ew-projects {
	padding-block: var(--ew-space-md) var(--ew-space-md);
}

.ew-projects .ew-container {
	max-width: var(--ew-reading-measure);
}

.ew-projects h1 {
	margin-bottom: var(--ew-space-xs);
}

.ew-projects .ew-lede {
	margin-bottom: 0;
}

/* Anchored conversion block must clear the sticky header when jumped to. */
#request-a-quote {
	scroll-margin-top: 5rem;
	scroll-margin-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
}

/* Conversion band: the one fully brand-coloured surface on each page. */
.ew-section--brand {
	background-color: var(--ew-green-dark);
	color: var(--ew-on-brand);
}

.ew-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.5rem;
	text-transform: uppercase;
	color: var(--ew-deep-green);
	margin-bottom: var(--ew-space-xs);
}

.ew-eyebrow::before {
	content: "";
	width: 1.5rem;
	height: 1px;
	background-color: var(--ew-accent);
	flex: none;
}

.ew-lede {
	font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	line-height: 1.55;
	color: var(--ew-ink);
	max-width: 38rem;
}

.ew-rule {
	border: 0;
	border-top: var(--ew-line-width) solid var(--ew-line);
	margin: 0;
}

/* Buttons ---------------------------------------------------------------- */

.ew-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* Long unbroken words (e.g. the public email address) wrap instead of
	   overflowing narrow viewports; short labels are unaffected. */
	overflow-wrap: anywhere;
	min-height: 44px;
	padding: 0.75rem 1.5rem;
	border-radius: var(--ew-radius);
	border: var(--ew-line-width) solid transparent;
	font-family: var(--ew-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition:
		background-color var(--ew-motion-fast) var(--ew-motion-ease),
		color var(--ew-motion-fast) var(--ew-motion-ease),
		border-color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-btn--primary {
	background-color: var(--ew-action);
	color: var(--ew-on-action);
}

.ew-btn--primary:hover {
	background-color: color-mix(in srgb, var(--ew-action) 86%, var(--ew-text));
	color: var(--ew-on-action);
}

.ew-btn--ghost {
	background-color: transparent;
	color: var(--ew-text);
	border-color: currentColor;
}

.ew-btn--ghost:hover {
	color: var(--ew-action);
	border-color: var(--ew-action);
}

.ew-btn--inverse {
	background-color: var(--ew-paper);
	color: var(--ew-green-dark);
}

.ew-btn--inverse:hover {
	background-color: var(--ew-stone);
	color: var(--ew-green-dark);
}

/* Editorial onward link: quiet text, arrow shifts on hover. */
.ew-link-more {
	display: inline-flex;
	align-items: baseline;
	gap: 0.5rem;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ew-deep-green);
	text-decoration: none;
}

.ew-link-more::after {
	content: "\2192";
	font-weight: 400;
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-link-more:hover {
	color: var(--ew-action);
}

.ew-link-more:hover::after {
	transform: translateX(0.25rem);
}

/* Header ----------------------------------------------------------------- */

.ew-header {
	position: relative;
	z-index: 20;
	background: transparent;
	border-bottom: 0;
}

.ew-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ew-space-sm);
	min-height: 72px;
}

.ew-wordmark {
	display: inline-flex;
	align-items: center;
	line-height: 0;
	text-decoration: none;
	white-space: nowrap;
}

/* The wordmark is an approved artwork, not a type setting. The group lets the
   Home opening travel the real lockup as one object; the two variants share
   the same grid cell so the light-to-hero transition never rebuilds letters. */
.ew-header .ew-wordmark__opening-group {
	display: inline-grid;
	grid-template-areas: "lockup";
	align-items: center;
}

.ew-wordmark__lockup {
	grid-area: lockup;
	display: block;
	width: clamp(9.375rem, 13vw, 13.75rem);
	height: auto;
	max-width: 100%;
}

.ew-wordmark__lockup--reversed,
.ew-brand-symbol--compact {
	display: none;
}

.ew-header__controls {
	display: flex;
	align-items: center;
	gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
}

.ew-header__toggles {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

/* Utility label: service-area signal that balances the theme toggle on the
   wide tripartite row. It carries no navigation meaning, so it stays out of
   narrow screens where space is scarce. */
.ew-header__utility {
	display: none;
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ew-text-muted);
}

/* The verified phone joins the utility label only on wide viewports. Below
   64em the label column is too narrow to carry both without colliding with the
   centred wordmark; the footer, contact page and dock all carry the number. */
.ew-header__utility-phone {
	display: none;
}

.ew-header__utility-link {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
	letter-spacing: 0.06em;
}

.ew-header__utility-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (hover: hover) {
	.ew-header__utility-link:hover {
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}
}

@media (min-width: 64em) {
	.ew-header__utility-phone {
		display: inline;
	}
}

.ew-nav-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: var(--ew-line-width) solid var(--ew-line);
	border-radius: var(--ew-radius);
	cursor: pointer;
	color: var(--ew-ink);
	transition: border-color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-nav-toggle:hover {
	border-color: var(--ew-deep-green);
}

.ew-nav-toggle svg {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 22px;
	height: 22px;
}

.ew-nav-toggle .ew-icon-close {
	display: none;
}

/* Footer brand lockup ------------------------------------------------------ */

.ew-footer .ew-wordmark--brand {
	display: inline-flex;
	margin-bottom: var(--ew-space-xs);
}

.ew-footer .ew-wordmark--brand .ew-wordmark__lockup {
	width: min(12.25rem, 100%);
}

.ew-footer .ew-wordmark--brand .ew-wordmark__lockup--reversed {
	display: block;
}

/* Footer social links: quiet icons, accent on hover only. */
.ew-footer ul.ew-footer__social {
	list-style: none;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
}

.ew-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: var(--ew-line-width) solid rgb(245 241 233 / 0.35);
	border-radius: var(--ew-radius);
	color: var(--ew-on-brand);
	transition:
		color var(--ew-motion-fast) var(--ew-motion-ease),
		border-color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-footer__social a:hover {
	color: var(--ew-accent);
	border-color: var(--ew-accent);
}

/* Narrow screens: the full approved lockup cannot coexist with two 44px
   utility controls and the menu at 320px. Keep the approved symbol centred;
   the link itself retains the complete accessible name. */
@media (max-width: 20em) {
	.ew-header .ew-wordmark__lockup {
		display: none;
	}

	.ew-header .ew-brand-symbol--compact {
		display: block;
		width: 28px;
		height: 28px;
	}

	.ew-footer .ew-wordmark--brand .ew-wordmark__lockup {
		width: 10.75rem;
	}
}

/* Theme toggle ------------------------------------------------------------- */

.ew-theme-toggle,
.ew-sound-toggle {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: var(--ew-line-width) solid var(--ew-line);
	border-radius: var(--ew-radius);
	cursor: pointer;
	color: var(--ew-ink);
	transition: border-color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-theme-toggle:hover,
.ew-sound-toggle:hover {
	border-color: var(--ew-deep-green);
}

.ew-theme-toggle svg,
.ew-sound-toggle svg {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 20px;
	height: 20px;
}

/* Show the icon for the state you would switch to. */
.ew-theme-toggle .ew-theme-icon--sun {
	display: none;
}

html[data-ew-theme="dark"] .ew-theme-toggle .ew-theme-icon--sun {
	display: block;
}

html[data-ew-theme="dark"] .ew-theme-toggle .ew-theme-icon--moon {
	display: none;
}

.ew-sound-toggle .ew-sound-icon--off {
	display: none;
}

.ew-sound-toggle[aria-pressed="false"] .ew-sound-icon--on {
	display: none;
}

.ew-sound-toggle[aria-pressed="false"] .ew-sound-icon--off {
	display: block;
}

.ew-nav {
	display: flex;
	align-items: center;
	gap: clamp(1.125rem, 0.6rem + 1.3vw, 2.125rem);
}

.ew-nav__link {
	position: relative;
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--ew-text);
	text-decoration: none;
	padding-block: 0.5rem;
	transition: color var(--ew-motion-fast) var(--ew-motion-ease);
}

/* Editorial underline: a hairline that slides in on interaction and stays
   pinned on the active page. Reduced motion keeps it instant. */
.ew-nav__link::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	bottom: 0.25rem;
	height: var(--ew-line-width);
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
	.ew-nav__link::after {
		transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
	}
}

.ew-nav__link:hover,
.ew-nav__link:focus-visible,
.ew-nav__link[aria-current="page"] {
	color: var(--ew-deep-green);
}

.ew-nav__link:hover::after,
.ew-nav__link:focus-visible::after,
.ew-nav__link[aria-current="page"]::after {
	transform: scaleX(1);
}

.ew-nav__link:focus-visible {
	outline: 3px solid var(--ew-action);
	outline-offset: 2px;
}

.ew-nav .ew-btn {
	white-space: nowrap;
}

/* Wide shell: the brand owns a centred first row with a service-area label
   on the left and the theme toggle in the top-right corner; navigation
   becomes an evenly distributed second row. The controls wrapper dissolves
   (display: contents) so its buttons join the grid directly. The home
   header carries no quote CTA — the hero directly below owns that
   conversion path. */
@media (min-width: 55em) {
	.ew-header {
		/* Wide screens keep the brand, utility label, theme toggle and
		   navigation reachable on long editorial pages. Narrow screens keep
		   the header in flow — the floating dock owns persistent access
		   there and vertical space is scarce. */
		position: sticky;
		top: 0;
	}

	/* Auto-hide: scrolling down hands the whole viewport to the content; an
	   upward gesture or keyboard focus restores the header. */
	.ew-header[data-header-hidden="true"] {
		transform: translateY(-100%);
	}

	/* Compact state: past the first scroll the two-row editorial header
	   collapses into one slim utility bar — brand left, navigation right,
	   toggle far right. */
	.ew-header[data-header-state="compact"] .ew-header__utility {
		display: none;
	}

	/* At the document top the shell shares the hero canvas. Once the compact
	   bar re-enters over scrolled content it restores an opaque reading surface. */
	.ew-header[data-header-state="compact"] {
		background-color: var(--ew-paper);
		border-bottom: var(--ew-line-width) solid var(--ew-line);
	}

	.ew-header[data-header-state="compact"] .ew-header__inner {
		padding-block: 0.625rem 0;
	}

	.ew-header[data-header-state="compact"] .ew-wordmark {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.ew-header[data-header-state="compact"] .ew-wordmark__lockup {
		width: 10.5rem;
	}

	.ew-header[data-header-state="compact"] .ew-header__toggles {
		grid-column: 3;
		grid-row: 1;
	}

	.ew-header[data-header-state="compact"] .ew-nav {
		grid-column: 2;
		grid-row: 1;
		justify-content: flex-end;
		gap: clamp(1rem, 0.6rem + 1.2vw, 1.875rem);
		padding-block: 0.625rem;
		border-top: 0;
	}

	.ew-header__controls {
		display: contents;
	}

	.ew-nav__list {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: clamp(1.75rem, 1rem + 2vw, 3.5rem);
		width: 100%;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.ew-nav__primary {
		display: flex;
		align-items: center;
	}

	.ew-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		grid-template-rows: auto auto;
		align-items: center;
		/* The flex gap inherited from the narrow layout would become a
		   30px+ row gap here; the nav hairline already separates rows. */
		row-gap: 0;
		padding-block: 1rem 0;
	}

	.ew-header__utility {
		display: block;
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.ew-wordmark {
		grid-column: 2;
		grid-row: 1;
		justify-self: center;
	}

	.ew-header__toggles {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
	}

	/* Preserve the original header alignment contract while the paired
	   controls are positioned by their shared wrapper. */
	.ew-theme-toggle {
		justify-self: end;
	}

	.ew-nav {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-content: center;
		padding-block: 0.875rem;
		border-top: var(--ew-line-width) solid var(--ew-line);
	}
}

/* Auto-hide motion: transform-only slide with a synced fade — quick and
   decisive on the way out, slower and graceful on the way back. Desktop
   only, and never for reduced motion (the state still applies there,
   without animation). */
@media (min-width: 55em) and (prefers-reduced-motion: no-preference) {
	.ew-header {
		transition:
			transform 420ms var(--ew-motion-ease),
			opacity 420ms var(--ew-motion-ease);
	}

	.ew-header[data-header-hidden="true"] {
		transition-duration: 260ms;
		opacity: 0;
	}
}

@media (max-width: 30em) {
	.ew-header__inner {
		gap: 0.875rem;
	}
}

@media (max-width: 54.9375em) {
	.ew-nav-toggle {
		display: inline-flex;
	}

	.ew-header[data-nav-open="true"] .ew-nav-toggle .ew-icon-close {
		display: block;
	}

	.ew-header[data-nav-open="true"] .ew-nav-toggle .ew-icon-open {
		display: none;
	}

	.ew-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background-color: var(--ew-paper);
		border-bottom: var(--ew-line-width) solid var(--ew-line);
		padding: var(--ew-space-xs) var(--ew-gutter) var(--ew-space-sm);
	}

	.ew-header[data-nav-open="true"] .ew-nav {
		display: flex;
	}

	.ew-nav__link {
		padding: 0.9375rem 0;
		border-top: var(--ew-line-width) solid var(--ew-line);
		font-size: 1.0625rem;
	}

	/* In the tall drawer rows the sliding hairline would detach from the
	   text; the colour change carries hover and current-page state there. */
	.ew-nav__link::after {
		display: none;
	}

	.ew-nav .ew-btn {
		margin-top: var(--ew-space-sm);
	}
}

/* Grouped primary navigation ----------------------------------------------
   Five entries; three disclosures open panels downward on desktop and as
   in-flow accordions in the mobile drawer. Panels are plain navigation —
   no menu roles — toggled by button with aria-expanded/aria-controls. */
.ew-nav__disclosure {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin-inline-start: -0.5rem;
	padding: 0.5rem;
	border: 0;
	border-radius: var(--ew-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

button.ew-nav__disclosure.ew-nav__link {
	gap: 0.35rem;
	text-decoration: none;
}

.ew-nav__chevron {
	width: 15px;
	height: 15px;
	flex: none;
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

[data-nav-group-open="true"] .ew-nav__chevron {
	transform: rotate(180deg);
}

[data-current-branch="true"] > .ew-nav__primary > .ew-nav__link,
[data-current-branch="true"] > button.ew-nav__link {
	color: var(--ew-deep-green);
}

.ew-nav__panel[hidden] {
	display: none !important;
}

.ew-nav__panel-inner {
	font-family: var(--ew-font-body);
}

/* CSS-only solution visuals: decorative, aria-hidden in markup, no audio,
   no video, no infinite motion. Hover shifts tone within --ew-motion-fast. */
.ew-solution-visual {
	display: flex;
	align-items: stretch;
	width: 3.5rem;
	height: 1.75rem;
	border-radius: 0.25rem;
	overflow: hidden;
}

.ew-solution-visual__outside,
.ew-solution-visual__inside,
.ew-solution-visual__warm,
.ew-solution-visual__calm {
	flex: 1 1 0;
	transition: flex-basis var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-solution-visual--sound .ew-solution-visual__outside {
	background: repeating-linear-gradient(
		90deg,
		var(--ew-brand-orange) 0 2px,
		transparent 2px 7px
	);
	opacity: 0.85;
}

.ew-solution-visual--sound .ew-solution-visual__inside {
	background: repeating-linear-gradient(
		90deg,
		var(--ew-brand-orange) 0 1px,
		transparent 1px 9px
	);
	opacity: 0.35;
}

.ew-solution-visual__glass {
	flex: none;
	width: 3px;
	background: var(--ew-brand-deep-green);
}

.ew-solution-visual--thermal .ew-solution-visual__warm {
	background: linear-gradient(90deg, var(--ew-brand-orange), color-mix(in srgb, var(--ew-brand-orange) 25%, transparent));
	opacity: 0.8;
}

.ew-solution-visual--thermal .ew-solution-visual__calm {
	background: linear-gradient(90deg, color-mix(in srgb, var(--ew-brand-deep-green) 30%, transparent), color-mix(in srgb, var(--ew-brand-deep-green) 55%, transparent));
}

.ew-solution-visual__gap {
	flex: 1 1 0;
	transition: flex-basis var(--ew-motion-fast) var(--ew-motion-ease);
}

/* Draughts: thin air streaks reaching the glass edge, still air beyond. */
.ew-solution-visual--draught .ew-solution-visual__gap {
	background: repeating-linear-gradient(
		180deg,
		color-mix(in srgb, var(--ew-brand-deep-green) 55%, transparent) 0 1px,
		transparent 1px 6px
	);
	opacity: 0.8;
}

.ew-solution-visual--draught .ew-solution-visual__calm {
	background: color-mix(in srgb, var(--ew-brand-deep-green) 22%, transparent);
}

a:hover .ew-solution-visual__inside,
a:focus-visible .ew-solution-visual__inside {
	opacity: 0.25;
}

a:hover .ew-solution-visual__calm,
a:focus-visible .ew-solution-visual__calm {
	opacity: 0.9;
}

@media (min-width: 55em) {
	.ew-nav__group {
		position: relative;
	}

	/* The wrapper carries a hoverable bridge (padding-top) so the cursor
	   travels from trigger to surface with no empty gap in between. */
	.ew-nav__panel {
		--ew-nav-panel-width: 23rem;
		position: absolute;
		inset-block-start: calc(100% - 1px);
		z-index: 30;
		width: min(var(--ew-nav-panel-width), calc(100vw - 3rem));
		padding-top: 0.375rem;
	}

	.ew-nav__panel-inner {
		color: var(--ew-ink);
		background: var(--ew-paper);
		border: 1px solid color-mix(in srgb, var(--ew-brand-deep-green) 18%, transparent);
		border-top: 2px solid var(--ew-brand-orange);
		border-radius: min(var(--ew-radius), 0.5rem);
		box-shadow: 0 0.75rem 2rem rgb(10 24 16 / 0.16);
		padding: 0.375rem;
	}

	.ew-nav__panel:not([hidden]) .ew-nav__panel-inner {
		animation: ew-nav-panel-in var(--ew-motion-fast) var(--ew-motion-ease) both;
	}

	@keyframes ew-nav-panel-in {
		from {
			opacity: 0;
			transform: translateY(-0.25rem);
		}

		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.ew-nav__panel--catalog {
		--ew-nav-panel-width: 23rem;
		inset-inline-start: 0;
	}

	.ew-nav__panel--solutions {
		--ew-nav-panel-width: 30rem;
		inset-inline-start: 50%;
		transform: translateX(-50%);
	}

	.ew-nav__panel--projects {
		--ew-nav-panel-width: 20rem;
		inset-inline-end: 0;
	}

	/* Narrow desktop keeps per-variant alignment but narrows the centred
	   list itself, so the first and last groups — and their panels — clear
	   the 24px viewport gutters without a shared panel box. */
	@media (min-width: 55em) and (max-width: 79.99em) {
		.ew-nav__list {
			width: auto;
			max-width: 46rem;
			margin-inline: auto;
		}
	}
}

/* One compact list system for desktop popovers and mobile accordions. */
.ew-nav__compact-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ew-nav__compact-list > li + li {
	border-top: 1px solid color-mix(in srgb, var(--ew-brand-deep-green) 12%, transparent);
}

.ew-nav__compact-link {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.75rem;
	min-height: 44px;
	padding: 0.75rem 0.875rem;
	border-radius: 0.25rem;
	color: var(--ew-ink);
	text-decoration: none;
}

.ew-nav__panel--solutions .ew-nav__compact-link {
	grid-template-columns: 3.5rem minmax(0, 1fr) auto;
}

.ew-nav__compact-link:hover,
.ew-nav__compact-link:focus-visible {
	background: color-mix(in srgb, var(--ew-brand-deep-green) 8%, transparent);
}

.ew-nav__compact-label {
	font-family: var(--ew-font-body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
}

.ew-nav__compact-arrow {
	width: 1rem;
	height: 1rem;
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-nav__compact-link:hover .ew-nav__compact-arrow,
.ew-nav__compact-link:focus-visible .ew-nav__compact-arrow {
	transform: translateX(2px);
}

@media (max-width: 54.9375em) {
	.ew-header[data-nav-open="true"] .ew-nav {
		max-height: calc(100dvh - 72px);
		overflow-y: auto;
	}

	.ew-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.ew-nav__item {
		border-top: var(--ew-line-width) solid var(--ew-line);
	}

	.ew-nav__primary {
		justify-content: space-between;
	}

	button.ew-nav__disclosure.ew-nav__link {
		width: 100%;
		justify-content: space-between;
		padding: 0.9375rem 0;
		font-size: 1.0625rem;
	}

	.ew-nav__panel {
		position: static;
		width: 100%;
	}

	/* The drawer carries a paper surface while the immersive Home header
	   above it uses light overlay text: pin readable ink on the panel. */
	.ew-nav__panel-inner {
		color: var(--ew-text);
		margin: 0 0 0.75rem;
		padding: 0 0 0 0.75rem;
		border: 0;
		border-inline-start: 2px solid var(--ew-brand-olive);
		border-radius: 0;
		box-shadow: none;
		background: transparent;
	}

	.ew-nav__compact-link {
		min-height: 44px;
		padding: 0.625rem 0.75rem;
	}

	.ew-nav__panel--solutions .ew-nav__compact-link {
		grid-template-columns: 3rem minmax(0, 1fr) auto;
	}

	.ew-solution-visual {
		width: 3rem;
		height: 1.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ew-nav__panel,
	.ew-nav__panel-inner,
	.ew-nav__chevron,
	.ew-nav__compact-arrow,
	.ew-solution-visual * {
		transition-duration: 0s !important;
		animation: none !important;
	}
}

/* Dock inner accordions ---------------------------------------------------
   The outer dock panel (experience.css) keeps its scroll and containment;
   groups render in normal flow so every target stays reachable at 320px. */
.ew-dock__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ew-dock__group-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0.5rem;
	border: 0;
	border-radius: var(--ew-radius);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ew-dock__group-toggle svg {
	width: 15px;
	height: 15px;
	flex: none;
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-dock__group-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.ew-dock__group-toggle--full {
	width: 100%;
	justify-content: space-between;
	font-family: var(--ew-font-body);
	font-size: clamp(2rem, 3.35vw, 2.5rem);
	font-weight: 400;
	line-height: 1.03;
	letter-spacing: -0.055em;
	padding: 0.125rem 0;
}

.ew-dock__sublist {
	list-style: none;
	margin: 0.25rem 0 0.75rem;
	padding: 0;
}

.ew-dock__sublist[hidden] {
	display: none !important;
}

.ew-dock__sublist .ew-dock__link {
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.25;
}

/* Home immersive header ---------------------------------------------------
   The Home opening is one continuous photograph. The established two-row
   header overlays that image without a green/paper plate or backdrop blur;
   internal routes keep the ordinary shell above. */
body.home .ew-header {
	position: absolute;
	inset: 0 0 auto;
	width: 100%;
	z-index: 20;
	background: transparent;
	border-bottom: 0;
	color: #fff;
}

body.home .ew-header__utility,
body.home .ew-header .ew-wordmark,
body.home .ew-header .ew-nav__link,
body.home .ew-header .ew-theme-toggle,
body.home .ew-header .ew-sound-toggle,
body.home .ew-header .ew-nav-toggle {
	color: #fff;
	text-shadow: 0 1px 16px rgb(0 0 0 / 0.38);
}

/* The Home header sits over the photograph, so it uses the approved olive and
   white variant. Other routes keep the orange/deep-green artwork on paper. */
body.home .ew-header .ew-wordmark__lockup--primary {
	display: none;
}

body.home .ew-header .ew-wordmark__lockup--reversed {
	display: block;
}

body.home .ew-header .ew-theme-toggle,
body.home .ew-header .ew-sound-toggle,
body.home .ew-header .ew-nav-toggle {
	border-color: rgb(255 255 255 / 0.42);
}

body.home .ew-header[data-header-hidden="true"] {
	pointer-events: none;
	visibility: hidden;
}

@media (max-width: 54.9375em) {
	.ew-header__inner {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) 44px;
		align-items: center;
		column-gap: 0.75rem;
	}

	.ew-header__controls {
		display: contents;
	}

	.ew-header .ew-header__toggles {
		grid-column: 1;
		grid-row: 1;
		justify-self: start;
	}

	.ew-header .ew-wordmark {
		grid-column: 1 / -1;
		grid-row: 1;
		justify-self: center;
		min-width: 0;
		max-width: calc(100% - 104px);
		z-index: 1;
	}

	.ew-header .ew-wordmark__opening-group {
		min-width: 0;
		max-width: 100%;
	}

	.ew-header .ew-nav-toggle {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		z-index: 2;
	}

	body.home .ew-header .ew-nav__link {
		color: var(--ew-ink);
		text-shadow: none;
		border-top-color: var(--ew-line);
	}
}

@media (max-width: 20em) {
	body.home[data-ew-opening="running"] .ew-header .ew-wordmark__lockup--primary,
	body.home[data-ew-opening="running"] .ew-header .ew-wordmark__lockup--reversed {
		display: block;
	}

	body.home[data-ew-opening="running"] .ew-header .ew-brand-symbol--compact {
		display: none;
	}
}

@media (min-width: 55em) {
	body.home .ew-header .ew-nav {
		border-top-color: rgb(255 255 255 / 0.28);
	}
}

@media (prefers-reduced-motion: no-preference) {
	body.home .ew-header {
		transition:
			transform 420ms var(--ew-motion-ease),
			opacity 420ms var(--ew-motion-ease),
			visibility 0s linear 0s;
	}

	body.home .ew-header[data-header-hidden="true"] {
		transition:
			transform 260ms var(--ew-motion-ease),
			opacity 260ms var(--ew-motion-ease),
			visibility 0s linear 260ms;
	}
}

/* Home: hero copy helpers --------------------------------------------------- */

.ew-hero {
	padding-block: var(--ew-space-md) var(--ew-space-lg);
}

.ew-hero__ctas {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ew-space-xs);
}

/* Home: direct answer ----------------------------------------------------- */

.ew-answer {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: var(--ew-space-lg);
	align-items: start;
	border-top: var(--ew-line-width) solid var(--ew-line);
	padding-top: var(--ew-space-md);
}

/* When the detail panel is absent, the text column owns the full measure. */
.ew-answer > div:only-child {
	grid-column: 1 / -1;
	max-width: 62ch;
}

.ew-answer__detail {
	aspect-ratio: 1;
	margin-top: var(--ew-space-md);
}

.ew-answer__aside p {
	margin-bottom: var(--ew-space-xs);
}

@media (max-width: 64.9375em) {
	.ew-answer {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--ew-space-sm);
		padding-top: var(--ew-space-sm);
	}

	.ew-answer__detail {
		margin-top: 0;
		max-width: 22rem;
	}
}

/* Home: systems editorial rows (Phase 2 R2 — Fluid Glass grammar) -----------
   Full-width horizontal lines: title left, compact description center,
   CTA + drawn arrow right, continuous separators. No inline imagery on
   fine-pointer desktops — the only imagery is the cursor-anchored floating
   preview. Touch/coarse or narrow widths stack each line into a block with
   the approved inline media exactly once between title and copy.
   All durations inherit public motion tokens through shared components.
   NOTE: intentionally namespaced as .ew-systems-line* so it can never
   collide with the pre-existing .ew-editorial-row indexed-list component. */

.ew-systems-lines {
	border-bottom: var(--ew-line-width) solid var(--ew-border);

	/* Scoped preview sizing: proportionally stable inside the section. */
	--ew-preview-w: min(18rem, 32vw);
}

.ew-systems-line {
	position: relative;
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.75rem);
	padding-block: clamp(1.25rem, 3vw, 2.5rem);
	/* Reserved void where the floating preview lives: keeps it proportional,
	   stable and never overlapping title/copy/CTA at any desktop width. */
	padding-inline-end: clamp(13rem, 24vw, 15rem);
	border-top: var(--ew-line-width) solid var(--ew-border);
	transition: opacity var(--ew-motion-fast) var(--ew-ease-out);
}

/* Hovered line gains contrast; siblings recede softly (:has is progressive:
   where unsupported rows simply stay at full opacity). The 0.72 floor keeps
   non-active copy comfortably readable — emphasis, never loss of content. */
.ew-systems-lines:has(.ew-systems-line:hover) .ew-systems-line:not(:hover) {
	opacity: 0.72;
}

.ew-systems-line h3 {
	margin: 0;
	flex: none;
	font-size: clamp(1.35rem, 1.1rem + 1.35vw, 2.15rem);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.ew-systems-line__copy {
	flex: 0 1 auto;
	min-width: min(30ch, 100%);
}

.ew-systems-line__copy p {
	margin: 0;
	max-width: 48ch;
	font-size: 0.9375rem;
	color: var(--ew-text-muted);
}

.ew-systems-line__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex: none;
	margin-left: auto; /* reserved dead-zone between copy and the CTA */
	font-weight: 600;
	white-space: nowrap;
	color: var(--ew-text);
	text-decoration: none;
}

.ew-systems-line__cta .ew-draw {
	width: 1.125rem;
	height: 0.875rem;
}

.ew-systems-line__media {
	display: none; /* fine-pointer desktop: floating preview is the only imagery */
	margin: 0;
	background-color: var(--ew-stone);
}

.ew-systems-line__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* Touch/coarse pointers and narrow stacked widths (<62.5em ≈ <1000px,
   classic-scrollbar-aware so 1024-wide windows land on the desktop band). */
@media (hover: none), (pointer: coarse), (max-width: 62.49em) {
	.ew-systems-line {
		display: block;
		padding-inline-end: 0; /* stacked mode: the reserve makes no sense */
	}

	.ew-systems-line__media {
		display: block;
		margin: 0.625rem 0 0.75rem;
		max-width: 34rem;
	}

	.ew-systems-line__cta {
		margin-left: 0;
	}
}

/* Home: process ----------------------------------------------------------- */

.ew-process {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ew-step;
}

.ew-process li {
	counter-increment: ew-step;
	display: grid;
	grid-template-columns: clamp(3.5rem, 3rem + 2vw, 6rem) minmax(0, 1fr);
	gap: var(--ew-space-sm);
	padding-block: 1.375rem;
	border-top: var(--ew-line-width) solid var(--ew-line);
	align-items: baseline;
}

.ew-process li:last-child {
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-process li::before {
	content: "0" counter(ew-step);
	font-family: var(--ew-font-display);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
	color: var(--ew-deep-green);
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.ew-process h3 {
	margin-bottom: 0.375rem;
}

.ew-process p {
	margin-bottom: 0;
}


/* Home: provisional case study (dormant) ----------------------------------- */

.ew-case {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: var(--ew-space-md);
	align-items: start;
	margin-top: var(--ew-space-sm);
}

.ew-case__frames {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--ew-space-xs);
	align-items: end;
}

.ew-case__frame-main {
	aspect-ratio: 3 / 2;
}

.ew-case__frame-detail {
	aspect-ratio: 4 / 5;
	transform: translateY(var(--ew-space-sm));
}

.ew-case__facts {
	display: grid;
	gap: 0;
	margin: var(--ew-space-sm) 0;
	border-top: var(--ew-line-width) solid var(--ew-line);
}

.ew-case__facts > div {
	padding-block: 0.875rem;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-case__facts dt {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--ew-deep-green);
	margin-bottom: 0.25rem;
}

.ew-case__facts dd {
	margin: 0;
	font-size: 0.9375rem;
}

@media (max-width: 64.9375em) {
	.ew-case {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--ew-space-sm);
	}
}

/* Intent pages ------------------------------------------------------------ */

.ew-breadcrumb {
	padding-block: var(--ew-space-sm) var(--ew-space-xs);
}

.ew-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8125rem;
}

.ew-breadcrumb li {
	display: inline-flex;
	align-items: center;
}

.ew-breadcrumb li + li::before {
	content: "/";
	margin-right: 0.75rem;
	color: var(--ew-line);
}

.ew-breadcrumb a {
	color: var(--ew-deep-green);
	text-decoration: none;
}

.ew-breadcrumb a:hover {
	text-decoration: underline;
}

.ew-breadcrumb [aria-current="page"] {
	color: var(--ew-text-muted);
}

/* Indexed editorial rows (factors / signs). */
.ew-editorial-list {
	margin-top: var(--ew-space-sm);
	border-top: var(--ew-line-width) solid var(--ew-line);
	counter-reset: ew-row;
}

.ew-editorial-row {
	counter-increment: ew-row;
	display: grid;
	grid-template-columns: clamp(2.5rem, 2rem + 1.5vw, 4rem) minmax(0, 5fr) minmax(0, 7fr);
	gap: var(--ew-space-xs) var(--ew-space-sm);
	padding-block: 1.375rem;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
	align-items: baseline;
}

.ew-editorial-row::before {
	content: counter(ew-row, decimal-leading-zero);
	font-family: var(--ew-font-display);
	font-size: 1.125rem;
	color: var(--ew-accent-text);
	font-variant-numeric: tabular-nums;
}

.ew-editorial-row h3 {
	margin-bottom: 0;
	font-size: 1.25rem;
}

.ew-editorial-row p {
	margin-bottom: 0;
	color: var(--ew-text-muted);
}

/* Asymmetric pathway grid (systems). */
.ew-intent-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: var(--ew-space-sm);
	margin-top: var(--ew-space-sm);
}

.ew-intent-card {
	border-top: var(--ew-line-width) solid var(--ew-line);
	padding-top: var(--ew-space-xs);
}

.ew-intent-card:first-child {
	grid-row: span 1;
}

.ew-intent-card h3 {
	margin-bottom: 0.5rem;
}

.ew-intent-card p {
	font-size: 0.9375rem;
	margin-bottom: 0.875rem;
	color: var(--ew-text-muted);
}

.ew-related {
	list-style: none;
	margin: var(--ew-space-sm) 0 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.ew-related li {
	padding-block: 1.125rem;
	border-top: var(--ew-line-width) solid var(--ew-line);
}

.ew-related li:last-child {
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-related a {
	font-weight: 600;
	font-size: 1.0625rem;
}

.ew-related a::after {
	content: "\2192";
	display: inline-block;
	margin-left: 0.5rem;
	font-weight: 400;
	color: var(--ew-deep-green);
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-related a:hover::after {
	transform: translateX(0.25rem);
}

.ew-related p {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	color: var(--ew-text-muted);
}

@media (max-width: 64.9375em) {
	.ew-editorial-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.375rem;
	}

	.ew-editorial-row::before {
		margin-bottom: 0.125rem;
	}

	.ew-intent-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Orientation strip (energy) ---------------------------------------------- */

.ew-orientation {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: var(--ew-line-width) solid var(--ew-line);
	margin-top: var(--ew-space-sm);
}

.ew-orientation__cell {
	padding: var(--ew-space-sm) var(--ew-space-xs) var(--ew-space-xs) 0;
	border-right: var(--ew-line-width) solid var(--ew-line);
}

.ew-orientation__cell:last-child {
	border-right: 0;
}

.ew-orientation__axis {
	font-family: var(--ew-font-display);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
	color: var(--ew-deep-green);
	margin-bottom: var(--ew-space-xs);
	line-height: 1;
}

.ew-orientation__cell h3 {
	font-size: 1.125rem;
	margin-bottom: 0.375rem;
}

.ew-orientation__cell p:last-child {
	font-size: 0.9375rem;
	margin-bottom: 0;
	color: var(--ew-text-muted);
}

@media (max-width: 64.9375em) {
	.ew-orientation {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ew-orientation__cell:nth-child(2n) {
		border-right: 0;
	}
}

@media (max-width: 40em) {
	.ew-orientation {
		grid-template-columns: minmax(0, 1fr);
	}

	.ew-orientation__cell {
		border-right: 0;
	}
}

/* System directory (windows / doors hubs) --------------------------------- */

.ew-draft-note {
	font-size: 0.875rem;
	color: var(--ew-text-muted);
	border: var(--ew-line-width) dashed var(--ew-line);
	padding: 0.75rem 1rem;
	margin-bottom: var(--ew-space-sm);
}

.ew-directory {
	border-top: var(--ew-line-width) solid var(--ew-line);
	margin-top: var(--ew-space-sm);
}

.ew-directory__row {
	display: grid;
	grid-template-columns: clamp(2.75rem, 2.25rem + 1.5vw, 4.5rem) minmax(0, 1fr);
	gap: var(--ew-space-sm);
	padding-block: 1.5rem;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
	align-items: baseline;
}

.ew-directory__num {
	font-family: var(--ew-font-display);
	font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.875rem);
	color: var(--ew-accent-text);
	margin: 0;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.ew-directory__body h3 {
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	margin-bottom: 0.625rem;
}

.ew-directory__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--ew-space-xs);
	margin: 0;
}

.ew-directory__fields > div {
	border-left: var(--ew-line-width) solid var(--ew-line);
	padding-left: var(--ew-space-xs);
}

.ew-directory__fields dt {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ew-deep-green);
	margin-bottom: 0.25rem;
}

.ew-directory__fields dd {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--ew-text-muted);
}

@media (max-width: 48em) {
	.ew-directory__fields {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
	}
}

/* Comparison table (hubs) ------------------------------------------------- */

/* Focusable region wrapper: owns the accessible name, the hint and the
   focus ring, but never scrolls horizontally itself. */
.ew-table-wrap {
	position: relative;
	margin-top: var(--ew-space-sm);
	border-radius: var(--ew-radius);
}

.ew-table-wrap:focus-visible {
	outline: 2px solid var(--ew-deep-green);
	outline-offset: 2px;
}

/* Inner scrollport: only the table moves horizontally, so the hint above
   stays fixed and fully legible at every scroll position. */
.ew-table-viewport {
	overflow-x: auto;
	border-radius: inherit;
}

.ew-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.ew-table th,
.ew-table td {
	text-align: left;
	padding: 0.875rem var(--ew-space-xs);
	border-bottom: var(--ew-line-width) solid var(--ew-line);
	vertical-align: top;
}

.ew-table thead th {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ew-deep-green);
	border-bottom-width: 2px;
}

.ew-table tbody th {
	font-weight: 600;
	color: var(--ew-ink);
}

.ew-table tbody tr:hover {
	background-color: color-mix(in srgb, var(--ew-stone) 45%, transparent);
}

/* Scroll hint — only shown where the table actually overflows (mobile). */
.ew-table-hint {
	display: none;
	margin: 0 0 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ew-deep-green);
}

/* Right-edge fade affordance; sticky so it stays at the visible edge of the
   scrollport while the table scrolls beneath, and clears once the end is
   reached. */
.ew-table-fade {
	position: sticky;
	right: 0;
	top: 0;
	width: 56px;
	height: 100%;
	margin-left: auto;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--ew-surface-muted) 92%, transparent)
	);
	opacity: 1;
	transition: opacity var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-table-wrap[data-table-end="true"] .ew-table-fade {
	opacity: 0;
}

@media (max-width: 40em) {
	.ew-table {
		min-width: 34rem;
	}

	.ew-table-hint {
		display: block;
	}
}

@media (min-width: 40.0625em) {
	.ew-table-fade {
		display: none;
	}
}

/* Assembly layers (numbered horizontal bands) ------------------------------ */

.ew-layers {
	border-top: var(--ew-line-width) solid var(--ew-line);
}

.ew-layers__row {
	display: grid;
	grid-template-columns: clamp(3.5rem, 3rem + 2vw, 6rem) minmax(0, 1fr);
	gap: 0.25rem var(--ew-gutter);
	padding: 1.5rem 0;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
	align-items: baseline;
}

.ew-layers__num {
	margin: 0;
	font-family: var(--ew-font-display);
	font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.75rem);
	line-height: 1.1;
	color: var(--ew-deep-green);
	font-variant-numeric: tabular-nums;
}

.ew-layers__body h3 {
	margin: 0 0 0.35rem;
}

.ew-layers__body p {
	margin: 0;
	max-width: var(--ew-reading-measure);
	color: var(--ew-text-muted);
}

/* Specimen figures (catalogue references) ---------------------------------- */

.ew-specimens {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ew-space-sm);
}

.ew-specimens__item {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ew-specimens__item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	background-color: var(--ew-stone);
}

.ew-specimens__item figcaption {
	padding: 0.75rem 0 0;
}

.ew-specimens__item h3 {
	margin: 0 0 0.3rem;
	font-size: 1.0625rem;
}

.ew-specimens__item figcaption p {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--ew-text-muted);
}

@media (min-width: 48em) {
	.ew-specimens {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Editorial bands (single atmospheric figure + copy) ------------------------ */

.ew-editorial-band__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ew-space-sm);
	align-items: center;
}

.ew-editorial-band__media {
	margin: 0;
}

.ew-editorial-band__media img {
	display: block;
	width: 100%;
	height: auto;
}

.ew-editorial-band__body h2 {
	margin-bottom: var(--ew-space-xs);
}

.ew-editorial-band__body p {
	color: var(--ew-text-muted);
}

@media (min-width: 48em) {
	.ew-editorial-band__grid {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: var(--ew-space-md);
	}

	.ew-editorial-band--flip .ew-editorial-band__media {
		order: 2;
	}
}

/* Quote request form -------------------------------------------------------- */

.ew-form {
	display: grid;
	gap: var(--ew-space-sm);
	max-width: 62rem;
}

.ew-form__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ew-space-sm);
}

@media (min-width: 48em) {
	.ew-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ew-form__field {
	display: grid;
	gap: 0.4rem;
}

.ew-form__field label,
.ew-form__fieldset legend {
	font-weight: 600;
	font-size: 0.9375rem;
}

.ew-form__optional {
	font-weight: 400;
	color: var(--ew-text-muted);
}

.ew-form input[type='text'],
.ew-form input[type='email'],
.ew-form input[type='tel'],
.ew-form select,
.ew-form textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.85rem;
	border: var(--ew-line-width) solid var(--ew-border);
	border-radius: var(--ew-radius);
	background: var(--ew-surface);
	font: inherit;
	color: var(--ew-text);
}

.ew-form textarea {
	min-height: 9rem;
	resize: vertical;
}

.ew-form input:focus-visible,
.ew-form select:focus-visible,
.ew-form textarea:focus-visible,
.ew-form button:focus-visible,
.ew-form-summary a:focus-visible,
.ew-form-errors a:focus-visible {
	outline: 2px solid var(--ew-action);
	outline-offset: 2px;
}

.ew-form input[aria-invalid='true'],
.ew-form select[aria-invalid='true'] {
	border-color: var(--ew-danger);
}

.ew-form__fieldset {
	border: none;
	margin: 0;
	padding: 0;
}

.ew-form__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.5rem;
	margin-top: 0.4rem;
}

.ew-form__choices label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
}

.ew-form__choices input[type='radio'] {
	width: 1.0625rem;
	height: 1.0625rem;
	accent-color: var(--ew-action);
}

.ew-form__hint {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ew-text-muted);
}

.ew-form__error {
	margin: 0;
	font-size: 0.875rem;
	color: var(--ew-danger);
}

.ew-form-errors {
	border: 0;
	border-left: 3px solid var(--ew-danger);
	border-radius: 0 var(--ew-radius) var(--ew-radius) 0;
	background: color-mix(in srgb, var(--ew-danger) 7%, transparent);
	padding: 0.9rem 1.1rem;
	margin-bottom: var(--ew-space-sm);
}

.ew-form-errors ul {
	margin: 0.4rem 0 0;
	padding-inline-start: 1.2rem;
}

.ew-notice {
	border: var(--ew-line-width) solid var(--ew-border);
	border-radius: var(--ew-radius);
	background: var(--ew-surface-muted);
	padding: 0.9rem 1.1rem;
	margin-bottom: var(--ew-space-sm);
}

.ew-form-summary {
	border: 0;
	border-top: 2px solid var(--ew-action);
	border-radius: 0;
	background: var(--ew-surface);
	padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
	margin-block-start: var(--ew-space-md);
	max-width: 62rem;
}

.ew-form-summary h2 {
	margin-bottom: 0.5rem;
}

.ew-form-summary__preview {
	white-space: pre-wrap;
	word-break: break-word;
	border: var(--ew-line-width) solid var(--ew-line);
	border-radius: var(--ew-radius);
	background: var(--ew-stone);
	padding: 0.9rem 1.1rem;
	font-family: var(--ew-font-body, inherit);
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

/* Responsibility matrix ----------------------------------------------------- */

.ew-matrix {
	margin: 0;
	border-top: var(--ew-line-width) solid var(--ew-line);
}

.ew-matrix__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.4rem;
	padding: 1.25rem 0;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-matrix dt {
	font-weight: 600;
	color: var(--ew-ink);
}

.ew-matrix dd {
	margin: 0;
	color: var(--ew-text-muted);
}

.ew-matrix__tag {
	display: inline-block;
	margin-right: 0.625rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: var(--ew-accent-text);
	white-space: nowrap;
}

@media (min-width: 48em) {
	.ew-matrix__row {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
		gap: var(--ew-gutter);
	}
}

/* Documents checklist -------------------------------------------------------- */

.ew-documents {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: var(--ew-line-width) solid var(--ew-line);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.ew-documents li {
	position: relative;
	padding: 1.125rem 0 1.125rem 2rem;
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-documents li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.5rem;
	width: 0.625rem;
	height: 0.625rem;
	border: 1.5px solid var(--ew-deep-green);
}

.ew-documents h3 {
	margin: 0 0 0.25rem;
	font-size: 1.0625rem;
}

.ew-documents p {
	margin: 0;
	max-width: var(--ew-reading-measure);
	color: var(--ew-text-muted);
}

@media (min-width: 48em) {
	.ew-documents {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ew-space-md);
	}
}

/* FAQ ---------------------------------------------------------------------- */

.ew-faq {
	max-width: var(--ew-reading-measure);
}

.ew-faq details {
	border-top: var(--ew-line-width) solid var(--ew-line);
}

.ew-faq details:last-of-type {
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ew-space-sm);
	min-height: 44px;
	padding-block: 1.125rem;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.0625rem;
	font-family: var(--ew-font-body);
	color: var(--ew-ink);
	list-style: none;
	transition: color var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-faq summary:hover {
	color: var(--ew-deep-green);
}

.ew-faq summary::-webkit-details-marker {
	display: none;
}

.ew-faq summary svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--ew-deep-green);
	transition: transform var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-faq details[open] summary svg {
	transform: rotate(45deg);
}

.ew-faq details p {
	margin-bottom: var(--ew-space-xs);
	color: var(--ew-text-muted);
}

/* Quote band --------------------------------------------------------------- */

.ew-quote-band {
	background-color: var(--ew-green-dark);
	color: var(--ew-on-brand);
}

.ew-quote-band__inner {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
	gap: var(--ew-space-md);
	align-items: center;
}

.ew-quote-band .ew-eyebrow {
	/* The band is brand-deep in both themes; the eyebrow uses a fixed
	   warm tone measured against --ew-green-dark (>= 4.5:1). */
	color: #e9a45b;
}

.ew-quote-band h2 {
	color: var(--ew-on-brand);
}

.ew-quote-band p {
	margin-bottom: 0;
	color: rgb(245 241 233 / 0.88);
}

.ew-quote-band a {
	color: var(--ew-on-brand);
}

.ew-quote-band a.ew-btn--inverse {
	/* The band is brand-deep in both themes, so the CTA keeps a fixed
	   paper surface: --ew-paper flips dark while the band does not. */
	background-color: #faf7f2;
	color: var(--ew-green-dark);
}

.ew-quote-band a.ew-btn--inverse:hover {
	background-color: #e9e3d8;
	color: var(--ew-green-dark);
}

@media (max-width: 64.9375em) {
	.ew-quote-band__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--ew-space-sm);
	}
}

.ew-quote-band__channels {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid rgb(250 247 242 / 0.2);
}

.ew-quote-band__channels-label {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgb(245 241 233 / 0.7);
	margin-bottom: 0.5rem;
}

.ew-quote-band__channel-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.ew-quote-band__channel-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	color: var(--ew-on-brand);
	font-size: 0.875rem;
	text-decoration: none;
	opacity: 0.88;
	transition: opacity var(--ew-motion-fast) var(--ew-motion-ease);
}

@media (hover: hover) {
	.ew-quote-band__channel-link:hover {
		opacity: 1;
		text-decoration: underline;
		text-underline-offset: 0.2em;
	}
}

/* Footer ------------------------------------------------------------------- */

.ew-footer {
	background-color: var(--ew-green-dark);
	color: var(--ew-on-brand);
	padding-block: var(--ew-space-md) var(--ew-space-sm);
}

.ew-footer a {
	color: var(--ew-on-brand);
}

.ew-footer .ew-wordmark {
	color: var(--ew-on-brand);
}

.ew-footer a:hover {
	color: var(--ew-accent);
}

.ew-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--ew-space-md);
}

.ew-footer h2,
.ew-footer h3 {
	color: var(--ew-on-brand);
}

.ew-footer h3 {
	font-family: var(--ew-font-body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-bottom: var(--ew-space-xs);
	color: rgb(245 241 233 / 0.66);
}

.ew-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.ew-footer p {
	max-width: 26rem;
	color: rgb(245 241 233 / 0.88);
}

.ew-footer__legal {
	margin-top: var(--ew-space-md);
	padding-top: var(--ew-space-sm);
	border-top: 1px solid rgb(250 247 242 / 0.25);
	font-size: 0.8125rem;
}

.ew-footer__legal p {
	margin-bottom: 0;
	color: rgb(245 241 233 / 0.66);
}

@media (max-width: 48em) {
	.ew-footer__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--ew-space-sm);
	}
}

/* Theme switching ----------------------------------------------------------
   Colour-bearing shell properties only; never `transition: all` and never
   layout properties. Buttons own their existing transition list. */

.ew-header,
.ew-nav,
.ew-theme-toggle,
.ew-sound-toggle,
.ew-nav-toggle,
.ew-footer,
.ew-section--stone,
.ew-section--brand,
.ew-quote-band,
.ew-notice,
.ew-faq details,
.ew-table th,
.ew-table td,
.ew-form input,
.ew-form select,
.ew-form textarea {
	transition-property: background-color, color, border-color;
	transition-duration: 220ms;
	transition-timing-function: var(--ew-motion-ease);
}

/* Ambient drag: the progress stream repaints the shell surfaces and the
   contrast-locked text palette every frame. ANY colour fade would trail
   the divider and blend the two text families through grey at the swap,
   so colour motion is instantaneous everywhere while the ambient mode is
   active — the stream itself is the animation. The Window Reveal scenes
   keep their protected motion timings untouched. */
html[data-ew-ambient="true"] *:not(.ew-reveal, .ew-reveal *) {
	transition-duration: 0ms;
}

/* Calm scene framing (Home: Quiet / Warm / Secure) -------------------------- */

.ew-scene-quiet .ew-reveal__image {
	object-position: 58% 50%;
}

.ew-scene-warm .ew-reveal__image {
	object-position: 54% 50%;
}

.ew-scene-secure .ew-reveal__image {
	object-position: 46% 50%;
}

/* Editorial asymmetry: alternate scene widths so the three calm bands do
   not repeat one identical anatomy down the page. */
@media (min-width: 64em) {
	.ew-scene-warm.ew-reveal--calm {
		width: min(1480px, calc(100vw - clamp(3rem, 4vw, 4rem)));
		margin-inline: 0;
	}

	.ew-scene-secure.ew-reveal--calm {
		width: min(1480px, calc(100vw - clamp(3rem, 4vw, 4rem)));
		margin-inline: 0 0;
		margin-left: auto;
	}
}

/* Lote 4.3C — editorial photography (Doors) -------------------------------- */

.ew-photo-editorial__media {
	margin: 0;
}

.ew-photo-editorial__media img {
	width: 100%;
	height: auto;
}

.ew-photo-editorial__caption {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ew-space-xs);
	padding-block: var(--ew-space-sm) 0;
}

.ew-photo-editorial__caption h2 {
	margin-bottom: 0;
}

.ew-photo-editorial__body p {
	margin-bottom: var(--ew-space-xs);
}

.ew-photo-editorial__body .ew-btn {
	margin-top: var(--ew-space-xxs);
}

@media (min-width: 48em) {
	.ew-photo-editorial__caption {
		grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
		column-gap: clamp(2rem, 4vw, 4rem);
		align-items: start;
	}

	.ew-photo-editorial__caption .ew-eyebrow,
	.ew-photo-editorial__caption h2 {
		grid-column: 1;
	}

	.ew-photo-editorial__caption .ew-eyebrow {
		grid-row: 1;
	}

	.ew-photo-editorial__caption h2 {
		grid-row: 2;
	}

	.ew-photo-editorial__body {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* Shared editorial line reveal primitives (spec §6.1). Consumers map these
   onto their approved composition; masks keep ascenders/descenders. */
.ew-line-reveal__line {
	display: block;
	overflow: hidden;
}

.ew-line-reveal__line-inner {
	display: block;
	white-space: nowrap;
}
/* Registry focal points stay presentation-only instead of leaking numeric
 * positioning into public copy contracts. */
.ew-internal-media--focus-x50-y50 img {
	object-position: 50% 50%;
}

.ew-internal-media--focus-x52-y50 img {
	object-position: 52% 50%;
}

.ew-internal-media--focus-x48-y50 img {
	object-position: 48% 50%;
}

.ew-internal-media--focus-x50-y48 img {
	object-position: 50% 48%;
}

.ew-internal-media--focus-x55-y50 img {
	object-position: 55% 50%;
}

.ew-internal-media--focus-x52-y42 img {
	object-position: 52% 42%;
}

.ew-internal-media--focus-x54-y50 img {
	object-position: 54% 50%;
}

.ew-internal-media--focus-x56-y50 img {
	object-position: 56% 50%;
}

/* Contact channels --------------------------------------------------------- */

.ew-channels {
	list-style: none;
	margin: 0 0 var(--ew-space-lg);
	padding: 0;
	border-top: var(--ew-line-width) solid var(--ew-line);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.ew-channels__item {
	border-bottom: var(--ew-line-width) solid var(--ew-line);
}

.ew-channels__link {
	display: grid;
	gap: 0.25rem;
	padding: 1.125rem 0;
	color: inherit;
	text-decoration: none;
}

.ew-channels__link:focus-visible {
	outline: 2px solid var(--ew-link);
	outline-offset: 3px;
}

.ew-channels__label {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ew-text-muted);
}

.ew-channels__display {
	font-family: var(--ew-font-display);
	font-size: 1.25rem;
	line-height: 1.2;
	color: var(--ew-text);
}

.ew-channels__note {
	max-width: var(--ew-reading-measure);
	font-size: 0.9375rem;
	color: var(--ew-text-muted);
}

@media (hover: hover) {
	.ew-channels__link:hover .ew-channels__display {
		color: var(--ew-link);
	}

	.ew-channels__link:hover .ew-channels__label {
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}
}

@media (min-width: 48em) {
	.ew-channels {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ew-gutter);
	}
}

/* Footer contact row ------------------------------------------------------- */

.ew-footer__contact {
	margin-top: var(--ew-space-md);
	padding-top: var(--ew-space-sm);
	border-top: 1px solid rgb(250 247 242 / 0.25);
}

.ew-footer__contact ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem var(--ew-space-md);
}

.ew-footer__contact a {
	display: grid;
	gap: 0.125rem;
	text-decoration: none;
}

.ew-footer__contact-label {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: rgb(245 241 233 / 0.66);
}

.ew-footer__contact-value {
	color: var(--ew-on-brand);
}

@media (hover: hover) {
	.ew-footer__contact a:hover .ew-footer__contact-value {
		text-decoration: underline;
		text-underline-offset: 0.25em;
	}
}

/* Home problem pair --------------------------------------------------------- */

.ew-problem-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ew-space-md);
	margin-top: var(--ew-space-sm);
}

.ew-problem {
	display: grid;
	align-content: start;
	gap: var(--ew-space-xxs);
	padding: clamp(1.25rem, 2.5vw, 2rem);
	border: var(--ew-line-width) solid var(--ew-line);
	border-radius: var(--ew-radius);
	background-color: var(--ew-surface);
	box-shadow: 0 2px 12px rgb(0 0 0 / 0.04);
	transition: border-color var(--ew-motion-fast) var(--ew-motion-ease), box-shadow var(--ew-motion-fast) var(--ew-motion-ease);
}

.ew-problem:hover {
	border-color: var(--ew-action);
	box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}

.ew-problem__heading {
	margin-bottom: 0.25rem;
	font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
	line-height: 1.22;
}

.ew-problem p {
	max-width: var(--ew-reading-measure);
	margin-bottom: 0.75rem;
}

/* The answer sits under the problem it resolves, styled as an engineered response */
.ew-problem__answer {
	margin-top: var(--ew-space-xs);
	padding: 1.125rem 1.25rem;
	border-radius: var(--ew-radius);
	background-color: var(--ew-surface-muted);
	border-left: 3px solid var(--ew-action);
}

.ew-problem__answer-label {
	margin: 0 0 0.375rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ew-action);
}

.ew-problem__answer p {
	margin-bottom: 0.75rem;
	color: var(--ew-text);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.ew-problem__answer .ew-link-more {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 600;
	font-size: 0.875rem;
}

@media (min-width: 48em) {
	.ew-problem-pair {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ew-gutter);
	}
}

/* Fixes from the 24/10/2026 review sweep --------------------------------- */

/* The disclosure buttons (Solutions, Products, Learn) reset `font` to the
   body size; give them exactly the same type as the plain links. */
button.ew-nav__disclosure.ew-nav__link {
	font-family: var(--ew-font-body);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: inherit;
	letter-spacing: inherit;
}

/* The underline belongs to the label only, never under the chevron. */
button.ew-nav__disclosure.ew-nav__link::after {
	inset-inline: 0 calc(15px + 0.35rem);
}

/* Dark theme: every route uses the light-text lockup, so the wordmark never
   disappears into the dark header. */
html[data-ew-theme="dark"] .ew-header .ew-wordmark__lockup--primary {
	display: none;
}

html[data-ew-theme="dark"] .ew-header .ew-wordmark__lockup--reversed {
	display: block;
}

@media (max-width: 54.9375em) {
	/* Drawer rows keep the larger touch size for links and buttons alike. */
	button.ew-nav__disclosure.ew-nav__link {
		font-size: 1.0625rem;
	}

	button.ew-nav__disclosure.ew-nav__link::after {
		display: none;
	}
}
