/* =========================================================
   Olivx home hero — dark stage with a video card that grows
   to full screen on scroll (behaviour: assets/js/hero-gsap.js).
   Self-contained: all colours/fonts are defined here.
   ========================================================= */

.hero-video {
	--hv-bg: #0C100C;
	--hv-forest: 47 62 44;
	--hv-sage: #A9BDA2;
	--hv-ink: #1B1F17;
	--hv-display: 'DM Serif Display', Georgia, serif;
	--hv-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--card-h: min(58vh, 520px);
	--card-w: calc(var(--card-h) * .6);
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: 170px 0 120px;
	background: var(--hv-bg);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	font-family: var(--hv-body);
}

/* soft forest glow behind the card */
.hero-video::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(40% 55% at 50% 50%, rgb(var(--hv-forest) / .55), transparent 70%),
		radial-gradient(30% 40% at 85% 15%, rgb(169 189 162 / .10), transparent 70%);
	z-index: -2;
	pointer-events: none;
}

.hero-video__content {
	position: relative;
	z-index: 2;
	width: 100%;
}

/* ---------- Headline split around the card ---------- */
.hero-video__eyebrow {
	font: 600 13px/1.4 var(--hv-body);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--hv-sage);
	margin: 0 0 24px;
}

.hero-video__title {
	margin: 0;
	color: #fff;
	font-family: var(--hv-display);
	font-weight: 400;
	font-size: clamp(2.5rem, 4.7vw, 5.6rem);
	line-height: 1;
	letter-spacing: -.01em;
}

.hero-video__half {
	display: block;
}

.hero-video__half--left {
	text-align: left;
}

.hero-video__half--right {
	text-align: right;
}

.hero-video__title em {
	font-style: italic;
	color: var(--hv-sage);
}

.hero-video__dot {
	display: inline-block;
	width: .16em;
	height: .16em;
	margin-left: .04em;
	background: var(--hv-sage);
	vertical-align: baseline;
}

.hero-video__aside {
	max-width: 430px;
	margin-left: auto;
	margin-top: 24px;
	text-align: left;
}

.hero-video__lead {
	max-width: 36ch;
	color: rgb(255 255 255 / .74);
	font-family: var(--hv-body);
	font-size: clamp(1rem, .95rem + .3vw, 1.15rem);
	line-height: 1.6;
	margin-bottom: 24px;
}

.hero-video__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

/* ---------- Buttons ---------- */
.hv-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font: 600 15px/1 var(--hv-body);
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.hv-btn__icon {
	display: inline-block;
	transition: transform .2s ease;
}

.hv-btn:hover .hv-btn__icon,
.hv-btn:focus-visible .hv-btn__icon {
	transform: translateX(3px);
}

.hv-btn--light {
	background: #fff;
	color: var(--hv-ink);
	border-color: #fff;
}

.hv-btn--light:hover,
.hv-btn--light:focus-visible {
	background: var(--hv-sage);
	border-color: var(--hv-sage);
	color: var(--hv-ink);
}

.hv-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgb(255 255 255 / .45);
}

.hv-btn--ghost:hover,
.hv-btn--ghost:focus-visible {
	background: #fff;
	color: var(--hv-ink);
	border-color: #fff;
}

.hv-btn:focus-visible {
	outline: 2px solid var(--hv-sage);
	outline-offset: 3px;
}

/* ---------- The video card ---------- */
.hero-video__card {
	position: absolute;
	left: 50%;
	top: 50%;
	width: var(--card-w);
	height: var(--card-h);
	transform: translate(-50%, -50%) rotate(-4deg);
	z-index: 1;
	will-change: width, height, transform;
}

/* thin offset frame around the card (like a viewfinder) */
.hero-video__card::before {
	content: "";
	position: absolute;
	inset: -26px;
	border: 1px solid rgb(169 189 162 / .45);
	border-radius: 22px;
	opacity: var(--frame-opacity, 1);
	pointer-events: none;
}

@property --hv-angle {
	syntax: "<angle>";
	initial-value: 0deg;
	inherits: false;
}

/* animated gradient border. The card itself is see-through: the gradient is drawn on ::before and
   masked to a 3px ring, so nothing fills the middle (no poster, no dark box) while the video loads */
.hero-video__frame {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 3px;
	border-radius: 18px;
	background: transparent;
}

.hero-video__frame::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	padding: 3px;
	border-radius: inherit;
	background: conic-gradient(from var(--hv-angle), #A9BDA2, #2F3E2C, #71784B, #E8ECE4, #A9BDA2);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	animation: hv-border-spin 6s linear infinite;
	pointer-events: none;
}

@keyframes hv-border-spin {
	to {
		--hv-angle: 360deg;
	}
}

.hero-video__media {
	position: relative;
	width: 100%;
	height: 100%;
	border-radius: 15px;
	overflow: hidden;
	background: transparent;   /* no poster image: see-through until the video's first frame */
}

.hero-video__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* darkening layer that fades in once the video fills the screen */
.hero-video__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgb(12 16 12 / .15), rgb(12 16 12 / .55));
	opacity: 0;
	pointer-events: none;
}

/* scroll hint */
.hero-video__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	font: 600 11px/1 var(--hv-body);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgb(255 255 255 / .55);
}

.hero-video__scroll::after {
	content: "";
	width: 1px;
	height: 36px;
	background: linear-gradient(rgb(255 255 255 / .6), transparent);
	animation: hv-scroll 1.8s ease-in-out infinite;
	transform-origin: top;
}

@keyframes hv-scroll {
	0% { transform: scaleY(0); opacity: 1; }
	70% { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Desktop: text clears the centred card ---------- */
@media (min-width: 992px) {
	.hero-video__title {
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
	}

	.hero-video__half--left {
		padding-right: calc(var(--card-w) / 2 + 48px);
	}

	.hero-video__half--right {
		padding-left: calc(var(--card-w) / 2 + 48px);
	}
}

/* ---------- Tablet / phone: headline + buttons first, then the card ---------- */
@media (max-width: 991.98px) {
	.hero-video {
		--card-h: min(56vh, 460px);
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 140px 0 72px;
	}

	.hero-video__content {
		order: 1;
	}

	.hero-video__half--left,
	.hero-video__half--right {
		text-align: left;
	}

	.hero-video__card {
		order: 2;
		position: relative;
		left: auto;
		top: auto;
		margin: 56px auto 8px;
		transform: rotate(-3deg);
	}

	.hero-video__card::before {
		inset: -16px;
	}

	.hero-video__aside {
		margin-left: 0;
		max-width: 46ch;
	}

	.hero-video__scroll {
		display: none;
	}
}

/* ---------- Reduced motion: static card, no spinning border ---------- */
@media (prefers-reduced-motion: reduce) {
	.hero-video__frame::before,
	.hero-video__scroll::after {
		animation: none;
	}
}

/* ---------- Header on top of the dark hero (home only) ---------- */
.site-logo--light {
	display: none;
}

.header--dark-hero .site-logo:not(.site-logo--light) {
	display: none;
}

.header--dark-hero .site-logo--light {
	display: inline-block;
}

.header--dark-hero .menuCstm li a {
	color: rgb(255 255 255 / .86);
}

.header--dark-hero .menuCstm li a:hover {
	color: #fff;
}

.header--dark-hero .burger__patty {
	background: #fff;
}

/* Button arrow icon (inline SVG matching assets/img/decor/arrowRight.png) */
.hv-btn__icon {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.hv-btn__icon .ox-arrow {
	display: block;
	width: 20px;
	height: auto;
}
/* (The old showreel had black letterbox bars and was zoomed 10% here to hide them. The current
   reel, 1920x1080 with no bars, is shown at its natural framing.) */
/* ---------- Desktop layout: full headline on the left, copy + button on the right,
   both vertically centred beside the video card ---------- */
@media (min-width: 992px) {
	.hero-video__content {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"eyebrow aside"
			"title   aside";
		align-content: center;
		align-items: center;
		column-gap: calc(var(--card-w) + 96px);   /* keeps both columns clear of the centred card */
	}

	.hero-video__eyebrow {
		grid-area: eyebrow;
		align-self: end;
	}

	.hero-video__title {
		grid-area: title;
		align-self: start;
		display: block;
	}

	.hero-video__half--left,
	.hero-video__half--right {
		padding: 0;
		text-align: left;
	}

	/* the right-column wrapper (Bootstrap .row > .col-lg-6.offset-lg-6) */
	.hero-video__content > .row {
		grid-area: aside;
		align-self: center;
		margin: 0;
	}

	.hero-video__content > .row > [class*="col-"] {
		width: 100%;
		max-width: none;
		flex: 0 0 100%;
		margin-left: 0;
	}

	.hero-video__aside {
		margin: 0;
		max-width: 430px;
	}
}
@media (min-width: 992px) {
	/* headline sized to its column so "extraordinary" never reaches the card */
	.hero-video__title {
		font-size: clamp(2.5rem, 4.4vw, 4.2rem);
	}

	/* the hero has 50px more padding at the top (for the header) than at the bottom;
	   shift the text up by half so it is centred on the card */
	.hero-video__content {
		transform: translateY(-25px);
	}
}
/* keep the square full stop attached to the last word */
.hero-video__word {
	white-space: nowrap;
}

/* ---------- Showreel expand button (bottom-right of the card) ---------- */
.hero-video__expand {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 3;
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / .55);
	border-radius: 50%;
	background: rgb(12 16 12 / .55);
	color: #fff;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: pointer;
	transition: opacity .3s ease, transform .3s ease, background-color .25s ease, color .25s ease;
}

.hero-video__expand::after {             /* soft pulse ring */
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: 50%;
	border: 1px solid rgb(169 189 162 / .8);
	animation: reel-pulse 2.2s ease-out infinite;
	pointer-events: none;
}

@keyframes reel-pulse {
	0%   { transform: scale(1);   opacity: .9; }
	100% { transform: scale(1.6); opacity: 0; }
}

.hero-video__expand:hover,
.hero-video__expand:focus-visible {
	background: #fff;
	color: #0C100C;
	transform: scale(1.06);
}

.hero-video__expand:focus-visible {
	outline: 2px solid #A9BDA2;
	outline-offset: 3px;
}

.hero-video__expand.is-hidden {
	opacity: 0;
	transform: scale(.8);
	pointer-events: none;
}

/* ---------- Full-screen player ---------- */
.reel-player {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgb(5 7 5 / .96);
}

.reel-player.is-open {
	display: flex;
}

.reel-player__anim {
	flex-shrink: 0;
}

.reel-player__stage {
	flex-shrink: 0;
	width: min(92vw, calc(92vh * 16 / 9));
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgb(0 0 0 / .6);
}

.reel-player__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.reel-player__close {
	position: absolute;
	top: max(16px, env(safe-area-inset-top));
	right: max(16px, env(safe-area-inset-right));
	z-index: 2;
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid rgb(255 255 255 / .5);
	border-radius: 50%;
	background: rgb(0 0 0 / .45);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease;
}

.reel-player__close:hover,
.reel-player__close:focus-visible {
	background: #fff;
	color: #0C100C;
}

/* Phones held upright: show the landscape video sideways so it fills the screen
   (skipped when the device really locked to landscape) */
@media (orientation: portrait) and (max-width: 991.98px) {
	.reel-player:not(.is-locked) .reel-player__stage {
		width: 100vh;
		width: 100dvh;
		height: 100vw;
		aspect-ratio: auto;
		border-radius: 0;
		transform: rotate(90deg);
	}
}

/* Phones turned sideways: edge to edge */
@media (orientation: landscape) and (max-height: 600px) {
	.reel-player__stage {
		width: 100vw;
		height: 100vh;
		height: 100dvh;
		aspect-ratio: auto;
		border-radius: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hero-video__expand::after {
		animation: none;
	}
}