/*
 * OriEve Homepage v1.0.1
 * Page-specific presentation only. R01 Foundation owns shared tokens and
 * components; Astra continues to own the shell.
 */

.orieve-homepage-enabled .orieve-homepage-r02,
.editor-styles-wrapper .orieve-homepage-r02 {
	--orieve-r02-gap: clamp(var(--orieve-space-6), 4vw, var(--orieve-space-12));
	background: var(--orieve-color-pearl);
	color: var(--orieve-color-ink);
}

.orieve-homepage-enabled .orieve-r02-section[id] {
	scroll-margin-top: clamp(5rem, 10vw, 8rem);
}

.orieve-homepage-enabled .orieve-homepage-r02 .orieve-r02-section,
.editor-styles-wrapper .orieve-homepage-r02 .orieve-r02-section {
	margin-block: 0;
	padding-block: clamp(var(--orieve-space-12), 8vw, var(--orieve-space-24));
}

.orieve-homepage-enabled .orieve-r02-hero,
.editor-styles-wrapper .orieve-r02-hero {
	min-height: min(52rem, calc(100svh - 5rem));
}

.orieve-homepage-enabled :where(.orieve-r02-hero-grid, .orieve-r02-editorial-grid, .orieve-r02-founder-grid),
.editor-styles-wrapper :where(.orieve-r02-hero-grid, .orieve-r02-editorial-grid, .orieve-r02-founder-grid) {
	gap: var(--orieve-r02-gap);
}

.orieve-homepage-enabled .orieve-r02-media,
.editor-styles-wrapper .orieve-r02-media {
	margin: 0;
}

.orieve-homepage-enabled .orieve-r02-media img,
.editor-styles-wrapper .orieve-r02-media img {
	aspect-ratio: 3 / 2;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.orieve-homepage-enabled .orieve-r02-media-founder img,
.editor-styles-wrapper .orieve-r02-media-founder img {
	aspect-ratio: 4 / 5;
}

.orieve-homepage-enabled .orieve-r02-media figcaption,
.editor-styles-wrapper .orieve-r02-media figcaption {
	font-family: var(--orieve-font-ui);
	font-size: 0.78rem;
	line-height: 1.45;
	margin-top: var(--orieve-space-2);
	max-width: 58ch;
}

.orieve-homepage-enabled .is-style-orieve-section-ink .orieve-r02-media figcaption,
.editor-styles-wrapper .is-style-orieve-section-ink .orieve-r02-media figcaption {
	color: var(--orieve-color-pearl);
}

.orieve-homepage-enabled :where(.orieve-r02-value-grid, .orieve-r02-process) > .wp-block-column,
.editor-styles-wrapper :where(.orieve-r02-value-grid, .orieve-r02-process) > .wp-block-column {
	border-top: 1px solid var(--orieve-color-soft-gold);
	padding-top: var(--orieve-space-6);
}

.orieve-homepage-enabled .orieve-r02-step,
.editor-styles-wrapper .orieve-r02-step {
	color: var(--orieve-color-soft-gold);
	font-family: var(--orieve-font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.orieve-homepage-enabled .orieve-r02-reading,
.editor-styles-wrapper .orieve-r02-reading {
	max-width: min(calc(100% - 2rem), 52rem);
}

.orieve-homepage-enabled .orieve-r02-faq details,
.editor-styles-wrapper .orieve-r02-faq details {
	border-top: 1px solid color-mix(in srgb, var(--orieve-color-deep-gold) 35%, transparent);
	padding-block: var(--orieve-space-4);
}

.orieve-homepage-enabled .orieve-r02-faq details:last-of-type,
.editor-styles-wrapper .orieve-r02-faq details:last-of-type {
	border-bottom: 1px solid color-mix(in srgb, var(--orieve-color-deep-gold) 35%, transparent);
}

.orieve-homepage-enabled .orieve-r02-faq summary,
.editor-styles-wrapper .orieve-r02-faq summary {
	cursor: pointer;
	font-family: var(--orieve-font-ui);
	font-weight: 700;
	min-height: 2.75rem;
	padding-block: var(--orieve-space-2);
}

.orieve-homepage-enabled .orieve-r02-faq details > :not(summary),
.editor-styles-wrapper .orieve-r02-faq details > :not(summary) {
	margin-left: 0;
}

@media (max-width: 47.99rem) {
	.orieve-homepage-enabled .orieve-r02-hero,
	.editor-styles-wrapper .orieve-r02-hero {
		min-height: auto;
	}

	.orieve-homepage-enabled :where(.orieve-r02-hero-grid, .orieve-r02-founder-grid) .wp-block-column,
	.editor-styles-wrapper :where(.orieve-r02-hero-grid, .orieve-r02-founder-grid) .wp-block-column {
		flex-basis: 100% !important;
	}

	.orieve-homepage-enabled .orieve-r02-editorial-grid,
	.editor-styles-wrapper .orieve-r02-editorial-grid {
		flex-direction: column;
	}
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
	.orieve-homepage-enabled :where(.orieve-r02-value-grid, .orieve-r02-process),
	.editor-styles-wrapper :where(.orieve-r02-value-grid, .orieve-r02-process) {
		flex-wrap: wrap !important;
	}

	.orieve-homepage-enabled :where(.orieve-r02-value-grid, .orieve-r02-process) > .wp-block-column,
	.editor-styles-wrapper :where(.orieve-r02-value-grid, .orieve-r02-process) > .wp-block-column {
		flex-basis: calc(50% - var(--orieve-space-4)) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.orieve-homepage-enabled .orieve-homepage-r02 *,
	.editor-styles-wrapper .orieve-homepage-r02 * {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/*
 * CI-C01-005 — Homepage-only premium opening composition.
 * Astra remains the site shell and owns navigation markup. These selectors
 * are deliberately gated by the front-page component class.
 */
body.home.orieve-homepage-enabled #masthead {
	background: linear-gradient(180deg, rgba(8, 13, 18, 0.52), rgba(8, 13, 18, 0));
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	transition: background-color 180ms ease, box-shadow 180ms ease;
	z-index: 1000;
}

body.home.admin-bar.orieve-homepage-enabled #masthead {
	top: 32px;
}

body.home.orieve-homepage-enabled #masthead .ast-primary-header-bar,
body.home.orieve-homepage-enabled #masthead .site-primary-header-wrap {
	background: transparent !important;
	min-height: 6.25rem !important;
}

body.home.orieve-homepage-enabled #masthead .site-primary-header-wrap {
	height: 6.25rem;
	padding-block: 0 !important;
	padding-inline: clamp(1.25rem, 4vw, 4rem);
}

body.home.orieve-homepage-enabled #masthead .ast-builder-grid-row {
	height: 100%;
	min-height: 0 !important;
}

body.home.orieve-homepage-enabled #masthead .site-logo-img,
body.home.orieve-homepage-enabled #masthead .custom-logo-link {
	display: inline-flex;
	line-height: 0;
}

body.home.orieve-homepage-enabled #masthead .custom-logo {
	height: 5.35rem !important;
	max-height: 5.35rem !important;
	max-width: 5.35rem !important;
	object-fit: contain;
	width: auto !important;
}

body.home.orieve-homepage-enabled #masthead .main-header-menu > .menu-item > .menu-link {
	color: #fbf6eb !important;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

body.home.orieve-homepage-enabled #masthead .main-header-menu > .menu-item > .menu-link:hover,
body.home.orieve-homepage-enabled #masthead .main-header-menu > .menu-item > .menu-link:focus-visible {
	color: #f3cd74 !important;
}

body.home.orieve-homepage-enabled #masthead #menu-item-19 > .menu-link {
	background: #c89a43;
	border: 1px solid #c89a43;
	border-radius: 0.2rem;
	box-shadow: none;
	color: #15191d !important;
	line-height: 1.2;
	margin-inline-start: clamp(0.5rem, 1.2vw, 1.15rem);
	min-height: 2.75rem;
	padding: 0.75rem 1rem;
}

body.home.orieve-homepage-enabled #masthead #menu-item-19 > .menu-link:hover,
body.home.orieve-homepage-enabled #masthead #menu-item-19 > .menu-link:focus-visible {
	background: #f3cd74;
	border-color: #f3cd74;
	color: #15191d !important;
}

body.home.orieve-homepage-enabled #masthead.orieve-home-header-scrolled {
	background: #f8f2e8;
	box-shadow: 0 0.35rem 1.25rem rgba(15, 21, 27, 0.12);
}

body.home.orieve-homepage-enabled #masthead.orieve-home-header-scrolled .main-header-menu > .menu-item > .menu-link {
	color: #1b242c !important;
}

body.home.orieve-homepage-enabled #masthead.orieve-home-header-scrolled .main-header-menu > .menu-item > .menu-link:hover,
body.home.orieve-homepage-enabled #masthead.orieve-home-header-scrolled .main-header-menu > .menu-item > .menu-link:focus-visible {
	color: #8b621c !important;
}

body.home.orieve-homepage-enabled .site-content {
	margin-top: 0;
}

body.home.orieve-homepage-enabled .orieve-r02-hero {
	background: #101820;
	isolation: isolate;
	margin-left: -80px !important;
	margin-right: -80px !important;
	margin-top: -6.25rem;
	min-height: clamp(44rem, 88svh, 57rem);
	overflow: hidden;
	padding-block: 0 !important;
	position: relative;
	width: calc(100% + 160px) !important;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid {
	display: grid !important;
	gap: 0 !important;
	grid-template-columns: minmax(0, 0.96fr) minmax(45%, 1.04fr);
	max-width: none !important;
	min-height: inherit;
	width: 100%;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:first-child {
	align-items: flex-start;
	background: linear-gradient(105deg, #101820 0%, #15212a 72%, rgba(21, 33, 42, 0.94) 100%);
	display: flex;
	flex-basis: auto !important;
	flex-direction: column;
	justify-content: center;
	padding: clamp(10.5rem, 17vh, 13.5rem) clamp(2rem, 7vw, 8.25rem) clamp(5rem, 10vh, 7rem);
	position: relative;
	z-index: 1;
	z-index: 1;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child {
	flex-basis: auto !important;
	min-height: 100%;
	position: relative;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child::after {
	background: linear-gradient(90deg, rgba(16, 24, 32, 0.35), rgba(16, 24, 32, 0) 32%);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-media-hero,
body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-media-hero img {
	height: 100%;
	margin: 0;
	max-width: none;
	object-fit: cover;
	width: 100%;
}

body.home.orieve-homepage-enabled .orieve-r02-hero h1 {
	font-size: clamp(2.6rem, 4.35vw, 4.8rem);
	line-height: 1.08;
	margin-block: 0 1.35rem;
	max-width: 11.5ch;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .is-style-orieve-lead {
	font-size: clamp(1rem, 1.25vw, 1.2rem);
	line-height: 1.65;
	max-width: 39rem;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .wp-block-buttons {
	gap: 0.75rem;
	margin-top: 1rem;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .is-style-orieve-primary .wp-block-button__link {
	background: #c89a43;
	border-color: #c89a43;
	color: #15191d;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .is-style-orieve-secondary .wp-block-button__link {
	background: transparent;
	border-color: rgba(251, 246, 235, 0.8);
	color: #fbf6eb;
}

@media (max-width: 57.56rem) {
	body.home.orieve-homepage-enabled #masthead .ast-primary-header-bar,
	body.home.orieve-homepage-enabled #masthead .site-primary-header-wrap {
		min-height: 5.25rem !important;
	}

	body.home.orieve-homepage-enabled #masthead .ast-builder-grid-row {
		align-items: center;
		display: grid;
		grid-template-columns: 2.75rem 1fr 2.75rem;
	}

	body.home.orieve-homepage-enabled #masthead .ast-builder-grid-row::after {
		content: '';
		grid-column: 3;
		grid-row: 1;
	}

	body.home.orieve-homepage-enabled #masthead .site-header-primary-section-left {
		grid-column: 2;
		grid-row: 1;
		justify-content: center;
	}

	body.home.orieve-homepage-enabled #masthead .site-header-primary-section-right {
		grid-column: 1;
		grid-row: 1;
		justify-content: flex-start;
	}

	body.home.orieve-homepage-enabled #masthead .custom-logo {
		height: 4.05rem !important;
		max-height: 4.05rem !important;
		max-width: 4.05rem !important;
	}

	body.home.orieve-homepage-enabled #masthead .main-header-menu-toggle {
		color: #fbf6eb !important;
		min-height: 2.75rem;
		min-width: 2.75rem;
	}

	body.home.orieve-homepage-enabled #masthead.orieve-home-header-scrolled .main-header-menu-toggle {
		color: #1b242c !important;
	}

	body.home.orieve-homepage-enabled #masthead .ast-mobile-header-content,
	body.home.orieve-homepage-enabled #masthead .ast-mobile-popup-drawer.active .ast-mobile-popup-inner {
		background: #f8f2e8 !important;
	}

	body.home.orieve-homepage-enabled #masthead .ast-mobile-header-content .menu-link {
		color: #1b242c !important;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero {
		margin-left: -30px !important;
		margin-right: -30px !important;
		margin-top: -5.55rem;
		min-height: 100svh;
		width: calc(100% + 60px) !important;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid {
		display: flex !important;
		min-height: inherit;
		position: relative;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:first-child {
		background: linear-gradient(90deg, rgba(10, 16, 22, 0.92) 0%, rgba(10, 16, 22, 0.72) 100%);
		min-height: inherit;
		padding: clamp(9.75rem, 24vh, 12rem) 1.5rem 4.25rem;
		width: 100%;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child {
		inset: 0;
		position: absolute;
		width: 100%;
	}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child::after {
	background: rgba(10, 16, 22, 0.18);
}

	body.home.orieve-homepage-enabled .orieve-r02-hero h1 {
		font-size: clamp(2.35rem, 11vw, 3.25rem);
		max-width: 12ch;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .is-style-orieve-lead {
		max-width: 32rem;
	}
}

/* CI-C01-005 full-bleed correction: one continuous photograph behind the
 * complete hero.  The overlay is intentionally a transparent gradient, not
 * a separately coloured text column. */
body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr);
	position: relative;
	z-index: 1;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid::before {
	background: linear-gradient(90deg, rgba(9, 17, 23, 0.70) 0%, rgba(11, 20, 27, 0.52) 40%, rgba(11, 20, 27, 0.20) 68%, rgba(11, 20, 27, 0.07) 100%);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:first-child {
	background: transparent;
	grid-area: 1 / 1;
	max-width: none;
	width: min(100%, 46rem);
	z-index: 3;
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child {
	grid-area: 1 / 1;
	inset: 0;
	min-height: inherit;
	position: relative;
	width: 100%;
	z-index: 1;
}

/* Keep the full-bleed photograph immersive without allowing its intrinsic
 * dimensions to create an unnecessarily tall first viewport. */
@media (min-width: 57.57rem) {
	body.home.orieve-homepage-enabled .orieve-r02-hero {
		height: clamp(48rem, 89svh, 56rem);
		min-height: 0;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid,
	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child,
	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-media-hero,
	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-media-hero img {
		height: 100%;
		min-height: 0;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:first-child {
		padding: clamp(8.5rem, 15vh, 10rem) clamp(4.4rem, 8vw, 8.125rem) clamp(3rem, 6vh, 4.25rem);
	}
}

body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child::after {
	background: none;
}

@media (max-width: 57.56rem) {
	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid {
		display: grid !important;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid::before {
		background: linear-gradient(180deg, rgba(8, 16, 22, 0.72) 0%, rgba(8, 16, 22, 0.62) 50%, rgba(8, 16, 22, 0.45) 100%);
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:first-child {
		background: transparent;
		grid-area: 1 / 1;
		width: 100%;
		z-index: 3;
	}

	body.home.orieve-homepage-enabled .orieve-r02-hero .orieve-r02-hero-grid > .wp-block-column:last-child {
		grid-area: 1 / 1;
		inset: auto;
		position: relative;
		z-index: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.home.orieve-homepage-enabled #masthead {
		transition: none;
	}
}
