/* Alexander Rudolph Manager – Hero (animated photo wall) */

/* Prevents the 100vw full-bleed trick below from introducing a horizontal
   scrollbar (100vw includes the scrollbar's own width in some browsers).
   Safe here because this stylesheet only loads on pages that actually
   use [arm_hero] / [arm_footer]. */
body {
	overflow-x: hidden;
}

.arm-hero {
	--arm-bg: #ffffff;
	--arm-ink: #262626;
	--arm-navy: #1d2c3c;
	--arm-sans: "Jost", system-ui, sans-serif;
	--arm-gap: 6px;
	position: relative;
	/* Full-bleed: always spans the viewport edge-to-edge, even when a
	   page builder (Elementor "boxed" sections, theme content wrappers,
	   etc.) puts it inside a width- or padding-constrained container. */
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	height: 100vh;
	height: 100dvh;
	min-height: 600px;
	overflow: hidden;
	background: var(--arm-bg);
	font-family: var(--arm-sans);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	/* Safari (and dvh-aware browsers in general) recalculates 100dvh as
	   the address bar shows/hides while scrolling. That resizes this
	   element even when it's off-screen, and the browser's scroll
	   anchoring then "corrects" the scroll position to compensate —
	   which is what looks like the page jumping back up. This element's
	   own size changes are never something we want compensated for. */
	overflow-anchor: none;
	/* This is the overflow:hidden clipping ancestor of the animated
	   columns below. On Safari, an animated/composited child inside a
	   plain (non-layered) clipping parent gets periodically
	   re-rasterized as one block — seen as the whole row flashing.
	   Promoting this element to its own stable layer too avoids the
	   mismatch. */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.arm-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-height: 480px) {
	.arm-hero {
		min-height: 420px;
	}
}
.arm-hero * {
	box-sizing: border-box;
}
.arm-hero a {
	color: inherit;
	text-decoration: none;
}
.arm-hero img {
	display: block;
}

.arm-hero-cols {
	display: flex;
	gap: var(--arm-gap);
	padding: var(--arm-gap);
	align-items: flex-start;
	height: 100%;
	position: relative;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.arm-hero-col {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	will-change: transform;
	animation: arm-scroll-up var(--arm-dur, 60s) linear infinite;
	/* Keeps this element on its own GPU compositing layer for the whole
	   animation (translate3d instead of translateY, plus the two lines
	   below) — on Safari, without this, tiles could occasionally flash
	   blank for a frame as the layer got re-rasterized mid-scroll. */
	-webkit-transform: translate3d(0, 0, 0);
	transform: translate3d(0, 0, 0);
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}
@keyframes arm-scroll-up {
	from { transform: translate3d(0, 0, 0); }
	to { transform: translate3d(0, -50%, 0); }
}
.arm-hero:hover .arm-hero-col {
	animation-play-state: paused;
}
.arm-hero-group {
	display: flex;
	flex-direction: column;
	gap: var(--arm-gap);
	padding-bottom: var(--arm-gap);
}
.arm-tile {
	position: relative;
	overflow: hidden;
	background: #f0f0f0;
	cursor: pointer;
}
.arm-tile img {
	width: 100%;
	height: auto;
	transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.arm-tile:hover img {
	transform: scale(1.05);
}

.arm-cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 16px 14px 12px;
	background: linear-gradient(to top, rgba(20, 20, 20, .6), transparent);
	color: #fff;
	font-size: 10px;
	letter-spacing: .18em;
	text-transform: uppercase;
	font-weight: 300;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .35s ease, transform .35s ease;
}
.arm-tile:hover .arm-cap {
	opacity: 1;
	transform: none;
}

/*
 * These three sit in the same stacking context as the animated columns
 * (via z-index) but were never composited layers themselves. On Safari,
 * mixing plain-painted siblings with actively-animated layers in one
 * stack is another trigger for the periodic whole-layer repaint/flash —
 * promoting them too keeps every layer in this stack equally "GPU-owned".
 */
.arm-hero-scrim {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 260px;
	z-index: 4;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, 0));
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.arm-hero-nav {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 6;
	display: flex;
	justify-content: center;
	padding: 18px 24px;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.arm-hero-brandbar {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 24px;
	background: radial-gradient(ellipse 58% 46% at 50% 50%, rgba(0, 0, 0, .44), rgba(0, 0, 0, 0) 72%);
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}
.arm-hero-logo {
	pointer-events: auto;
	font-family: "Josefin Sans", system-ui, sans-serif;
	font-weight: 300;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: clamp(38px, 7.4vw, 92px);
	line-height: 1.08;
	padding-left: .04em;
	text-shadow: 0 2px 44px rgba(0, 0, 0, .6);
}
.arm-hero-sub {
	display: flex;
	align-items: center;
	gap: 18px;
	font-weight: 500;
	letter-spacing: .24em;
	text-transform: uppercase;
	font-size: clamp(12px, 1.9vw, 18px);
	padding-left: .24em;
	text-shadow: 0 1px 22px rgba(0, 0, 0, .6);
}
.arm-hero-sub::before,
.arm-hero-sub::after {
	content: "";
	width: clamp(24px, 6vw, 64px);
	height: 1px;
	background: rgba(255, 255, 255, .75);
}
.arm-hero-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(18px, 2.8vw, 44px);
	list-style: none;
	margin: 0;
	padding: 0;
}
.arm-hero-nav a {
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	position: relative;
	padding: 6px 0;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .65);
}
.arm-hero-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 100%;
	bottom: 0;
	height: 1px;
	background: #fff;
	transition: right .3s ease;
	opacity: .9;
}
.arm-hero-nav a:hover::after {
	right: 0;
}

.arm-nav-toggle {
	display: none;
	pointer-events: auto;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: rgba(0, 0, 0, .28);
	border: none;
	border-radius: 3px;
	cursor: pointer;
}
.arm-nav-toggle span {
	display: block;
	width: 18px;
	height: 1px;
	margin: 0 auto;
	background: #fff;
	transition: transform .25s ease, opacity .25s ease;
}

@media (max-width: 680px) {
	.arm-nav-toggle {
		display: flex;
	}
	.arm-hero-nav {
		justify-content: flex-end;
		padding: 16px 18px;
	}
	.arm-hero-nav ul {
		position: absolute;
		top: 100%;
		right: 18px;
		left: 18px;
		flex-direction: column;
		align-items: center;
		gap: 18px;
		margin-top: 10px;
		padding: 22px 18px;
		background: rgba(15, 15, 15, .82);
		backdrop-filter: blur(6px);
		border-radius: 4px;
		display: none;
	}
	.arm-hero-nav.arm-open ul {
		display: flex;
	}
	.arm-hero-nav.arm-open .arm-nav-toggle span:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	.arm-hero-nav.arm-open .arm-nav-toggle span:nth-child(2) {
		opacity: 0;
	}
	.arm-hero-nav.arm-open .arm-nav-toggle span:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}
}

@media (max-width: 680px) {
	.arm-hero-col:nth-child(3) { display: none; }
	.arm-hero-nav a { font-size: 12px; letter-spacing: .06em; }
}
