/*
 * Material Library page (page-material-library.php).
 *
 * Built from the "Web Page - 5.psd" design, which is drawn on a 1600px artboard.
 * Every size below is that design's pixel value: fluid sizes are written as
 * clamp(min, px/1600*100vw, px), so the page is an exact replica at 1600px and
 * scales in proportion down to 1280px. Below 1280px the layout changes shape
 * (stacked, carousel) rather than shrinking the type any further.
 *
 * Image sections (hero, beyond, note, CTA) lock the design's aspect ratio at
 * 1280px and up and place the photo with the same offsets as the PSD, so the
 * baked-in gradients line up with the copy. Below that they fall back to
 * object-fit: cover with a hand-picked focal point.
 *
 * Everything is namespaced .rtml-*. Resets that must beat the parent theme's
 * `.site-content a:not(.button)` and heading rules are anchored on #rtml.
 */

.rtml {
	--rtml-gutter: max(16px, 4.5625vw);          /* 73px at 1600 */
	--rtml-max: 1760px;
	--rtml-ink: #000;
	--rtml-ink-soft: #363636;
	--rtml-serif: "Times New Roman", Tinos, Times, serif;
	--rtml-sans: Poppins, "Helvetica Neue", Arial, sans-serif;
	--rtml-ease: cubic-bezier(.22, .61, .36, 1);

	overflow: hidden;
	background: #fff;
	color: var(--rtml-ink);
	font-family: var(--rtml-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --- resets against the parent theme ------------------------------------ */

/* The theme's title banner ("large" page header). This page opens on its own
   hero, and header.php offers no filter to switch the banner off. */
body.page-template-page-material-library .nova-page-header { display: none; }

/*
 * The site's Customizer CSS sets `body p, body span, body h1…h6 { font-family:
 * 'Montserrat' !important }`, so the design's faces have to be restated with
 * !important too. The serif rules below are more specific, so they win.
 */
#rtml p,
#rtml span,
#rtml a,
#rtml li,
#rtml h1,
#rtml h2,
#rtml h3,
#rtml strong,
#rtml button { font-family: var(--rtml-sans) !important; }
#rtml .rtml-display,
#rtml .rtml-slide-title,
#rtml .rtml-quote p { font-family: var(--rtml-serif) !important; }

#rtml *,
#rtml *::before,
#rtml *::after { box-sizing: border-box; }
#rtml h1,
#rtml h2,
#rtml h3,
#rtml p,
#rtml ul,
#rtml blockquote {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
}
#rtml ul { list-style: none; }
#rtml li { margin: 0; padding: 0; }
#rtml li::before { content: none; }
#rtml a,
#rtml a:hover,
#rtml a:focus {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
}
#rtml img {
	display: block;
	max-width: none;
	border: 0;
	border-radius: 0;
}
#rtml button {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	cursor: pointer;
}
#rtml a:focus-visible,
#rtml button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* Visually hidden, still read out (the page's h1). */
#rtml .rtml-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Sections land below the sticky header when jumped to. */
#rtml [id] { scroll-margin-top: 110px; }

.rtml-wrap {
	width: 100%;
	max-width: var(--rtml-max);
	margin: 0 auto;
	padding: 0 var(--rtml-gutter);
}

/* --- shared type --------------------------------------------------------- */
#rtml .rtml-eyebrow {
	margin-bottom: clamp(10px, 1.3125vw, 21px);
	color: inherit;
	font-family: var(--rtml-sans);
	font-size: clamp(12px, 1.075vw, 17.2px);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .2em;
	text-transform: uppercase;
}
#rtml .rtml-display {
	color: inherit;
	font-family: var(--rtml-serif);
	font-weight: 400;
	line-height: .99;
	letter-spacing: .01em;
}
#rtml .rtml-display--xl { font-size: clamp(38px, 4.594vw, 73.5px); }
#rtml .rtml-display--lg { font-size: clamp(30px, 3.12vw, 49.9px); }
#rtml .rtml-display--md { font-size: clamp(26px, 2.656vw, 42.5px); }
#rtml .rtml-display--soft { color: var(--rtml-ink-soft); }

#rtml .rtml-body {
	font-size: clamp(14px, 1.042vw, 16.7px);
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: .01em;
}
#rtml .rtml-body.rtml-body--sm { font-size: clamp(14px, .95vw, 15.2px); }

/* Uppercase text link followed by a long arrow. */
#rtml .rtml-link {
	display: inline-flex;
	align-items: center;
	gap: clamp(10px, 1.0625vw, 17px);
	font-size: clamp(13px, 1.042vw, 16.7px);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}
.rtml-arrow {
	flex: none;
	width: clamp(22px, 1.75vw, 28px);
	height: auto;
	transition: transform .35s var(--rtml-ease);
}
.rtml-link:hover .rtml-arrow,
.rtml-coll-link:hover .rtml-arrow,
.rtml-sol-link:hover .rtml-arrow { transform: translateX(5px); }

.rtml-section { position: relative; }

/* =========================================================================
 * HERO SLIDER
 * ========================================================================= */
.rtml-hero {
	position: relative;
	aspect-ratio: 1600 / 618;
	min-height: 440px;
	background: #2f1f10;
	color: #fff;
	overflow: hidden;
}
.rtml-slides {
	position: absolute;
	inset: 0;
}
/* Stacked; the active one fades in over the last. */
.rtml-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s var(--rtml-ease), visibility 0s linear 1.1s;
}
.rtml-slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 1.1s var(--rtml-ease);
}
.rtml-slide-media {
	position: absolute;
	inset: 0;
	display: block;
}
.rtml-slide-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The banners are dark on the left behind the copy; keep that side when cropped. */
	object-position: 0% 50%;
	transform: scale(1.04);
	transition: transform 7s linear;
}
.rtml-slide.is-active .rtml-slide-media img { transform: scale(1); }
.rtml-slide-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	height: 100%;
}
.rtml-slide-copy {
	max-width: 640px;
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .8s var(--rtml-ease) .25s, transform .9s var(--rtml-ease) .25s;
}
.rtml-slide.is-active .rtml-slide-copy {
	opacity: 1;
	transform: none;
}
#rtml .rtml-slide-title {
	max-width: 10em;          /* "The Timeless / Beauty of Timber", as drawn */
	color: #fff;
	font-family: var(--rtml-serif);
	font-size: clamp(32px, 3.875vw, 62px);
	font-weight: 400;
	line-height: .99;
	text-transform: uppercase;
}
#rtml .rtml-slide-text {
	margin-top: clamp(14px, 1.3125vw, 21px);
	padding-left: 4px;
	font-size: clamp(14px, 1.042vw, 16.7px);
	font-weight: 300;
	line-height: 1.25;
	letter-spacing: .01em;
}

.rtml-dots-wrap {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: clamp(14px, 2vw, 32px);
	left: 0;
	pointer-events: none;
}
.rtml-dots {
	display: flex;
	gap: 6px;
	pointer-events: auto;
}
#rtml .rtml-dot {
	display: block;
	width: 40px;
	padding: 12px 0;
}
.rtml-dot span {
	display: block;
	height: 2px;
	background: rgba(255, 255, 255, .45);
	transition: background-color .3s;
}
.rtml-dot:hover span { background: rgba(255, 255, 255, .8); }
.rtml-dot[aria-current="true"] span { background: #fff; }
#rtml .rtml-dot:focus-visible { outline-offset: 0; }

/* Tablet: the wide banner is cropped, so lift the copy off the photo a little. */
@media (max-width: 1279px) {
	.rtml-slide-media::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, rgba(38, 26, 14, .6) 0%, rgba(38, 26, 14, .2) 60%, rgba(38, 26, 14, 0) 100%);
	}
}

/* Phone: the portrait banners, with the copy at the top. */
@media (max-width: 767px) {
	.rtml-hero {
		aspect-ratio: 768 / 900;
		min-height: 0;
	}
	.rtml-slide-media img { object-position: 50% 50%; }
	.rtml-slide-media::after {
		background: linear-gradient(180deg, rgba(30, 20, 10, .7) 0%, rgba(30, 20, 10, .3) 42%, rgba(30, 20, 10, 0) 62%);
	}
	.rtml-slide-inner {
		align-items: flex-start;
		padding-top: clamp(32px, 9vw, 56px);
	}
	#rtml .rtml-slide-title { font-size: clamp(28px, 8.4vw, 40px); }
	#rtml .rtml-slide-text { max-width: 30em; }
	/* The desktop line breaks would leave ragged lines on a narrow screen. */
	.rtml-slide-text br { display: none; }
}

/* =========================================================================
 * PHILOSOPHY
 * ========================================================================= */
.rtml-philosophy { padding: clamp(48px, 4.3vw, 69px) 0 clamp(56px, 5.4vw, 86px); }
.rtml-philosophy-grid {
	display: grid;
	grid-template-columns: 47.5% minmax(0, 520px);
	align-items: start;
}
#rtml .rtml-philosophy .rtml-eyebrow { margin-bottom: clamp(14px, 1.6vw, 26px); }
.rtml-philosophy-copy { max-width: 520px; }
#rtml .rtml-quote {
	position: relative;
	margin-top: clamp(28px, 2.375vw, 38px);
	padding-top: clamp(20px, 1.5vw, 24px);
	quotes: none;
}
#rtml .rtml-quote::before {
	content: '';
	position: absolute;
	top: 0;
	left: 3px;
	width: 55px;
	height: 2px;
	background: #000;
}
#rtml .rtml-quote p {
	position: relative;
	padding-left: clamp(22px, 2.94vw, 47px);
	font-family: var(--rtml-serif);
	font-size: clamp(16px, 1.2434vw, 19.9px);
	font-style: italic;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .024em;
}
#rtml .rtml-quote p::before {
	content: '';
	position: absolute;
	top: .3em;
	bottom: 0;
	left: 3px;
	width: 2px;
	background: #000;
}

/* =========================================================================
 * COLLECTIONS
 * ========================================================================= */
.rtml-collections { padding-bottom: clamp(44px, 3.5vw, 56px); }
.rtml-head { margin-bottom: clamp(20px, 1.6875vw, 27px); }
.rtml-head--split {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px 32px;
	flex-wrap: wrap;
}
.rtml-head--split .rtml-link { margin-bottom: .45em; }

.rtml-coll-track {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 7px;
}
.rtml-coll {
	position: relative;
	aspect-ratio: 287 / 552;
	overflow: hidden;
	background: #3b3128;
	color: #fff;
	/* Shared by every size inside the card, so the whole card scales as one. */
	--rtml-cs: clamp(12.5px, 1.042vw, 16.7px);
}
.rtml-coll-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--rtml-ease);
}
.rtml-coll:hover .rtml-coll-bg { transform: scale(1.05); }
/* A soft floor under the copy for the lighter textures (Atelier, Lumen). */
.rtml-coll::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .18) 100%);
	pointer-events: none;
}
.rtml-coll-body {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 0 13% 13.5%;
	font-size: var(--rtml-cs);
}
.rtml-coll-icon {
	width: 4.4em;
	height: auto;
	margin-bottom: 1.35em;
}
#rtml .rtml-coll-num {
	font-size: 1.095em;
	font-weight: 500;
	line-height: 1;
	letter-spacing: .2em;
}
#rtml .rtml-coll-name {
	margin-top: 1.25em;
	color: #fff;
	font-family: var(--rtml-sans);
	font-size: 2em;
	font-weight: 600;
	line-height: .9;
	text-transform: uppercase;
}
#rtml .rtml-coll-name span {
	display: block;
	margin-top: .2em;
	padding-left: .1em;
	font-size: .38em;
	font-weight: 400;
	letter-spacing: .05em;
}
#rtml .rtml-coll-text {
	min-height: 4.5em;          /* three lines, so titles align across cards */
	margin-top: 1.5em;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: .01em;
}
#rtml .rtml-coll-link {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: .5em;
	margin-top: 2.6em;
	font-size: .9em;
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
}
/* The whole card is the link's hit area. */
.rtml-coll-link::after {
	content: '';
	position: absolute;
	inset: 0;
}
.rtml-coll-link .rtml-arrow { width: 1.85em; }

/* Tablet and phone: a swipeable row instead of five squeezed columns. */
@media (max-width: 1100px) {
	#rtml .rtml-coll-track {
		display: flex;
		gap: 8px;
		margin: 0 calc(-1 * var(--rtml-gutter));
		padding: 0 var(--rtml-gutter) 6px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 var(--rtml-gutter);
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.rtml-coll-track::-webkit-scrollbar { display: none; }
	.rtml-coll {
		flex: 0 0 clamp(236px, 30vw, 287px);
		scroll-snap-align: start;
		--rtml-cs: 15px;
	}
}
@media (max-width: 600px) {
	.rtml-coll {
		flex-basis: 70vw;
		--rtml-cs: 14.5px;
	}
}

/* =========================================================================
 * EDITIONS
 * ========================================================================= */
.rtml-editions { padding-bottom: clamp(48px, 4.4vw, 70px); }
.rtml-ed-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 2.125vw, 34px) clamp(16px, 2.0625vw, 33px);
}
.rtml-ed-card { display: block; }
.rtml-ed-media {
	display: block;
	aspect-ratio: 465 / 206;
	overflow: hidden;
	background: #eee9e3;
}
.rtml-ed-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 58%;
	transition: transform 1s var(--rtml-ease);
}
a.rtml-ed-card:hover .rtml-ed-media img { transform: scale(1.06); }
/* Not out yet: the picture is only a hint. */
.rtml-ed--soon .rtml-ed-media img {
	filter: blur(7px);
	transform: scale(1.1);
}
.rtml-ed-caption {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-top: clamp(12px, .94vw, 15px);
	padding-right: 4px;
}
/* Room for the title and its sub-line, so every row of the grid lines up. */
.rtml-ed-text {
	min-width: 0;
	min-height: clamp(38px, 2.8vw, 45px);
}
@media (max-width: 560px) {
	.rtml-ed-text { min-height: 0; }
}
.rtml-ed-title {
	display: block;
	font-size: clamp(15px, 1.163vw, 18.6px);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: .05em;
}
#rtml .rtml-ed-title strong { font-weight: 600; }
.rtml-ed--soon .rtml-ed-name { font-weight: 600; }
.rtml-ed-sub {
	display: block;
	margin-top: 6px;
	font-size: clamp(12px, .83vw, 13.3px);
	line-height: 1.35;
	letter-spacing: .01em;
}
.rtml-arrow-circle {
	flex: none;
	width: clamp(24px, 1.8125vw, 29px);
	height: auto;
	transition: transform .35s var(--rtml-ease);
}
a.rtml-ed-card:hover .rtml-arrow-circle { transform: translateX(3px); }

@media (max-width: 1024px) {
	.rtml-ed-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.rtml-ed-grid { grid-template-columns: minmax(0, 1fr); }
}

/* =========================================================================
 * BEYOND THE SAMPLES
 * ========================================================================= */
.rtml-beyond {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 480px;
	background: #524535;
	color: #fff;
	overflow: hidden;
}
.rtml-beyond-media {
	position: absolute;
	inset: 0;
}
.rtml-beyond-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 30%;
}
.rtml-beyond-media::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(82, 69, 53, .9) 0%, rgba(82, 69, 53, .6) 60%, rgba(82, 69, 53, .2) 100%);
}
.rtml-beyond-inner {
	position: relative;
	z-index: 1;
	padding-top: 56px;
	padding-bottom: 32px;
}
.rtml-beyond-copy { max-width: 440px; }
#rtml .rtml-beyond .rtml-eyebrow {
	margin-bottom: clamp(14px, 1.3vw, 21px);
	letter-spacing: .075em;
}
#rtml .rtml-beyond .rtml-display { font-size: clamp(34px, 3.8vw, 60.8px); }
#rtml .rtml-beyond .rtml-body {
	margin-top: clamp(18px, 2.3vw, 37px);
	font-size: clamp(14px, 1.0875vw, 17.4px);
	font-weight: 300;
	line-height: 1.5;
	letter-spacing: .025em;
}
#rtml .rtml-beyond-link { margin-top: clamp(22px, 2vw, 32px); }

/* Product labels: a row under the copy until the desktop layout. */
#rtml .rtml-hotspots {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	width: 100%;
	max-width: var(--rtml-max);
	margin: 0 auto;
	padding: 0 var(--rtml-gutter) 48px;
}
.rtml-hot-link {
	position: relative;
	display: block;
	padding-left: 34px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.rtml-hot-link::before {
	content: '';
	position: absolute;
	top: .6em;
	left: 0;
	width: 26px;
	height: 1px;
	background: currentColor;
}
.rtml-hot-label,
.rtml-hot-code { display: block; }
a.rtml-hot-link:hover .rtml-hot-code { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1280px) {
	.rtml-beyond {
		aspect-ratio: 1600 / 530;
		min-height: 0;
		justify-content: flex-start;
	}
	.rtml-beyond-media img { object-position: 50% 22%; }
	.rtml-beyond-media::after { content: none; }
	.rtml-beyond-inner { padding-top: 7.8vw; padding-bottom: 0; }
	.rtml-beyond-copy { max-width: 28vw; }

	/* Pinned beside the furniture they name, as in the design. */
	#rtml .rtml-hotspots {
		position: absolute;
		inset: 0;
		display: block;
		max-width: none;
		padding: 0;
		pointer-events: none;
	}
	.rtml-hot {
		position: absolute;
		top: var(--rtml-top);
		left: 87.5%;
		pointer-events: auto;
	}
	.rtml-hot-link {
		padding-left: 0;
		font-size: .875vw;
		transform: translateY(-.6em);
	}
	.rtml-hot-link::before {
		left: auto;
		right: calc(100% + .375vw);
		width: calc(var(--rtml-line) * .0625vw);   /* px at 1600 wide */
		background: rgba(255, 255, 255, .85);
	}
}

/* =========================================================================
 * DESIGNER'S NOTE
 * ========================================================================= */
.rtml-note {
	position: relative;
	background: #2d1c12;
	color: #fff;
	overflow: hidden;
}
.rtml-note-media {
	position: absolute;
	inset: 0;
}
.rtml-note-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* The sample boards sit at the right end of the walnut strip. */
	object-position: 100% 50%;
}
.rtml-note-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	padding-top: 48px;
	padding-bottom: 48px;
}
#rtml .rtml-note .rtml-display { font-size: clamp(30px, 2.962vw, 47.4px); }
.rtml-note-copy { max-width: 470px; }
#rtml .rtml-note-link { margin-top: clamp(20px, 1.9vw, 30px); }

/* Tablet: the sample boards get a panel of their own on the right, so the
   copy never runs over them. */
@media (min-width: 700px) and (max-width: 1279px) {
	.rtml-note-media {
		left: auto;
		width: 34%;
	}
	.rtml-note-media img { object-position: 88% 50%; }
	.rtml-note-media::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, #2d1c12 0%, rgba(45, 28, 18, 0) 35%);
	}
	.rtml-note-inner { padding-right: calc(34% + 24px); }
}
@media (min-width: 1000px) and (max-width: 1279px) {
	.rtml-note-inner {
		grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
		align-items: center;
		gap: 32px;
	}
}
/* Phone: copy on plain walnut, the sample boards as a strip below. */
@media (max-width: 699px) {
	.rtml-note { display: flex; flex-direction: column-reverse; }
	.rtml-note-media {
		position: relative;
		height: 200px;
	}
}
@media (min-width: 1280px) {
	.rtml-note { aspect-ratio: 1600 / 246; }
	.rtml-note-media img { object-position: 50% 50%; }
	.rtml-note-inner {
		grid-template-columns: 30.3vw 29vw;
		align-items: center;
		gap: 0;
		height: 100%;
		padding-top: 0;
		padding-bottom: 0;
	}
	.rtml-note-head { padding-top: 1.6vw; }
	.rtml-note-copy { max-width: none; }
}

/* =========================================================================
 * BEYOND LAMINATES
 * ========================================================================= */
.rtml-solutions { padding: clamp(32px, 2.5vw, 40px) 0 0; }
.rtml-solutions-head {
	display: grid;
	grid-template-columns: minmax(0, 57.7%) minmax(0, 1fr);
	align-items: start;
	gap: 20px;
	margin-bottom: clamp(24px, 2.9vw, 47px);
}
#rtml .rtml-solutions .rtml-eyebrow { color: var(--rtml-ink-soft); }
#rtml .rtml-solutions .rtml-display { font-size: clamp(30px, 3.237vw, 51.8px); }
#rtml .rtml-solutions-lede {
	max-width: 25.6em;
	padding-top: 1.1vw;
	font-size: clamp(14px, 1.16vw, 18.6px);
}

/* Full-bleed row: each card's photo already fades to white on its left. */
#rtml .rtml-sol-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 calc(-1 * var(--rtml-gutter));
}
@media (min-width: 1761px) {
	/* Past the content max-width the wrap stops growing, so bleed by hand. */
	#rtml .rtml-sol-grid { margin: 0 calc((var(--rtml-max) - 100vw) / 2 - var(--rtml-gutter)); }
}
.rtml-sol-link {
	position: relative;
	display: block;
	aspect-ratio: 538 / 225;
	overflow: hidden;
	background: #fff;
}
.rtml-sol-media {
	position: absolute;
	inset: 0;
}
.rtml-sol-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;
	transition: transform 1.2s var(--rtml-ease);
}
.rtml-sol-link:hover .rtml-sol-media img { transform: scale(1.04); }
.rtml-sol-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 7.2% 8% 8% 9.5%;
	color: #000;
}
.rtml-sol:first-child .rtml-sol-body { padding-left: var(--rtml-gutter); }
.rtml-sol-name {
	font-size: clamp(18px, 1.5625vw, 25px);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
}
.rtml-sol-text {
	margin-top: clamp(12px, 1.4vw, 22px);
	font-size: clamp(13.5px, 1.042vw, 16.7px);
	line-height: 1.5;
	letter-spacing: .01em;
}
#rtml .rtml-sol-cta {
	margin-top: auto;
	gap: clamp(10px, .94vw, 15px);
	font-size: clamp(13px, 1.01vw, 16.2px);
}

@media (max-width: 1024px) {
	.rtml-solutions { padding-bottom: 32px; }
	.rtml-solutions-head { grid-template-columns: minmax(0, 1fr); }
	#rtml .rtml-solutions-lede { padding-top: 0; }
	#rtml .rtml-sol-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		margin: 0;
	}
	.rtml-sol-link { aspect-ratio: auto; height: clamp(190px, 30vw, 240px); }
	.rtml-sol-body,
	.rtml-sol:first-child .rtml-sol-body { padding: 28px 45% 28px 28px; }
	/* Cards are narrower than the art here, so lift the copy off the photo. */
	.rtml-sol-media::after {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0) 62%);
	}
}
@media (max-width: 480px) {
	.rtml-sol-body,
	.rtml-sol:first-child .rtml-sol-body { padding: 22px 40% 22px 20px; }
	.rtml-sol-media::after { background: linear-gradient(90deg, #fff 38%, rgba(255, 255, 255, 0) 72%); }
}

/* =========================================================================
 * CTA
 * ========================================================================= */
.rtml-cta {
	position: relative;
	overflow: hidden;
	background: #5a3519;
	color: #fff;
}
.rtml-cta-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 74%;
}
.rtml-cta-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 28px 40px;
	flex-wrap: wrap;
	padding-top: 56px;
	padding-bottom: 56px;
}
#rtml .rtml-cta .rtml-display { font-size: clamp(28px, 2.962vw, 47.4px); }
#rtml .rtml-cta-copy p {
	margin-top: clamp(10px, 1.1vw, 18px);
	font-size: clamp(14px, 1.182vw, 18.9px);
	line-height: 1.3;
	letter-spacing: .01em;
}
.rtml-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(12px, 1.56vw, 25px);
}
#rtml .rtml-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: clamp(170px, 14.625vw, 234px);
	height: clamp(50px, 4vw, 64px);
	padding: 0 20px;
	border: 2px solid #fff;
	color: #fff;
	font-size: clamp(13px, 1.01vw, 16.2px);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	transition: background-color .3s, color .3s;
}
/*
 * :focus is restated because the reset's `#rtml a:focus { color: inherit }`
 * outranks a bare class. Without it a focused solid button (for example once
 * the Request Samples popup closes and hands focus back) turned white on white.
 */
#rtml .rtml-btn:focus { color: #fff; }
#rtml .rtml-btn:hover,
#rtml .rtml-btn--solid,
#rtml .rtml-btn--solid:focus {
	background: #fff;
	color: #000;
}
#rtml .rtml-btn--solid:hover {
	background: transparent;
	color: #fff;
}
/* The ring follows currentColor by default, which is black on the solid button and invisible on the dark banner. */
#rtml .rtml-btn:focus-visible { outline-color: #fff; }

@media (min-width: 1280px) {
	.rtml-cta { aspect-ratio: 1600 / 235; }
	.rtml-cta-inner {
		flex-wrap: nowrap;
		height: 100%;
		padding-top: 0;
		padding-bottom: 0;
		padding-right: 2.625vw;
		padding-left: 4.375vw;
	}
	.rtml-cta-actions { flex-wrap: nowrap; }
}
@media (max-width: 1279px) {
	.rtml-cta-copy { flex: 1 1 100%; }
}
@media (max-width: 700px) {
	.rtml-cta-actions { width: 100%; }
	#rtml .rtml-btn { flex: 1 1 100%; }
}

/* =========================================================================
 * PHONE / SMALL TABLET
 * ========================================================================= */
@media (max-width: 900px) {
	.rtml-philosophy-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 28px;
	}
}
@media (max-width: 600px) {
	.rtml-beyond { min-height: 0; }
	.rtml-beyond-media img { object-position: 62% 50%; }
	.rtml-beyond-media::after {
		background: linear-gradient(180deg, rgba(82, 69, 53, .55) 0%, rgba(82, 69, 53, .88) 100%);
	}
}

html:has(.rtml) { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
	.rtml *,
	.rtml *::before,
	.rtml *::after {
		animation: none !important;
		transition: none !important;
	}
	html:has(.rtml) { scroll-behavior: auto; }
}
