/* The editorial home direction is isolated from the working catalog pages. */
.home-editorial {
	--home-paper: #faf9f6;
	--home-wash: #f0eee9;
	--home-gutter: clamp(1.25rem, 5vw, 5rem);
	background: var(--home-paper);
	color: var(--elevare-ink);
}

.home:has(.home-editorial) .site-header {
	border-bottom: 0;
}

.home-editorial h1,
.home-editorial h2,
.home-editorial h3 {
	font-family: var(--elevare-font);
	font-weight: 300;
	text-transform: none;
	letter-spacing: -0.035em;
}

.home-editorial h2 {
	font-size: clamp(2rem, 3.5vw, 3.5rem);
	line-height: 1.1;
}

.home-wrap {
	width: 100%;
	max-width: 1600px;
	margin-inline: auto;
	padding-inline: var(--home-gutter);
}

.home-eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: 1.6;
	text-transform: uppercase;
	color: var(--elevare-ink-soft);
}

.home-link {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	max-width: 100%;
	min-height: 44px;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	color: var(--elevare-ink);
}

.home-link span {
	font-size: 1.25rem;
}

.home-link:hover {
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* Photograph first. A quiet paper panel keeps copy readable without dimming it. */
.home-hero {
	display: grid;
	min-height: 40rem;
	height: min(78svh, 52rem);
	background: var(--home-wash);
}

.home-hero__media,
.home-hero__body {
	grid-area: 1 / 1;
}

/*
 * The hero sets white text straight onto a photograph, and the banner
 * rotates, so nothing about the image can be relied on. Measured on the
 * Classic Marble banner the eyebrow sat at 1.25:1 and the 109px headline at
 * 1.79:1 — both well under what they need.
 *
 * The scrim is sized for the worst case rather than the current picture: at
 * 0.70 Verde, even a pure white backdrop lands at 5.4:1, so every banner
 * passes. It covers the text column and fades out above it, leaving the top
 * of the image untouched. .hero-controls is z-index 2, so the buttons stay
 * above it, and pointer-events: none keeps the whole thing click-through.
 */
/* No scrim over the cover: the copy sits in a paper card, so the
   photograph is left as it was shot. */
.home-hero__media {
	min-width: 0;
	min-height: 0;
	overflow: hidden;
}

/* The picture leaving the stage during a banner change. It covers the stage
   exactly, sits under nothing, and is driven only by transform. */
.home-hero__leaving {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	z-index: 1;
	will-change: transform;
}

.home-hero__media {
	position: relative;
}

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

.home-hero__body {
	z-index: 1;
	align-self: end;
	justify-self: start;
	width: min(29rem, calc(100% - 2 * var(--home-gutter)));
	margin: 3rem var(--home-gutter);
	padding: 2rem 2.25rem 1.5rem;
	background: var(--home-paper);
}

.home-hero h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2.6rem, 4.2vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.045em;
}

.home-hero h1 span {
	display: block;
}

.home-hero__text {
	max-width: 31ch;
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--elevare-ink-soft);
}

.home-hero:not(:has(.home-hero__media)) {
	height: auto;
	min-height: 0;
}

.home-palette {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem 1.5rem;
	padding: 1.5rem var(--home-gutter);
	background: var(--home-paper);
}

.home-palette__intro {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 300;
}

.home-palette .swatch-strip__items {
	gap: 0.5rem;
}

.home-palette .swatch {
	width: 3rem;
	height: 2.5rem;
	border: 1px solid transparent;
}

.home-palette .swatch[aria-pressed="true"] {
	outline-width: 1px;
	outline-offset: 3px;
}

.home-palette .swatch:focus-visible {
	outline-width: 2px;
	outline-offset: 4px;
}

.home-palette .swatch-strip__selection {
	font-size: 0.75rem;
}

.home-palette__link {
	margin-left: auto;
	font-size: 0.8125rem;
	text-decoration: none;
}

.home-intro {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 3rem;
	padding-block: 7rem 8rem;
}

.home-intro > .home-eyebrow {
	max-width: 18ch;
	padding-top: 0.5rem;
}

.home-intro__body {
	max-width: 49rem;
}

.home-intro h2 {
	max-width: 21ch;
	margin-bottom: 1.5rem;
}

.home-intro__body > p {
	max-width: 54ch;
	margin: 0 0 1rem;
	font-size: 1rem;
	color: var(--elevare-ink-soft);
}

.home-section-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	margin-bottom: 3rem;
}

.home-section-head h2 {
	margin: 0;
}

.home-section-head > p {
	max-width: 32ch;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--elevare-ink-soft);
}

.home-collections {
	padding-bottom: 7rem;
}

.home-collections__grid {
	display: grid;
	/* An fr track will not shrink below its content, so an image inside one
	   pushes the whole grid wider than its container. minmax(0, …) lets the
	   track shrink; without it the collection images were being clipped. */
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 2.5rem 4rem;
	align-items: start;
}

.home-collection {
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.home-collection:nth-child(even) {
	margin-top: 6rem;
}

.home-collection__image,
.home-space__image {
	overflow: hidden;
	background: var(--home-wash);
}

.home-collection__image {
	aspect-ratio: 4 / 3;
}

.home-collection:nth-child(2) .home-collection__image {
	aspect-ratio: 1 / 1;
}

.home-collection__image img,
.home-space__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms ease;
}

.home-collection:hover,
.home-space:hover {
	color: var(--elevare-ink);
}

.home-collection:hover .home-collection__image img,
.home-space:hover .home-space__image img {
	transform: scale(1.025);
}

.home-collection__caption {
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 1rem;
	margin-top: 1.25rem;
}

.home-collection__caption > img {
	width: 3rem;
	height: 3rem;
	object-fit: cover;
}

.home-collection h3 {
	margin: 0 0 0.25rem;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	letter-spacing: -0.02em;
	font-weight: 400;
}

.home-collection__caption p {
	margin: 0;
	font-size: 0.75rem;
	color: var(--elevare-ink-soft);
}

.home-collection__arrow {
	font-size: 1.5rem;
}

.home-collection__description {
	max-width: 48ch;
	margin: 1rem 0 0;
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--elevare-ink-soft);
}

.home-spaces {
	padding-block: 6rem;
	background: var(--home-wash);
}

.home-spaces__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 1.5rem;
	align-items: start;
}

.home-space {
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.home-space__image {
	aspect-ratio: 3 / 4;
	margin-bottom: 1.25rem;
}

.home-space:first-child .home-space__image {
	aspect-ratio: 1 / 1;
}

.home-space .home-eyebrow {
	margin-bottom: 0.5rem;
	font-size: 0.625rem;
}

.home-space h3 {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.home-material {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(2rem, 7vw, 7rem);
	padding-block: 7rem;
}

.home-material__image {
	margin: 0;
}

.home-material:not(:has(.home-material__image)) {
	grid-template-columns: minmax(0, 1fr);
}

.home-material__image img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.home-material__image figcaption {
	margin-top: 0.75rem;
	font-size: 0.6875rem;
	color: var(--elevare-ink-soft);
}

.home-material__body > p:not(.home-eyebrow) {
	max-width: 42ch;
	font-size: 0.9375rem;
	color: var(--elevare-ink-soft);
}

.home-facts {
	margin: 2rem 0 1rem;
}

.home-facts > div {
	padding-block: 1rem;
	border-top: 1px solid #d9d8d1;
}

.home-facts dt {
	margin-bottom: 0.3rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.home-facts dd {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--elevare-ink-soft);
}

.home-partners {
	padding-bottom: 5rem;
}

.home-partners .certifications {
	padding: 0;
}

.home-partners .certifications__title {
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
}

.home-partners .certifications__tile {
	min-height: 4rem;
	border: 0;
	background: transparent;
}

.home-invitation {
	padding-block: 5rem;
	background: #eae7df;
}

.home-invitation__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 3rem;
}

.home-invitation h2 {
	max-width: 17ch;
	margin-bottom: 1rem;
}

.home-invitation p:not(.home-eyebrow) {
	max-width: 48ch;
	margin: 0;
	font-size: 0.9375rem;
	color: var(--elevare-ink-soft);
}

.home-invitation__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
	flex-shrink: 0;
}

@media (max-width: 1000px) {
	.home-hero {
		height: 70svh;
		min-height: 35rem;
	}

	.home-intro {
		grid-template-columns: 1fr 2.4fr;
		gap: 2rem;
	}

	.home-collections__grid {
		column-gap: 2rem;
	}
}

@media (max-width: 782px) {
	.home:has(.home-editorial) .site-header__inner {
		gap: 0.75rem;
	}

	.home:has(.home-editorial) .site-header__cta {
		order: 1;
		width: auto;
		min-height: 44px;
		margin-left: auto;
		padding: 0.625rem 0.75rem;
		display: inline-flex;
		align-items: center;
		font-size: 0.75rem;
	}

	.home:has(.home-editorial) .nav-toggle {
		order: 2;
		flex: 0 0 44px;
		margin-left: 0;
	}

	.home:has(.home-editorial) .main-navigation {
		order: 3;
	}
}

@media (max-width: 700px) {
	.home-hero {
		display: flex;
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.home-hero__media {
		height: clamp(19rem, 95vw, 30rem);
	}

	.home-hero__body {
		width: 100%;
		margin: 0;
		padding: 2rem var(--home-gutter) 1rem;
	}

	.home-hero h1 {
		font-size: clamp(2.5rem, 8.5vw, 3.5rem);
	}

	.home-palette {
		gap: 1rem 1.25rem;
		padding-top: 1rem;
	}

	.home-palette__intro {
		flex-basis: 100%;
	}

	.home-palette__link {
		margin-left: 0;
	}

	.home-intro,
	.home-material {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
		padding-block: 4rem;
	}

	.home-intro > .home-eyebrow {
		max-width: none;
		margin-bottom: 0;
		padding: 0;
	}

	.home-section-head {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
		margin-bottom: 2rem;
	}

	.home-collections {
		padding-bottom: 4rem;
	}

	.home-collections__grid,
	.home-spaces__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2.5rem;
	}

	.home-collection:nth-child(even) {
		margin-top: 0;
	}

	.home-collection:nth-child(2) .home-collection__image,
	.home-space__image,
	.home-space:first-child .home-space__image {
		aspect-ratio: 4 / 3;
	}

	.home-spaces,
	.home-invitation {
		padding-block: 3.5rem;
	}

	.home-material__image img {
		aspect-ratio: 1 / 1;
	}

	.home-partners {
		padding-bottom: 3rem;
	}

	.home-invitation__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.home-collection__image img,
	.home-space__image img {
		transition: none;
	}
}
