/* RY hero slider — dark, responsive replacement for the Slider Revolution heroes. */

.ry-hero {
	--ry-bg: #0f0f0d;
	--ry-gold: #d4af37;
	--ry-text: #f6f3ee;
	--ry-muted: #d3cdc3;
	--ry-line: rgba(255, 255, 255, 0.22);
	--ry-interval: 7s;
	--ry-pad-y: clamp(56px, 6.5vw, 96px);
	--ry-pad-x: clamp(20px, 4vw, 56px);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--ry-bg);
	color: var(--ry-text);
	font-family: var(--ry-font-sans, Mulish, "Helvetica Neue", Arial, sans-serif);
	text-align: left;
}

.ry-hero *,
.ry-hero *::before,
.ry-hero *::after {
	box-sizing: border-box;
}

/* Slides stack in one grid cell so the slider is as tall as its tallest slide. */
.ry-hero__track {
	display: grid;
}

.ry-hero__slide {
	grid-area: 1 / 1;
	position: relative;
	z-index: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.ry-hero__slide.is-active {
	z-index: 1;
	opacity: 1;
	visibility: visible;
	transition: opacity 0.8s ease;
}

/* Blurred, darkened copy of the slide photo for atmosphere. */
.ry-hero__backdrop {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
}

.ry-hero .ry-hero__backdrop img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	filter: blur(40px) saturate(1.15);
	opacity: 0.35;
	transform: scale(1.2);
}

.ry-hero__backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 85% 20%, rgba(201, 169, 120, 0.14), transparent 55%),
		linear-gradient(90deg, rgba(15, 15, 13, 0.97) 0%, rgba(15, 15, 13, 0.86) 45%, rgba(15, 15, 13, 0.6) 100%);
}

.ry-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(32px, 5vw, 80px);
	max-width: 1280px;
	min-height: clamp(540px, 66vh, 660px);
	margin: 0 auto;
	padding: calc(var(--ry-pad-y) + var(--ry-hero-offset, 0px)) var(--ry-pad-x) calc(var(--ry-pad-y) + 40px);
}

.ry-hero__content {
	max-width: 620px;
}

.ry-hero .ry-hero__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: var(--ry-gold);
	font-family: var(--ry-font-sans, Mulish, "Helvetica Neue", Arial, sans-serif);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.ry-hero .ry-hero__eyebrow::before {
	content: "";
	flex: 0 0 36px;
	height: 1px;
	background: currentColor;
}

.ry-hero .ry-hero__title {
	margin: 0 0 20px;
	color: #fff;
	font-family: var(--ry-font-display, "Cormorant Garamond", Georgia, serif);
	font-size: clamp(2.3rem, 1.2rem + 2.8vw, 4rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0;
	text-transform: none;
	text-wrap: balance;
}

.ry-hero .ry-hero__lead {
	max-width: 36em;
	margin: 0 0 24px;
	color: var(--ry-muted);
	font-size: 17px;
	line-height: 1.65;
}

.ry-hero .ry-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.ry-hero .ry-hero__chips li {
	margin: 0;
	padding: 6px 14px;
	border: 1px solid var(--ry-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	color: #ece7de;
	font-size: 13px;
	line-height: 1.4;
}

.ry-hero .ry-hero__chips li::before {
	content: none;
}

.ry-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

section.ry-hero .ry-hero__actions a.ry-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 28px;
	border: 1px solid transparent;
	border-radius: 2px;
	font-family: var(--ry-font-sans, Mulish, "Helvetica Neue", Arial, sans-serif);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

section.ry-hero .ry-hero__actions a.ry-hero__btn--primary,
section.ry-hero .ry-hero__actions a.ry-hero__btn--primary:visited {
	border-color: #d4af37;
	background: #d4af37;
	color: #111;
}

section.ry-hero .ry-hero__actions a.ry-hero__btn--primary:hover,
section.ry-hero .ry-hero__actions a.ry-hero__btn--primary:focus {
	border-color: #e2c667;
	background: #e2c667;
	color: #111;
}

section.ry-hero .ry-hero__actions a.ry-hero__btn--ghost,
section.ry-hero .ry-hero__actions a.ry-hero__btn--ghost:visited {
	border-color: rgba(255, 255, 255, 0.55);
	background: transparent;
	color: #fff;
}

section.ry-hero .ry-hero__actions a.ry-hero__btn--ghost:hover,
section.ry-hero .ry-hero__actions a.ry-hero__btn--ghost:focus {
	border-color: var(--ry-gold);
	color: var(--ry-gold);
}

section.ry-hero .ry-hero__actions a.ry-hero__btn:focus-visible,
.ry-hero button:focus-visible {
	outline: 2px solid var(--ry-gold);
	outline-offset: 3px;
}

/* Framed photo. */
.ry-hero .ry-hero__media {
	position: relative;
	margin: 0;
	padding: 0;
	aspect-ratio: 5 / 4;
	border-radius: 3px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
	outline: 1px solid rgba(201, 169, 120, 0.4);
	outline-offset: 12px;
}

.ry-hero .ry-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	border-radius: inherit;
	object-fit: cover;
}

/* Entrance motion. */
.ry-hero__slide.is-active .ry-hero__content > * {
	animation: ry-hero-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.ry-hero__slide.is-active .ry-hero__content > :nth-child(2) { animation-delay: 0.08s; }
.ry-hero__slide.is-active .ry-hero__content > :nth-child(3) { animation-delay: 0.16s; }
.ry-hero__slide.is-active .ry-hero__content > :nth-child(4) { animation-delay: 0.24s; }
.ry-hero__slide.is-active .ry-hero__content > :nth-child(5) { animation-delay: 0.32s; }

.ry-hero__slide.is-active .ry-hero__media img {
	animation: ry-hero-zoom 9s ease-out both;
}

@keyframes ry-hero-rise {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}

@keyframes ry-hero-zoom {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}

/* Controls. */
.ry-hero__controls {
	position: absolute;
	right: 0;
	bottom: clamp(18px, 2.6vw, 34px);
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 var(--ry-pad-x);
	pointer-events: none;
}

.ry-hero__controls > * {
	pointer-events: auto;
}

.ry-hero__dots,
.ry-hero__buttons {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ry-hero .ry-hero__dot {
	display: block;
	width: 44px;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	cursor: pointer;
}

.ry-hero__dot span {
	position: relative;
	display: block;
	height: 3px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.28);
}

.ry-hero__dot span i {
	position: absolute;
	inset: 0;
	background: var(--ry-gold);
	transform: scaleX(0);
	transform-origin: left center;
}

.ry-hero__dot[aria-current="true"] span i {
	animation: ry-hero-progress var(--ry-interval) linear forwards;
}

.ry-hero.is-paused .ry-hero__dot[aria-current="true"] span i,
.ry-hero.is-static .ry-hero__dot[aria-current="true"] span i {
	animation: none;
	transform: scaleX(1);
}

.ry-hero:hover .ry-hero__dot span i,
.ry-hero:focus-within .ry-hero__dot span i,
.ry-hero.is-hold .ry-hero__dot span i {
	animation-play-state: paused;
}

@keyframes ry-hero-progress {
	to { transform: scaleX(1); }
}

.ry-hero .ry-hero__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	background: rgba(15, 15, 13, 0.45);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ry-hero .ry-hero__nav:hover {
	border-color: var(--ry-gold);
	background: rgba(15, 15, 13, 0.45);
	color: var(--ry-gold);
}

.ry-hero__nav svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.ry-hero__icon-play,
.ry-hero.is-paused .ry-hero__icon-pause {
	display: none;
}

.ry-hero.is-paused .ry-hero__icon-play {
	display: block;
}

.ry-hero.is-static .ry-hero__toggle {
	display: none;
}

/* Tablet. */
@media (max-width: 1024px) {
	.ry-hero__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
		min-height: 520px;
	}

	.ry-hero .ry-hero__lead {
		font-size: 16px;
	}
}

/* Mobile: photo on top, text on solid dark below it. */
@media (max-width: 767px) {
	.ry-hero__backdrop {
		display: none;
	}

	.ry-hero__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
		min-height: 0;
		padding: var(--ry-hero-offset, 0px) 0 84px;
	}

	.ry-hero .ry-hero__media {
		order: -1;
		aspect-ratio: 4 / 3;
		border-radius: 0;
		box-shadow: none;
		outline: 0;
	}

	.ry-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(180deg, transparent 55%, var(--ry-bg) 100%);
	}

	.ry-hero__content {
		position: relative;
		z-index: 1;
		margin-top: -20px;
		padding: 0 20px;
	}

	.ry-hero .ry-hero__eyebrow {
		margin-bottom: 12px;
		font-size: 12px;
		letter-spacing: 0.14em;
	}

	.ry-hero .ry-hero__eyebrow::before {
		flex-basis: 24px;
	}

	.ry-hero .ry-hero__title {
		margin-bottom: 14px;
		font-size: clamp(1.95rem, 1.2rem + 3.6vw, 2.5rem);
		line-height: 1.08;
	}

	.ry-hero .ry-hero__lead {
		margin-bottom: 18px;
		font-size: 16px;
		line-height: 1.6;
	}

	.ry-hero .ry-hero__chips {
		margin-bottom: 24px;
	}

	.ry-hero .ry-hero__chips li {
		padding: 5px 12px;
		font-size: 12.5px;
	}

	section.ry-hero .ry-hero__actions a.ry-hero__btn {
		flex: 1 1 150px;
		padding: 0 18px;
	}

	.ry-hero__controls {
		bottom: 20px;
		padding: 0 20px;
	}

	.ry-hero__controls {
		gap: 8px;
	}

	.ry-hero__dots,
	.ry-hero__buttons {
		gap: 6px;
	}

	.ry-hero .ry-hero__dot {
		width: 24px;
	}

	.ry-hero .ry-hero__nav {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ry-hero__slide,
	.ry-hero__slide.is-active {
		transition: none;
	}

	.ry-hero__slide.is-active .ry-hero__content > *,
	.ry-hero__slide.is-active .ry-hero__media img {
		animation: none;
	}
}

/* Without JavaScript only the first slide shows. */
.ry-hero:not(.is-ready) .ry-hero__controls {
	display: none;
}

/* Long page H1s shown in the hero (custom field _ry_hero_h1). */
.ry-hero h1.ry-hero__title--long {
	font-size: clamp(2rem, 1.1rem + 2.1vw, 3.1rem);
	line-height: 1.1;
}
@media (max-width: 767px) {
	.ry-hero h1.ry-hero__title--long { font-size: clamp(1.7rem, 1.1rem + 2.8vw, 2.1rem); }
}

/* --------------------------------------------------------------------------------------------
 * Cinematic variant (design system v2, .ry-hero--cinematic): the slide photo fills the hero,
 * sharp, under a gradient that keeps the text readable. No framed copy of the photo.
 * ------------------------------------------------------------------------------------------ */
.ry-hero--cinematic {
	--ry-bg: var(--ry-c-bg, #0b0b0a);
}
.ry-hero--cinematic .ry-hero__backdrop img {
	filter: none;
	opacity: 1;
	transform: none;
}
.ry-hero--cinematic .ry-hero__slide.is-active .ry-hero__backdrop img {
	animation: ry-hero-drift 12s ease-out both;
}
@keyframes ry-hero-drift {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}
.ry-hero--cinematic .ry-hero__backdrop::after {
	background:
		linear-gradient(90deg, rgba(11, 11, 10, 0.94) 0%, rgba(11, 11, 10, 0.82) 32%, rgba(11, 11, 10, 0.38) 60%, rgba(11, 11, 10, 0.12) 100%),
		linear-gradient(0deg, var(--ry-bg) 0%, rgba(11, 11, 10, 0) 26%);
}
.ry-hero--cinematic .ry-hero__inner {
	grid-template-columns: minmax(0, 640px);
	align-content: center;
	max-width: var(--ry-container, 1240px);
	min-height: clamp(600px, 88vh, 860px);
	padding-top: calc(var(--ry-pad-y) + 40px + var(--ry-hero-offset, 0px));
	padding-bottom: calc(var(--ry-pad-y) + 64px);
	padding-left: var(--ry-gutter, var(--ry-pad-x));
	padding-right: var(--ry-gutter, var(--ry-pad-x));
	box-sizing: content-box;
}
.ry-hero--cinematic .ry-hero__title,
.ry-hero--cinematic h1.ry-hero__title {
	font-size: var(--ry-fs-display, clamp(2.6rem, 1.4rem + 3.6vw, 4.5rem));
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -0.01em;
}
.ry-hero--cinematic .ry-hero__lead {
	color: #e4ded3;
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
}
.ry-hero--cinematic .ry-hero__chips li {
	font-size: 14px;
	background: rgba(11, 11, 10, 0.45);
	backdrop-filter: blur(6px);
}
.ry-hero--cinematic .ry-hero__controls {
	max-width: var(--ry-container, 1240px);
	padding-left: var(--ry-gutter, var(--ry-pad-x));
	padding-right: var(--ry-gutter, var(--ry-pad-x));
	box-sizing: content-box;
}
@media (max-width: 767px) {
	.ry-hero--cinematic .ry-hero__backdrop {
		display: block;
	}
	.ry-hero--cinematic .ry-hero__backdrop::after {
		background: linear-gradient(180deg, rgba(11, 11, 10, 0.2) 0%, rgba(11, 11, 10, 0.45) 30%, rgba(11, 11, 10, 0.9) 58%, var(--ry-bg) 100%);
	}
	.ry-hero--cinematic .ry-hero__inner {
		align-content: end;
		min-height: min(92svh, 760px);
		padding-top: 160px;
		padding-bottom: 96px;
	}
	.ry-hero--cinematic .ry-hero__content {
		padding: 0;
	}
	.ry-hero--cinematic .ry-hero__title,
	.ry-hero--cinematic h1.ry-hero__title {
		font-size: clamp(2.25rem, 1.5rem + 3.6vw, 2.75rem);
	}
}
@media (prefers-reduced-motion: reduce) {
	.ry-hero--cinematic .ry-hero__slide.is-active .ry-hero__backdrop img {
		animation: none;
	}
}

/* Phones (finishing pass 2026-10-08): the photo no longer fills a ~1000 px tall hero behind the text (which enlarged
   a 1024 px file 3.5–4.7× and looked blurred). The photo sits in its own 16:10 band at the top, at its natural
   proportions (the browser's 100vw image choice now matches what is drawn), and the text follows on the dark
   background. Same markup and content; desktop and tablet are unchanged. */
@media (max-width: 767px) {
	.ry-hero--cinematic .ry-hero__slide {
		display: flex;
		flex-direction: column;
	}
	.ry-hero--cinematic .ry-hero__backdrop {
		position: relative;
		inset: auto;
		z-index: 0;
		flex: none;
		width: 100%;
		aspect-ratio: 16 / 10;
		height: auto;
	}
	.ry-hero--cinematic .ry-hero__backdrop::after {
		background: linear-gradient(180deg, rgba(11, 11, 10, 0) 62%, var(--ry-bg) 100%);
	}
	.ry-hero--cinematic .ry-hero__slide.is-active .ry-hero__backdrop img {
		animation: none;
	}
	.ry-hero--cinematic .ry-hero__inner {
		min-height: 0;
		align-content: start;
		padding-top: 12px;
		padding-bottom: 84px;
	}
}
